10554
|
1 #! /bin/sh
|
|
2 # Guess values for system-dependent variables and create Makefiles.
|
|
3 # Generated by GNU Autoconf 2.69.
|
|
4 #
|
|
5 #
|
|
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
|
|
7 #
|
|
8 #
|
|
9 # This configure script is free software; the Free Software Foundation
|
|
10 # gives unlimited permission to copy, distribute and modify it.
|
|
11 ## -------------------- ##
|
|
12 ## M4sh Initialization. ##
|
|
13 ## -------------------- ##
|
|
14
|
|
15 # Be more Bourne compatible
|
|
16 DUALCASE=1; export DUALCASE # for MKS sh
|
|
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
|
18 emulate sh
|
|
19 NULLCMD=:
|
|
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
|
21 # is contrary to our usage. Disable this feature.
|
|
22 alias -g '${1+"$@"}'='"$@"'
|
|
23 setopt NO_GLOB_SUBST
|
|
24 else
|
|
25 case `(set -o) 2>/dev/null` in #(
|
|
26 *posix*) :
|
|
27 set -o posix ;; #(
|
|
28 *) :
|
|
29 ;;
|
|
30 esac
|
|
31 fi
|
|
32
|
|
33
|
|
34 as_nl='
|
|
35 '
|
|
36 export as_nl
|
|
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
|
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
|
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
|
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
|
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
|
|
42 # but without wasting forks for bash or zsh.
|
|
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
|
|
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
|
45 as_echo='print -r --'
|
|
46 as_echo_n='print -rn --'
|
|
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
|
48 as_echo='printf %s\n'
|
|
49 as_echo_n='printf %s'
|
|
50 else
|
|
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
|
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
|
53 as_echo_n='/usr/ucb/echo -n'
|
|
54 else
|
|
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
|
56 as_echo_n_body='eval
|
|
57 arg=$1;
|
|
58 case $arg in #(
|
|
59 *"$as_nl"*)
|
|
60 expr "X$arg" : "X\\(.*\\)$as_nl";
|
|
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
|
62 esac;
|
|
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
|
64 '
|
|
65 export as_echo_n_body
|
|
66 as_echo_n='sh -c $as_echo_n_body as_echo'
|
|
67 fi
|
|
68 export as_echo_body
|
|
69 as_echo='sh -c $as_echo_body as_echo'
|
|
70 fi
|
|
71
|
|
72 # The user is always right.
|
|
73 if test "${PATH_SEPARATOR+set}" != set; then
|
|
74 PATH_SEPARATOR=:
|
|
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
|
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
|
77 PATH_SEPARATOR=';'
|
|
78 }
|
|
79 fi
|
|
80
|
|
81
|
|
82 # IFS
|
|
83 # We need space, tab and new line, in precisely that order. Quoting is
|
|
84 # there to prevent editors from complaining about space-tab.
|
|
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
|
86 # splitting by setting IFS to empty value.)
|
|
87 IFS=" "" $as_nl"
|
|
88
|
|
89 # Find who we are. Look in the path if we contain no directory separator.
|
|
90 as_myself=
|
|
91 case $0 in #((
|
|
92 *[\\/]* ) as_myself=$0 ;;
|
|
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
94 for as_dir in $PATH
|
|
95 do
|
|
96 IFS=$as_save_IFS
|
|
97 test -z "$as_dir" && as_dir=.
|
|
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
|
99 done
|
|
100 IFS=$as_save_IFS
|
|
101
|
|
102 ;;
|
|
103 esac
|
|
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
|
|
105 # in which case we are not to be found in the path.
|
|
106 if test "x$as_myself" = x; then
|
|
107 as_myself=$0
|
|
108 fi
|
|
109 if test ! -f "$as_myself"; then
|
|
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
|
111 exit 1
|
|
112 fi
|
|
113
|
|
114 # Unset variables that we do not need and which cause bugs (e.g. in
|
|
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
|
116 # suppresses any "Segmentation fault" message there. '((' could
|
|
117 # trigger a bug in pdksh 5.2.14.
|
|
118 for as_var in BASH_ENV ENV MAIL MAILPATH
|
|
119 do eval test x\${$as_var+set} = xset \
|
|
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
|
121 done
|
|
122 PS1='$ '
|
|
123 PS2='> '
|
|
124 PS4='+ '
|
|
125
|
|
126 # NLS nuisances.
|
|
127 LC_ALL=C
|
|
128 export LC_ALL
|
|
129 LANGUAGE=C
|
|
130 export LANGUAGE
|
|
131
|
|
132 # CDPATH.
|
|
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
|
134
|
|
135 # Use a proper internal environment variable to ensure we don't fall
|
|
136 # into an infinite loop, continuously re-executing ourselves.
|
|
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
|
|
138 _as_can_reexec=no; export _as_can_reexec;
|
|
139 # We cannot yet assume a decent shell, so we have to provide a
|
|
140 # neutralization value for shells without unset; and this also
|
|
141 # works around shells that cannot unset nonexistent variables.
|
|
142 # Preserve -v and -x to the replacement shell.
|
|
143 BASH_ENV=/dev/null
|
|
144 ENV=/dev/null
|
|
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
|
146 case $- in # ((((
|
|
147 *v*x* | *x*v* ) as_opts=-vx ;;
|
|
148 *v* ) as_opts=-v ;;
|
|
149 *x* ) as_opts=-x ;;
|
|
150 * ) as_opts= ;;
|
|
151 esac
|
|
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
|
|
153 # Admittedly, this is quite paranoid, since all the known shells bail
|
|
154 # out after a failed `exec'.
|
|
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
|
|
156 as_fn_exit 255
|
|
157 fi
|
|
158 # We don't want this to propagate to other subprocesses.
|
|
159 { _as_can_reexec=; unset _as_can_reexec;}
|
|
160 if test "x$CONFIG_SHELL" = x; then
|
|
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
|
|
162 emulate sh
|
|
163 NULLCMD=:
|
|
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
|
|
165 # is contrary to our usage. Disable this feature.
|
|
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
|
|
167 setopt NO_GLOB_SUBST
|
|
168 else
|
|
169 case \`(set -o) 2>/dev/null\` in #(
|
|
170 *posix*) :
|
|
171 set -o posix ;; #(
|
|
172 *) :
|
|
173 ;;
|
|
174 esac
|
|
175 fi
|
|
176 "
|
|
177 as_required="as_fn_return () { (exit \$1); }
|
|
178 as_fn_success () { as_fn_return 0; }
|
|
179 as_fn_failure () { as_fn_return 1; }
|
|
180 as_fn_ret_success () { return 0; }
|
|
181 as_fn_ret_failure () { return 1; }
|
|
182
|
|
183 exitcode=0
|
|
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
|
|
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
|
|
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
|
|
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
|
|
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
|
|
189
|
|
190 else
|
|
191 exitcode=1; echo positional parameters were not saved.
|
|
192 fi
|
|
193 test x\$exitcode = x0 || exit 1
|
|
194 test -x / || exit 1"
|
|
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
|
|
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
|
|
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
|
|
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
|
|
199 test \$(( 1 + 1 )) = 2 || exit 1"
|
|
200 if (eval "$as_required") 2>/dev/null; then :
|
|
201 as_have_required=yes
|
|
202 else
|
|
203 as_have_required=no
|
|
204 fi
|
|
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
|
|
206
|
|
207 else
|
|
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
209 as_found=false
|
|
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
|
211 do
|
|
212 IFS=$as_save_IFS
|
|
213 test -z "$as_dir" && as_dir=.
|
|
214 as_found=:
|
|
215 case $as_dir in #(
|
|
216 /*)
|
|
217 for as_base in sh bash ksh sh5; do
|
|
218 # Try only shells that exist, to save several forks.
|
|
219 as_shell=$as_dir/$as_base
|
|
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
|
|
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
|
222 CONFIG_SHELL=$as_shell as_have_required=yes
|
|
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
|
224 break 2
|
|
225 fi
|
|
226 fi
|
|
227 done;;
|
|
228 esac
|
|
229 as_found=false
|
|
230 done
|
|
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
|
|
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
|
|
233 CONFIG_SHELL=$SHELL as_have_required=yes
|
|
234 fi; }
|
|
235 IFS=$as_save_IFS
|
|
236
|
|
237
|
|
238 if test "x$CONFIG_SHELL" != x; then :
|
|
239 export CONFIG_SHELL
|
|
240 # We cannot yet assume a decent shell, so we have to provide a
|
|
241 # neutralization value for shells without unset; and this also
|
|
242 # works around shells that cannot unset nonexistent variables.
|
|
243 # Preserve -v and -x to the replacement shell.
|
|
244 BASH_ENV=/dev/null
|
|
245 ENV=/dev/null
|
|
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
|
247 case $- in # ((((
|
|
248 *v*x* | *x*v* ) as_opts=-vx ;;
|
|
249 *v* ) as_opts=-v ;;
|
|
250 *x* ) as_opts=-x ;;
|
|
251 * ) as_opts= ;;
|
|
252 esac
|
|
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
|
|
254 # Admittedly, this is quite paranoid, since all the known shells bail
|
|
255 # out after a failed `exec'.
|
|
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
|
|
257 exit 255
|
|
258 fi
|
|
259
|
|
260 if test x$as_have_required = xno; then :
|
|
261 $as_echo "$0: This script requires a shell more modern than all"
|
|
262 $as_echo "$0: the shells that I found on your system."
|
|
263 if test x${ZSH_VERSION+set} = xset ; then
|
|
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
|
|
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
|
|
266 else
|
|
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
|
|
268 $0: including any error possibly output before this
|
|
269 $0: message. Then install a modern shell, or manually run
|
|
270 $0: the script under such a shell if you do have one."
|
|
271 fi
|
|
272 exit 1
|
|
273 fi
|
|
274 fi
|
|
275 fi
|
|
276 SHELL=${CONFIG_SHELL-/bin/sh}
|
|
277 export SHELL
|
|
278 # Unset more variables known to interfere with behavior of common tools.
|
|
279 CLICOLOR_FORCE= GREP_OPTIONS=
|
|
280 unset CLICOLOR_FORCE GREP_OPTIONS
|
|
281
|
|
282 ## --------------------- ##
|
|
283 ## M4sh Shell Functions. ##
|
|
284 ## --------------------- ##
|
|
285 # as_fn_unset VAR
|
|
286 # ---------------
|
|
287 # Portably unset VAR.
|
|
288 as_fn_unset ()
|
|
289 {
|
|
290 { eval $1=; unset $1;}
|
|
291 }
|
|
292 as_unset=as_fn_unset
|
|
293
|
|
294 # as_fn_set_status STATUS
|
|
295 # -----------------------
|
|
296 # Set $? to STATUS, without forking.
|
|
297 as_fn_set_status ()
|
|
298 {
|
|
299 return $1
|
|
300 } # as_fn_set_status
|
|
301
|
|
302 # as_fn_exit STATUS
|
|
303 # -----------------
|
|
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
|
305 as_fn_exit ()
|
|
306 {
|
|
307 set +e
|
|
308 as_fn_set_status $1
|
|
309 exit $1
|
|
310 } # as_fn_exit
|
|
311
|
|
312 # as_fn_mkdir_p
|
|
313 # -------------
|
|
314 # Create "$as_dir" as a directory, including parents if necessary.
|
|
315 as_fn_mkdir_p ()
|
|
316 {
|
|
317
|
|
318 case $as_dir in #(
|
|
319 -*) as_dir=./$as_dir;;
|
|
320 esac
|
|
321 test -d "$as_dir" || eval $as_mkdir_p || {
|
|
322 as_dirs=
|
|
323 while :; do
|
|
324 case $as_dir in #(
|
|
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
|
326 *) as_qdir=$as_dir;;
|
|
327 esac
|
|
328 as_dirs="'$as_qdir' $as_dirs"
|
|
329 as_dir=`$as_dirname -- "$as_dir" ||
|
|
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
|
331 X"$as_dir" : 'X\(//\)[^/]' \| \
|
|
332 X"$as_dir" : 'X\(//\)$' \| \
|
|
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
|
334 $as_echo X"$as_dir" |
|
|
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
|
336 s//\1/
|
|
337 q
|
|
338 }
|
|
339 /^X\(\/\/\)[^/].*/{
|
|
340 s//\1/
|
|
341 q
|
|
342 }
|
|
343 /^X\(\/\/\)$/{
|
|
344 s//\1/
|
|
345 q
|
|
346 }
|
|
347 /^X\(\/\).*/{
|
|
348 s//\1/
|
|
349 q
|
|
350 }
|
|
351 s/.*/./; q'`
|
|
352 test -d "$as_dir" && break
|
|
353 done
|
|
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
|
|
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
|
356
|
|
357
|
|
358 } # as_fn_mkdir_p
|
|
359
|
|
360 # as_fn_executable_p FILE
|
|
361 # -----------------------
|
|
362 # Test if FILE is an executable regular file.
|
|
363 as_fn_executable_p ()
|
|
364 {
|
|
365 test -f "$1" && test -x "$1"
|
|
366 } # as_fn_executable_p
|
|
367 # as_fn_append VAR VALUE
|
|
368 # ----------------------
|
|
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
|
|
370 # advantage of any shell optimizations that allow amortized linear growth over
|
|
371 # repeated appends, instead of the typical quadratic growth present in naive
|
|
372 # implementations.
|
|
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
|
374 eval 'as_fn_append ()
|
|
375 {
|
|
376 eval $1+=\$2
|
|
377 }'
|
|
378 else
|
|
379 as_fn_append ()
|
|
380 {
|
|
381 eval $1=\$$1\$2
|
|
382 }
|
|
383 fi # as_fn_append
|
|
384
|
|
385 # as_fn_arith ARG...
|
|
386 # ------------------
|
|
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
|
|
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
|
389 # must be portable across $(()) and expr.
|
|
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
|
391 eval 'as_fn_arith ()
|
|
392 {
|
|
393 as_val=$(( $* ))
|
|
394 }'
|
|
395 else
|
|
396 as_fn_arith ()
|
|
397 {
|
|
398 as_val=`expr "$@" || test $? -eq 1`
|
|
399 }
|
|
400 fi # as_fn_arith
|
|
401
|
|
402
|
|
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
|
|
404 # ----------------------------------------
|
|
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
|
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
|
407 # script with STATUS, using 1 if that was 0.
|
|
408 as_fn_error ()
|
|
409 {
|
|
410 as_status=$1; test $as_status -eq 0 && as_status=1
|
|
411 if test "$4"; then
|
|
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
|
414 fi
|
|
415 $as_echo "$as_me: error: $2" >&2
|
|
416 as_fn_exit $as_status
|
|
417 } # as_fn_error
|
|
418
|
|
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
|
|
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
|
421 as_expr=expr
|
|
422 else
|
|
423 as_expr=false
|
|
424 fi
|
|
425
|
|
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
|
427 as_basename=basename
|
|
428 else
|
|
429 as_basename=false
|
|
430 fi
|
|
431
|
|
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
|
433 as_dirname=dirname
|
|
434 else
|
|
435 as_dirname=false
|
|
436 fi
|
|
437
|
|
438 as_me=`$as_basename -- "$0" ||
|
|
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
|
440 X"$0" : 'X\(//\)$' \| \
|
|
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
|
442 $as_echo X/"$0" |
|
|
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
|
|
444 s//\1/
|
|
445 q
|
|
446 }
|
|
447 /^X\/\(\/\/\)$/{
|
|
448 s//\1/
|
|
449 q
|
|
450 }
|
|
451 /^X\/\(\/\).*/{
|
|
452 s//\1/
|
|
453 q
|
|
454 }
|
|
455 s/.*/./; q'`
|
|
456
|
|
457 # Avoid depending upon Character Ranges.
|
|
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
|
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
|
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
|
461 as_cr_digits='0123456789'
|
|
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
|
|
463
|
|
464
|
|
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
|
|
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
|
|
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
|
|
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
|
|
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
|
|
470 sed -n '
|
|
471 p
|
|
472 /[$]LINENO/=
|
|
473 ' <$as_myself |
|
|
474 sed '
|
|
475 s/[$]LINENO.*/&-/
|
|
476 t lineno
|
|
477 b
|
|
478 :lineno
|
|
479 N
|
|
480 :loop
|
|
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
|
482 t loop
|
|
483 s/-\n.*//
|
|
484 ' >$as_me.lineno &&
|
|
485 chmod +x "$as_me.lineno" ||
|
|
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
|
|
487
|
|
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
|
|
489 # already done that, so ensure we don't try to do so again and fall
|
|
490 # in an infinite loop. This has already happened in practice.
|
|
491 _as_can_reexec=no; export _as_can_reexec
|
|
492 # Don't try to exec as it changes $[0], causing all sort of problems
|
|
493 # (the dirname of $[0] is not the place where we might find the
|
|
494 # original and so on. Autoconf is especially sensitive to this).
|
|
495 . "./$as_me.lineno"
|
|
496 # Exit status is that of the last command.
|
|
497 exit
|
|
498 }
|
|
499
|
|
500 ECHO_C= ECHO_N= ECHO_T=
|
|
501 case `echo -n x` in #(((((
|
|
502 -n*)
|
|
503 case `echo 'xy\c'` in
|
|
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
|
505 xy) ECHO_C='\c';;
|
|
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
|
507 ECHO_T=' ';;
|
|
508 esac;;
|
|
509 *)
|
|
510 ECHO_N='-n';;
|
|
511 esac
|
|
512
|
|
513 rm -f conf$$ conf$$.exe conf$$.file
|
|
514 if test -d conf$$.dir; then
|
|
515 rm -f conf$$.dir/conf$$.file
|
|
516 else
|
|
517 rm -f conf$$.dir
|
|
518 mkdir conf$$.dir 2>/dev/null
|
|
519 fi
|
|
520 if (echo >conf$$.file) 2>/dev/null; then
|
|
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
|
|
522 as_ln_s='ln -s'
|
|
523 # ... but there are two gotchas:
|
|
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
|
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
|
526 # In both cases, we have to default to `cp -pR'.
|
|
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
|
528 as_ln_s='cp -pR'
|
|
529 elif ln conf$$.file conf$$ 2>/dev/null; then
|
|
530 as_ln_s=ln
|
|
531 else
|
|
532 as_ln_s='cp -pR'
|
|
533 fi
|
|
534 else
|
|
535 as_ln_s='cp -pR'
|
|
536 fi
|
|
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
|
538 rmdir conf$$.dir 2>/dev/null
|
|
539
|
|
540 if mkdir -p . 2>/dev/null; then
|
|
541 as_mkdir_p='mkdir -p "$as_dir"'
|
|
542 else
|
|
543 test -d ./-p && rmdir ./-p
|
|
544 as_mkdir_p=false
|
|
545 fi
|
|
546
|
|
547 as_test_x='test -x'
|
|
548 as_executable_p=as_fn_executable_p
|
|
549
|
|
550 # Sed expression to map a string onto a valid CPP name.
|
|
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
|
552
|
|
553 # Sed expression to map a string onto a valid variable name.
|
|
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
|
555
|
|
556
|
|
557 test -n "$DJDIR" || exec 7<&0 </dev/null
|
|
558 exec 6>&1
|
|
559
|
|
560 # Name of the host.
|
|
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
|
|
562 # so uname gets run too.
|
|
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
|
564
|
|
565 #
|
|
566 # Initializations.
|
|
567 #
|
|
568 ac_default_prefix=/usr/local
|
|
569 ac_clean_files=
|
|
570 ac_config_libobj_dir=.
|
|
571 LIBOBJS=
|
|
572 cross_compiling=no
|
|
573 subdirs=
|
|
574 MFLAGS=
|
|
575 MAKEFLAGS=
|
|
576
|
|
577 # Identity of this package.
|
|
578 PACKAGE_NAME=
|
|
579 PACKAGE_TARNAME=
|
|
580 PACKAGE_VERSION=
|
|
581 PACKAGE_STRING=
|
|
582 PACKAGE_BUGREPORT=
|
|
583 PACKAGE_URL=
|
|
584
|
|
585 ac_unique_file="config/config.h.in"
|
|
586 # Factoring default headers for most tests.
|
|
587 ac_includes_default="\
|
|
588 #include <stdio.h>
|
|
589 #ifdef HAVE_SYS_TYPES_H
|
|
590 # include <sys/types.h>
|
|
591 #endif
|
|
592 #ifdef HAVE_SYS_STAT_H
|
|
593 # include <sys/stat.h>
|
|
594 #endif
|
|
595 #ifdef STDC_HEADERS
|
|
596 # include <stdlib.h>
|
|
597 # include <stddef.h>
|
|
598 #else
|
|
599 # ifdef HAVE_STDLIB_H
|
|
600 # include <stdlib.h>
|
|
601 # endif
|
|
602 #endif
|
|
603 #ifdef HAVE_STRING_H
|
|
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
|
|
605 # include <memory.h>
|
|
606 # endif
|
|
607 # include <string.h>
|
|
608 #endif
|
|
609 #ifdef HAVE_STRINGS_H
|
|
610 # include <strings.h>
|
|
611 #endif
|
|
612 #ifdef HAVE_INTTYPES_H
|
|
613 # include <inttypes.h>
|
|
614 #endif
|
|
615 #ifdef HAVE_STDINT_H
|
|
616 # include <stdint.h>
|
|
617 #endif
|
|
618 #ifdef HAVE_UNISTD_H
|
|
619 # include <unistd.h>
|
|
620 #endif"
|
|
621
|
|
622 ac_header_list=
|
|
623 ac_subst_vars='LTLIBOBJS
|
|
624 LIBOBJS
|
|
625 CC_RANLIB
|
|
626 CC_AR
|
|
627 STRIP
|
|
628 RANLIB
|
|
629 AR
|
|
630 PSTOPDF
|
|
631 PS2PDF
|
|
632 ACRODIST
|
|
633 XMLTO
|
|
634 ASCIIDOC
|
|
635 NROFF
|
|
636 LIBEXT
|
|
637 INSTALL_DATA
|
|
638 INSTALL_SCRIPT
|
|
639 INSTALL_PROGRAM
|
|
640 SET_MAKE
|
|
641 LN_S
|
|
642 EGREP
|
|
643 GREP
|
|
644 CPP
|
|
645 OBJEXT
|
|
646 EXEEXT
|
|
647 ac_ct_CC
|
|
648 CPPFLAGS
|
|
649 LDFLAGS
|
|
650 CFLAGS
|
|
651 CC
|
|
652 ac_prefix_program
|
|
653 target_alias
|
|
654 host_alias
|
|
655 build_alias
|
|
656 LIBS
|
|
657 ECHO_T
|
|
658 ECHO_N
|
|
659 ECHO_C
|
|
660 DEFS
|
|
661 mandir
|
|
662 localedir
|
|
663 libdir
|
|
664 psdir
|
|
665 pdfdir
|
|
666 dvidir
|
|
667 htmldir
|
|
668 infodir
|
|
669 docdir
|
|
670 oldincludedir
|
|
671 includedir
|
|
672 localstatedir
|
|
673 sharedstatedir
|
|
674 sysconfdir
|
|
675 datadir
|
|
676 datarootdir
|
|
677 libexecdir
|
|
678 sbindir
|
|
679 bindir
|
|
680 program_transform_name
|
|
681 prefix
|
|
682 exec_prefix
|
|
683 PACKAGE_URL
|
|
684 PACKAGE_BUGREPORT
|
|
685 PACKAGE_STRING
|
|
686 PACKAGE_VERSION
|
|
687 PACKAGE_TARNAME
|
|
688 PACKAGE_NAME
|
|
689 PATH_SEPARATOR
|
|
690 SHELL'
|
|
691 ac_subst_files=''
|
|
692 ac_user_opts='
|
|
693 enable_option_checking
|
|
694 enable_largefile
|
|
695 enable_sections
|
|
696 enable_lto
|
|
697 enable_werror
|
|
698 enable_ccache
|
|
699 '
|
|
700 ac_precious_vars='build_alias
|
|
701 host_alias
|
|
702 target_alias
|
|
703 CC
|
|
704 CFLAGS
|
|
705 LDFLAGS
|
|
706 LIBS
|
|
707 CPPFLAGS
|
|
708 CPP'
|
|
709
|
|
710
|
|
711 # Initialize some variables set by options.
|
|
712 ac_init_help=
|
|
713 ac_init_version=false
|
|
714 ac_unrecognized_opts=
|
|
715 ac_unrecognized_sep=
|
|
716 # The variables have the same names as the options, with
|
|
717 # dashes changed to underlines.
|
|
718 cache_file=/dev/null
|
|
719 exec_prefix=NONE
|
|
720 no_create=
|
|
721 no_recursion=
|
|
722 prefix=NONE
|
|
723 program_prefix=NONE
|
|
724 program_suffix=NONE
|
|
725 program_transform_name=s,x,x,
|
|
726 silent=
|
|
727 site=
|
|
728 srcdir=
|
|
729 verbose=
|
|
730 x_includes=NONE
|
|
731 x_libraries=NONE
|
|
732
|
|
733 # Installation directory options.
|
|
734 # These are left unexpanded so users can "make install exec_prefix=/foo"
|
|
735 # and all the variables that are supposed to be based on exec_prefix
|
|
736 # by default will actually change.
|
|
737 # Use braces instead of parens because sh, perl, etc. also accept them.
|
|
738 # (The list follows the same order as the GNU Coding Standards.)
|
|
739 bindir='${exec_prefix}/bin'
|
|
740 sbindir='${exec_prefix}/sbin'
|
|
741 libexecdir='${exec_prefix}/libexec'
|
|
742 datarootdir='${prefix}/share'
|
|
743 datadir='${datarootdir}'
|
|
744 sysconfdir='${prefix}/etc'
|
|
745 sharedstatedir='${prefix}/com'
|
|
746 localstatedir='${prefix}/var'
|
|
747 includedir='${prefix}/include'
|
|
748 oldincludedir='/usr/include'
|
|
749 docdir='${datarootdir}/doc/${PACKAGE}'
|
|
750 infodir='${datarootdir}/info'
|
|
751 htmldir='${docdir}'
|
|
752 dvidir='${docdir}'
|
|
753 pdfdir='${docdir}'
|
|
754 psdir='${docdir}'
|
|
755 libdir='${exec_prefix}/lib'
|
|
756 localedir='${datarootdir}/locale'
|
|
757 mandir='${datarootdir}/man'
|
|
758
|
|
759 ac_prev=
|
|
760 ac_dashdash=
|
|
761 for ac_option
|
|
762 do
|
|
763 # If the previous option needs an argument, assign it.
|
|
764 if test -n "$ac_prev"; then
|
|
765 eval $ac_prev=\$ac_option
|
|
766 ac_prev=
|
|
767 continue
|
|
768 fi
|
|
769
|
|
770 case $ac_option in
|
|
771 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
|
772 *=) ac_optarg= ;;
|
|
773 *) ac_optarg=yes ;;
|
|
774 esac
|
|
775
|
|
776 # Accept the important Cygnus configure options, so we can diagnose typos.
|
|
777
|
|
778 case $ac_dashdash$ac_option in
|
|
779 --)
|
|
780 ac_dashdash=yes ;;
|
|
781
|
|
782 -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
|
783 ac_prev=bindir ;;
|
|
784 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
|
785 bindir=$ac_optarg ;;
|
|
786
|
|
787 -build | --build | --buil | --bui | --bu)
|
|
788 ac_prev=build_alias ;;
|
|
789 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
|
790 build_alias=$ac_optarg ;;
|
|
791
|
|
792 -cache-file | --cache-file | --cache-fil | --cache-fi \
|
|
793 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
|
794 ac_prev=cache_file ;;
|
|
795 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
|
796 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
|
797 cache_file=$ac_optarg ;;
|
|
798
|
|
799 --config-cache | -C)
|
|
800 cache_file=config.cache ;;
|
|
801
|
|
802 -datadir | --datadir | --datadi | --datad)
|
|
803 ac_prev=datadir ;;
|
|
804 -datadir=* | --datadir=* | --datadi=* | --datad=*)
|
|
805 datadir=$ac_optarg ;;
|
|
806
|
|
807 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
|
|
808 | --dataroo | --dataro | --datar)
|
|
809 ac_prev=datarootdir ;;
|
|
810 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
|
|
811 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
|
|
812 datarootdir=$ac_optarg ;;
|
|
813
|
|
814 -disable-* | --disable-*)
|
|
815 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
|
816 # Reject names that are not valid shell variable names.
|
|
817 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
|
818 as_fn_error $? "invalid feature name: $ac_useropt"
|
|
819 ac_useropt_orig=$ac_useropt
|
|
820 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
|
821 case $ac_user_opts in
|
|
822 *"
|
|
823 "enable_$ac_useropt"
|
|
824 "*) ;;
|
|
825 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
|
|
826 ac_unrecognized_sep=', ';;
|
|
827 esac
|
|
828 eval enable_$ac_useropt=no ;;
|
|
829
|
|
830 -docdir | --docdir | --docdi | --doc | --do)
|
|
831 ac_prev=docdir ;;
|
|
832 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
|
|
833 docdir=$ac_optarg ;;
|
|
834
|
|
835 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
|
836 ac_prev=dvidir ;;
|
|
837 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
|
|
838 dvidir=$ac_optarg ;;
|
|
839
|
|
840 -enable-* | --enable-*)
|
|
841 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
|
842 # Reject names that are not valid shell variable names.
|
|
843 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
|
844 as_fn_error $? "invalid feature name: $ac_useropt"
|
|
845 ac_useropt_orig=$ac_useropt
|
|
846 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
|
847 case $ac_user_opts in
|
|
848 *"
|
|
849 "enable_$ac_useropt"
|
|
850 "*) ;;
|
|
851 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
|
|
852 ac_unrecognized_sep=', ';;
|
|
853 esac
|
|
854 eval enable_$ac_useropt=\$ac_optarg ;;
|
|
855
|
|
856 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
|
857 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
|
858 | --exec | --exe | --ex)
|
|
859 ac_prev=exec_prefix ;;
|
|
860 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
|
861 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
|
862 | --exec=* | --exe=* | --ex=*)
|
|
863 exec_prefix=$ac_optarg ;;
|
|
864
|
|
865 -gas | --gas | --ga | --g)
|
|
866 # Obsolete; use --with-gas.
|
|
867 with_gas=yes ;;
|
|
868
|
|
869 -help | --help | --hel | --he | -h)
|
|
870 ac_init_help=long ;;
|
|
871 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
|
872 ac_init_help=recursive ;;
|
|
873 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
|
874 ac_init_help=short ;;
|
|
875
|
|
876 -host | --host | --hos | --ho)
|
|
877 ac_prev=host_alias ;;
|
|
878 -host=* | --host=* | --hos=* | --ho=*)
|
|
879 host_alias=$ac_optarg ;;
|
|
880
|
|
881 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
|
|
882 ac_prev=htmldir ;;
|
|
883 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
|
|
884 | --ht=*)
|
|
885 htmldir=$ac_optarg ;;
|
|
886
|
|
887 -includedir | --includedir | --includedi | --included | --include \
|
|
888 | --includ | --inclu | --incl | --inc)
|
|
889 ac_prev=includedir ;;
|
|
890 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
|
891 | --includ=* | --inclu=* | --incl=* | --inc=*)
|
|
892 includedir=$ac_optarg ;;
|
|
893
|
|
894 -infodir | --infodir | --infodi | --infod | --info | --inf)
|
|
895 ac_prev=infodir ;;
|
|
896 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
|
897 infodir=$ac_optarg ;;
|
|
898
|
|
899 -libdir | --libdir | --libdi | --libd)
|
|
900 ac_prev=libdir ;;
|
|
901 -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
|
902 libdir=$ac_optarg ;;
|
|
903
|
|
904 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
|
905 | --libexe | --libex | --libe)
|
|
906 ac_prev=libexecdir ;;
|
|
907 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
|
908 | --libexe=* | --libex=* | --libe=*)
|
|
909 libexecdir=$ac_optarg ;;
|
|
910
|
|
911 -localedir | --localedir | --localedi | --localed | --locale)
|
|
912 ac_prev=localedir ;;
|
|
913 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
|
|
914 localedir=$ac_optarg ;;
|
|
915
|
|
916 -localstatedir | --localstatedir | --localstatedi | --localstated \
|
|
917 | --localstate | --localstat | --localsta | --localst | --locals)
|
|
918 ac_prev=localstatedir ;;
|
|
919 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
|
920 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
|
|
921 localstatedir=$ac_optarg ;;
|
|
922
|
|
923 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
|
924 ac_prev=mandir ;;
|
|
925 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
|
926 mandir=$ac_optarg ;;
|
|
927
|
|
928 -nfp | --nfp | --nf)
|
|
929 # Obsolete; use --without-fp.
|
|
930 with_fp=no ;;
|
|
931
|
|
932 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|
933 | --no-cr | --no-c | -n)
|
|
934 no_create=yes ;;
|
|
935
|
|
936 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|
937 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
|
938 no_recursion=yes ;;
|
|
939
|
|
940 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
|
941 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
|
942 | --oldin | --oldi | --old | --ol | --o)
|
|
943 ac_prev=oldincludedir ;;
|
|
944 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
|
945 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
|
946 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
|
947 oldincludedir=$ac_optarg ;;
|
|
948
|
|
949 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
|
950 ac_prev=prefix ;;
|
|
951 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
|
952 prefix=$ac_optarg ;;
|
|
953
|
|
954 -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
|
955 | --program-pre | --program-pr | --program-p)
|
|
956 ac_prev=program_prefix ;;
|
|
957 -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
|
958 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
|
959 program_prefix=$ac_optarg ;;
|
|
960
|
|
961 -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
|
962 | --program-suf | --program-su | --program-s)
|
|
963 ac_prev=program_suffix ;;
|
|
964 -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
|
965 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
|
966 program_suffix=$ac_optarg ;;
|
|
967
|
|
968 -program-transform-name | --program-transform-name \
|
|
969 | --program-transform-nam | --program-transform-na \
|
|
970 | --program-transform-n | --program-transform- \
|
|
971 | --program-transform | --program-transfor \
|
|
972 | --program-transfo | --program-transf \
|
|
973 | --program-trans | --program-tran \
|
|
974 | --progr-tra | --program-tr | --program-t)
|
|
975 ac_prev=program_transform_name ;;
|
|
976 -program-transform-name=* | --program-transform-name=* \
|
|
977 | --program-transform-nam=* | --program-transform-na=* \
|
|
978 | --program-transform-n=* | --program-transform-=* \
|
|
979 | --program-transform=* | --program-transfor=* \
|
|
980 | --program-transfo=* | --program-transf=* \
|
|
981 | --program-trans=* | --program-tran=* \
|
|
982 | --progr-tra=* | --program-tr=* | --program-t=*)
|
|
983 program_transform_name=$ac_optarg ;;
|
|
984
|
|
985 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
|
|
986 ac_prev=pdfdir ;;
|
|
987 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
|
|
988 pdfdir=$ac_optarg ;;
|
|
989
|
|
990 -psdir | --psdir | --psdi | --psd | --ps)
|
|
991 ac_prev=psdir ;;
|
|
992 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
|
993 psdir=$ac_optarg ;;
|
|
994
|
|
995 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
|
996 | -silent | --silent | --silen | --sile | --sil)
|
|
997 silent=yes ;;
|
|
998
|
|
999 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
|
1000 ac_prev=sbindir ;;
|
|
1001 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
|
1002 | --sbi=* | --sb=*)
|
|
1003 sbindir=$ac_optarg ;;
|
|
1004
|
|
1005 -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
|
1006 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
|
1007 | --sharedst | --shareds | --shared | --share | --shar \
|
|
1008 | --sha | --sh)
|
|
1009 ac_prev=sharedstatedir ;;
|
|
1010 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
|
1011 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
|
1012 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
|
1013 | --sha=* | --sh=*)
|
|
1014 sharedstatedir=$ac_optarg ;;
|
|
1015
|
|
1016 -site | --site | --sit)
|
|
1017 ac_prev=site ;;
|
|
1018 -site=* | --site=* | --sit=*)
|
|
1019 site=$ac_optarg ;;
|
|
1020
|
|
1021 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
|
1022 ac_prev=srcdir ;;
|
|
1023 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
|
1024 srcdir=$ac_optarg ;;
|
|
1025
|
|
1026 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
|
1027 | --syscon | --sysco | --sysc | --sys | --sy)
|
|
1028 ac_prev=sysconfdir ;;
|
|
1029 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
|
1030 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
|
1031 sysconfdir=$ac_optarg ;;
|
|
1032
|
|
1033 -target | --target | --targe | --targ | --tar | --ta | --t)
|
|
1034 ac_prev=target_alias ;;
|
|
1035 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
|
1036 target_alias=$ac_optarg ;;
|
|
1037
|
|
1038 -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
|
1039 verbose=yes ;;
|
|
1040
|
|
1041 -version | --version | --versio | --versi | --vers | -V)
|
|
1042 ac_init_version=: ;;
|
|
1043
|
|
1044 -with-* | --with-*)
|
|
1045 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
|
1046 # Reject names that are not valid shell variable names.
|
|
1047 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
|
1048 as_fn_error $? "invalid package name: $ac_useropt"
|
|
1049 ac_useropt_orig=$ac_useropt
|
|
1050 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
|
1051 case $ac_user_opts in
|
|
1052 *"
|
|
1053 "with_$ac_useropt"
|
|
1054 "*) ;;
|
|
1055 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
|
|
1056 ac_unrecognized_sep=', ';;
|
|
1057 esac
|
|
1058 eval with_$ac_useropt=\$ac_optarg ;;
|
|
1059
|
|
1060 -without-* | --without-*)
|
|
1061 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
|
1062 # Reject names that are not valid shell variable names.
|
|
1063 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
|
1064 as_fn_error $? "invalid package name: $ac_useropt"
|
|
1065 ac_useropt_orig=$ac_useropt
|
|
1066 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
|
1067 case $ac_user_opts in
|
|
1068 *"
|
|
1069 "with_$ac_useropt"
|
|
1070 "*) ;;
|
|
1071 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
|
|
1072 ac_unrecognized_sep=', ';;
|
|
1073 esac
|
|
1074 eval with_$ac_useropt=no ;;
|
|
1075
|
|
1076 --x)
|
|
1077 # Obsolete; use --with-x.
|
|
1078 with_x=yes ;;
|
|
1079
|
|
1080 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
|
1081 | --x-incl | --x-inc | --x-in | --x-i)
|
|
1082 ac_prev=x_includes ;;
|
|
1083 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
|
1084 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
|
1085 x_includes=$ac_optarg ;;
|
|
1086
|
|
1087 -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
|
1088 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
|
1089 ac_prev=x_libraries ;;
|
|
1090 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
|
1091 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
|
1092 x_libraries=$ac_optarg ;;
|
|
1093
|
|
1094 -*) as_fn_error $? "unrecognized option: \`$ac_option'
|
|
1095 Try \`$0 --help' for more information"
|
|
1096 ;;
|
|
1097
|
|
1098 *=*)
|
|
1099 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
|
1100 # Reject names that are not valid shell variable names.
|
|
1101 case $ac_envvar in #(
|
|
1102 '' | [0-9]* | *[!_$as_cr_alnum]* )
|
|
1103 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
|
|
1104 esac
|
|
1105 eval $ac_envvar=\$ac_optarg
|
|
1106 export $ac_envvar ;;
|
|
1107
|
|
1108 *)
|
|
1109 # FIXME: should be removed in autoconf 3.0.
|
|
1110 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
|
1111 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
|
1112 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
|
1113 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
|
|
1114 ;;
|
|
1115
|
|
1116 esac
|
|
1117 done
|
|
1118
|
|
1119 if test -n "$ac_prev"; then
|
|
1120 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
|
1121 as_fn_error $? "missing argument to $ac_option"
|
|
1122 fi
|
|
1123
|
|
1124 if test -n "$ac_unrecognized_opts"; then
|
|
1125 case $enable_option_checking in
|
|
1126 no) ;;
|
|
1127 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
|
|
1128 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
|
|
1129 esac
|
|
1130 fi
|
|
1131
|
|
1132 # Check all directory arguments for consistency.
|
|
1133 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
|
1134 datadir sysconfdir sharedstatedir localstatedir includedir \
|
|
1135 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
|
1136 libdir localedir mandir
|
|
1137 do
|
|
1138 eval ac_val=\$$ac_var
|
|
1139 # Remove trailing slashes.
|
|
1140 case $ac_val in
|
|
1141 */ )
|
|
1142 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
|
|
1143 eval $ac_var=\$ac_val;;
|
|
1144 esac
|
|
1145 # Be sure to have absolute directory names.
|
|
1146 case $ac_val in
|
|
1147 [\\/$]* | ?:[\\/]* ) continue;;
|
|
1148 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
|
1149 esac
|
|
1150 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
|
|
1151 done
|
|
1152
|
|
1153 # There might be people who depend on the old broken behavior: `$host'
|
|
1154 # used to hold the argument of --host etc.
|
|
1155 # FIXME: To remove some day.
|
|
1156 build=$build_alias
|
|
1157 host=$host_alias
|
|
1158 target=$target_alias
|
|
1159
|
|
1160 # FIXME: To remove some day.
|
|
1161 if test "x$host_alias" != x; then
|
|
1162 if test "x$build_alias" = x; then
|
|
1163 cross_compiling=maybe
|
|
1164 elif test "x$build_alias" != "x$host_alias"; then
|
|
1165 cross_compiling=yes
|
|
1166 fi
|
|
1167 fi
|
|
1168
|
|
1169 ac_tool_prefix=
|
|
1170 test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
|
1171
|
|
1172 test "$silent" = yes && exec 6>/dev/null
|
|
1173
|
|
1174
|
|
1175 ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
|
1176 ac_ls_di=`ls -di .` &&
|
|
1177 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
|
1178 as_fn_error $? "working directory cannot be determined"
|
|
1179 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
|
1180 as_fn_error $? "pwd does not report name of working directory"
|
|
1181
|
|
1182
|
|
1183 # Find the source files, if location was not specified.
|
|
1184 if test -z "$srcdir"; then
|
|
1185 ac_srcdir_defaulted=yes
|
|
1186 # Try the directory containing this script, then the parent directory.
|
|
1187 ac_confdir=`$as_dirname -- "$as_myself" ||
|
|
1188 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
|
1189 X"$as_myself" : 'X\(//\)[^/]' \| \
|
|
1190 X"$as_myself" : 'X\(//\)$' \| \
|
|
1191 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
|
|
1192 $as_echo X"$as_myself" |
|
|
1193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
|
1194 s//\1/
|
|
1195 q
|
|
1196 }
|
|
1197 /^X\(\/\/\)[^/].*/{
|
|
1198 s//\1/
|
|
1199 q
|
|
1200 }
|
|
1201 /^X\(\/\/\)$/{
|
|
1202 s//\1/
|
|
1203 q
|
|
1204 }
|
|
1205 /^X\(\/\).*/{
|
|
1206 s//\1/
|
|
1207 q
|
|
1208 }
|
|
1209 s/.*/./; q'`
|
|
1210 srcdir=$ac_confdir
|
|
1211 if test ! -r "$srcdir/$ac_unique_file"; then
|
|
1212 srcdir=..
|
|
1213 fi
|
|
1214 else
|
|
1215 ac_srcdir_defaulted=no
|
|
1216 fi
|
|
1217 if test ! -r "$srcdir/$ac_unique_file"; then
|
|
1218 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
|
1219 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
|
|
1220 fi
|
|
1221 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
|
|
1222 ac_abs_confdir=`(
|
|
1223 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
|
|
1224 pwd)`
|
|
1225 # When building in place, set srcdir=.
|
|
1226 if test "$ac_abs_confdir" = "$ac_pwd"; then
|
|
1227 srcdir=.
|
|
1228 fi
|
|
1229 # Remove unnecessary trailing slashes from srcdir.
|
|
1230 # Double slashes in file names in object file debugging info
|
|
1231 # mess up M-x gdb in Emacs.
|
|
1232 case $srcdir in
|
|
1233 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
|
|
1234 esac
|
|
1235 for ac_var in $ac_precious_vars; do
|
|
1236 eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
|
1237 eval ac_env_${ac_var}_value=\$${ac_var}
|
|
1238 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
|
1239 eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
|
1240 done
|
|
1241
|
|
1242 #
|
|
1243 # Report the --help message.
|
|
1244 #
|
|
1245 if test "$ac_init_help" = "long"; then
|
|
1246 # Omit some internal or obsolete options to make the list less imposing.
|
|
1247 # This message is too long to be a string in the A/UX 3.1 sh.
|
|
1248 cat <<_ACEOF
|
|
1249 \`configure' configures this package to adapt to many kinds of systems.
|
|
1250
|
|
1251 Usage: $0 [OPTION]... [VAR=VALUE]...
|
|
1252
|
|
1253 To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
|
1254 VAR=VALUE. See below for descriptions of some of the useful variables.
|
|
1255
|
|
1256 Defaults for the options are specified in brackets.
|
|
1257
|
|
1258 Configuration:
|
|
1259 -h, --help display this help and exit
|
|
1260 --help=short display options specific to this package
|
|
1261 --help=recursive display the short help of all the included packages
|
|
1262 -V, --version display version information and exit
|
|
1263 -q, --quiet, --silent do not print \`checking ...' messages
|
|
1264 --cache-file=FILE cache test results in FILE [disabled]
|
|
1265 -C, --config-cache alias for \`--cache-file=config.cache'
|
|
1266 -n, --no-create do not create output files
|
|
1267 --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
|
1268
|
|
1269 Installation directories:
|
|
1270 --prefix=PREFIX install architecture-independent files in PREFIX
|
|
1271 [$ac_default_prefix]
|
|
1272 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
|
1273 [PREFIX]
|
|
1274
|
|
1275 By default, \`make install' will install all the files in
|
|
1276 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
|
1277 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
|
1278 for instance \`--prefix=\$HOME'.
|
|
1279
|
|
1280 For better control, use the options below.
|
|
1281
|
|
1282 Fine tuning of the installation directories:
|
|
1283 --bindir=DIR user executables [EPREFIX/bin]
|
|
1284 --sbindir=DIR system admin executables [EPREFIX/sbin]
|
|
1285 --libexecdir=DIR program executables [EPREFIX/libexec]
|
|
1286 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
|
1287 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
|
1288 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
|
1289 --libdir=DIR object code libraries [EPREFIX/lib]
|
|
1290 --includedir=DIR C header files [PREFIX/include]
|
|
1291 --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
|
1292 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
|
1293 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
|
1294 --infodir=DIR info documentation [DATAROOTDIR/info]
|
|
1295 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
|
1296 --mandir=DIR man documentation [DATAROOTDIR/man]
|
|
1297 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
|
|
1298 --htmldir=DIR html documentation [DOCDIR]
|
|
1299 --dvidir=DIR dvi documentation [DOCDIR]
|
|
1300 --pdfdir=DIR pdf documentation [DOCDIR]
|
|
1301 --psdir=DIR ps documentation [DOCDIR]
|
|
1302 _ACEOF
|
|
1303
|
|
1304 cat <<\_ACEOF
|
|
1305 _ACEOF
|
|
1306 fi
|
|
1307
|
|
1308 if test -n "$ac_init_help"; then
|
|
1309
|
|
1310 cat <<\_ACEOF
|
|
1311
|
|
1312 Optional Features:
|
|
1313 --disable-option-checking ignore unrecognized --enable/--with options
|
|
1314 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
|
1315 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
|
1316 --disable-largefile omit support for large files
|
|
1317 --enable-sections compile with function/data section support
|
|
1318 --enable-lto compile with gcc link time optimization
|
|
1319 --enable-werror compile with -Werror to error out on any warning
|
|
1320 --enable-ccache compile with ccache
|
|
1321
|
|
1322 Some influential environment variables:
|
|
1323 CC C compiler command
|
|
1324 CFLAGS C compiler flags
|
|
1325 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
|
1326 nonstandard directory <lib dir>
|
|
1327 LIBS libraries to pass to the linker, e.g. -l<library>
|
|
1328 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
|
|
1329 you have headers in a nonstandard directory <include dir>
|
|
1330 CPP C preprocessor
|
|
1331
|
|
1332 Use these variables to override the choices made by `configure' or to help
|
|
1333 it to find libraries and programs with nonstandard names/locations.
|
|
1334
|
|
1335 Report bugs to the package provider.
|
|
1336 _ACEOF
|
|
1337 ac_status=$?
|
|
1338 fi
|
|
1339
|
|
1340 if test "$ac_init_help" = "recursive"; then
|
|
1341 # If there are subdirs, report their specific --help.
|
|
1342 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
|
1343 test -d "$ac_dir" ||
|
|
1344 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
|
|
1345 continue
|
|
1346 ac_builddir=.
|
|
1347
|
|
1348 case "$ac_dir" in
|
|
1349 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
|
1350 *)
|
|
1351 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
|
1352 # A ".." for each directory in $ac_dir_suffix.
|
|
1353 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
|
1354 case $ac_top_builddir_sub in
|
|
1355 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
|
1356 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
|
1357 esac ;;
|
|
1358 esac
|
|
1359 ac_abs_top_builddir=$ac_pwd
|
|
1360 ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
|
1361 # for backward compatibility:
|
|
1362 ac_top_builddir=$ac_top_build_prefix
|
|
1363
|
|
1364 case $srcdir in
|
|
1365 .) # We are building in place.
|
|
1366 ac_srcdir=.
|
|
1367 ac_top_srcdir=$ac_top_builddir_sub
|
|
1368 ac_abs_top_srcdir=$ac_pwd ;;
|
|
1369 [\\/]* | ?:[\\/]* ) # Absolute name.
|
|
1370 ac_srcdir=$srcdir$ac_dir_suffix;
|
|
1371 ac_top_srcdir=$srcdir
|
|
1372 ac_abs_top_srcdir=$srcdir ;;
|
|
1373 *) # Relative name.
|
|
1374 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
|
1375 ac_top_srcdir=$ac_top_build_prefix$srcdir
|
|
1376 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
|
1377 esac
|
|
1378 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
|
1379
|
|
1380 cd "$ac_dir" || { ac_status=$?; continue; }
|
|
1381 # Check for guested configure.
|
|
1382 if test -f "$ac_srcdir/configure.gnu"; then
|
|
1383 echo &&
|
|
1384 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
|
1385 elif test -f "$ac_srcdir/configure"; then
|
|
1386 echo &&
|
|
1387 $SHELL "$ac_srcdir/configure" --help=recursive
|
|
1388 else
|
|
1389 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
|
1390 fi || ac_status=$?
|
|
1391 cd "$ac_pwd" || { ac_status=$?; break; }
|
|
1392 done
|
|
1393 fi
|
|
1394
|
|
1395 test -n "$ac_init_help" && exit $ac_status
|
|
1396 if $ac_init_version; then
|
|
1397 cat <<\_ACEOF
|
|
1398 configure
|
|
1399 generated by GNU Autoconf 2.69
|
|
1400
|
|
1401 Copyright (C) 2012 Free Software Foundation, Inc.
|
|
1402 This configure script is free software; the Free Software Foundation
|
|
1403 gives unlimited permission to copy, distribute and modify it.
|
|
1404 _ACEOF
|
|
1405 exit
|
|
1406 fi
|
|
1407
|
|
1408 ## ------------------------ ##
|
|
1409 ## Autoconf initialization. ##
|
|
1410 ## ------------------------ ##
|
|
1411
|
|
1412 # ac_fn_c_try_compile LINENO
|
|
1413 # --------------------------
|
|
1414 # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
|
1415 ac_fn_c_try_compile ()
|
|
1416 {
|
|
1417 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
1418 rm -f conftest.$ac_objext
|
|
1419 if { { ac_try="$ac_compile"
|
|
1420 case "(($ac_try" in
|
|
1421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
1422 *) ac_try_echo=$ac_try;;
|
|
1423 esac
|
|
1424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
1425 $as_echo "$ac_try_echo"; } >&5
|
|
1426 (eval "$ac_compile") 2>conftest.err
|
|
1427 ac_status=$?
|
|
1428 if test -s conftest.err; then
|
|
1429 grep -v '^ *+' conftest.err >conftest.er1
|
|
1430 cat conftest.er1 >&5
|
|
1431 mv -f conftest.er1 conftest.err
|
|
1432 fi
|
|
1433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
1434 test $ac_status = 0; } && {
|
|
1435 test -z "$ac_c_werror_flag" ||
|
|
1436 test ! -s conftest.err
|
|
1437 } && test -s conftest.$ac_objext; then :
|
|
1438 ac_retval=0
|
|
1439 else
|
|
1440 $as_echo "$as_me: failed program was:" >&5
|
|
1441 sed 's/^/| /' conftest.$ac_ext >&5
|
|
1442
|
|
1443 ac_retval=1
|
|
1444 fi
|
|
1445 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
|
1446 as_fn_set_status $ac_retval
|
|
1447
|
|
1448 } # ac_fn_c_try_compile
|
|
1449
|
|
1450 # ac_fn_c_try_cpp LINENO
|
|
1451 # ----------------------
|
|
1452 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
|
|
1453 ac_fn_c_try_cpp ()
|
|
1454 {
|
|
1455 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
1456 if { { ac_try="$ac_cpp conftest.$ac_ext"
|
|
1457 case "(($ac_try" in
|
|
1458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
1459 *) ac_try_echo=$ac_try;;
|
|
1460 esac
|
|
1461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
1462 $as_echo "$ac_try_echo"; } >&5
|
|
1463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
|
|
1464 ac_status=$?
|
|
1465 if test -s conftest.err; then
|
|
1466 grep -v '^ *+' conftest.err >conftest.er1
|
|
1467 cat conftest.er1 >&5
|
|
1468 mv -f conftest.er1 conftest.err
|
|
1469 fi
|
|
1470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
1471 test $ac_status = 0; } > conftest.i && {
|
|
1472 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
|
1473 test ! -s conftest.err
|
|
1474 }; then :
|
|
1475 ac_retval=0
|
|
1476 else
|
|
1477 $as_echo "$as_me: failed program was:" >&5
|
|
1478 sed 's/^/| /' conftest.$ac_ext >&5
|
|
1479
|
|
1480 ac_retval=1
|
|
1481 fi
|
|
1482 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
|
1483 as_fn_set_status $ac_retval
|
|
1484
|
|
1485 } # ac_fn_c_try_cpp
|
|
1486
|
|
1487 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
|
|
1488 # -------------------------------------------------------
|
|
1489 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
|
|
1490 # the include files in INCLUDES and setting the cache variable VAR
|
|
1491 # accordingly.
|
|
1492 ac_fn_c_check_header_mongrel ()
|
|
1493 {
|
|
1494 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
1495 if eval \${$3+:} false; then :
|
|
1496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
|
1497 $as_echo_n "checking for $2... " >&6; }
|
|
1498 if eval \${$3+:} false; then :
|
|
1499 $as_echo_n "(cached) " >&6
|
|
1500 fi
|
|
1501 eval ac_res=\$$3
|
|
1502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
|
1503 $as_echo "$ac_res" >&6; }
|
|
1504 else
|
|
1505 # Is the header compilable?
|
|
1506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
|
|
1507 $as_echo_n "checking $2 usability... " >&6; }
|
|
1508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
1509 /* end confdefs.h. */
|
|
1510 $4
|
|
1511 #include <$2>
|
|
1512 _ACEOF
|
|
1513 if ac_fn_c_try_compile "$LINENO"; then :
|
|
1514 ac_header_compiler=yes
|
|
1515 else
|
|
1516 ac_header_compiler=no
|
|
1517 fi
|
|
1518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
1519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
|
|
1520 $as_echo "$ac_header_compiler" >&6; }
|
|
1521
|
|
1522 # Is the header present?
|
|
1523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
|
|
1524 $as_echo_n "checking $2 presence... " >&6; }
|
|
1525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
1526 /* end confdefs.h. */
|
|
1527 #include <$2>
|
|
1528 _ACEOF
|
|
1529 if ac_fn_c_try_cpp "$LINENO"; then :
|
|
1530 ac_header_preproc=yes
|
|
1531 else
|
|
1532 ac_header_preproc=no
|
|
1533 fi
|
|
1534 rm -f conftest.err conftest.i conftest.$ac_ext
|
|
1535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
|
|
1536 $as_echo "$ac_header_preproc" >&6; }
|
|
1537
|
|
1538 # So? What about this header?
|
|
1539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
|
|
1540 yes:no: )
|
|
1541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
|
|
1542 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
|
1543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
|
1544 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
|
1545 ;;
|
|
1546 no:yes:* )
|
|
1547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
|
|
1548 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
|
|
1549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
|
|
1550 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
|
|
1551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
|
|
1552 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
|
|
1553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
|
|
1554 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
|
|
1555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
|
1556 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
|
1557 ;;
|
|
1558 esac
|
|
1559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
|
1560 $as_echo_n "checking for $2... " >&6; }
|
|
1561 if eval \${$3+:} false; then :
|
|
1562 $as_echo_n "(cached) " >&6
|
|
1563 else
|
|
1564 eval "$3=\$ac_header_compiler"
|
|
1565 fi
|
|
1566 eval ac_res=\$$3
|
|
1567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
|
1568 $as_echo "$ac_res" >&6; }
|
|
1569 fi
|
|
1570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
|
1571
|
|
1572 } # ac_fn_c_check_header_mongrel
|
|
1573
|
|
1574 # ac_fn_c_try_run LINENO
|
|
1575 # ----------------------
|
|
1576 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
|
|
1577 # that executables *can* be run.
|
|
1578 ac_fn_c_try_run ()
|
|
1579 {
|
|
1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
1581 if { { ac_try="$ac_link"
|
|
1582 case "(($ac_try" in
|
|
1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
1584 *) ac_try_echo=$ac_try;;
|
|
1585 esac
|
|
1586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
1587 $as_echo "$ac_try_echo"; } >&5
|
|
1588 (eval "$ac_link") 2>&5
|
|
1589 ac_status=$?
|
|
1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
1591 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
|
|
1592 { { case "(($ac_try" in
|
|
1593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
1594 *) ac_try_echo=$ac_try;;
|
|
1595 esac
|
|
1596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
1597 $as_echo "$ac_try_echo"; } >&5
|
|
1598 (eval "$ac_try") 2>&5
|
|
1599 ac_status=$?
|
|
1600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
1601 test $ac_status = 0; }; }; then :
|
|
1602 ac_retval=0
|
|
1603 else
|
|
1604 $as_echo "$as_me: program exited with status $ac_status" >&5
|
|
1605 $as_echo "$as_me: failed program was:" >&5
|
|
1606 sed 's/^/| /' conftest.$ac_ext >&5
|
|
1607
|
|
1608 ac_retval=$ac_status
|
|
1609 fi
|
|
1610 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
|
1611 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
|
1612 as_fn_set_status $ac_retval
|
|
1613
|
|
1614 } # ac_fn_c_try_run
|
|
1615
|
|
1616 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
|
|
1617 # -------------------------------------------------------
|
|
1618 # Tests whether HEADER exists and can be compiled using the include files in
|
|
1619 # INCLUDES, setting the cache variable VAR accordingly.
|
|
1620 ac_fn_c_check_header_compile ()
|
|
1621 {
|
|
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
|
1624 $as_echo_n "checking for $2... " >&6; }
|
|
1625 if eval \${$3+:} false; then :
|
|
1626 $as_echo_n "(cached) " >&6
|
|
1627 else
|
|
1628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
1629 /* end confdefs.h. */
|
|
1630 $4
|
|
1631 #include <$2>
|
|
1632 _ACEOF
|
|
1633 if ac_fn_c_try_compile "$LINENO"; then :
|
|
1634 eval "$3=yes"
|
|
1635 else
|
|
1636 eval "$3=no"
|
|
1637 fi
|
|
1638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
1639 fi
|
|
1640 eval ac_res=\$$3
|
|
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
|
1642 $as_echo "$ac_res" >&6; }
|
|
1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
|
1644
|
|
1645 } # ac_fn_c_check_header_compile
|
|
1646
|
|
1647 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
|
|
1648 # -------------------------------------------
|
|
1649 # Tests whether TYPE exists after having included INCLUDES, setting cache
|
|
1650 # variable VAR accordingly.
|
|
1651 ac_fn_c_check_type ()
|
|
1652 {
|
|
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
|
1655 $as_echo_n "checking for $2... " >&6; }
|
|
1656 if eval \${$3+:} false; then :
|
|
1657 $as_echo_n "(cached) " >&6
|
|
1658 else
|
|
1659 eval "$3=no"
|
|
1660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
1661 /* end confdefs.h. */
|
|
1662 $4
|
|
1663 int
|
|
1664 main ()
|
|
1665 {
|
|
1666 if (sizeof ($2))
|
|
1667 return 0;
|
|
1668 ;
|
|
1669 return 0;
|
|
1670 }
|
|
1671 _ACEOF
|
|
1672 if ac_fn_c_try_compile "$LINENO"; then :
|
|
1673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
1674 /* end confdefs.h. */
|
|
1675 $4
|
|
1676 int
|
|
1677 main ()
|
|
1678 {
|
|
1679 if (sizeof (($2)))
|
|
1680 return 0;
|
|
1681 ;
|
|
1682 return 0;
|
|
1683 }
|
|
1684 _ACEOF
|
|
1685 if ac_fn_c_try_compile "$LINENO"; then :
|
|
1686
|
|
1687 else
|
|
1688 eval "$3=yes"
|
|
1689 fi
|
|
1690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
1691 fi
|
|
1692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
1693 fi
|
|
1694 eval ac_res=\$$3
|
|
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
|
1696 $as_echo "$ac_res" >&6; }
|
|
1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
|
1698
|
|
1699 } # ac_fn_c_check_type
|
|
1700
|
|
1701 # ac_fn_c_try_link LINENO
|
|
1702 # -----------------------
|
|
1703 # Try to link conftest.$ac_ext, and return whether this succeeded.
|
|
1704 ac_fn_c_try_link ()
|
|
1705 {
|
|
1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
1707 rm -f conftest.$ac_objext conftest$ac_exeext
|
|
1708 if { { ac_try="$ac_link"
|
|
1709 case "(($ac_try" in
|
|
1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
1711 *) ac_try_echo=$ac_try;;
|
|
1712 esac
|
|
1713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
1714 $as_echo "$ac_try_echo"; } >&5
|
|
1715 (eval "$ac_link") 2>conftest.err
|
|
1716 ac_status=$?
|
|
1717 if test -s conftest.err; then
|
|
1718 grep -v '^ *+' conftest.err >conftest.er1
|
|
1719 cat conftest.er1 >&5
|
|
1720 mv -f conftest.er1 conftest.err
|
|
1721 fi
|
|
1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
1723 test $ac_status = 0; } && {
|
|
1724 test -z "$ac_c_werror_flag" ||
|
|
1725 test ! -s conftest.err
|
|
1726 } && test -s conftest$ac_exeext && {
|
|
1727 test "$cross_compiling" = yes ||
|
|
1728 test -x conftest$ac_exeext
|
|
1729 }; then :
|
|
1730 ac_retval=0
|
|
1731 else
|
|
1732 $as_echo "$as_me: failed program was:" >&5
|
|
1733 sed 's/^/| /' conftest.$ac_ext >&5
|
|
1734
|
|
1735 ac_retval=1
|
|
1736 fi
|
|
1737 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
|
|
1738 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
|
|
1739 # interfere with the next link command; also delete a directory that is
|
|
1740 # left behind by Apple's compiler. We do this before executing the actions.
|
|
1741 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
|
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
|
1743 as_fn_set_status $ac_retval
|
|
1744
|
|
1745 } # ac_fn_c_try_link
|
|
1746
|
|
1747 # ac_fn_c_check_func LINENO FUNC VAR
|
|
1748 # ----------------------------------
|
|
1749 # Tests whether FUNC exists, setting the cache variable VAR accordingly
|
|
1750 ac_fn_c_check_func ()
|
|
1751 {
|
|
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
|
1754 $as_echo_n "checking for $2... " >&6; }
|
|
1755 if eval \${$3+:} false; then :
|
|
1756 $as_echo_n "(cached) " >&6
|
|
1757 else
|
|
1758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
1759 /* end confdefs.h. */
|
|
1760 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
|
|
1761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
|
1762 #define $2 innocuous_$2
|
|
1763
|
|
1764 /* System header to define __stub macros and hopefully few prototypes,
|
|
1765 which can conflict with char $2 (); below.
|
|
1766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
1767 <limits.h> exists even on freestanding compilers. */
|
|
1768
|
|
1769 #ifdef __STDC__
|
|
1770 # include <limits.h>
|
|
1771 #else
|
|
1772 # include <assert.h>
|
|
1773 #endif
|
|
1774
|
|
1775 #undef $2
|
|
1776
|
|
1777 /* Override any GCC internal prototype to avoid an error.
|
|
1778 Use char because int might match the return type of a GCC
|
|
1779 builtin and then its argument prototype would still apply. */
|
|
1780 #ifdef __cplusplus
|
|
1781 extern "C"
|
|
1782 #endif
|
|
1783 char $2 ();
|
|
1784 /* The GNU C library defines this for functions which it implements
|
|
1785 to always fail with ENOSYS. Some functions are actually named
|
|
1786 something starting with __ and the normal name is an alias. */
|
|
1787 #if defined __stub_$2 || defined __stub___$2
|
|
1788 choke me
|
|
1789 #endif
|
|
1790
|
|
1791 int
|
|
1792 main ()
|
|
1793 {
|
|
1794 return $2 ();
|
|
1795 ;
|
|
1796 return 0;
|
|
1797 }
|
|
1798 _ACEOF
|
|
1799 if ac_fn_c_try_link "$LINENO"; then :
|
|
1800 eval "$3=yes"
|
|
1801 else
|
|
1802 eval "$3=no"
|
|
1803 fi
|
|
1804 rm -f core conftest.err conftest.$ac_objext \
|
|
1805 conftest$ac_exeext conftest.$ac_ext
|
|
1806 fi
|
|
1807 eval ac_res=\$$3
|
|
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
|
1809 $as_echo "$ac_res" >&6; }
|
|
1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
|
1811
|
|
1812 } # ac_fn_c_check_func
|
|
1813
|
|
1814 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
|
|
1815 # ---------------------------------------------
|
|
1816 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
|
|
1817 # accordingly.
|
|
1818 ac_fn_c_check_decl ()
|
|
1819 {
|
|
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
1821 as_decl_name=`echo $2|sed 's/ *(.*//'`
|
|
1822 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
|
|
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
|
|
1824 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
|
|
1825 if eval \${$3+:} false; then :
|
|
1826 $as_echo_n "(cached) " >&6
|
|
1827 else
|
|
1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
1829 /* end confdefs.h. */
|
|
1830 $4
|
|
1831 int
|
|
1832 main ()
|
|
1833 {
|
|
1834 #ifndef $as_decl_name
|
|
1835 #ifdef __cplusplus
|
|
1836 (void) $as_decl_use;
|
|
1837 #else
|
|
1838 (void) $as_decl_name;
|
|
1839 #endif
|
|
1840 #endif
|
|
1841
|
|
1842 ;
|
|
1843 return 0;
|
|
1844 }
|
|
1845 _ACEOF
|
|
1846 if ac_fn_c_try_compile "$LINENO"; then :
|
|
1847 eval "$3=yes"
|
|
1848 else
|
|
1849 eval "$3=no"
|
|
1850 fi
|
|
1851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
1852 fi
|
|
1853 eval ac_res=\$$3
|
|
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
|
1855 $as_echo "$ac_res" >&6; }
|
|
1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
|
1857
|
|
1858 } # ac_fn_c_check_decl
|
|
1859 cat >config.log <<_ACEOF
|
|
1860 This file contains any messages produced by compilers while
|
|
1861 running configure, to aid debugging if configure makes a mistake.
|
|
1862
|
|
1863 It was created by $as_me, which was
|
|
1864 generated by GNU Autoconf 2.69. Invocation command line was
|
|
1865
|
|
1866 $ $0 $@
|
|
1867
|
|
1868 _ACEOF
|
|
1869 exec 5>>config.log
|
|
1870 {
|
|
1871 cat <<_ASUNAME
|
|
1872 ## --------- ##
|
|
1873 ## Platform. ##
|
|
1874 ## --------- ##
|
|
1875
|
|
1876 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
|
1877 uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
|
1878 uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
|
1879 uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
|
1880 uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
|
1881
|
|
1882 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
|
1883 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
|
1884
|
|
1885 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
|
1886 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
|
1887 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
|
1888 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
|
1889 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
|
1890 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
|
1891 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
|
1892
|
|
1893 _ASUNAME
|
|
1894
|
|
1895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
1896 for as_dir in $PATH
|
|
1897 do
|
|
1898 IFS=$as_save_IFS
|
|
1899 test -z "$as_dir" && as_dir=.
|
|
1900 $as_echo "PATH: $as_dir"
|
|
1901 done
|
|
1902 IFS=$as_save_IFS
|
|
1903
|
|
1904 } >&5
|
|
1905
|
|
1906 cat >&5 <<_ACEOF
|
|
1907
|
|
1908
|
|
1909 ## ----------- ##
|
|
1910 ## Core tests. ##
|
|
1911 ## ----------- ##
|
|
1912
|
|
1913 _ACEOF
|
|
1914
|
|
1915
|
|
1916 # Keep a trace of the command line.
|
|
1917 # Strip out --no-create and --no-recursion so they do not pile up.
|
|
1918 # Strip out --silent because we don't want to record it for future runs.
|
|
1919 # Also quote any args containing shell meta-characters.
|
|
1920 # Make two passes to allow for proper duplicate-argument suppression.
|
|
1921 ac_configure_args=
|
|
1922 ac_configure_args0=
|
|
1923 ac_configure_args1=
|
|
1924 ac_must_keep_next=false
|
|
1925 for ac_pass in 1 2
|
|
1926 do
|
|
1927 for ac_arg
|
|
1928 do
|
|
1929 case $ac_arg in
|
|
1930 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
|
1931 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
|
1932 | -silent | --silent | --silen | --sile | --sil)
|
|
1933 continue ;;
|
|
1934 *\'*)
|
|
1935 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
|
1936 esac
|
|
1937 case $ac_pass in
|
|
1938 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
|
|
1939 2)
|
|
1940 as_fn_append ac_configure_args1 " '$ac_arg'"
|
|
1941 if test $ac_must_keep_next = true; then
|
|
1942 ac_must_keep_next=false # Got value, back to normal.
|
|
1943 else
|
|
1944 case $ac_arg in
|
|
1945 *=* | --config-cache | -C | -disable-* | --disable-* \
|
|
1946 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
|
1947 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
|
1948 | -with-* | --with-* | -without-* | --without-* | --x)
|
|
1949 case "$ac_configure_args0 " in
|
|
1950 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
|
1951 esac
|
|
1952 ;;
|
|
1953 -* ) ac_must_keep_next=true ;;
|
|
1954 esac
|
|
1955 fi
|
|
1956 as_fn_append ac_configure_args " '$ac_arg'"
|
|
1957 ;;
|
|
1958 esac
|
|
1959 done
|
|
1960 done
|
|
1961 { ac_configure_args0=; unset ac_configure_args0;}
|
|
1962 { ac_configure_args1=; unset ac_configure_args1;}
|
|
1963
|
|
1964 # When interrupted or exit'd, cleanup temporary files, and complete
|
|
1965 # config.log. We remove comments because anyway the quotes in there
|
|
1966 # would cause problems or look ugly.
|
|
1967 # WARNING: Use '\'' to represent an apostrophe within the trap.
|
|
1968 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
|
1969 trap 'exit_status=$?
|
|
1970 # Save into config.log some information that might help in debugging.
|
|
1971 {
|
|
1972 echo
|
|
1973
|
|
1974 $as_echo "## ---------------- ##
|
|
1975 ## Cache variables. ##
|
|
1976 ## ---------------- ##"
|
|
1977 echo
|
|
1978 # The following way of writing the cache mishandles newlines in values,
|
|
1979 (
|
|
1980 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
|
|
1981 eval ac_val=\$$ac_var
|
|
1982 case $ac_val in #(
|
|
1983 *${as_nl}*)
|
|
1984 case $ac_var in #(
|
|
1985 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
|
1986 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
|
1987 esac
|
|
1988 case $ac_var in #(
|
|
1989 _ | IFS | as_nl) ;; #(
|
|
1990 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
|
1991 *) { eval $ac_var=; unset $ac_var;} ;;
|
|
1992 esac ;;
|
|
1993 esac
|
|
1994 done
|
|
1995 (set) 2>&1 |
|
|
1996 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
|
|
1997 *${as_nl}ac_space=\ *)
|
|
1998 sed -n \
|
|
1999 "s/'\''/'\''\\\\'\'''\''/g;
|
|
2000 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
|
|
2001 ;; #(
|
|
2002 *)
|
|
2003 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
|
2004 ;;
|
|
2005 esac |
|
|
2006 sort
|
|
2007 )
|
|
2008 echo
|
|
2009
|
|
2010 $as_echo "## ----------------- ##
|
|
2011 ## Output variables. ##
|
|
2012 ## ----------------- ##"
|
|
2013 echo
|
|
2014 for ac_var in $ac_subst_vars
|
|
2015 do
|
|
2016 eval ac_val=\$$ac_var
|
|
2017 case $ac_val in
|
|
2018 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
|
2019 esac
|
|
2020 $as_echo "$ac_var='\''$ac_val'\''"
|
|
2021 done | sort
|
|
2022 echo
|
|
2023
|
|
2024 if test -n "$ac_subst_files"; then
|
|
2025 $as_echo "## ------------------- ##
|
|
2026 ## File substitutions. ##
|
|
2027 ## ------------------- ##"
|
|
2028 echo
|
|
2029 for ac_var in $ac_subst_files
|
|
2030 do
|
|
2031 eval ac_val=\$$ac_var
|
|
2032 case $ac_val in
|
|
2033 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
|
2034 esac
|
|
2035 $as_echo "$ac_var='\''$ac_val'\''"
|
|
2036 done | sort
|
|
2037 echo
|
|
2038 fi
|
|
2039
|
|
2040 if test -s confdefs.h; then
|
|
2041 $as_echo "## ----------- ##
|
|
2042 ## confdefs.h. ##
|
|
2043 ## ----------- ##"
|
|
2044 echo
|
|
2045 cat confdefs.h
|
|
2046 echo
|
|
2047 fi
|
|
2048 test "$ac_signal" != 0 &&
|
|
2049 $as_echo "$as_me: caught signal $ac_signal"
|
|
2050 $as_echo "$as_me: exit $exit_status"
|
|
2051 } >&5
|
|
2052 rm -f core *.core core.conftest.* &&
|
|
2053 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
|
2054 exit $exit_status
|
|
2055 ' 0
|
|
2056 for ac_signal in 1 2 13 15; do
|
|
2057 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
|
|
2058 done
|
|
2059 ac_signal=0
|
|
2060
|
|
2061 # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
|
2062 rm -f -r conftest* confdefs.h
|
|
2063
|
|
2064 $as_echo "/* confdefs.h */" > confdefs.h
|
|
2065
|
|
2066 # Predefined preprocessor variables.
|
|
2067
|
|
2068 cat >>confdefs.h <<_ACEOF
|
|
2069 #define PACKAGE_NAME "$PACKAGE_NAME"
|
|
2070 _ACEOF
|
|
2071
|
|
2072 cat >>confdefs.h <<_ACEOF
|
|
2073 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
|
2074 _ACEOF
|
|
2075
|
|
2076 cat >>confdefs.h <<_ACEOF
|
|
2077 #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
|
2078 _ACEOF
|
|
2079
|
|
2080 cat >>confdefs.h <<_ACEOF
|
|
2081 #define PACKAGE_STRING "$PACKAGE_STRING"
|
|
2082 _ACEOF
|
|
2083
|
|
2084 cat >>confdefs.h <<_ACEOF
|
|
2085 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
|
2086 _ACEOF
|
|
2087
|
|
2088 cat >>confdefs.h <<_ACEOF
|
|
2089 #define PACKAGE_URL "$PACKAGE_URL"
|
|
2090 _ACEOF
|
|
2091
|
|
2092
|
|
2093 # Let the site file select an alternate cache file if it wants to.
|
|
2094 # Prefer an explicitly selected file to automatically selected ones.
|
|
2095 ac_site_file1=NONE
|
|
2096 ac_site_file2=NONE
|
|
2097 if test -n "$CONFIG_SITE"; then
|
|
2098 # We do not want a PATH search for config.site.
|
|
2099 case $CONFIG_SITE in #((
|
|
2100 -*) ac_site_file1=./$CONFIG_SITE;;
|
|
2101 */*) ac_site_file1=$CONFIG_SITE;;
|
|
2102 *) ac_site_file1=./$CONFIG_SITE;;
|
|
2103 esac
|
|
2104 elif test "x$prefix" != xNONE; then
|
|
2105 ac_site_file1=$prefix/share/config.site
|
|
2106 ac_site_file2=$prefix/etc/config.site
|
|
2107 else
|
|
2108 ac_site_file1=$ac_default_prefix/share/config.site
|
|
2109 ac_site_file2=$ac_default_prefix/etc/config.site
|
|
2110 fi
|
|
2111 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
|
|
2112 do
|
|
2113 test "x$ac_site_file" = xNONE && continue
|
|
2114 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
|
|
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
|
|
2116 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
|
|
2117 sed 's/^/| /' "$ac_site_file" >&5
|
|
2118 . "$ac_site_file" \
|
|
2119 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
2120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
2121 as_fn_error $? "failed to load site script $ac_site_file
|
|
2122 See \`config.log' for more details" "$LINENO" 5; }
|
|
2123 fi
|
|
2124 done
|
|
2125
|
|
2126 if test -r "$cache_file"; then
|
|
2127 # Some versions of bash will fail to source /dev/null (special files
|
|
2128 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
|
|
2129 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
|
|
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
|
|
2131 $as_echo "$as_me: loading cache $cache_file" >&6;}
|
|
2132 case $cache_file in
|
|
2133 [\\/]* | ?:[\\/]* ) . "$cache_file";;
|
|
2134 *) . "./$cache_file";;
|
|
2135 esac
|
|
2136 fi
|
|
2137 else
|
|
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
|
|
2139 $as_echo "$as_me: creating cache $cache_file" >&6;}
|
|
2140 >$cache_file
|
|
2141 fi
|
|
2142
|
|
2143 as_fn_append ac_header_list " stdlib.h"
|
|
2144 as_fn_append ac_header_list " unistd.h"
|
|
2145 as_fn_append ac_header_list " sys/param.h"
|
|
2146 # Check that the precious variables saved in the cache have kept the same
|
|
2147 # value.
|
|
2148 ac_cache_corrupted=false
|
|
2149 for ac_var in $ac_precious_vars; do
|
|
2150 eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
|
2151 eval ac_new_set=\$ac_env_${ac_var}_set
|
|
2152 eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
|
2153 eval ac_new_val=\$ac_env_${ac_var}_value
|
|
2154 case $ac_old_set,$ac_new_set in
|
|
2155 set,)
|
|
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
|
2157 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
|
2158 ac_cache_corrupted=: ;;
|
|
2159 ,set)
|
|
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
|
|
2161 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
|
2162 ac_cache_corrupted=: ;;
|
|
2163 ,);;
|
|
2164 *)
|
|
2165 if test "x$ac_old_val" != "x$ac_new_val"; then
|
|
2166 # differences in whitespace do not lead to failure.
|
|
2167 ac_old_val_w=`echo x $ac_old_val`
|
|
2168 ac_new_val_w=`echo x $ac_new_val`
|
|
2169 if test "$ac_old_val_w" != "$ac_new_val_w"; then
|
|
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
|
|
2171 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
|
2172 ac_cache_corrupted=:
|
|
2173 else
|
|
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
|
|
2175 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
|
|
2176 eval $ac_var=\$ac_old_val
|
|
2177 fi
|
|
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
|
|
2179 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
|
|
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
|
|
2181 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
|
|
2182 fi;;
|
|
2183 esac
|
|
2184 # Pass precious variables to config.status.
|
|
2185 if test "$ac_new_set" = set; then
|
|
2186 case $ac_new_val in
|
|
2187 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
|
2188 *) ac_arg=$ac_var=$ac_new_val ;;
|
|
2189 esac
|
|
2190 case " $ac_configure_args " in
|
|
2191 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
|
2192 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
|
|
2193 esac
|
|
2194 fi
|
|
2195 done
|
|
2196 if $ac_cache_corrupted; then
|
|
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
2198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
|
|
2200 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
|
2201 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
|
|
2202 fi
|
|
2203 ## -------------------- ##
|
|
2204 ## Main body of script. ##
|
|
2205 ## -------------------- ##
|
|
2206
|
|
2207 ac_ext=c
|
|
2208 ac_cpp='$CPP $CPPFLAGS'
|
|
2209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
2210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
2211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
2212
|
|
2213
|
|
2214 ac_config_headers="$ac_config_headers config/config.h"
|
|
2215
|
|
2216
|
|
2217 if test "x$prefix" = xNONE; then
|
|
2218 $as_echo_n "checking for prefix by " >&6
|
|
2219 # Extract the first word of "nasm", so it can be a program name with args.
|
|
2220 set dummy nasm; ac_word=$2
|
|
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
2222 $as_echo_n "checking for $ac_word... " >&6; }
|
|
2223 if ${ac_cv_path_ac_prefix_program+:} false; then :
|
|
2224 $as_echo_n "(cached) " >&6
|
|
2225 else
|
|
2226 case $ac_prefix_program in
|
|
2227 [\\/]* | ?:[\\/]*)
|
|
2228 ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path.
|
|
2229 ;;
|
|
2230 *)
|
|
2231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
2232 for as_dir in $PATH
|
|
2233 do
|
|
2234 IFS=$as_save_IFS
|
|
2235 test -z "$as_dir" && as_dir=.
|
|
2236 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
2237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
2238 ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext"
|
|
2239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
2240 break 2
|
|
2241 fi
|
|
2242 done
|
|
2243 done
|
|
2244 IFS=$as_save_IFS
|
|
2245
|
|
2246 ;;
|
|
2247 esac
|
|
2248 fi
|
|
2249 ac_prefix_program=$ac_cv_path_ac_prefix_program
|
|
2250 if test -n "$ac_prefix_program"; then
|
|
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prefix_program" >&5
|
|
2252 $as_echo "$ac_prefix_program" >&6; }
|
|
2253 else
|
|
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
2255 $as_echo "no" >&6; }
|
|
2256 fi
|
|
2257
|
|
2258
|
|
2259 if test -n "$ac_prefix_program"; then
|
|
2260 prefix=`$as_dirname -- "$ac_prefix_program" ||
|
|
2261 $as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
|
2262 X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
|
|
2263 X"$ac_prefix_program" : 'X\(//\)$' \| \
|
|
2264 X"$ac_prefix_program" : 'X\(/\)' \| . 2>/dev/null ||
|
|
2265 $as_echo X"$ac_prefix_program" |
|
|
2266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
|
2267 s//\1/
|
|
2268 q
|
|
2269 }
|
|
2270 /^X\(\/\/\)[^/].*/{
|
|
2271 s//\1/
|
|
2272 q
|
|
2273 }
|
|
2274 /^X\(\/\/\)$/{
|
|
2275 s//\1/
|
|
2276 q
|
|
2277 }
|
|
2278 /^X\(\/\).*/{
|
|
2279 s//\1/
|
|
2280 q
|
|
2281 }
|
|
2282 s/.*/./; q'`
|
|
2283 prefix=`$as_dirname -- "$prefix" ||
|
|
2284 $as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
|
2285 X"$prefix" : 'X\(//\)[^/]' \| \
|
|
2286 X"$prefix" : 'X\(//\)$' \| \
|
|
2287 X"$prefix" : 'X\(/\)' \| . 2>/dev/null ||
|
|
2288 $as_echo X"$prefix" |
|
|
2289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
|
2290 s//\1/
|
|
2291 q
|
|
2292 }
|
|
2293 /^X\(\/\/\)[^/].*/{
|
|
2294 s//\1/
|
|
2295 q
|
|
2296 }
|
|
2297 /^X\(\/\/\)$/{
|
|
2298 s//\1/
|
|
2299 q
|
|
2300 }
|
|
2301 /^X\(\/\).*/{
|
|
2302 s//\1/
|
|
2303 q
|
|
2304 }
|
|
2305 s/.*/./; q'`
|
|
2306 fi
|
|
2307 fi
|
|
2308
|
|
2309
|
|
2310 pa_init_cflags="$CFLAGS"
|
|
2311
|
|
2312 ac_ext=c
|
|
2313 ac_cpp='$CPP $CPPFLAGS'
|
|
2314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
2315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
2316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
2317 if test -n "$ac_tool_prefix"; then
|
|
2318 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
|
2319 set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
|
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
2321 $as_echo_n "checking for $ac_word... " >&6; }
|
|
2322 if ${ac_cv_prog_CC+:} false; then :
|
|
2323 $as_echo_n "(cached) " >&6
|
|
2324 else
|
|
2325 if test -n "$CC"; then
|
|
2326 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
2327 else
|
|
2328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
2329 for as_dir in $PATH
|
|
2330 do
|
|
2331 IFS=$as_save_IFS
|
|
2332 test -z "$as_dir" && as_dir=.
|
|
2333 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
2334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
2335 ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
|
2336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
2337 break 2
|
|
2338 fi
|
|
2339 done
|
|
2340 done
|
|
2341 IFS=$as_save_IFS
|
|
2342
|
|
2343 fi
|
|
2344 fi
|
|
2345 CC=$ac_cv_prog_CC
|
|
2346 if test -n "$CC"; then
|
|
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
|
2348 $as_echo "$CC" >&6; }
|
|
2349 else
|
|
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
2351 $as_echo "no" >&6; }
|
|
2352 fi
|
|
2353
|
|
2354
|
|
2355 fi
|
|
2356 if test -z "$ac_cv_prog_CC"; then
|
|
2357 ac_ct_CC=$CC
|
|
2358 # Extract the first word of "gcc", so it can be a program name with args.
|
|
2359 set dummy gcc; ac_word=$2
|
|
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
2361 $as_echo_n "checking for $ac_word... " >&6; }
|
|
2362 if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
|
2363 $as_echo_n "(cached) " >&6
|
|
2364 else
|
|
2365 if test -n "$ac_ct_CC"; then
|
|
2366 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
|
2367 else
|
|
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
2369 for as_dir in $PATH
|
|
2370 do
|
|
2371 IFS=$as_save_IFS
|
|
2372 test -z "$as_dir" && as_dir=.
|
|
2373 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
2374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
2375 ac_cv_prog_ac_ct_CC="gcc"
|
|
2376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
2377 break 2
|
|
2378 fi
|
|
2379 done
|
|
2380 done
|
|
2381 IFS=$as_save_IFS
|
|
2382
|
|
2383 fi
|
|
2384 fi
|
|
2385 ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
|
2386 if test -n "$ac_ct_CC"; then
|
|
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
|
2388 $as_echo "$ac_ct_CC" >&6; }
|
|
2389 else
|
|
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
2391 $as_echo "no" >&6; }
|
|
2392 fi
|
|
2393
|
|
2394 if test "x$ac_ct_CC" = x; then
|
|
2395 CC=""
|
|
2396 else
|
|
2397 case $cross_compiling:$ac_tool_warned in
|
|
2398 yes:)
|
|
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
2400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
2401 ac_tool_warned=yes ;;
|
|
2402 esac
|
|
2403 CC=$ac_ct_CC
|
|
2404 fi
|
|
2405 else
|
|
2406 CC="$ac_cv_prog_CC"
|
|
2407 fi
|
|
2408
|
|
2409 if test -z "$CC"; then
|
|
2410 if test -n "$ac_tool_prefix"; then
|
|
2411 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
|
2412 set dummy ${ac_tool_prefix}cc; ac_word=$2
|
|
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
2414 $as_echo_n "checking for $ac_word... " >&6; }
|
|
2415 if ${ac_cv_prog_CC+:} false; then :
|
|
2416 $as_echo_n "(cached) " >&6
|
|
2417 else
|
|
2418 if test -n "$CC"; then
|
|
2419 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
2420 else
|
|
2421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
2422 for as_dir in $PATH
|
|
2423 do
|
|
2424 IFS=$as_save_IFS
|
|
2425 test -z "$as_dir" && as_dir=.
|
|
2426 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
2427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
2428 ac_cv_prog_CC="${ac_tool_prefix}cc"
|
|
2429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
2430 break 2
|
|
2431 fi
|
|
2432 done
|
|
2433 done
|
|
2434 IFS=$as_save_IFS
|
|
2435
|
|
2436 fi
|
|
2437 fi
|
|
2438 CC=$ac_cv_prog_CC
|
|
2439 if test -n "$CC"; then
|
|
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
|
2441 $as_echo "$CC" >&6; }
|
|
2442 else
|
|
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
2444 $as_echo "no" >&6; }
|
|
2445 fi
|
|
2446
|
|
2447
|
|
2448 fi
|
|
2449 fi
|
|
2450 if test -z "$CC"; then
|
|
2451 # Extract the first word of "cc", so it can be a program name with args.
|
|
2452 set dummy cc; ac_word=$2
|
|
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
2454 $as_echo_n "checking for $ac_word... " >&6; }
|
|
2455 if ${ac_cv_prog_CC+:} false; then :
|
|
2456 $as_echo_n "(cached) " >&6
|
|
2457 else
|
|
2458 if test -n "$CC"; then
|
|
2459 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
2460 else
|
|
2461 ac_prog_rejected=no
|
|
2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
2463 for as_dir in $PATH
|
|
2464 do
|
|
2465 IFS=$as_save_IFS
|
|
2466 test -z "$as_dir" && as_dir=.
|
|
2467 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
2468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
2469 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
|
2470 ac_prog_rejected=yes
|
|
2471 continue
|
|
2472 fi
|
|
2473 ac_cv_prog_CC="cc"
|
|
2474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
2475 break 2
|
|
2476 fi
|
|
2477 done
|
|
2478 done
|
|
2479 IFS=$as_save_IFS
|
|
2480
|
|
2481 if test $ac_prog_rejected = yes; then
|
|
2482 # We found a bogon in the path, so make sure we never use it.
|
|
2483 set dummy $ac_cv_prog_CC
|
|
2484 shift
|
|
2485 if test $# != 0; then
|
|
2486 # We chose a different compiler from the bogus one.
|
|
2487 # However, it has the same basename, so the bogon will be chosen
|
|
2488 # first if we set CC to just the basename; use the full file name.
|
|
2489 shift
|
|
2490 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
|
2491 fi
|
|
2492 fi
|
|
2493 fi
|
|
2494 fi
|
|
2495 CC=$ac_cv_prog_CC
|
|
2496 if test -n "$CC"; then
|
|
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
|
2498 $as_echo "$CC" >&6; }
|
|
2499 else
|
|
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
2501 $as_echo "no" >&6; }
|
|
2502 fi
|
|
2503
|
|
2504
|
|
2505 fi
|
|
2506 if test -z "$CC"; then
|
|
2507 if test -n "$ac_tool_prefix"; then
|
|
2508 for ac_prog in cl.exe
|
|
2509 do
|
|
2510 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
|
2511 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
|
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
2513 $as_echo_n "checking for $ac_word... " >&6; }
|
|
2514 if ${ac_cv_prog_CC+:} false; then :
|
|
2515 $as_echo_n "(cached) " >&6
|
|
2516 else
|
|
2517 if test -n "$CC"; then
|
|
2518 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
2519 else
|
|
2520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
2521 for as_dir in $PATH
|
|
2522 do
|
|
2523 IFS=$as_save_IFS
|
|
2524 test -z "$as_dir" && as_dir=.
|
|
2525 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
2526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
2527 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
|
2528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
2529 break 2
|
|
2530 fi
|
|
2531 done
|
|
2532 done
|
|
2533 IFS=$as_save_IFS
|
|
2534
|
|
2535 fi
|
|
2536 fi
|
|
2537 CC=$ac_cv_prog_CC
|
|
2538 if test -n "$CC"; then
|
|
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
|
2540 $as_echo "$CC" >&6; }
|
|
2541 else
|
|
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
2543 $as_echo "no" >&6; }
|
|
2544 fi
|
|
2545
|
|
2546
|
|
2547 test -n "$CC" && break
|
|
2548 done
|
|
2549 fi
|
|
2550 if test -z "$CC"; then
|
|
2551 ac_ct_CC=$CC
|
|
2552 for ac_prog in cl.exe
|
|
2553 do
|
|
2554 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
2555 set dummy $ac_prog; ac_word=$2
|
|
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
2557 $as_echo_n "checking for $ac_word... " >&6; }
|
|
2558 if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
|
2559 $as_echo_n "(cached) " >&6
|
|
2560 else
|
|
2561 if test -n "$ac_ct_CC"; then
|
|
2562 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
|
2563 else
|
|
2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
2565 for as_dir in $PATH
|
|
2566 do
|
|
2567 IFS=$as_save_IFS
|
|
2568 test -z "$as_dir" && as_dir=.
|
|
2569 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
2570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
2571 ac_cv_prog_ac_ct_CC="$ac_prog"
|
|
2572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
2573 break 2
|
|
2574 fi
|
|
2575 done
|
|
2576 done
|
|
2577 IFS=$as_save_IFS
|
|
2578
|
|
2579 fi
|
|
2580 fi
|
|
2581 ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
|
2582 if test -n "$ac_ct_CC"; then
|
|
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
|
2584 $as_echo "$ac_ct_CC" >&6; }
|
|
2585 else
|
|
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
2587 $as_echo "no" >&6; }
|
|
2588 fi
|
|
2589
|
|
2590
|
|
2591 test -n "$ac_ct_CC" && break
|
|
2592 done
|
|
2593
|
|
2594 if test "x$ac_ct_CC" = x; then
|
|
2595 CC=""
|
|
2596 else
|
|
2597 case $cross_compiling:$ac_tool_warned in
|
|
2598 yes:)
|
|
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
2600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
2601 ac_tool_warned=yes ;;
|
|
2602 esac
|
|
2603 CC=$ac_ct_CC
|
|
2604 fi
|
|
2605 fi
|
|
2606
|
|
2607 fi
|
|
2608
|
|
2609
|
|
2610 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
2611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
2612 as_fn_error $? "no acceptable C compiler found in \$PATH
|
|
2613 See \`config.log' for more details" "$LINENO" 5; }
|
|
2614
|
|
2615 # Provide some information about the compiler.
|
|
2616 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
|
|
2617 set X $ac_compile
|
|
2618 ac_compiler=$2
|
|
2619 for ac_option in --version -v -V -qversion; do
|
|
2620 { { ac_try="$ac_compiler $ac_option >&5"
|
|
2621 case "(($ac_try" in
|
|
2622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
2623 *) ac_try_echo=$ac_try;;
|
|
2624 esac
|
|
2625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
2626 $as_echo "$ac_try_echo"; } >&5
|
|
2627 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
|
2628 ac_status=$?
|
|
2629 if test -s conftest.err; then
|
|
2630 sed '10a\
|
|
2631 ... rest of stderr output deleted ...
|
|
2632 10q' conftest.err >conftest.er1
|
|
2633 cat conftest.er1 >&5
|
|
2634 fi
|
|
2635 rm -f conftest.er1 conftest.err
|
|
2636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
2637 test $ac_status = 0; }
|
|
2638 done
|
|
2639
|
|
2640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
2641 /* end confdefs.h. */
|
|
2642
|
|
2643 int
|
|
2644 main ()
|
|
2645 {
|
|
2646
|
|
2647 ;
|
|
2648 return 0;
|
|
2649 }
|
|
2650 _ACEOF
|
|
2651 ac_clean_files_save=$ac_clean_files
|
|
2652 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
|
|
2653 # Try to create an executable without -o first, disregard a.out.
|
|
2654 # It will help us diagnose broken compilers, and finding out an intuition
|
|
2655 # of exeext.
|
|
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
|
|
2657 $as_echo_n "checking whether the C compiler works... " >&6; }
|
|
2658 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
|
2659
|
|
2660 # The possible output files:
|
|
2661 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
|
|
2662
|
|
2663 ac_rmfiles=
|
|
2664 for ac_file in $ac_files
|
|
2665 do
|
|
2666 case $ac_file in
|
|
2667 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
|
2668 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
|
2669 esac
|
|
2670 done
|
|
2671 rm -f $ac_rmfiles
|
|
2672
|
|
2673 if { { ac_try="$ac_link_default"
|
|
2674 case "(($ac_try" in
|
|
2675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
2676 *) ac_try_echo=$ac_try;;
|
|
2677 esac
|
|
2678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
2679 $as_echo "$ac_try_echo"; } >&5
|
|
2680 (eval "$ac_link_default") 2>&5
|
|
2681 ac_status=$?
|
|
2682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
2683 test $ac_status = 0; }; then :
|
|
2684 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
|
2685 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
|
2686 # in a Makefile. We should not override ac_cv_exeext if it was cached,
|
|
2687 # so that the user can short-circuit this test for compilers unknown to
|
|
2688 # Autoconf.
|
|
2689 for ac_file in $ac_files ''
|
|
2690 do
|
|
2691 test -f "$ac_file" || continue
|
|
2692 case $ac_file in
|
|
2693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
|
|
2694 ;;
|
|
2695 [ab].out )
|
|
2696 # We found the default executable, but exeext='' is most
|
|
2697 # certainly right.
|
|
2698 break;;
|
|
2699 *.* )
|
|
2700 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
|
2701 then :; else
|
|
2702 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
|
2703 fi
|
|
2704 # We set ac_cv_exeext here because the later test for it is not
|
|
2705 # safe: cross compilers may not add the suffix if given an `-o'
|
|
2706 # argument, so we may need to know it at that point already.
|
|
2707 # Even if this section looks crufty: it has the advantage of
|
|
2708 # actually working.
|
|
2709 break;;
|
|
2710 * )
|
|
2711 break;;
|
|
2712 esac
|
|
2713 done
|
|
2714 test "$ac_cv_exeext" = no && ac_cv_exeext=
|
|
2715
|
|
2716 else
|
|
2717 ac_file=''
|
|
2718 fi
|
|
2719 if test -z "$ac_file"; then :
|
|
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
2721 $as_echo "no" >&6; }
|
|
2722 $as_echo "$as_me: failed program was:" >&5
|
|
2723 sed 's/^/| /' conftest.$ac_ext >&5
|
|
2724
|
|
2725 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
2726 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
2727 as_fn_error 77 "C compiler cannot create executables
|
|
2728 See \`config.log' for more details" "$LINENO" 5; }
|
|
2729 else
|
|
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
2731 $as_echo "yes" >&6; }
|
|
2732 fi
|
|
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
|
|
2734 $as_echo_n "checking for C compiler default output file name... " >&6; }
|
|
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
|
|
2736 $as_echo "$ac_file" >&6; }
|
|
2737 ac_exeext=$ac_cv_exeext
|
|
2738
|
|
2739 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
|
|
2740 ac_clean_files=$ac_clean_files_save
|
|
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
|
|
2742 $as_echo_n "checking for suffix of executables... " >&6; }
|
|
2743 if { { ac_try="$ac_link"
|
|
2744 case "(($ac_try" in
|
|
2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
2746 *) ac_try_echo=$ac_try;;
|
|
2747 esac
|
|
2748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
2749 $as_echo "$ac_try_echo"; } >&5
|
|
2750 (eval "$ac_link") 2>&5
|
|
2751 ac_status=$?
|
|
2752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
2753 test $ac_status = 0; }; then :
|
|
2754 # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
|
2755 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
|
2756 # work properly (i.e., refer to `conftest.exe'), while it won't with
|
|
2757 # `rm'.
|
|
2758 for ac_file in conftest.exe conftest conftest.*; do
|
|
2759 test -f "$ac_file" || continue
|
|
2760 case $ac_file in
|
|
2761 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
|
2762 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
|
2763 break;;
|
|
2764 * ) break;;
|
|
2765 esac
|
|
2766 done
|
|
2767 else
|
|
2768 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
2769 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
2770 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
|
|
2771 See \`config.log' for more details" "$LINENO" 5; }
|
|
2772 fi
|
|
2773 rm -f conftest conftest$ac_cv_exeext
|
|
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
|
|
2775 $as_echo "$ac_cv_exeext" >&6; }
|
|
2776
|
|
2777 rm -f conftest.$ac_ext
|
|
2778 EXEEXT=$ac_cv_exeext
|
|
2779 ac_exeext=$EXEEXT
|
|
2780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
2781 /* end confdefs.h. */
|
|
2782 #include <stdio.h>
|
|
2783 int
|
|
2784 main ()
|
|
2785 {
|
|
2786 FILE *f = fopen ("conftest.out", "w");
|
|
2787 return ferror (f) || fclose (f) != 0;
|
|
2788
|
|
2789 ;
|
|
2790 return 0;
|
|
2791 }
|
|
2792 _ACEOF
|
|
2793 ac_clean_files="$ac_clean_files conftest.out"
|
|
2794 # Check that the compiler produces executables we can run. If not, either
|
|
2795 # the compiler is broken, or we cross compile.
|
|
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
|
|
2797 $as_echo_n "checking whether we are cross compiling... " >&6; }
|
|
2798 if test "$cross_compiling" != yes; then
|
|
2799 { { ac_try="$ac_link"
|
|
2800 case "(($ac_try" in
|
|
2801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
2802 *) ac_try_echo=$ac_try;;
|
|
2803 esac
|
|
2804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
2805 $as_echo "$ac_try_echo"; } >&5
|
|
2806 (eval "$ac_link") 2>&5
|
|
2807 ac_status=$?
|
|
2808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
2809 test $ac_status = 0; }
|
|
2810 if { ac_try='./conftest$ac_cv_exeext'
|
|
2811 { { case "(($ac_try" in
|
|
2812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
2813 *) ac_try_echo=$ac_try;;
|
|
2814 esac
|
|
2815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
2816 $as_echo "$ac_try_echo"; } >&5
|
|
2817 (eval "$ac_try") 2>&5
|
|
2818 ac_status=$?
|
|
2819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
2820 test $ac_status = 0; }; }; then
|
|
2821 cross_compiling=no
|
|
2822 else
|
|
2823 if test "$cross_compiling" = maybe; then
|
|
2824 cross_compiling=yes
|
|
2825 else
|
|
2826 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
2827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
2828 as_fn_error $? "cannot run C compiled programs.
|
|
2829 If you meant to cross compile, use \`--host'.
|
|
2830 See \`config.log' for more details" "$LINENO" 5; }
|
|
2831 fi
|
|
2832 fi
|
|
2833 fi
|
|
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
|
|
2835 $as_echo "$cross_compiling" >&6; }
|
|
2836
|
|
2837 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
|
|
2838 ac_clean_files=$ac_clean_files_save
|
|
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
|
|
2840 $as_echo_n "checking for suffix of object files... " >&6; }
|
|
2841 if ${ac_cv_objext+:} false; then :
|
|
2842 $as_echo_n "(cached) " >&6
|
|
2843 else
|
|
2844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
2845 /* end confdefs.h. */
|
|
2846
|
|
2847 int
|
|
2848 main ()
|
|
2849 {
|
|
2850
|
|
2851 ;
|
|
2852 return 0;
|
|
2853 }
|
|
2854 _ACEOF
|
|
2855 rm -f conftest.o conftest.obj
|
|
2856 if { { ac_try="$ac_compile"
|
|
2857 case "(($ac_try" in
|
|
2858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
2859 *) ac_try_echo=$ac_try;;
|
|
2860 esac
|
|
2861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
2862 $as_echo "$ac_try_echo"; } >&5
|
|
2863 (eval "$ac_compile") 2>&5
|
|
2864 ac_status=$?
|
|
2865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
2866 test $ac_status = 0; }; then :
|
|
2867 for ac_file in conftest.o conftest.obj conftest.*; do
|
|
2868 test -f "$ac_file" || continue;
|
|
2869 case $ac_file in
|
|
2870 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
|
|
2871 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
|
2872 break;;
|
|
2873 esac
|
|
2874 done
|
|
2875 else
|
|
2876 $as_echo "$as_me: failed program was:" >&5
|
|
2877 sed 's/^/| /' conftest.$ac_ext >&5
|
|
2878
|
|
2879 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
2880 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
2881 as_fn_error $? "cannot compute suffix of object files: cannot compile
|
|
2882 See \`config.log' for more details" "$LINENO" 5; }
|
|
2883 fi
|
|
2884 rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
|
2885 fi
|
|
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
|
|
2887 $as_echo "$ac_cv_objext" >&6; }
|
|
2888 OBJEXT=$ac_cv_objext
|
|
2889 ac_objext=$OBJEXT
|
|
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
|
|
2891 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
|
|
2892 if ${ac_cv_c_compiler_gnu+:} false; then :
|
|
2893 $as_echo_n "(cached) " >&6
|
|
2894 else
|
|
2895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
2896 /* end confdefs.h. */
|
|
2897
|
|
2898 int
|
|
2899 main ()
|
|
2900 {
|
|
2901 #ifndef __GNUC__
|
|
2902 choke me
|
|
2903 #endif
|
|
2904
|
|
2905 ;
|
|
2906 return 0;
|
|
2907 }
|
|
2908 _ACEOF
|
|
2909 if ac_fn_c_try_compile "$LINENO"; then :
|
|
2910 ac_compiler_gnu=yes
|
|
2911 else
|
|
2912 ac_compiler_gnu=no
|
|
2913 fi
|
|
2914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
2915 ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
|
2916
|
|
2917 fi
|
|
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
|
|
2919 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
|
|
2920 if test $ac_compiler_gnu = yes; then
|
|
2921 GCC=yes
|
|
2922 else
|
|
2923 GCC=
|
|
2924 fi
|
|
2925 ac_test_CFLAGS=${CFLAGS+set}
|
|
2926 ac_save_CFLAGS=$CFLAGS
|
|
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
|
|
2928 $as_echo_n "checking whether $CC accepts -g... " >&6; }
|
|
2929 if ${ac_cv_prog_cc_g+:} false; then :
|
|
2930 $as_echo_n "(cached) " >&6
|
|
2931 else
|
|
2932 ac_save_c_werror_flag=$ac_c_werror_flag
|
|
2933 ac_c_werror_flag=yes
|
|
2934 ac_cv_prog_cc_g=no
|
|
2935 CFLAGS="-g"
|
|
2936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
2937 /* end confdefs.h. */
|
|
2938
|
|
2939 int
|
|
2940 main ()
|
|
2941 {
|
|
2942
|
|
2943 ;
|
|
2944 return 0;
|
|
2945 }
|
|
2946 _ACEOF
|
|
2947 if ac_fn_c_try_compile "$LINENO"; then :
|
|
2948 ac_cv_prog_cc_g=yes
|
|
2949 else
|
|
2950 CFLAGS=""
|
|
2951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
2952 /* end confdefs.h. */
|
|
2953
|
|
2954 int
|
|
2955 main ()
|
|
2956 {
|
|
2957
|
|
2958 ;
|
|
2959 return 0;
|
|
2960 }
|
|
2961 _ACEOF
|
|
2962 if ac_fn_c_try_compile "$LINENO"; then :
|
|
2963
|
|
2964 else
|
|
2965 ac_c_werror_flag=$ac_save_c_werror_flag
|
|
2966 CFLAGS="-g"
|
|
2967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
2968 /* end confdefs.h. */
|
|
2969
|
|
2970 int
|
|
2971 main ()
|
|
2972 {
|
|
2973
|
|
2974 ;
|
|
2975 return 0;
|
|
2976 }
|
|
2977 _ACEOF
|
|
2978 if ac_fn_c_try_compile "$LINENO"; then :
|
|
2979 ac_cv_prog_cc_g=yes
|
|
2980 fi
|
|
2981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
2982 fi
|
|
2983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
2984 fi
|
|
2985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
2986 ac_c_werror_flag=$ac_save_c_werror_flag
|
|
2987 fi
|
|
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
|
|
2989 $as_echo "$ac_cv_prog_cc_g" >&6; }
|
|
2990 if test "$ac_test_CFLAGS" = set; then
|
|
2991 CFLAGS=$ac_save_CFLAGS
|
|
2992 elif test $ac_cv_prog_cc_g = yes; then
|
|
2993 if test "$GCC" = yes; then
|
|
2994 CFLAGS="-g -O2"
|
|
2995 else
|
|
2996 CFLAGS="-g"
|
|
2997 fi
|
|
2998 else
|
|
2999 if test "$GCC" = yes; then
|
|
3000 CFLAGS="-O2"
|
|
3001 else
|
|
3002 CFLAGS=
|
|
3003 fi
|
|
3004 fi
|
|
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
|
|
3006 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
|
|
3007 if ${ac_cv_prog_cc_c89+:} false; then :
|
|
3008 $as_echo_n "(cached) " >&6
|
|
3009 else
|
|
3010 ac_cv_prog_cc_c89=no
|
|
3011 ac_save_CC=$CC
|
|
3012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
3013 /* end confdefs.h. */
|
|
3014 #include <stdarg.h>
|
|
3015 #include <stdio.h>
|
|
3016 struct stat;
|
|
3017 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
|
3018 struct buf { int x; };
|
|
3019 FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
|
3020 static char *e (p, i)
|
|
3021 char **p;
|
|
3022 int i;
|
|
3023 {
|
|
3024 return p[i];
|
|
3025 }
|
|
3026 static char *f (char * (*g) (char **, int), char **p, ...)
|
|
3027 {
|
|
3028 char *s;
|
|
3029 va_list v;
|
|
3030 va_start (v,p);
|
|
3031 s = g (p, va_arg (v,int));
|
|
3032 va_end (v);
|
|
3033 return s;
|
|
3034 }
|
|
3035
|
|
3036 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
|
3037 function prototypes and stuff, but not '\xHH' hex character constants.
|
|
3038 These don't provoke an error unfortunately, instead are silently treated
|
|
3039 as 'x'. The following induces an error, until -std is added to get
|
|
3040 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
|
3041 array size at least. It's necessary to write '\x00'==0 to get something
|
|
3042 that's true only with -std. */
|
|
3043 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
|
3044
|
|
3045 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
|
3046 inside strings and character constants. */
|
|
3047 #define FOO(x) 'x'
|
|
3048 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
|
3049
|
|
3050 int test (int i, double x);
|
|
3051 struct s1 {int (*f) (int a);};
|
|
3052 struct s2 {int (*f) (double a);};
|
|
3053 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
|
3054 int argc;
|
|
3055 char **argv;
|
|
3056 int
|
|
3057 main ()
|
|
3058 {
|
|
3059 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
|
3060 ;
|
|
3061 return 0;
|
|
3062 }
|
|
3063 _ACEOF
|
|
3064 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
|
3065 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
|
3066 do
|
|
3067 CC="$ac_save_CC $ac_arg"
|
|
3068 if ac_fn_c_try_compile "$LINENO"; then :
|
|
3069 ac_cv_prog_cc_c89=$ac_arg
|
|
3070 fi
|
|
3071 rm -f core conftest.err conftest.$ac_objext
|
|
3072 test "x$ac_cv_prog_cc_c89" != "xno" && break
|
|
3073 done
|
|
3074 rm -f conftest.$ac_ext
|
|
3075 CC=$ac_save_CC
|
|
3076
|
|
3077 fi
|
|
3078 # AC_CACHE_VAL
|
|
3079 case "x$ac_cv_prog_cc_c89" in
|
|
3080 x)
|
|
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
|
3082 $as_echo "none needed" >&6; } ;;
|
|
3083 xno)
|
|
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
|
3085 $as_echo "unsupported" >&6; } ;;
|
|
3086 *)
|
|
3087 CC="$CC $ac_cv_prog_cc_c89"
|
|
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
|
|
3089 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
|
|
3090 esac
|
|
3091 if test "x$ac_cv_prog_cc_c89" != xno; then :
|
|
3092
|
|
3093 fi
|
|
3094
|
|
3095 ac_ext=c
|
|
3096 ac_cpp='$CPP $CPPFLAGS'
|
|
3097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
3098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
3099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
3100
|
|
3101
|
|
3102 ac_ext=c
|
|
3103 ac_cpp='$CPP $CPPFLAGS'
|
|
3104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
3105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
3106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
|
|
3108 $as_echo_n "checking how to run the C preprocessor... " >&6; }
|
|
3109 # On Suns, sometimes $CPP names a directory.
|
|
3110 if test -n "$CPP" && test -d "$CPP"; then
|
|
3111 CPP=
|
|
3112 fi
|
|
3113 if test -z "$CPP"; then
|
|
3114 if ${ac_cv_prog_CPP+:} false; then :
|
|
3115 $as_echo_n "(cached) " >&6
|
|
3116 else
|
|
3117 # Double quotes because CPP needs to be expanded
|
|
3118 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
|
3119 do
|
|
3120 ac_preproc_ok=false
|
|
3121 for ac_c_preproc_warn_flag in '' yes
|
|
3122 do
|
|
3123 # Use a header file that comes with gcc, so configuring glibc
|
|
3124 # with a fresh cross-compiler works.
|
|
3125 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
3126 # <limits.h> exists even on freestanding compilers.
|
|
3127 # On the NeXT, cc -E runs the code through the compiler's parser,
|
|
3128 # not just through cpp. "Syntax error" is here to catch this case.
|
|
3129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
3130 /* end confdefs.h. */
|
|
3131 #ifdef __STDC__
|
|
3132 # include <limits.h>
|
|
3133 #else
|
|
3134 # include <assert.h>
|
|
3135 #endif
|
|
3136 Syntax error
|
|
3137 _ACEOF
|
|
3138 if ac_fn_c_try_cpp "$LINENO"; then :
|
|
3139
|
|
3140 else
|
|
3141 # Broken: fails on valid input.
|
|
3142 continue
|
|
3143 fi
|
|
3144 rm -f conftest.err conftest.i conftest.$ac_ext
|
|
3145
|
|
3146 # OK, works on sane cases. Now check whether nonexistent headers
|
|
3147 # can be detected and how.
|
|
3148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
3149 /* end confdefs.h. */
|
|
3150 #include <ac_nonexistent.h>
|
|
3151 _ACEOF
|
|
3152 if ac_fn_c_try_cpp "$LINENO"; then :
|
|
3153 # Broken: success on invalid input.
|
|
3154 continue
|
|
3155 else
|
|
3156 # Passes both tests.
|
|
3157 ac_preproc_ok=:
|
|
3158 break
|
|
3159 fi
|
|
3160 rm -f conftest.err conftest.i conftest.$ac_ext
|
|
3161
|
|
3162 done
|
|
3163 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
|
3164 rm -f conftest.i conftest.err conftest.$ac_ext
|
|
3165 if $ac_preproc_ok; then :
|
|
3166 break
|
|
3167 fi
|
|
3168
|
|
3169 done
|
|
3170 ac_cv_prog_CPP=$CPP
|
|
3171
|
|
3172 fi
|
|
3173 CPP=$ac_cv_prog_CPP
|
|
3174 else
|
|
3175 ac_cv_prog_CPP=$CPP
|
|
3176 fi
|
|
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
|
|
3178 $as_echo "$CPP" >&6; }
|
|
3179 ac_preproc_ok=false
|
|
3180 for ac_c_preproc_warn_flag in '' yes
|
|
3181 do
|
|
3182 # Use a header file that comes with gcc, so configuring glibc
|
|
3183 # with a fresh cross-compiler works.
|
|
3184 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
3185 # <limits.h> exists even on freestanding compilers.
|
|
3186 # On the NeXT, cc -E runs the code through the compiler's parser,
|
|
3187 # not just through cpp. "Syntax error" is here to catch this case.
|
|
3188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
3189 /* end confdefs.h. */
|
|
3190 #ifdef __STDC__
|
|
3191 # include <limits.h>
|
|
3192 #else
|
|
3193 # include <assert.h>
|
|
3194 #endif
|
|
3195 Syntax error
|
|
3196 _ACEOF
|
|
3197 if ac_fn_c_try_cpp "$LINENO"; then :
|
|
3198
|
|
3199 else
|
|
3200 # Broken: fails on valid input.
|
|
3201 continue
|
|
3202 fi
|
|
3203 rm -f conftest.err conftest.i conftest.$ac_ext
|
|
3204
|
|
3205 # OK, works on sane cases. Now check whether nonexistent headers
|
|
3206 # can be detected and how.
|
|
3207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
3208 /* end confdefs.h. */
|
|
3209 #include <ac_nonexistent.h>
|
|
3210 _ACEOF
|
|
3211 if ac_fn_c_try_cpp "$LINENO"; then :
|
|
3212 # Broken: success on invalid input.
|
|
3213 continue
|
|
3214 else
|
|
3215 # Passes both tests.
|
|
3216 ac_preproc_ok=:
|
|
3217 break
|
|
3218 fi
|
|
3219 rm -f conftest.err conftest.i conftest.$ac_ext
|
|
3220
|
|
3221 done
|
|
3222 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
|
3223 rm -f conftest.i conftest.err conftest.$ac_ext
|
|
3224 if $ac_preproc_ok; then :
|
|
3225
|
|
3226 else
|
|
3227 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
3228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
3229 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
|
|
3230 See \`config.log' for more details" "$LINENO" 5; }
|
|
3231 fi
|
|
3232
|
|
3233 ac_ext=c
|
|
3234 ac_cpp='$CPP $CPPFLAGS'
|
|
3235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
3236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
3237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
3238
|
|
3239
|
|
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
|
|
3241 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
|
|
3242 if ${ac_cv_path_GREP+:} false; then :
|
|
3243 $as_echo_n "(cached) " >&6
|
|
3244 else
|
|
3245 if test -z "$GREP"; then
|
|
3246 ac_path_GREP_found=false
|
|
3247 # Loop through the user's path and test for each of PROGNAME-LIST
|
|
3248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
3249 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
|
3250 do
|
|
3251 IFS=$as_save_IFS
|
|
3252 test -z "$as_dir" && as_dir=.
|
|
3253 for ac_prog in grep ggrep; do
|
|
3254 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
3255 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
|
3256 as_fn_executable_p "$ac_path_GREP" || continue
|
|
3257 # Check for GNU ac_path_GREP and select it if it is found.
|
|
3258 # Check for GNU $ac_path_GREP
|
|
3259 case `"$ac_path_GREP" --version 2>&1` in
|
|
3260 *GNU*)
|
|
3261 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
|
3262 *)
|
|
3263 ac_count=0
|
|
3264 $as_echo_n 0123456789 >"conftest.in"
|
|
3265 while :
|
|
3266 do
|
|
3267 cat "conftest.in" "conftest.in" >"conftest.tmp"
|
|
3268 mv "conftest.tmp" "conftest.in"
|
|
3269 cp "conftest.in" "conftest.nl"
|
|
3270 $as_echo 'GREP' >> "conftest.nl"
|
|
3271 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
|
3272 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
|
3273 as_fn_arith $ac_count + 1 && ac_count=$as_val
|
|
3274 if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
|
3275 # Best one so far, save it but keep looking for a better one
|
|
3276 ac_cv_path_GREP="$ac_path_GREP"
|
|
3277 ac_path_GREP_max=$ac_count
|
|
3278 fi
|
|
3279 # 10*(2^10) chars as input seems more than enough
|
|
3280 test $ac_count -gt 10 && break
|
|
3281 done
|
|
3282 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
|
3283 esac
|
|
3284
|
|
3285 $ac_path_GREP_found && break 3
|
|
3286 done
|
|
3287 done
|
|
3288 done
|
|
3289 IFS=$as_save_IFS
|
|
3290 if test -z "$ac_cv_path_GREP"; then
|
|
3291 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
|
3292 fi
|
|
3293 else
|
|
3294 ac_cv_path_GREP=$GREP
|
|
3295 fi
|
|
3296
|
|
3297 fi
|
|
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
|
|
3299 $as_echo "$ac_cv_path_GREP" >&6; }
|
|
3300 GREP="$ac_cv_path_GREP"
|
|
3301
|
|
3302
|
|
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
|
|
3304 $as_echo_n "checking for egrep... " >&6; }
|
|
3305 if ${ac_cv_path_EGREP+:} false; then :
|
|
3306 $as_echo_n "(cached) " >&6
|
|
3307 else
|
|
3308 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
|
3309 then ac_cv_path_EGREP="$GREP -E"
|
|
3310 else
|
|
3311 if test -z "$EGREP"; then
|
|
3312 ac_path_EGREP_found=false
|
|
3313 # Loop through the user's path and test for each of PROGNAME-LIST
|
|
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
3315 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
|
3316 do
|
|
3317 IFS=$as_save_IFS
|
|
3318 test -z "$as_dir" && as_dir=.
|
|
3319 for ac_prog in egrep; do
|
|
3320 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
3321 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
|
3322 as_fn_executable_p "$ac_path_EGREP" || continue
|
|
3323 # Check for GNU ac_path_EGREP and select it if it is found.
|
|
3324 # Check for GNU $ac_path_EGREP
|
|
3325 case `"$ac_path_EGREP" --version 2>&1` in
|
|
3326 *GNU*)
|
|
3327 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
|
3328 *)
|
|
3329 ac_count=0
|
|
3330 $as_echo_n 0123456789 >"conftest.in"
|
|
3331 while :
|
|
3332 do
|
|
3333 cat "conftest.in" "conftest.in" >"conftest.tmp"
|
|
3334 mv "conftest.tmp" "conftest.in"
|
|
3335 cp "conftest.in" "conftest.nl"
|
|
3336 $as_echo 'EGREP' >> "conftest.nl"
|
|
3337 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
|
3338 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
|
3339 as_fn_arith $ac_count + 1 && ac_count=$as_val
|
|
3340 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
|
3341 # Best one so far, save it but keep looking for a better one
|
|
3342 ac_cv_path_EGREP="$ac_path_EGREP"
|
|
3343 ac_path_EGREP_max=$ac_count
|
|
3344 fi
|
|
3345 # 10*(2^10) chars as input seems more than enough
|
|
3346 test $ac_count -gt 10 && break
|
|
3347 done
|
|
3348 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
|
3349 esac
|
|
3350
|
|
3351 $ac_path_EGREP_found && break 3
|
|
3352 done
|
|
3353 done
|
|
3354 done
|
|
3355 IFS=$as_save_IFS
|
|
3356 if test -z "$ac_cv_path_EGREP"; then
|
|
3357 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
|
3358 fi
|
|
3359 else
|
|
3360 ac_cv_path_EGREP=$EGREP
|
|
3361 fi
|
|
3362
|
|
3363 fi
|
|
3364 fi
|
|
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
|
|
3366 $as_echo "$ac_cv_path_EGREP" >&6; }
|
|
3367 EGREP="$ac_cv_path_EGREP"
|
|
3368
|
|
3369
|
|
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
|
3371 $as_echo_n "checking for ANSI C header files... " >&6; }
|
|
3372 if ${ac_cv_header_stdc+:} false; then :
|
|
3373 $as_echo_n "(cached) " >&6
|
|
3374 else
|
|
3375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
3376 /* end confdefs.h. */
|
|
3377 #include <stdlib.h>
|
|
3378 #include <stdarg.h>
|
|
3379 #include <string.h>
|
|
3380 #include <float.h>
|
|
3381
|
|
3382 int
|
|
3383 main ()
|
|
3384 {
|
|
3385
|
|
3386 ;
|
|
3387 return 0;
|
|
3388 }
|
|
3389 _ACEOF
|
|
3390 if ac_fn_c_try_compile "$LINENO"; then :
|
|
3391 ac_cv_header_stdc=yes
|
|
3392 else
|
|
3393 ac_cv_header_stdc=no
|
|
3394 fi
|
|
3395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
3396
|
|
3397 if test $ac_cv_header_stdc = yes; then
|
|
3398 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
|
3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
3400 /* end confdefs.h. */
|
|
3401 #include <string.h>
|
|
3402
|
|
3403 _ACEOF
|
|
3404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
3405 $EGREP "memchr" >/dev/null 2>&1; then :
|
|
3406
|
|
3407 else
|
|
3408 ac_cv_header_stdc=no
|
|
3409 fi
|
|
3410 rm -f conftest*
|
|
3411
|
|
3412 fi
|
|
3413
|
|
3414 if test $ac_cv_header_stdc = yes; then
|
|
3415 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
|
3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
3417 /* end confdefs.h. */
|
|
3418 #include <stdlib.h>
|
|
3419
|
|
3420 _ACEOF
|
|
3421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
3422 $EGREP "free" >/dev/null 2>&1; then :
|
|
3423
|
|
3424 else
|
|
3425 ac_cv_header_stdc=no
|
|
3426 fi
|
|
3427 rm -f conftest*
|
|
3428
|
|
3429 fi
|
|
3430
|
|
3431 if test $ac_cv_header_stdc = yes; then
|
|
3432 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
|
3433 if test "$cross_compiling" = yes; then :
|
|
3434 :
|
|
3435 else
|
|
3436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
3437 /* end confdefs.h. */
|
|
3438 #include <ctype.h>
|
|
3439 #include <stdlib.h>
|
|
3440 #if ((' ' & 0x0FF) == 0x020)
|
|
3441 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|
3442 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
|
3443 #else
|
|
3444 # define ISLOWER(c) \
|
|
3445 (('a' <= (c) && (c) <= 'i') \
|
|
3446 || ('j' <= (c) && (c) <= 'r') \
|
|
3447 || ('s' <= (c) && (c) <= 'z'))
|
|
3448 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
|
3449 #endif
|
|
3450
|
|
3451 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
|
3452 int
|
|
3453 main ()
|
|
3454 {
|
|
3455 int i;
|
|
3456 for (i = 0; i < 256; i++)
|
|
3457 if (XOR (islower (i), ISLOWER (i))
|
|
3458 || toupper (i) != TOUPPER (i))
|
|
3459 return 2;
|
|
3460 return 0;
|
|
3461 }
|
|
3462 _ACEOF
|
|
3463 if ac_fn_c_try_run "$LINENO"; then :
|
|
3464
|
|
3465 else
|
|
3466 ac_cv_header_stdc=no
|
|
3467 fi
|
|
3468 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
3469 conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
3470 fi
|
|
3471
|
|
3472 fi
|
|
3473 fi
|
|
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
|
3475 $as_echo "$ac_cv_header_stdc" >&6; }
|
|
3476 if test $ac_cv_header_stdc = yes; then
|
|
3477
|
|
3478 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
|
3479
|
|
3480 fi
|
|
3481
|
|
3482 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
|
3483 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
|
3484 inttypes.h stdint.h unistd.h
|
|
3485 do :
|
|
3486 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
|
3487 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
|
|
3488 "
|
|
3489 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
|
3490 cat >>confdefs.h <<_ACEOF
|
|
3491 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
|
3492 _ACEOF
|
|
3493
|
|
3494 fi
|
|
3495
|
|
3496 done
|
|
3497
|
|
3498
|
|
3499
|
|
3500 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
|
|
3501 if test "x$ac_cv_header_minix_config_h" = xyes; then :
|
|
3502 MINIX=yes
|
|
3503 else
|
|
3504 MINIX=
|
|
3505 fi
|
|
3506
|
|
3507
|
|
3508 if test "$MINIX" = yes; then
|
|
3509
|
|
3510 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
|
|
3511
|
|
3512
|
|
3513 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
|
|
3514
|
|
3515
|
|
3516 $as_echo "#define _MINIX 1" >>confdefs.h
|
|
3517
|
|
3518 fi
|
|
3519
|
|
3520
|
|
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
|
|
3522 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
|
|
3523 if ${ac_cv_safe_to_define___extensions__+:} false; then :
|
|
3524 $as_echo_n "(cached) " >&6
|
|
3525 else
|
|
3526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
3527 /* end confdefs.h. */
|
|
3528
|
|
3529 # define __EXTENSIONS__ 1
|
|
3530 $ac_includes_default
|
|
3531 int
|
|
3532 main ()
|
|
3533 {
|
|
3534
|
|
3535 ;
|
|
3536 return 0;
|
|
3537 }
|
|
3538 _ACEOF
|
|
3539 if ac_fn_c_try_compile "$LINENO"; then :
|
|
3540 ac_cv_safe_to_define___extensions__=yes
|
|
3541 else
|
|
3542 ac_cv_safe_to_define___extensions__=no
|
|
3543 fi
|
|
3544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
3545 fi
|
|
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
|
|
3547 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
|
|
3548 test $ac_cv_safe_to_define___extensions__ = yes &&
|
|
3549 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
|
|
3550
|
|
3551 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
|
|
3552
|
|
3553 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
|
|
3554
|
|
3555 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
|
|
3556
|
|
3557 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
|
|
3558
|
|
3559
|
|
3560 # Check whether --enable-largefile was given.
|
|
3561 if test "${enable_largefile+set}" = set; then :
|
|
3562 enableval=$enable_largefile;
|
|
3563 fi
|
|
3564
|
|
3565 if test "$enable_largefile" != no; then
|
|
3566
|
|
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
|
|
3568 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
|
|
3569 if ${ac_cv_sys_largefile_CC+:} false; then :
|
|
3570 $as_echo_n "(cached) " >&6
|
|
3571 else
|
|
3572 ac_cv_sys_largefile_CC=no
|
|
3573 if test "$GCC" != yes; then
|
|
3574 ac_save_CC=$CC
|
|
3575 while :; do
|
|
3576 # IRIX 6.2 and later do not support large files by default,
|
|
3577 # so use the C compiler's -n32 option if that helps.
|
|
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
3579 /* end confdefs.h. */
|
|
3580 #include <sys/types.h>
|
|
3581 /* Check that off_t can represent 2**63 - 1 correctly.
|
|
3582 We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
|
3583 since some C++ compilers masquerading as C compilers
|
|
3584 incorrectly reject 9223372036854775807. */
|
|
3585 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
|
3586 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
|
3587 && LARGE_OFF_T % 2147483647 == 1)
|
|
3588 ? 1 : -1];
|
|
3589 int
|
|
3590 main ()
|
|
3591 {
|
|
3592
|
|
3593 ;
|
|
3594 return 0;
|
|
3595 }
|
|
3596 _ACEOF
|
|
3597 if ac_fn_c_try_compile "$LINENO"; then :
|
|
3598 break
|
|
3599 fi
|
|
3600 rm -f core conftest.err conftest.$ac_objext
|
|
3601 CC="$CC -n32"
|
|
3602 if ac_fn_c_try_compile "$LINENO"; then :
|
|
3603 ac_cv_sys_largefile_CC=' -n32'; break
|
|
3604 fi
|
|
3605 rm -f core conftest.err conftest.$ac_objext
|
|
3606 break
|
|
3607 done
|
|
3608 CC=$ac_save_CC
|
|
3609 rm -f conftest.$ac_ext
|
|
3610 fi
|
|
3611 fi
|
|
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
|
|
3613 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
|
|
3614 if test "$ac_cv_sys_largefile_CC" != no; then
|
|
3615 CC=$CC$ac_cv_sys_largefile_CC
|
|
3616 fi
|
|
3617
|
|
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
|
|
3619 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
|
|
3620 if ${ac_cv_sys_file_offset_bits+:} false; then :
|
|
3621 $as_echo_n "(cached) " >&6
|
|
3622 else
|
|
3623 while :; do
|
|
3624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
3625 /* end confdefs.h. */
|
|
3626 #include <sys/types.h>
|
|
3627 /* Check that off_t can represent 2**63 - 1 correctly.
|
|
3628 We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
|
3629 since some C++ compilers masquerading as C compilers
|
|
3630 incorrectly reject 9223372036854775807. */
|
|
3631 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
|
3632 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
|
3633 && LARGE_OFF_T % 2147483647 == 1)
|
|
3634 ? 1 : -1];
|
|
3635 int
|
|
3636 main ()
|
|
3637 {
|
|
3638
|
|
3639 ;
|
|
3640 return 0;
|
|
3641 }
|
|
3642 _ACEOF
|
|
3643 if ac_fn_c_try_compile "$LINENO"; then :
|
|
3644 ac_cv_sys_file_offset_bits=no; break
|
|
3645 fi
|
|
3646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
3647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
3648 /* end confdefs.h. */
|
|
3649 #define _FILE_OFFSET_BITS 64
|
|
3650 #include <sys/types.h>
|
|
3651 /* Check that off_t can represent 2**63 - 1 correctly.
|
|
3652 We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
|
3653 since some C++ compilers masquerading as C compilers
|
|
3654 incorrectly reject 9223372036854775807. */
|
|
3655 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
|
3656 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
|
3657 && LARGE_OFF_T % 2147483647 == 1)
|
|
3658 ? 1 : -1];
|
|
3659 int
|
|
3660 main ()
|
|
3661 {
|
|
3662
|
|
3663 ;
|
|
3664 return 0;
|
|
3665 }
|
|
3666 _ACEOF
|
|
3667 if ac_fn_c_try_compile "$LINENO"; then :
|
|
3668 ac_cv_sys_file_offset_bits=64; break
|
|
3669 fi
|
|
3670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
3671 ac_cv_sys_file_offset_bits=unknown
|
|
3672 break
|
|
3673 done
|
|
3674 fi
|
|
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
|
|
3676 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
|
|
3677 case $ac_cv_sys_file_offset_bits in #(
|
|
3678 no | unknown) ;;
|
|
3679 *)
|
|
3680 cat >>confdefs.h <<_ACEOF
|
|
3681 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
|
|
3682 _ACEOF
|
|
3683 ;;
|
|
3684 esac
|
|
3685 rm -rf conftest*
|
|
3686 if test $ac_cv_sys_file_offset_bits = unknown; then
|
|
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
|
|
3688 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
|
|
3689 if ${ac_cv_sys_large_files+:} false; then :
|
|
3690 $as_echo_n "(cached) " >&6
|
|
3691 else
|
|
3692 while :; do
|
|
3693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
3694 /* end confdefs.h. */
|
|
3695 #include <sys/types.h>
|
|
3696 /* Check that off_t can represent 2**63 - 1 correctly.
|
|
3697 We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
|
3698 since some C++ compilers masquerading as C compilers
|
|
3699 incorrectly reject 9223372036854775807. */
|
|
3700 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
|
3701 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
|
3702 && LARGE_OFF_T % 2147483647 == 1)
|
|
3703 ? 1 : -1];
|
|
3704 int
|
|
3705 main ()
|
|
3706 {
|
|
3707
|
|
3708 ;
|
|
3709 return 0;
|
|
3710 }
|
|
3711 _ACEOF
|
|
3712 if ac_fn_c_try_compile "$LINENO"; then :
|
|
3713 ac_cv_sys_large_files=no; break
|
|
3714 fi
|
|
3715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
3716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
3717 /* end confdefs.h. */
|
|
3718 #define _LARGE_FILES 1
|
|
3719 #include <sys/types.h>
|
|
3720 /* Check that off_t can represent 2**63 - 1 correctly.
|
|
3721 We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
|
3722 since some C++ compilers masquerading as C compilers
|
|
3723 incorrectly reject 9223372036854775807. */
|
|
3724 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
|
3725 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
|
3726 && LARGE_OFF_T % 2147483647 == 1)
|
|
3727 ? 1 : -1];
|
|
3728 int
|
|
3729 main ()
|
|
3730 {
|
|
3731
|
|
3732 ;
|
|
3733 return 0;
|
|
3734 }
|
|
3735 _ACEOF
|
|
3736 if ac_fn_c_try_compile "$LINENO"; then :
|
|
3737 ac_cv_sys_large_files=1; break
|
|
3738 fi
|
|
3739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
3740 ac_cv_sys_large_files=unknown
|
|
3741 break
|
|
3742 done
|
|
3743 fi
|
|
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
|
|
3745 $as_echo "$ac_cv_sys_large_files" >&6; }
|
|
3746 case $ac_cv_sys_large_files in #(
|
|
3747 no | unknown) ;;
|
|
3748 *)
|
|
3749 cat >>confdefs.h <<_ACEOF
|
|
3750 #define _LARGE_FILES $ac_cv_sys_large_files
|
|
3751 _ACEOF
|
|
3752 ;;
|
|
3753 esac
|
|
3754 rm -rf conftest*
|
|
3755 fi
|
|
3756
|
|
3757
|
|
3758 fi
|
|
3759
|
|
3760 ac_ext=c
|
|
3761 ac_cpp='$CPP $CPPFLAGS'
|
|
3762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
3763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
3764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
3765 if test -n "$ac_tool_prefix"; then
|
|
3766 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
|
3767 set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
|
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
3769 $as_echo_n "checking for $ac_word... " >&6; }
|
|
3770 if ${ac_cv_prog_CC+:} false; then :
|
|
3771 $as_echo_n "(cached) " >&6
|
|
3772 else
|
|
3773 if test -n "$CC"; then
|
|
3774 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
3775 else
|
|
3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
3777 for as_dir in $PATH
|
|
3778 do
|
|
3779 IFS=$as_save_IFS
|
|
3780 test -z "$as_dir" && as_dir=.
|
|
3781 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
3782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
3783 ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
|
3784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
3785 break 2
|
|
3786 fi
|
|
3787 done
|
|
3788 done
|
|
3789 IFS=$as_save_IFS
|
|
3790
|
|
3791 fi
|
|
3792 fi
|
|
3793 CC=$ac_cv_prog_CC
|
|
3794 if test -n "$CC"; then
|
|
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
|
3796 $as_echo "$CC" >&6; }
|
|
3797 else
|
|
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
3799 $as_echo "no" >&6; }
|
|
3800 fi
|
|
3801
|
|
3802
|
|
3803 fi
|
|
3804 if test -z "$ac_cv_prog_CC"; then
|
|
3805 ac_ct_CC=$CC
|
|
3806 # Extract the first word of "gcc", so it can be a program name with args.
|
|
3807 set dummy gcc; ac_word=$2
|
|
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
3809 $as_echo_n "checking for $ac_word... " >&6; }
|
|
3810 if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
|
3811 $as_echo_n "(cached) " >&6
|
|
3812 else
|
|
3813 if test -n "$ac_ct_CC"; then
|
|
3814 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
|
3815 else
|
|
3816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
3817 for as_dir in $PATH
|
|
3818 do
|
|
3819 IFS=$as_save_IFS
|
|
3820 test -z "$as_dir" && as_dir=.
|
|
3821 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
3822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
3823 ac_cv_prog_ac_ct_CC="gcc"
|
|
3824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
3825 break 2
|
|
3826 fi
|
|
3827 done
|
|
3828 done
|
|
3829 IFS=$as_save_IFS
|
|
3830
|
|
3831 fi
|
|
3832 fi
|
|
3833 ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
|
3834 if test -n "$ac_ct_CC"; then
|
|
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
|
3836 $as_echo "$ac_ct_CC" >&6; }
|
|
3837 else
|
|
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
3839 $as_echo "no" >&6; }
|
|
3840 fi
|
|
3841
|
|
3842 if test "x$ac_ct_CC" = x; then
|
|
3843 CC=""
|
|
3844 else
|
|
3845 case $cross_compiling:$ac_tool_warned in
|
|
3846 yes:)
|
|
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
3848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
3849 ac_tool_warned=yes ;;
|
|
3850 esac
|
|
3851 CC=$ac_ct_CC
|
|
3852 fi
|
|
3853 else
|
|
3854 CC="$ac_cv_prog_CC"
|
|
3855 fi
|
|
3856
|
|
3857 if test -z "$CC"; then
|
|
3858 if test -n "$ac_tool_prefix"; then
|
|
3859 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
|
3860 set dummy ${ac_tool_prefix}cc; ac_word=$2
|
|
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
3862 $as_echo_n "checking for $ac_word... " >&6; }
|
|
3863 if ${ac_cv_prog_CC+:} false; then :
|
|
3864 $as_echo_n "(cached) " >&6
|
|
3865 else
|
|
3866 if test -n "$CC"; then
|
|
3867 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
3868 else
|
|
3869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
3870 for as_dir in $PATH
|
|
3871 do
|
|
3872 IFS=$as_save_IFS
|
|
3873 test -z "$as_dir" && as_dir=.
|
|
3874 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
3875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
3876 ac_cv_prog_CC="${ac_tool_prefix}cc"
|
|
3877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
3878 break 2
|
|
3879 fi
|
|
3880 done
|
|
3881 done
|
|
3882 IFS=$as_save_IFS
|
|
3883
|
|
3884 fi
|
|
3885 fi
|
|
3886 CC=$ac_cv_prog_CC
|
|
3887 if test -n "$CC"; then
|
|
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
|
3889 $as_echo "$CC" >&6; }
|
|
3890 else
|
|
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
3892 $as_echo "no" >&6; }
|
|
3893 fi
|
|
3894
|
|
3895
|
|
3896 fi
|
|
3897 fi
|
|
3898 if test -z "$CC"; then
|
|
3899 # Extract the first word of "cc", so it can be a program name with args.
|
|
3900 set dummy cc; ac_word=$2
|
|
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
3902 $as_echo_n "checking for $ac_word... " >&6; }
|
|
3903 if ${ac_cv_prog_CC+:} false; then :
|
|
3904 $as_echo_n "(cached) " >&6
|
|
3905 else
|
|
3906 if test -n "$CC"; then
|
|
3907 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
3908 else
|
|
3909 ac_prog_rejected=no
|
|
3910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
3911 for as_dir in $PATH
|
|
3912 do
|
|
3913 IFS=$as_save_IFS
|
|
3914 test -z "$as_dir" && as_dir=.
|
|
3915 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
3916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
3917 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
|
3918 ac_prog_rejected=yes
|
|
3919 continue
|
|
3920 fi
|
|
3921 ac_cv_prog_CC="cc"
|
|
3922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
3923 break 2
|
|
3924 fi
|
|
3925 done
|
|
3926 done
|
|
3927 IFS=$as_save_IFS
|
|
3928
|
|
3929 if test $ac_prog_rejected = yes; then
|
|
3930 # We found a bogon in the path, so make sure we never use it.
|
|
3931 set dummy $ac_cv_prog_CC
|
|
3932 shift
|
|
3933 if test $# != 0; then
|
|
3934 # We chose a different compiler from the bogus one.
|
|
3935 # However, it has the same basename, so the bogon will be chosen
|
|
3936 # first if we set CC to just the basename; use the full file name.
|
|
3937 shift
|
|
3938 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
|
3939 fi
|
|
3940 fi
|
|
3941 fi
|
|
3942 fi
|
|
3943 CC=$ac_cv_prog_CC
|
|
3944 if test -n "$CC"; then
|
|
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
|
3946 $as_echo "$CC" >&6; }
|
|
3947 else
|
|
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
3949 $as_echo "no" >&6; }
|
|
3950 fi
|
|
3951
|
|
3952
|
|
3953 fi
|
|
3954 if test -z "$CC"; then
|
|
3955 if test -n "$ac_tool_prefix"; then
|
|
3956 for ac_prog in cl.exe
|
|
3957 do
|
|
3958 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
|
3959 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
|
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
3961 $as_echo_n "checking for $ac_word... " >&6; }
|
|
3962 if ${ac_cv_prog_CC+:} false; then :
|
|
3963 $as_echo_n "(cached) " >&6
|
|
3964 else
|
|
3965 if test -n "$CC"; then
|
|
3966 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
3967 else
|
|
3968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
3969 for as_dir in $PATH
|
|
3970 do
|
|
3971 IFS=$as_save_IFS
|
|
3972 test -z "$as_dir" && as_dir=.
|
|
3973 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
3974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
3975 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
|
3976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
3977 break 2
|
|
3978 fi
|
|
3979 done
|
|
3980 done
|
|
3981 IFS=$as_save_IFS
|
|
3982
|
|
3983 fi
|
|
3984 fi
|
|
3985 CC=$ac_cv_prog_CC
|
|
3986 if test -n "$CC"; then
|
|
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
|
3988 $as_echo "$CC" >&6; }
|
|
3989 else
|
|
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
3991 $as_echo "no" >&6; }
|
|
3992 fi
|
|
3993
|
|
3994
|
|
3995 test -n "$CC" && break
|
|
3996 done
|
|
3997 fi
|
|
3998 if test -z "$CC"; then
|
|
3999 ac_ct_CC=$CC
|
|
4000 for ac_prog in cl.exe
|
|
4001 do
|
|
4002 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
4003 set dummy $ac_prog; ac_word=$2
|
|
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
4005 $as_echo_n "checking for $ac_word... " >&6; }
|
|
4006 if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
|
4007 $as_echo_n "(cached) " >&6
|
|
4008 else
|
|
4009 if test -n "$ac_ct_CC"; then
|
|
4010 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
|
4011 else
|
|
4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
4013 for as_dir in $PATH
|
|
4014 do
|
|
4015 IFS=$as_save_IFS
|
|
4016 test -z "$as_dir" && as_dir=.
|
|
4017 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
4018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
4019 ac_cv_prog_ac_ct_CC="$ac_prog"
|
|
4020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
4021 break 2
|
|
4022 fi
|
|
4023 done
|
|
4024 done
|
|
4025 IFS=$as_save_IFS
|
|
4026
|
|
4027 fi
|
|
4028 fi
|
|
4029 ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
|
4030 if test -n "$ac_ct_CC"; then
|
|
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
|
4032 $as_echo "$ac_ct_CC" >&6; }
|
|
4033 else
|
|
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
4035 $as_echo "no" >&6; }
|
|
4036 fi
|
|
4037
|
|
4038
|
|
4039 test -n "$ac_ct_CC" && break
|
|
4040 done
|
|
4041
|
|
4042 if test "x$ac_ct_CC" = x; then
|
|
4043 CC=""
|
|
4044 else
|
|
4045 case $cross_compiling:$ac_tool_warned in
|
|
4046 yes:)
|
|
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
4048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
4049 ac_tool_warned=yes ;;
|
|
4050 esac
|
|
4051 CC=$ac_ct_CC
|
|
4052 fi
|
|
4053 fi
|
|
4054
|
|
4055 fi
|
|
4056
|
|
4057
|
|
4058 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
4059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
4060 as_fn_error $? "no acceptable C compiler found in \$PATH
|
|
4061 See \`config.log' for more details" "$LINENO" 5; }
|
|
4062
|
|
4063 # Provide some information about the compiler.
|
|
4064 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
|
|
4065 set X $ac_compile
|
|
4066 ac_compiler=$2
|
|
4067 for ac_option in --version -v -V -qversion; do
|
|
4068 { { ac_try="$ac_compiler $ac_option >&5"
|
|
4069 case "(($ac_try" in
|
|
4070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
4071 *) ac_try_echo=$ac_try;;
|
|
4072 esac
|
|
4073 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
4074 $as_echo "$ac_try_echo"; } >&5
|
|
4075 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
|
4076 ac_status=$?
|
|
4077 if test -s conftest.err; then
|
|
4078 sed '10a\
|
|
4079 ... rest of stderr output deleted ...
|
|
4080 10q' conftest.err >conftest.er1
|
|
4081 cat conftest.er1 >&5
|
|
4082 fi
|
|
4083 rm -f conftest.er1 conftest.err
|
|
4084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
4085 test $ac_status = 0; }
|
|
4086 done
|
|
4087
|
|
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
|
|
4089 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
|
|
4090 if ${ac_cv_c_compiler_gnu+:} false; then :
|
|
4091 $as_echo_n "(cached) " >&6
|
|
4092 else
|
|
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
4094 /* end confdefs.h. */
|
|
4095
|
|
4096 int
|
|
4097 main ()
|
|
4098 {
|
|
4099 #ifndef __GNUC__
|
|
4100 choke me
|
|
4101 #endif
|
|
4102
|
|
4103 ;
|
|
4104 return 0;
|
|
4105 }
|
|
4106 _ACEOF
|
|
4107 if ac_fn_c_try_compile "$LINENO"; then :
|
|
4108 ac_compiler_gnu=yes
|
|
4109 else
|
|
4110 ac_compiler_gnu=no
|
|
4111 fi
|
|
4112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
4113 ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
|
4114
|
|
4115 fi
|
|
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
|
|
4117 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
|
|
4118 if test $ac_compiler_gnu = yes; then
|
|
4119 GCC=yes
|
|
4120 else
|
|
4121 GCC=
|
|
4122 fi
|
|
4123 ac_test_CFLAGS=${CFLAGS+set}
|
|
4124 ac_save_CFLAGS=$CFLAGS
|
|
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
|
|
4126 $as_echo_n "checking whether $CC accepts -g... " >&6; }
|
|
4127 if ${ac_cv_prog_cc_g+:} false; then :
|
|
4128 $as_echo_n "(cached) " >&6
|
|
4129 else
|
|
4130 ac_save_c_werror_flag=$ac_c_werror_flag
|
|
4131 ac_c_werror_flag=yes
|
|
4132 ac_cv_prog_cc_g=no
|
|
4133 CFLAGS="-g"
|
|
4134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
4135 /* end confdefs.h. */
|
|
4136
|
|
4137 int
|
|
4138 main ()
|
|
4139 {
|
|
4140
|
|
4141 ;
|
|
4142 return 0;
|
|
4143 }
|
|
4144 _ACEOF
|
|
4145 if ac_fn_c_try_compile "$LINENO"; then :
|
|
4146 ac_cv_prog_cc_g=yes
|
|
4147 else
|
|
4148 CFLAGS=""
|
|
4149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
4150 /* end confdefs.h. */
|
|
4151
|
|
4152 int
|
|
4153 main ()
|
|
4154 {
|
|
4155
|
|
4156 ;
|
|
4157 return 0;
|
|
4158 }
|
|
4159 _ACEOF
|
|
4160 if ac_fn_c_try_compile "$LINENO"; then :
|
|
4161
|
|
4162 else
|
|
4163 ac_c_werror_flag=$ac_save_c_werror_flag
|
|
4164 CFLAGS="-g"
|
|
4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
4166 /* end confdefs.h. */
|
|
4167
|
|
4168 int
|
|
4169 main ()
|
|
4170 {
|
|
4171
|
|
4172 ;
|
|
4173 return 0;
|
|
4174 }
|
|
4175 _ACEOF
|
|
4176 if ac_fn_c_try_compile "$LINENO"; then :
|
|
4177 ac_cv_prog_cc_g=yes
|
|
4178 fi
|
|
4179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
4180 fi
|
|
4181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
4182 fi
|
|
4183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
4184 ac_c_werror_flag=$ac_save_c_werror_flag
|
|
4185 fi
|
|
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
|
|
4187 $as_echo "$ac_cv_prog_cc_g" >&6; }
|
|
4188 if test "$ac_test_CFLAGS" = set; then
|
|
4189 CFLAGS=$ac_save_CFLAGS
|
|
4190 elif test $ac_cv_prog_cc_g = yes; then
|
|
4191 if test "$GCC" = yes; then
|
|
4192 CFLAGS="-g -O2"
|
|
4193 else
|
|
4194 CFLAGS="-g"
|
|
4195 fi
|
|
4196 else
|
|
4197 if test "$GCC" = yes; then
|
|
4198 CFLAGS="-O2"
|
|
4199 else
|
|
4200 CFLAGS=
|
|
4201 fi
|
|
4202 fi
|
|
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
|
|
4204 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
|
|
4205 if ${ac_cv_prog_cc_c89+:} false; then :
|
|
4206 $as_echo_n "(cached) " >&6
|
|
4207 else
|
|
4208 ac_cv_prog_cc_c89=no
|
|
4209 ac_save_CC=$CC
|
|
4210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
4211 /* end confdefs.h. */
|
|
4212 #include <stdarg.h>
|
|
4213 #include <stdio.h>
|
|
4214 struct stat;
|
|
4215 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
|
4216 struct buf { int x; };
|
|
4217 FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
|
4218 static char *e (p, i)
|
|
4219 char **p;
|
|
4220 int i;
|
|
4221 {
|
|
4222 return p[i];
|
|
4223 }
|
|
4224 static char *f (char * (*g) (char **, int), char **p, ...)
|
|
4225 {
|
|
4226 char *s;
|
|
4227 va_list v;
|
|
4228 va_start (v,p);
|
|
4229 s = g (p, va_arg (v,int));
|
|
4230 va_end (v);
|
|
4231 return s;
|
|
4232 }
|
|
4233
|
|
4234 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
|
4235 function prototypes and stuff, but not '\xHH' hex character constants.
|
|
4236 These don't provoke an error unfortunately, instead are silently treated
|
|
4237 as 'x'. The following induces an error, until -std is added to get
|
|
4238 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
|
4239 array size at least. It's necessary to write '\x00'==0 to get something
|
|
4240 that's true only with -std. */
|
|
4241 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
|
4242
|
|
4243 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
|
4244 inside strings and character constants. */
|
|
4245 #define FOO(x) 'x'
|
|
4246 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
|
4247
|
|
4248 int test (int i, double x);
|
|
4249 struct s1 {int (*f) (int a);};
|
|
4250 struct s2 {int (*f) (double a);};
|
|
4251 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
|
4252 int argc;
|
|
4253 char **argv;
|
|
4254 int
|
|
4255 main ()
|
|
4256 {
|
|
4257 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
|
4258 ;
|
|
4259 return 0;
|
|
4260 }
|
|
4261 _ACEOF
|
|
4262 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
|
4263 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
|
4264 do
|
|
4265 CC="$ac_save_CC $ac_arg"
|
|
4266 if ac_fn_c_try_compile "$LINENO"; then :
|
|
4267 ac_cv_prog_cc_c89=$ac_arg
|
|
4268 fi
|
|
4269 rm -f core conftest.err conftest.$ac_objext
|
|
4270 test "x$ac_cv_prog_cc_c89" != "xno" && break
|
|
4271 done
|
|
4272 rm -f conftest.$ac_ext
|
|
4273 CC=$ac_save_CC
|
|
4274
|
|
4275 fi
|
|
4276 # AC_CACHE_VAL
|
|
4277 case "x$ac_cv_prog_cc_c89" in
|
|
4278 x)
|
|
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
|
4280 $as_echo "none needed" >&6; } ;;
|
|
4281 xno)
|
|
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
|
4283 $as_echo "unsupported" >&6; } ;;
|
|
4284 *)
|
|
4285 CC="$CC $ac_cv_prog_cc_c89"
|
|
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
|
|
4287 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
|
|
4288 esac
|
|
4289 if test "x$ac_cv_prog_cc_c89" != xno; then :
|
|
4290
|
|
4291 fi
|
|
4292
|
|
4293 ac_ext=c
|
|
4294 ac_cpp='$CPP $CPPFLAGS'
|
|
4295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
4296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
4297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
4298
|
|
4299 case $ac_cv_prog_cc_stdc in #(
|
|
4300 no) :
|
|
4301 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
|
|
4302 *) :
|
|
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
|
|
4304 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
|
|
4305 if ${ac_cv_prog_cc_c99+:} false; then :
|
|
4306 $as_echo_n "(cached) " >&6
|
|
4307 else
|
|
4308 ac_cv_prog_cc_c99=no
|
|
4309 ac_save_CC=$CC
|
|
4310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
4311 /* end confdefs.h. */
|
|
4312 #include <stdarg.h>
|
|
4313 #include <stdbool.h>
|
|
4314 #include <stdlib.h>
|
|
4315 #include <wchar.h>
|
|
4316 #include <stdio.h>
|
|
4317
|
|
4318 // Check varargs macros. These examples are taken from C99 6.10.3.5.
|
|
4319 #define debug(...) fprintf (stderr, __VA_ARGS__)
|
|
4320 #define showlist(...) puts (#__VA_ARGS__)
|
|
4321 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
|
|
4322 static void
|
|
4323 test_varargs_macros (void)
|
|
4324 {
|
|
4325 int x = 1234;
|
|
4326 int y = 5678;
|
|
4327 debug ("Flag");
|
|
4328 debug ("X = %d\n", x);
|
|
4329 showlist (The first, second, and third items.);
|
|
4330 report (x>y, "x is %d but y is %d", x, y);
|
|
4331 }
|
|
4332
|
|
4333 // Check long long types.
|
|
4334 #define BIG64 18446744073709551615ull
|
|
4335 #define BIG32 4294967295ul
|
|
4336 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
|
|
4337 #if !BIG_OK
|
|
4338 your preprocessor is broken;
|
|
4339 #endif
|
|
4340 #if BIG_OK
|
|
4341 #else
|
|
4342 your preprocessor is broken;
|
|
4343 #endif
|
|
4344 static long long int bignum = -9223372036854775807LL;
|
|
4345 static unsigned long long int ubignum = BIG64;
|
|
4346
|
|
4347 struct incomplete_array
|
|
4348 {
|
|
4349 int datasize;
|
|
4350 double data[];
|
|
4351 };
|
|
4352
|
|
4353 struct named_init {
|
|
4354 int number;
|
|
4355 const wchar_t *name;
|
|
4356 double average;
|
|
4357 };
|
|
4358
|
|
4359 typedef const char *ccp;
|
|
4360
|
|
4361 static inline int
|
|
4362 test_restrict (ccp restrict text)
|
|
4363 {
|
|
4364 // See if C++-style comments work.
|
|
4365 // Iterate through items via the restricted pointer.
|
|
4366 // Also check for declarations in for loops.
|
|
4367 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
|
|
4368 continue;
|
|
4369 return 0;
|
|
4370 }
|
|
4371
|
|
4372 // Check varargs and va_copy.
|
|
4373 static void
|
|
4374 test_varargs (const char *format, ...)
|
|
4375 {
|
|
4376 va_list args;
|
|
4377 va_start (args, format);
|
|
4378 va_list args_copy;
|
|
4379 va_copy (args_copy, args);
|
|
4380
|
|
4381 const char *str;
|
|
4382 int number;
|
|
4383 float fnumber;
|
|
4384
|
|
4385 while (*format)
|
|
4386 {
|
|
4387 switch (*format++)
|
|
4388 {
|
|
4389 case 's': // string
|
|
4390 str = va_arg (args_copy, const char *);
|
|
4391 break;
|
|
4392 case 'd': // int
|
|
4393 number = va_arg (args_copy, int);
|
|
4394 break;
|
|
4395 case 'f': // float
|
|
4396 fnumber = va_arg (args_copy, double);
|
|
4397 break;
|
|
4398 default:
|
|
4399 break;
|
|
4400 }
|
|
4401 }
|
|
4402 va_end (args_copy);
|
|
4403 va_end (args);
|
|
4404 }
|
|
4405
|
|
4406 int
|
|
4407 main ()
|
|
4408 {
|
|
4409
|
|
4410 // Check bool.
|
|
4411 _Bool success = false;
|
|
4412
|
|
4413 // Check restrict.
|
|
4414 if (test_restrict ("String literal") == 0)
|
|
4415 success = true;
|
|
4416 char *restrict newvar = "Another string";
|
|
4417
|
|
4418 // Check varargs.
|
|
4419 test_varargs ("s, d' f .", "string", 65, 34.234);
|
|
4420 test_varargs_macros ();
|
|
4421
|
|
4422 // Check flexible array members.
|
|
4423 struct incomplete_array *ia =
|
|
4424 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
|
|
4425 ia->datasize = 10;
|
|
4426 for (int i = 0; i < ia->datasize; ++i)
|
|
4427 ia->data[i] = i * 1.234;
|
|
4428
|
|
4429 // Check named initializers.
|
|
4430 struct named_init ni = {
|
|
4431 .number = 34,
|
|
4432 .name = L"Test wide string",
|
|
4433 .average = 543.34343,
|
|
4434 };
|
|
4435
|
|
4436 ni.number = 58;
|
|
4437
|
|
4438 int dynamic_array[ni.number];
|
|
4439 dynamic_array[ni.number - 1] = 543;
|
|
4440
|
|
4441 // work around unused variable warnings
|
|
4442 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
|
|
4443 || dynamic_array[ni.number - 1] != 543);
|
|
4444
|
|
4445 ;
|
|
4446 return 0;
|
|
4447 }
|
|
4448 _ACEOF
|
|
4449 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
|
|
4450 do
|
|
4451 CC="$ac_save_CC $ac_arg"
|
|
4452 if ac_fn_c_try_compile "$LINENO"; then :
|
|
4453 ac_cv_prog_cc_c99=$ac_arg
|
|
4454 fi
|
|
4455 rm -f core conftest.err conftest.$ac_objext
|
|
4456 test "x$ac_cv_prog_cc_c99" != "xno" && break
|
|
4457 done
|
|
4458 rm -f conftest.$ac_ext
|
|
4459 CC=$ac_save_CC
|
|
4460
|
|
4461 fi
|
|
4462 # AC_CACHE_VAL
|
|
4463 case "x$ac_cv_prog_cc_c99" in
|
|
4464 x)
|
|
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
|
4466 $as_echo "none needed" >&6; } ;;
|
|
4467 xno)
|
|
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
|
4469 $as_echo "unsupported" >&6; } ;;
|
|
4470 *)
|
|
4471 CC="$CC $ac_cv_prog_cc_c99"
|
|
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
|
|
4473 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
|
|
4474 esac
|
|
4475 if test "x$ac_cv_prog_cc_c99" != xno; then :
|
|
4476 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
|
|
4477 else
|
|
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
|
|
4479 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
|
|
4480 if ${ac_cv_prog_cc_c89+:} false; then :
|
|
4481 $as_echo_n "(cached) " >&6
|
|
4482 else
|
|
4483 ac_cv_prog_cc_c89=no
|
|
4484 ac_save_CC=$CC
|
|
4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
4486 /* end confdefs.h. */
|
|
4487 #include <stdarg.h>
|
|
4488 #include <stdio.h>
|
|
4489 struct stat;
|
|
4490 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
|
4491 struct buf { int x; };
|
|
4492 FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
|
4493 static char *e (p, i)
|
|
4494 char **p;
|
|
4495 int i;
|
|
4496 {
|
|
4497 return p[i];
|
|
4498 }
|
|
4499 static char *f (char * (*g) (char **, int), char **p, ...)
|
|
4500 {
|
|
4501 char *s;
|
|
4502 va_list v;
|
|
4503 va_start (v,p);
|
|
4504 s = g (p, va_arg (v,int));
|
|
4505 va_end (v);
|
|
4506 return s;
|
|
4507 }
|
|
4508
|
|
4509 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
|
4510 function prototypes and stuff, but not '\xHH' hex character constants.
|
|
4511 These don't provoke an error unfortunately, instead are silently treated
|
|
4512 as 'x'. The following induces an error, until -std is added to get
|
|
4513 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
|
4514 array size at least. It's necessary to write '\x00'==0 to get something
|
|
4515 that's true only with -std. */
|
|
4516 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
|
4517
|
|
4518 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
|
4519 inside strings and character constants. */
|
|
4520 #define FOO(x) 'x'
|
|
4521 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
|
4522
|
|
4523 int test (int i, double x);
|
|
4524 struct s1 {int (*f) (int a);};
|
|
4525 struct s2 {int (*f) (double a);};
|
|
4526 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
|
4527 int argc;
|
|
4528 char **argv;
|
|
4529 int
|
|
4530 main ()
|
|
4531 {
|
|
4532 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
|
4533 ;
|
|
4534 return 0;
|
|
4535 }
|
|
4536 _ACEOF
|
|
4537 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
|
4538 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
|
4539 do
|
|
4540 CC="$ac_save_CC $ac_arg"
|
|
4541 if ac_fn_c_try_compile "$LINENO"; then :
|
|
4542 ac_cv_prog_cc_c89=$ac_arg
|
|
4543 fi
|
|
4544 rm -f core conftest.err conftest.$ac_objext
|
|
4545 test "x$ac_cv_prog_cc_c89" != "xno" && break
|
|
4546 done
|
|
4547 rm -f conftest.$ac_ext
|
|
4548 CC=$ac_save_CC
|
|
4549
|
|
4550 fi
|
|
4551 # AC_CACHE_VAL
|
|
4552 case "x$ac_cv_prog_cc_c89" in
|
|
4553 x)
|
|
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
|
4555 $as_echo "none needed" >&6; } ;;
|
|
4556 xno)
|
|
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
|
4558 $as_echo "unsupported" >&6; } ;;
|
|
4559 *)
|
|
4560 CC="$CC $ac_cv_prog_cc_c89"
|
|
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
|
|
4562 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
|
|
4563 esac
|
|
4564 if test "x$ac_cv_prog_cc_c89" != xno; then :
|
|
4565 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
|
|
4566 else
|
|
4567 ac_cv_prog_cc_stdc=no
|
|
4568 fi
|
|
4569
|
|
4570 fi
|
|
4571 ;;
|
|
4572 esac
|
|
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
|
|
4574 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
|
|
4575 if ${ac_cv_prog_cc_stdc+:} false; then :
|
|
4576 $as_echo_n "(cached) " >&6
|
|
4577 fi
|
|
4578
|
|
4579 case $ac_cv_prog_cc_stdc in #(
|
|
4580 no) :
|
|
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
|
4582 $as_echo "unsupported" >&6; } ;; #(
|
|
4583 '') :
|
|
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
|
4585 $as_echo "none needed" >&6; } ;; #(
|
|
4586 *) :
|
|
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
|
|
4588 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
|
|
4589 esac
|
|
4590
|
|
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
|
|
4592 $as_echo_n "checking whether ln -s works... " >&6; }
|
|
4593 LN_S=$as_ln_s
|
|
4594 if test "$LN_S" = "ln -s"; then
|
|
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
4596 $as_echo "yes" >&6; }
|
|
4597 else
|
|
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
|
|
4599 $as_echo "no, using $LN_S" >&6; }
|
|
4600 fi
|
|
4601
|
|
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
|
4603 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
|
|
4604 set x ${MAKE-make}
|
|
4605 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
|
4606 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
|
|
4607 $as_echo_n "(cached) " >&6
|
|
4608 else
|
|
4609 cat >conftest.make <<\_ACEOF
|
|
4610 SHELL = /bin/sh
|
|
4611 all:
|
|
4612 @echo '@@@%%%=$(MAKE)=@@@%%%'
|
|
4613 _ACEOF
|
|
4614 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
|
|
4615 case `${MAKE-make} -f conftest.make 2>/dev/null` in
|
|
4616 *@@@%%%=?*=@@@%%%*)
|
|
4617 eval ac_cv_prog_make_${ac_make}_set=yes;;
|
|
4618 *)
|
|
4619 eval ac_cv_prog_make_${ac_make}_set=no;;
|
|
4620 esac
|
|
4621 rm -f conftest.make
|
|
4622 fi
|
|
4623 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
|
|
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
4625 $as_echo "yes" >&6; }
|
|
4626 SET_MAKE=
|
|
4627 else
|
|
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
4629 $as_echo "no" >&6; }
|
|
4630 SET_MAKE="MAKE=${MAKE-make}"
|
|
4631 fi
|
|
4632
|
|
4633 ac_aux_dir=
|
|
4634 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
|
|
4635 if test -f "$ac_dir/install-sh"; then
|
|
4636 ac_aux_dir=$ac_dir
|
|
4637 ac_install_sh="$ac_aux_dir/install-sh -c"
|
|
4638 break
|
|
4639 elif test -f "$ac_dir/install.sh"; then
|
|
4640 ac_aux_dir=$ac_dir
|
|
4641 ac_install_sh="$ac_aux_dir/install.sh -c"
|
|
4642 break
|
|
4643 elif test -f "$ac_dir/shtool"; then
|
|
4644 ac_aux_dir=$ac_dir
|
|
4645 ac_install_sh="$ac_aux_dir/shtool install -c"
|
|
4646 break
|
|
4647 fi
|
|
4648 done
|
|
4649 if test -z "$ac_aux_dir"; then
|
|
4650 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
|
|
4651 fi
|
|
4652
|
|
4653 # These three variables are undocumented and unsupported,
|
|
4654 # and are intended to be withdrawn in a future Autoconf release.
|
|
4655 # They can cause serious problems if a builder's source tree is in a directory
|
|
4656 # whose full name contains unusual characters.
|
|
4657 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
|
|
4658 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
|
4659 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
|
4660
|
|
4661
|
|
4662 # Find a good install program. We prefer a C program (faster),
|
|
4663 # so one script is as good as another. But avoid the broken or
|
|
4664 # incompatible versions:
|
|
4665 # SysV /etc/install, /usr/sbin/install
|
|
4666 # SunOS /usr/etc/install
|
|
4667 # IRIX /sbin/install
|
|
4668 # AIX /bin/install
|
|
4669 # AmigaOS /C/install, which installs bootblocks on floppy discs
|
|
4670 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
|
4671 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
|
4672 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
|
4673 # OS/2's system install, which has a completely different semantic
|
|
4674 # ./install, which can be erroneously created by make from ./install.sh.
|
|
4675 # Reject install programs that cannot install multiple files.
|
|
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
|
|
4677 $as_echo_n "checking for a BSD-compatible install... " >&6; }
|
|
4678 if test -z "$INSTALL"; then
|
|
4679 if ${ac_cv_path_install+:} false; then :
|
|
4680 $as_echo_n "(cached) " >&6
|
|
4681 else
|
|
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
4683 for as_dir in $PATH
|
|
4684 do
|
|
4685 IFS=$as_save_IFS
|
|
4686 test -z "$as_dir" && as_dir=.
|
|
4687 # Account for people who put trailing slashes in PATH elements.
|
|
4688 case $as_dir/ in #((
|
|
4689 ./ | .// | /[cC]/* | \
|
|
4690 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
|
4691 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
|
|
4692 /usr/ucb/* ) ;;
|
|
4693 *)
|
|
4694 # OSF1 and SCO ODT 3.0 have their own names for install.
|
|
4695 # Don't use installbsd from OSF since it installs stuff as root
|
|
4696 # by default.
|
|
4697 for ac_prog in ginstall scoinst install; do
|
|
4698 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
4699 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
|
4700 if test $ac_prog = install &&
|
|
4701 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
|
4702 # AIX install. It has an incompatible calling convention.
|
|
4703 :
|
|
4704 elif test $ac_prog = install &&
|
|
4705 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
|
4706 # program-specific install script used by HP pwplus--don't use.
|
|
4707 :
|
|
4708 else
|
|
4709 rm -rf conftest.one conftest.two conftest.dir
|
|
4710 echo one > conftest.one
|
|
4711 echo two > conftest.two
|
|
4712 mkdir conftest.dir
|
|
4713 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
|
|
4714 test -s conftest.one && test -s conftest.two &&
|
|
4715 test -s conftest.dir/conftest.one &&
|
|
4716 test -s conftest.dir/conftest.two
|
|
4717 then
|
|
4718 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
|
4719 break 3
|
|
4720 fi
|
|
4721 fi
|
|
4722 fi
|
|
4723 done
|
|
4724 done
|
|
4725 ;;
|
|
4726 esac
|
|
4727
|
|
4728 done
|
|
4729 IFS=$as_save_IFS
|
|
4730
|
|
4731 rm -rf conftest.one conftest.two conftest.dir
|
|
4732
|
|
4733 fi
|
|
4734 if test "${ac_cv_path_install+set}" = set; then
|
|
4735 INSTALL=$ac_cv_path_install
|
|
4736 else
|
|
4737 # As a last resort, use the slow shell script. Don't cache a
|
|
4738 # value for INSTALL within a source directory, because that will
|
|
4739 # break other packages using the cache if that directory is
|
|
4740 # removed, or if the value is a relative name.
|
|
4741 INSTALL=$ac_install_sh
|
|
4742 fi
|
|
4743 fi
|
|
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
|
|
4745 $as_echo "$INSTALL" >&6; }
|
|
4746
|
|
4747 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
|
4748 # It thinks the first close brace ends the variable substitution.
|
|
4749 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
|
4750
|
|
4751 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
|
4752
|
|
4753 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|
4754
|
|
4755
|
|
4756 if test x"$pa_init_cflags" = x; then
|
|
4757 CFLAGS=`echo "$CFLAGS" | sed -e 's/-O2/-O3/'`
|
|
4758 fi
|
|
4759
|
|
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of library files" >&5
|
|
4761 $as_echo_n "checking for suffix of library files... " >&6; }
|
|
4762 if test x"$LIBEXT" = x; then
|
|
4763 case "$OBJEXT" in
|
|
4764 obj )
|
|
4765 LIBEXT=lib
|
|
4766 ;;
|
|
4767 *)
|
|
4768 LIBEXT=a
|
|
4769 ;;
|
|
4770 esac
|
|
4771 fi
|
|
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXT" >&5
|
|
4773 $as_echo "$LIBEXT" >&6; }
|
|
4774
|
|
4775
|
|
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
|
|
4777 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
|
|
4778 if ${ac_cv_c_const+:} false; then :
|
|
4779 $as_echo_n "(cached) " >&6
|
|
4780 else
|
|
4781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
4782 /* end confdefs.h. */
|
|
4783
|
|
4784 int
|
|
4785 main ()
|
|
4786 {
|
|
4787
|
|
4788 #ifndef __cplusplus
|
|
4789 /* Ultrix mips cc rejects this sort of thing. */
|
|
4790 typedef int charset[2];
|
|
4791 const charset cs = { 0, 0 };
|
|
4792 /* SunOS 4.1.1 cc rejects this. */
|
|
4793 char const *const *pcpcc;
|
|
4794 char **ppc;
|
|
4795 /* NEC SVR4.0.2 mips cc rejects this. */
|
|
4796 struct point {int x, y;};
|
|
4797 static struct point const zero = {0,0};
|
|
4798 /* AIX XL C 1.02.0.0 rejects this.
|
|
4799 It does not let you subtract one const X* pointer from another in
|
|
4800 an arm of an if-expression whose if-part is not a constant
|
|
4801 expression */
|
|
4802 const char *g = "string";
|
|
4803 pcpcc = &g + (g ? g-g : 0);
|
|
4804 /* HPUX 7.0 cc rejects these. */
|
|
4805 ++pcpcc;
|
|
4806 ppc = (char**) pcpcc;
|
|
4807 pcpcc = (char const *const *) ppc;
|
|
4808 { /* SCO 3.2v4 cc rejects this sort of thing. */
|
|
4809 char tx;
|
|
4810 char *t = &tx;
|
|
4811 char const *s = 0 ? (char *) 0 : (char const *) 0;
|
|
4812
|
|
4813 *t++ = 0;
|
|
4814 if (s) return 0;
|
|
4815 }
|
|
4816 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
|
4817 int x[] = {25, 17};
|
|
4818 const int *foo = &x[0];
|
|
4819 ++foo;
|
|
4820 }
|
|
4821 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
|
4822 typedef const int *iptr;
|
|
4823 iptr p = 0;
|
|
4824 ++p;
|
|
4825 }
|
|
4826 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
|
|
4827 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
|
4828 struct s { int j; const int *ap[3]; } bx;
|
|
4829 struct s *b = &bx; b->j = 5;
|
|
4830 }
|
|
4831 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
|
4832 const int foo = 10;
|
|
4833 if (!foo) return 0;
|
|
4834 }
|
|
4835 return !cs[0] && !zero.x;
|
|
4836 #endif
|
|
4837
|
|
4838 ;
|
|
4839 return 0;
|
|
4840 }
|
|
4841 _ACEOF
|
|
4842 if ac_fn_c_try_compile "$LINENO"; then :
|
|
4843 ac_cv_c_const=yes
|
|
4844 else
|
|
4845 ac_cv_c_const=no
|
|
4846 fi
|
|
4847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
4848 fi
|
|
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
|
|
4850 $as_echo "$ac_cv_c_const" >&6; }
|
|
4851 if test $ac_cv_c_const = no; then
|
|
4852
|
|
4853 $as_echo "#define const /**/" >>confdefs.h
|
|
4854
|
|
4855 fi
|
|
4856
|
|
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
|
|
4858 $as_echo_n "checking for inline... " >&6; }
|
|
4859 if ${ac_cv_c_inline+:} false; then :
|
|
4860 $as_echo_n "(cached) " >&6
|
|
4861 else
|
|
4862 ac_cv_c_inline=no
|
|
4863 for ac_kw in inline __inline__ __inline; do
|
|
4864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
4865 /* end confdefs.h. */
|
|
4866 #ifndef __cplusplus
|
|
4867 typedef int foo_t;
|
|
4868 static $ac_kw foo_t static_foo () {return 0; }
|
|
4869 $ac_kw foo_t foo () {return 0; }
|
|
4870 #endif
|
|
4871
|
|
4872 _ACEOF
|
|
4873 if ac_fn_c_try_compile "$LINENO"; then :
|
|
4874 ac_cv_c_inline=$ac_kw
|
|
4875 fi
|
|
4876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
4877 test "$ac_cv_c_inline" != no && break
|
|
4878 done
|
|
4879
|
|
4880 fi
|
|
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
|
|
4882 $as_echo "$ac_cv_c_inline" >&6; }
|
|
4883
|
|
4884 case $ac_cv_c_inline in
|
|
4885 inline | yes) ;;
|
|
4886 *)
|
|
4887 case $ac_cv_c_inline in
|
|
4888 no) ac_val=;;
|
|
4889 *) ac_val=$ac_cv_c_inline;;
|
|
4890 esac
|
|
4891 cat >>confdefs.h <<_ACEOF
|
|
4892 #ifndef __cplusplus
|
|
4893 #define inline $ac_val
|
|
4894 #endif
|
|
4895 _ACEOF
|
|
4896 ;;
|
|
4897 esac
|
|
4898
|
|
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
|
|
4900 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
|
|
4901 if ${ac_cv_c_restrict+:} false; then :
|
|
4902 $as_echo_n "(cached) " >&6
|
|
4903 else
|
|
4904 ac_cv_c_restrict=no
|
|
4905 # The order here caters to the fact that C++ does not require restrict.
|
|
4906 for ac_kw in __restrict __restrict__ _Restrict restrict; do
|
|
4907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
4908 /* end confdefs.h. */
|
|
4909 typedef int * int_ptr;
|
|
4910 int foo (int_ptr $ac_kw ip) {
|
|
4911 return ip[0];
|
|
4912 }
|
|
4913 int
|
|
4914 main ()
|
|
4915 {
|
|
4916 int s[1];
|
|
4917 int * $ac_kw t = s;
|
|
4918 t[0] = 0;
|
|
4919 return foo(t)
|
|
4920 ;
|
|
4921 return 0;
|
|
4922 }
|
|
4923 _ACEOF
|
|
4924 if ac_fn_c_try_compile "$LINENO"; then :
|
|
4925 ac_cv_c_restrict=$ac_kw
|
|
4926 fi
|
|
4927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
4928 test "$ac_cv_c_restrict" != no && break
|
|
4929 done
|
|
4930
|
|
4931 fi
|
|
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
|
|
4933 $as_echo "$ac_cv_c_restrict" >&6; }
|
|
4934
|
|
4935 case $ac_cv_c_restrict in
|
|
4936 restrict) ;;
|
|
4937 no) $as_echo "#define restrict /**/" >>confdefs.h
|
|
4938 ;;
|
|
4939 *) cat >>confdefs.h <<_ACEOF
|
|
4940 #define restrict $ac_cv_c_restrict
|
|
4941 _ACEOF
|
|
4942 ;;
|
|
4943 esac
|
|
4944
|
|
4945 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
|
|
4946 if test "x$ac_cv_type_size_t" = xyes; then :
|
|
4947
|
|
4948 else
|
|
4949
|
|
4950 cat >>confdefs.h <<_ACEOF
|
|
4951 #define size_t unsigned int
|
|
4952 _ACEOF
|
|
4953
|
|
4954 fi
|
|
4955
|
|
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
|
|
4957 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
|
|
4958 if ${ac_cv_c_bigendian+:} false; then :
|
|
4959 $as_echo_n "(cached) " >&6
|
|
4960 else
|
|
4961 ac_cv_c_bigendian=unknown
|
|
4962 # See if we're dealing with a universal compiler.
|
|
4963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
4964 /* end confdefs.h. */
|
|
4965 #ifndef __APPLE_CC__
|
|
4966 not a universal capable compiler
|
|
4967 #endif
|
|
4968 typedef int dummy;
|
|
4969
|
|
4970 _ACEOF
|
|
4971 if ac_fn_c_try_compile "$LINENO"; then :
|
|
4972
|
|
4973 # Check for potential -arch flags. It is not universal unless
|
|
4974 # there are at least two -arch flags with different values.
|
|
4975 ac_arch=
|
|
4976 ac_prev=
|
|
4977 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
|
|
4978 if test -n "$ac_prev"; then
|
|
4979 case $ac_word in
|
|
4980 i?86 | x86_64 | ppc | ppc64)
|
|
4981 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
|
|
4982 ac_arch=$ac_word
|
|
4983 else
|
|
4984 ac_cv_c_bigendian=universal
|
|
4985 break
|
|
4986 fi
|
|
4987 ;;
|
|
4988 esac
|
|
4989 ac_prev=
|
|
4990 elif test "x$ac_word" = "x-arch"; then
|
|
4991 ac_prev=arch
|
|
4992 fi
|
|
4993 done
|
|
4994 fi
|
|
4995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
4996 if test $ac_cv_c_bigendian = unknown; then
|
|
4997 # See if sys/param.h defines the BYTE_ORDER macro.
|
|
4998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
4999 /* end confdefs.h. */
|
|
5000 #include <sys/types.h>
|
|
5001 #include <sys/param.h>
|
|
5002
|
|
5003 int
|
|
5004 main ()
|
|
5005 {
|
|
5006 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
|
|
5007 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
|
|
5008 && LITTLE_ENDIAN)
|
|
5009 bogus endian macros
|
|
5010 #endif
|
|
5011
|
|
5012 ;
|
|
5013 return 0;
|
|
5014 }
|
|
5015 _ACEOF
|
|
5016 if ac_fn_c_try_compile "$LINENO"; then :
|
|
5017 # It does; now see whether it defined to BIG_ENDIAN or not.
|
|
5018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5019 /* end confdefs.h. */
|
|
5020 #include <sys/types.h>
|
|
5021 #include <sys/param.h>
|
|
5022
|
|
5023 int
|
|
5024 main ()
|
|
5025 {
|
|
5026 #if BYTE_ORDER != BIG_ENDIAN
|
|
5027 not big endian
|
|
5028 #endif
|
|
5029
|
|
5030 ;
|
|
5031 return 0;
|
|
5032 }
|
|
5033 _ACEOF
|
|
5034 if ac_fn_c_try_compile "$LINENO"; then :
|
|
5035 ac_cv_c_bigendian=yes
|
|
5036 else
|
|
5037 ac_cv_c_bigendian=no
|
|
5038 fi
|
|
5039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
5040 fi
|
|
5041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
5042 fi
|
|
5043 if test $ac_cv_c_bigendian = unknown; then
|
|
5044 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
|
|
5045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5046 /* end confdefs.h. */
|
|
5047 #include <limits.h>
|
|
5048
|
|
5049 int
|
|
5050 main ()
|
|
5051 {
|
|
5052 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
|
|
5053 bogus endian macros
|
|
5054 #endif
|
|
5055
|
|
5056 ;
|
|
5057 return 0;
|
|
5058 }
|
|
5059 _ACEOF
|
|
5060 if ac_fn_c_try_compile "$LINENO"; then :
|
|
5061 # It does; now see whether it defined to _BIG_ENDIAN or not.
|
|
5062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5063 /* end confdefs.h. */
|
|
5064 #include <limits.h>
|
|
5065
|
|
5066 int
|
|
5067 main ()
|
|
5068 {
|
|
5069 #ifndef _BIG_ENDIAN
|
|
5070 not big endian
|
|
5071 #endif
|
|
5072
|
|
5073 ;
|
|
5074 return 0;
|
|
5075 }
|
|
5076 _ACEOF
|
|
5077 if ac_fn_c_try_compile "$LINENO"; then :
|
|
5078 ac_cv_c_bigendian=yes
|
|
5079 else
|
|
5080 ac_cv_c_bigendian=no
|
|
5081 fi
|
|
5082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
5083 fi
|
|
5084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
5085 fi
|
|
5086 if test $ac_cv_c_bigendian = unknown; then
|
|
5087 # Compile a test program.
|
|
5088 if test "$cross_compiling" = yes; then :
|
|
5089 # Try to guess by grepping values from an object file.
|
|
5090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5091 /* end confdefs.h. */
|
|
5092 short int ascii_mm[] =
|
|
5093 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
|
5094 short int ascii_ii[] =
|
|
5095 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
|
5096 int use_ascii (int i) {
|
|
5097 return ascii_mm[i] + ascii_ii[i];
|
|
5098 }
|
|
5099 short int ebcdic_ii[] =
|
|
5100 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
|
5101 short int ebcdic_mm[] =
|
|
5102 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
|
5103 int use_ebcdic (int i) {
|
|
5104 return ebcdic_mm[i] + ebcdic_ii[i];
|
|
5105 }
|
|
5106 extern int foo;
|
|
5107
|
|
5108 int
|
|
5109 main ()
|
|
5110 {
|
|
5111 return use_ascii (foo) == use_ebcdic (foo);
|
|
5112 ;
|
|
5113 return 0;
|
|
5114 }
|
|
5115 _ACEOF
|
|
5116 if ac_fn_c_try_compile "$LINENO"; then :
|
|
5117 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
|
|
5118 ac_cv_c_bigendian=yes
|
|
5119 fi
|
|
5120 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
|
5121 if test "$ac_cv_c_bigendian" = unknown; then
|
|
5122 ac_cv_c_bigendian=no
|
|
5123 else
|
|
5124 # finding both strings is unlikely to happen, but who knows?
|
|
5125 ac_cv_c_bigendian=unknown
|
|
5126 fi
|
|
5127 fi
|
|
5128 fi
|
|
5129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
5130 else
|
|
5131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5132 /* end confdefs.h. */
|
|
5133 $ac_includes_default
|
|
5134 int
|
|
5135 main ()
|
|
5136 {
|
|
5137
|
|
5138 /* Are we little or big endian? From Harbison&Steele. */
|
|
5139 union
|
|
5140 {
|
|
5141 long int l;
|
|
5142 char c[sizeof (long int)];
|
|
5143 } u;
|
|
5144 u.l = 1;
|
|
5145 return u.c[sizeof (long int) - 1] == 1;
|
|
5146
|
|
5147 ;
|
|
5148 return 0;
|
|
5149 }
|
|
5150 _ACEOF
|
|
5151 if ac_fn_c_try_run "$LINENO"; then :
|
|
5152 ac_cv_c_bigendian=no
|
|
5153 else
|
|
5154 ac_cv_c_bigendian=yes
|
|
5155 fi
|
|
5156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
5157 conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
5158 fi
|
|
5159
|
|
5160 fi
|
|
5161 fi
|
|
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
|
|
5163 $as_echo "$ac_cv_c_bigendian" >&6; }
|
|
5164 case $ac_cv_c_bigendian in #(
|
|
5165 yes)
|
|
5166 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
|
|
5167 ;; #(
|
|
5168 no)
|
|
5169 $as_echo "#define WORDS_LITTLEENDIAN 1" >>confdefs.h
|
|
5170 ;; #(
|
|
5171 universal)
|
|
5172
|
|
5173 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
|
|
5174
|
|
5175 ;; #(
|
|
5176 *)
|
|
5177 as_fn_error $? "unknown endianness
|
|
5178 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
|
|
5179 esac
|
|
5180
|
|
5181
|
|
5182
|
|
5183
|
|
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fwrapv" >&5
|
|
5185 $as_echo_n "checking if $CC accepts -fwrapv... " >&6; }
|
|
5186 pa_add_cflags__old_cflags="$CFLAGS"
|
|
5187 CFLAGS="$CFLAGS -fwrapv"
|
|
5188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5189 /* end confdefs.h. */
|
|
5190 #include <stdio.h>
|
|
5191 int
|
|
5192 main ()
|
|
5193 {
|
|
5194 printf("Hello, World!\n");
|
|
5195 ;
|
|
5196 return 0;
|
|
5197 }
|
|
5198 _ACEOF
|
|
5199 if ac_fn_c_try_link "$LINENO"; then :
|
|
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
5201 $as_echo "yes" >&6; }
|
|
5202 CFLAGS="$pa_add_cflags__old_cflags -fwrapv"
|
|
5203 else
|
|
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
5205 $as_echo "no" >&6; }
|
|
5206 CFLAGS="$pa_add_cflags__old_cflags"
|
|
5207 fi
|
|
5208 rm -f core conftest.err conftest.$ac_objext \
|
|
5209 conftest$ac_exeext conftest.$ac_ext
|
|
5210
|
|
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -U__STRICT_ANSI__" >&5
|
|
5212 $as_echo_n "checking if $CC accepts -U__STRICT_ANSI__... " >&6; }
|
|
5213 pa_add_cflags__old_cflags="$CFLAGS"
|
|
5214 CFLAGS="$CFLAGS -U__STRICT_ANSI__"
|
|
5215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5216 /* end confdefs.h. */
|
|
5217 #include <stdio.h>
|
|
5218 int
|
|
5219 main ()
|
|
5220 {
|
|
5221 printf("Hello, World!\n");
|
|
5222 ;
|
|
5223 return 0;
|
|
5224 }
|
|
5225 _ACEOF
|
|
5226 if ac_fn_c_try_link "$LINENO"; then :
|
|
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
5228 $as_echo "yes" >&6; }
|
|
5229 CFLAGS="$pa_add_cflags__old_cflags -U__STRICT_ANSI__"
|
|
5230 else
|
|
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
5232 $as_echo "no" >&6; }
|
|
5233 CFLAGS="$pa_add_cflags__old_cflags"
|
|
5234 fi
|
|
5235 rm -f core conftest.err conftest.$ac_objext \
|
|
5236 conftest$ac_exeext conftest.$ac_ext
|
|
5237
|
|
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-common" >&5
|
|
5239 $as_echo_n "checking if $CC accepts -fno-common... " >&6; }
|
|
5240 pa_add_cflags__old_cflags="$CFLAGS"
|
|
5241 CFLAGS="$CFLAGS -fno-common"
|
|
5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5243 /* end confdefs.h. */
|
|
5244 #include <stdio.h>
|
|
5245 int
|
|
5246 main ()
|
|
5247 {
|
|
5248 printf("Hello, World!\n");
|
|
5249 ;
|
|
5250 return 0;
|
|
5251 }
|
|
5252 _ACEOF
|
|
5253 if ac_fn_c_try_link "$LINENO"; then :
|
|
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
5255 $as_echo "yes" >&6; }
|
|
5256 CFLAGS="$pa_add_cflags__old_cflags -fno-common"
|
|
5257 else
|
|
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
5259 $as_echo "no" >&6; }
|
|
5260 CFLAGS="$pa_add_cflags__old_cflags"
|
|
5261 fi
|
|
5262 rm -f core conftest.err conftest.$ac_objext \
|
|
5263 conftest$ac_exeext conftest.$ac_ext
|
|
5264
|
|
5265 for ac_prog in nroff
|
|
5266 do
|
|
5267 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
5268 set dummy $ac_prog; ac_word=$2
|
|
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
5270 $as_echo_n "checking for $ac_word... " >&6; }
|
|
5271 if ${ac_cv_prog_NROFF+:} false; then :
|
|
5272 $as_echo_n "(cached) " >&6
|
|
5273 else
|
|
5274 if test -n "$NROFF"; then
|
|
5275 ac_cv_prog_NROFF="$NROFF" # Let the user override the test.
|
|
5276 else
|
|
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
5278 for as_dir in $PATH
|
|
5279 do
|
|
5280 IFS=$as_save_IFS
|
|
5281 test -z "$as_dir" && as_dir=.
|
|
5282 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
5283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
5284 ac_cv_prog_NROFF="$ac_prog"
|
|
5285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
5286 break 2
|
|
5287 fi
|
|
5288 done
|
|
5289 done
|
|
5290 IFS=$as_save_IFS
|
|
5291
|
|
5292 fi
|
|
5293 fi
|
|
5294 NROFF=$ac_cv_prog_NROFF
|
|
5295 if test -n "$NROFF"; then
|
|
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
|
|
5297 $as_echo "$NROFF" >&6; }
|
|
5298 else
|
|
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
5300 $as_echo "no" >&6; }
|
|
5301 fi
|
|
5302
|
|
5303
|
|
5304 test -n "$NROFF" && break
|
|
5305 done
|
|
5306 test -n "$NROFF" || NROFF="false"
|
|
5307
|
|
5308 for ac_prog in asciidoc
|
|
5309 do
|
|
5310 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
5311 set dummy $ac_prog; ac_word=$2
|
|
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
5313 $as_echo_n "checking for $ac_word... " >&6; }
|
|
5314 if ${ac_cv_prog_ASCIIDOC+:} false; then :
|
|
5315 $as_echo_n "(cached) " >&6
|
|
5316 else
|
|
5317 if test -n "$ASCIIDOC"; then
|
|
5318 ac_cv_prog_ASCIIDOC="$ASCIIDOC" # Let the user override the test.
|
|
5319 else
|
|
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
5321 for as_dir in $PATH
|
|
5322 do
|
|
5323 IFS=$as_save_IFS
|
|
5324 test -z "$as_dir" && as_dir=.
|
|
5325 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
5326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
5327 ac_cv_prog_ASCIIDOC="$ac_prog"
|
|
5328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
5329 break 2
|
|
5330 fi
|
|
5331 done
|
|
5332 done
|
|
5333 IFS=$as_save_IFS
|
|
5334
|
|
5335 fi
|
|
5336 fi
|
|
5337 ASCIIDOC=$ac_cv_prog_ASCIIDOC
|
|
5338 if test -n "$ASCIIDOC"; then
|
|
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
|
|
5340 $as_echo "$ASCIIDOC" >&6; }
|
|
5341 else
|
|
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
5343 $as_echo "no" >&6; }
|
|
5344 fi
|
|
5345
|
|
5346
|
|
5347 test -n "$ASCIIDOC" && break
|
|
5348 done
|
|
5349 test -n "$ASCIIDOC" || ASCIIDOC="false"
|
|
5350
|
|
5351 for ac_prog in xmlto
|
|
5352 do
|
|
5353 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
5354 set dummy $ac_prog; ac_word=$2
|
|
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
5356 $as_echo_n "checking for $ac_word... " >&6; }
|
|
5357 if ${ac_cv_prog_XMLTO+:} false; then :
|
|
5358 $as_echo_n "(cached) " >&6
|
|
5359 else
|
|
5360 if test -n "$XMLTO"; then
|
|
5361 ac_cv_prog_XMLTO="$XMLTO" # Let the user override the test.
|
|
5362 else
|
|
5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
5364 for as_dir in $PATH
|
|
5365 do
|
|
5366 IFS=$as_save_IFS
|
|
5367 test -z "$as_dir" && as_dir=.
|
|
5368 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
5369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
5370 ac_cv_prog_XMLTO="$ac_prog"
|
|
5371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
5372 break 2
|
|
5373 fi
|
|
5374 done
|
|
5375 done
|
|
5376 IFS=$as_save_IFS
|
|
5377
|
|
5378 fi
|
|
5379 fi
|
|
5380 XMLTO=$ac_cv_prog_XMLTO
|
|
5381 if test -n "$XMLTO"; then
|
|
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
|
|
5383 $as_echo "$XMLTO" >&6; }
|
|
5384 else
|
|
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
5386 $as_echo "no" >&6; }
|
|
5387 fi
|
|
5388
|
|
5389
|
|
5390 test -n "$XMLTO" && break
|
|
5391 done
|
|
5392 test -n "$XMLTO" || XMLTO="false"
|
|
5393
|
|
5394 for ac_prog in acrodist
|
|
5395 do
|
|
5396 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
5397 set dummy $ac_prog; ac_word=$2
|
|
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
5399 $as_echo_n "checking for $ac_word... " >&6; }
|
|
5400 if ${ac_cv_prog_ACRODIST+:} false; then :
|
|
5401 $as_echo_n "(cached) " >&6
|
|
5402 else
|
|
5403 if test -n "$ACRODIST"; then
|
|
5404 ac_cv_prog_ACRODIST="$ACRODIST" # Let the user override the test.
|
|
5405 else
|
|
5406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
5407 for as_dir in $PATH
|
|
5408 do
|
|
5409 IFS=$as_save_IFS
|
|
5410 test -z "$as_dir" && as_dir=.
|
|
5411 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
5412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
5413 ac_cv_prog_ACRODIST="$ac_prog"
|
|
5414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
5415 break 2
|
|
5416 fi
|
|
5417 done
|
|
5418 done
|
|
5419 IFS=$as_save_IFS
|
|
5420
|
|
5421 fi
|
|
5422 fi
|
|
5423 ACRODIST=$ac_cv_prog_ACRODIST
|
|
5424 if test -n "$ACRODIST"; then
|
|
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACRODIST" >&5
|
|
5426 $as_echo "$ACRODIST" >&6; }
|
|
5427 else
|
|
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
5429 $as_echo "no" >&6; }
|
|
5430 fi
|
|
5431
|
|
5432
|
|
5433 test -n "$ACRODIST" && break
|
|
5434 done
|
|
5435 test -n "$ACRODIST" || ACRODIST="false"
|
|
5436
|
|
5437 for ac_prog in ps2pdf
|
|
5438 do
|
|
5439 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
5440 set dummy $ac_prog; ac_word=$2
|
|
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
5442 $as_echo_n "checking for $ac_word... " >&6; }
|
|
5443 if ${ac_cv_prog_PS2PDF+:} false; then :
|
|
5444 $as_echo_n "(cached) " >&6
|
|
5445 else
|
|
5446 if test -n "$PS2PDF"; then
|
|
5447 ac_cv_prog_PS2PDF="$PS2PDF" # Let the user override the test.
|
|
5448 else
|
|
5449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
5450 for as_dir in $PATH
|
|
5451 do
|
|
5452 IFS=$as_save_IFS
|
|
5453 test -z "$as_dir" && as_dir=.
|
|
5454 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
5455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
5456 ac_cv_prog_PS2PDF="$ac_prog"
|
|
5457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
5458 break 2
|
|
5459 fi
|
|
5460 done
|
|
5461 done
|
|
5462 IFS=$as_save_IFS
|
|
5463
|
|
5464 fi
|
|
5465 fi
|
|
5466 PS2PDF=$ac_cv_prog_PS2PDF
|
|
5467 if test -n "$PS2PDF"; then
|
|
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS2PDF" >&5
|
|
5469 $as_echo "$PS2PDF" >&6; }
|
|
5470 else
|
|
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
5472 $as_echo "no" >&6; }
|
|
5473 fi
|
|
5474
|
|
5475
|
|
5476 test -n "$PS2PDF" && break
|
|
5477 done
|
|
5478 test -n "$PS2PDF" || PS2PDF="false"
|
|
5479
|
|
5480 for ac_prog in pstopdf
|
|
5481 do
|
|
5482 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
5483 set dummy $ac_prog; ac_word=$2
|
|
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
5485 $as_echo_n "checking for $ac_word... " >&6; }
|
|
5486 if ${ac_cv_prog_PSTOPDF+:} false; then :
|
|
5487 $as_echo_n "(cached) " >&6
|
|
5488 else
|
|
5489 if test -n "$PSTOPDF"; then
|
|
5490 ac_cv_prog_PSTOPDF="$PSTOPDF" # Let the user override the test.
|
|
5491 else
|
|
5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
5493 for as_dir in $PATH
|
|
5494 do
|
|
5495 IFS=$as_save_IFS
|
|
5496 test -z "$as_dir" && as_dir=.
|
|
5497 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
5498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
5499 ac_cv_prog_PSTOPDF="$ac_prog"
|
|
5500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
5501 break 2
|
|
5502 fi
|
|
5503 done
|
|
5504 done
|
|
5505 IFS=$as_save_IFS
|
|
5506
|
|
5507 fi
|
|
5508 fi
|
|
5509 PSTOPDF=$ac_cv_prog_PSTOPDF
|
|
5510 if test -n "$PSTOPDF"; then
|
|
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSTOPDF" >&5
|
|
5512 $as_echo "$PSTOPDF" >&6; }
|
|
5513 else
|
|
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
5515 $as_echo "no" >&6; }
|
|
5516 fi
|
|
5517
|
|
5518
|
|
5519 test -n "$PSTOPDF" && break
|
|
5520 done
|
|
5521 test -n "$PSTOPDF" || PSTOPDF="false"
|
|
5522
|
|
5523
|
|
5524 if test $ASCIIDOC = false; then
|
|
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No asciidoc package found" >&5
|
|
5526 $as_echo "$as_me: WARNING: No asciidoc package found" >&2;}
|
|
5527 fi
|
|
5528 if test $XMLTO = false; then
|
|
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No xmlto package found" >&5
|
|
5530 $as_echo "$as_me: WARNING: No xmlto package found" >&2;}
|
|
5531 fi
|
|
5532
|
|
5533 if test -n "$ac_tool_prefix"; then
|
|
5534 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
|
5535 set dummy ${ac_tool_prefix}ar; ac_word=$2
|
|
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
5537 $as_echo_n "checking for $ac_word... " >&6; }
|
|
5538 if ${ac_cv_prog_AR+:} false; then :
|
|
5539 $as_echo_n "(cached) " >&6
|
|
5540 else
|
|
5541 if test -n "$AR"; then
|
|
5542 ac_cv_prog_AR="$AR" # Let the user override the test.
|
|
5543 else
|
|
5544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
5545 for as_dir in $PATH
|
|
5546 do
|
|
5547 IFS=$as_save_IFS
|
|
5548 test -z "$as_dir" && as_dir=.
|
|
5549 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
5550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
5551 ac_cv_prog_AR="${ac_tool_prefix}ar"
|
|
5552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
5553 break 2
|
|
5554 fi
|
|
5555 done
|
|
5556 done
|
|
5557 IFS=$as_save_IFS
|
|
5558
|
|
5559 fi
|
|
5560 fi
|
|
5561 AR=$ac_cv_prog_AR
|
|
5562 if test -n "$AR"; then
|
|
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
|
|
5564 $as_echo "$AR" >&6; }
|
|
5565 else
|
|
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
5567 $as_echo "no" >&6; }
|
|
5568 fi
|
|
5569
|
|
5570
|
|
5571 fi
|
|
5572 if test -z "$ac_cv_prog_AR"; then
|
|
5573 ac_ct_AR=$AR
|
|
5574 # Extract the first word of "ar", so it can be a program name with args.
|
|
5575 set dummy ar; ac_word=$2
|
|
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
5577 $as_echo_n "checking for $ac_word... " >&6; }
|
|
5578 if ${ac_cv_prog_ac_ct_AR+:} false; then :
|
|
5579 $as_echo_n "(cached) " >&6
|
|
5580 else
|
|
5581 if test -n "$ac_ct_AR"; then
|
|
5582 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
|
|
5583 else
|
|
5584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
5585 for as_dir in $PATH
|
|
5586 do
|
|
5587 IFS=$as_save_IFS
|
|
5588 test -z "$as_dir" && as_dir=.
|
|
5589 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
5590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
5591 ac_cv_prog_ac_ct_AR="ar"
|
|
5592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
5593 break 2
|
|
5594 fi
|
|
5595 done
|
|
5596 done
|
|
5597 IFS=$as_save_IFS
|
|
5598
|
|
5599 fi
|
|
5600 fi
|
|
5601 ac_ct_AR=$ac_cv_prog_ac_ct_AR
|
|
5602 if test -n "$ac_ct_AR"; then
|
|
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
|
|
5604 $as_echo "$ac_ct_AR" >&6; }
|
|
5605 else
|
|
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
5607 $as_echo "no" >&6; }
|
|
5608 fi
|
|
5609
|
|
5610 if test "x$ac_ct_AR" = x; then
|
|
5611 AR=""
|
|
5612 else
|
|
5613 case $cross_compiling:$ac_tool_warned in
|
|
5614 yes:)
|
|
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
5616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
5617 ac_tool_warned=yes ;;
|
|
5618 esac
|
|
5619 AR=$ac_ct_AR
|
|
5620 fi
|
|
5621 else
|
|
5622 AR="$ac_cv_prog_AR"
|
|
5623 fi
|
|
5624
|
|
5625 if test -n "$ac_tool_prefix"; then
|
|
5626 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
|
5627 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
|
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
5629 $as_echo_n "checking for $ac_word... " >&6; }
|
|
5630 if ${ac_cv_prog_RANLIB+:} false; then :
|
|
5631 $as_echo_n "(cached) " >&6
|
|
5632 else
|
|
5633 if test -n "$RANLIB"; then
|
|
5634 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|
5635 else
|
|
5636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
5637 for as_dir in $PATH
|
|
5638 do
|
|
5639 IFS=$as_save_IFS
|
|
5640 test -z "$as_dir" && as_dir=.
|
|
5641 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
5642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
5643 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
|
5644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
5645 break 2
|
|
5646 fi
|
|
5647 done
|
|
5648 done
|
|
5649 IFS=$as_save_IFS
|
|
5650
|
|
5651 fi
|
|
5652 fi
|
|
5653 RANLIB=$ac_cv_prog_RANLIB
|
|
5654 if test -n "$RANLIB"; then
|
|
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
|
|
5656 $as_echo "$RANLIB" >&6; }
|
|
5657 else
|
|
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
5659 $as_echo "no" >&6; }
|
|
5660 fi
|
|
5661
|
|
5662
|
|
5663 fi
|
|
5664 if test -z "$ac_cv_prog_RANLIB"; then
|
|
5665 ac_ct_RANLIB=$RANLIB
|
|
5666 # Extract the first word of "ranlib", so it can be a program name with args.
|
|
5667 set dummy ranlib; ac_word=$2
|
|
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
5669 $as_echo_n "checking for $ac_word... " >&6; }
|
|
5670 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
|
|
5671 $as_echo_n "(cached) " >&6
|
|
5672 else
|
|
5673 if test -n "$ac_ct_RANLIB"; then
|
|
5674 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
|
5675 else
|
|
5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
5677 for as_dir in $PATH
|
|
5678 do
|
|
5679 IFS=$as_save_IFS
|
|
5680 test -z "$as_dir" && as_dir=.
|
|
5681 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
5682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
5683 ac_cv_prog_ac_ct_RANLIB="ranlib"
|
|
5684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
5685 break 2
|
|
5686 fi
|
|
5687 done
|
|
5688 done
|
|
5689 IFS=$as_save_IFS
|
|
5690
|
|
5691 fi
|
|
5692 fi
|
|
5693 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
|
5694 if test -n "$ac_ct_RANLIB"; then
|
|
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
|
|
5696 $as_echo "$ac_ct_RANLIB" >&6; }
|
|
5697 else
|
|
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
5699 $as_echo "no" >&6; }
|
|
5700 fi
|
|
5701
|
|
5702 if test "x$ac_ct_RANLIB" = x; then
|
|
5703 RANLIB=":"
|
|
5704 else
|
|
5705 case $cross_compiling:$ac_tool_warned in
|
|
5706 yes:)
|
|
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
5708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
5709 ac_tool_warned=yes ;;
|
|
5710 esac
|
|
5711 RANLIB=$ac_ct_RANLIB
|
|
5712 fi
|
|
5713 else
|
|
5714 RANLIB="$ac_cv_prog_RANLIB"
|
|
5715 fi
|
|
5716
|
|
5717 if test -n "$ac_tool_prefix"; then
|
|
5718 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
|
5719 set dummy ${ac_tool_prefix}strip; ac_word=$2
|
|
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
5721 $as_echo_n "checking for $ac_word... " >&6; }
|
|
5722 if ${ac_cv_prog_STRIP+:} false; then :
|
|
5723 $as_echo_n "(cached) " >&6
|
|
5724 else
|
|
5725 if test -n "$STRIP"; then
|
|
5726 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
|
5727 else
|
|
5728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
5729 for as_dir in $PATH
|
|
5730 do
|
|
5731 IFS=$as_save_IFS
|
|
5732 test -z "$as_dir" && as_dir=.
|
|
5733 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
5734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
5735 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
|
5736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
5737 break 2
|
|
5738 fi
|
|
5739 done
|
|
5740 done
|
|
5741 IFS=$as_save_IFS
|
|
5742
|
|
5743 fi
|
|
5744 fi
|
|
5745 STRIP=$ac_cv_prog_STRIP
|
|
5746 if test -n "$STRIP"; then
|
|
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
|
|
5748 $as_echo "$STRIP" >&6; }
|
|
5749 else
|
|
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
5751 $as_echo "no" >&6; }
|
|
5752 fi
|
|
5753
|
|
5754
|
|
5755 fi
|
|
5756 if test -z "$ac_cv_prog_STRIP"; then
|
|
5757 ac_ct_STRIP=$STRIP
|
|
5758 # Extract the first word of "strip", so it can be a program name with args.
|
|
5759 set dummy strip; ac_word=$2
|
|
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
5761 $as_echo_n "checking for $ac_word... " >&6; }
|
|
5762 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
|
|
5763 $as_echo_n "(cached) " >&6
|
|
5764 else
|
|
5765 if test -n "$ac_ct_STRIP"; then
|
|
5766 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
|
5767 else
|
|
5768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
5769 for as_dir in $PATH
|
|
5770 do
|
|
5771 IFS=$as_save_IFS
|
|
5772 test -z "$as_dir" && as_dir=.
|
|
5773 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
5774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
5775 ac_cv_prog_ac_ct_STRIP="strip"
|
|
5776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
5777 break 2
|
|
5778 fi
|
|
5779 done
|
|
5780 done
|
|
5781 IFS=$as_save_IFS
|
|
5782
|
|
5783 fi
|
|
5784 fi
|
|
5785 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
|
5786 if test -n "$ac_ct_STRIP"; then
|
|
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
|
|
5788 $as_echo "$ac_ct_STRIP" >&6; }
|
|
5789 else
|
|
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
5791 $as_echo "no" >&6; }
|
|
5792 fi
|
|
5793
|
|
5794 if test "x$ac_ct_STRIP" = x; then
|
|
5795 STRIP=""
|
|
5796 else
|
|
5797 case $cross_compiling:$ac_tool_warned in
|
|
5798 yes:)
|
|
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
5800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
5801 ac_tool_warned=yes ;;
|
|
5802 esac
|
|
5803 STRIP=$ac_ct_STRIP
|
|
5804 fi
|
|
5805 else
|
|
5806 STRIP="$ac_cv_prog_STRIP"
|
|
5807 fi
|
|
5808
|
|
5809
|
|
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
|
5811 $as_echo_n "checking for ANSI C header files... " >&6; }
|
|
5812 if ${ac_cv_header_stdc+:} false; then :
|
|
5813 $as_echo_n "(cached) " >&6
|
|
5814 else
|
|
5815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5816 /* end confdefs.h. */
|
|
5817 #include <stdlib.h>
|
|
5818 #include <stdarg.h>
|
|
5819 #include <string.h>
|
|
5820 #include <float.h>
|
|
5821
|
|
5822 int
|
|
5823 main ()
|
|
5824 {
|
|
5825
|
|
5826 ;
|
|
5827 return 0;
|
|
5828 }
|
|
5829 _ACEOF
|
|
5830 if ac_fn_c_try_compile "$LINENO"; then :
|
|
5831 ac_cv_header_stdc=yes
|
|
5832 else
|
|
5833 ac_cv_header_stdc=no
|
|
5834 fi
|
|
5835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
5836
|
|
5837 if test $ac_cv_header_stdc = yes; then
|
|
5838 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
|
5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5840 /* end confdefs.h. */
|
|
5841 #include <string.h>
|
|
5842
|
|
5843 _ACEOF
|
|
5844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
5845 $EGREP "memchr" >/dev/null 2>&1; then :
|
|
5846
|
|
5847 else
|
|
5848 ac_cv_header_stdc=no
|
|
5849 fi
|
|
5850 rm -f conftest*
|
|
5851
|
|
5852 fi
|
|
5853
|
|
5854 if test $ac_cv_header_stdc = yes; then
|
|
5855 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
|
5856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5857 /* end confdefs.h. */
|
|
5858 #include <stdlib.h>
|
|
5859
|
|
5860 _ACEOF
|
|
5861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
5862 $EGREP "free" >/dev/null 2>&1; then :
|
|
5863
|
|
5864 else
|
|
5865 ac_cv_header_stdc=no
|
|
5866 fi
|
|
5867 rm -f conftest*
|
|
5868
|
|
5869 fi
|
|
5870
|
|
5871 if test $ac_cv_header_stdc = yes; then
|
|
5872 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
|
5873 if test "$cross_compiling" = yes; then :
|
|
5874 :
|
|
5875 else
|
|
5876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5877 /* end confdefs.h. */
|
|
5878 #include <ctype.h>
|
|
5879 #include <stdlib.h>
|
|
5880 #if ((' ' & 0x0FF) == 0x020)
|
|
5881 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|
5882 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
|
5883 #else
|
|
5884 # define ISLOWER(c) \
|
|
5885 (('a' <= (c) && (c) <= 'i') \
|
|
5886 || ('j' <= (c) && (c) <= 'r') \
|
|
5887 || ('s' <= (c) && (c) <= 'z'))
|
|
5888 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
|
5889 #endif
|
|
5890
|
|
5891 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
|
5892 int
|
|
5893 main ()
|
|
5894 {
|
|
5895 int i;
|
|
5896 for (i = 0; i < 256; i++)
|
|
5897 if (XOR (islower (i), ISLOWER (i))
|
|
5898 || toupper (i) != TOUPPER (i))
|
|
5899 return 2;
|
|
5900 return 0;
|
|
5901 }
|
|
5902 _ACEOF
|
|
5903 if ac_fn_c_try_run "$LINENO"; then :
|
|
5904
|
|
5905 else
|
|
5906 ac_cv_header_stdc=no
|
|
5907 fi
|
|
5908 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
5909 conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
5910 fi
|
|
5911
|
|
5912 fi
|
|
5913 fi
|
|
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
|
5915 $as_echo "$ac_cv_header_stdc" >&6; }
|
|
5916 if test $ac_cv_header_stdc = yes; then
|
|
5917
|
|
5918 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
|
5919
|
|
5920 fi
|
|
5921
|
|
5922 for ac_header in inttypes.h
|
|
5923 do :
|
|
5924 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
|
|
5925 if test "x$ac_cv_header_inttypes_h" = xyes; then :
|
|
5926 cat >>confdefs.h <<_ACEOF
|
|
5927 #define HAVE_INTTYPES_H 1
|
|
5928 _ACEOF
|
|
5929
|
|
5930 fi
|
|
5931
|
|
5932 done
|
|
5933
|
|
5934 for ac_header in strings.h
|
|
5935 do :
|
|
5936 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
|
|
5937 if test "x$ac_cv_header_strings_h" = xyes; then :
|
|
5938 cat >>confdefs.h <<_ACEOF
|
|
5939 #define HAVE_STRINGS_H 1
|
|
5940 _ACEOF
|
|
5941
|
|
5942 fi
|
|
5943
|
|
5944 done
|
|
5945
|
|
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
|
|
5947 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
|
|
5948 if ${ac_cv_header_stdbool_h+:} false; then :
|
|
5949 $as_echo_n "(cached) " >&6
|
|
5950 else
|
|
5951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5952 /* end confdefs.h. */
|
|
5953
|
|
5954 #include <stdbool.h>
|
|
5955 #ifndef bool
|
|
5956 "error: bool is not defined"
|
|
5957 #endif
|
|
5958 #ifndef false
|
|
5959 "error: false is not defined"
|
|
5960 #endif
|
|
5961 #if false
|
|
5962 "error: false is not 0"
|
|
5963 #endif
|
|
5964 #ifndef true
|
|
5965 "error: true is not defined"
|
|
5966 #endif
|
|
5967 #if true != 1
|
|
5968 "error: true is not 1"
|
|
5969 #endif
|
|
5970 #ifndef __bool_true_false_are_defined
|
|
5971 "error: __bool_true_false_are_defined is not defined"
|
|
5972 #endif
|
|
5973
|
|
5974 struct s { _Bool s: 1; _Bool t; } s;
|
|
5975
|
|
5976 char a[true == 1 ? 1 : -1];
|
|
5977 char b[false == 0 ? 1 : -1];
|
|
5978 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
|
|
5979 char d[(bool) 0.5 == true ? 1 : -1];
|
|
5980 /* See body of main program for 'e'. */
|
|
5981 char f[(_Bool) 0.0 == false ? 1 : -1];
|
|
5982 char g[true];
|
|
5983 char h[sizeof (_Bool)];
|
|
5984 char i[sizeof s.t];
|
|
5985 enum { j = false, k = true, l = false * true, m = true * 256 };
|
|
5986 /* The following fails for
|
|
5987 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
|
|
5988 _Bool n[m];
|
|
5989 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
|
|
5990 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
|
|
5991 /* Catch a bug in an HP-UX C compiler. See
|
|
5992 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
|
|
5993 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
|
|
5994 */
|
|
5995 _Bool q = true;
|
|
5996 _Bool *pq = &q;
|
|
5997
|
|
5998 int
|
|
5999 main ()
|
|
6000 {
|
|
6001
|
|
6002 bool e = &s;
|
|
6003 *pq |= q;
|
|
6004 *pq |= ! q;
|
|
6005 /* Refer to every declared value, to avoid compiler optimizations. */
|
|
6006 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
|
|
6007 + !m + !n + !o + !p + !q + !pq);
|
|
6008
|
|
6009 ;
|
|
6010 return 0;
|
|
6011 }
|
|
6012 _ACEOF
|
|
6013 if ac_fn_c_try_compile "$LINENO"; then :
|
|
6014 ac_cv_header_stdbool_h=yes
|
|
6015 else
|
|
6016 ac_cv_header_stdbool_h=no
|
|
6017 fi
|
|
6018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
6019 fi
|
|
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
|
|
6021 $as_echo "$ac_cv_header_stdbool_h" >&6; }
|
|
6022 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
|
|
6023 if test "x$ac_cv_type__Bool" = xyes; then :
|
|
6024
|
|
6025 cat >>confdefs.h <<_ACEOF
|
|
6026 #define HAVE__BOOL 1
|
|
6027 _ACEOF
|
|
6028
|
|
6029
|
|
6030 fi
|
|
6031
|
|
6032
|
|
6033 if test $ac_cv_header_stdbool_h = yes; then
|
|
6034
|
|
6035 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
|
|
6036
|
|
6037 fi
|
|
6038
|
|
6039 for ac_header in stdnoreturn.h
|
|
6040 do :
|
|
6041 ac_fn_c_check_header_mongrel "$LINENO" "stdnoreturn.h" "ac_cv_header_stdnoreturn_h" "$ac_includes_default"
|
|
6042 if test "x$ac_cv_header_stdnoreturn_h" = xyes; then :
|
|
6043 cat >>confdefs.h <<_ACEOF
|
|
6044 #define HAVE_STDNORETURN_H 1
|
|
6045 _ACEOF
|
|
6046
|
|
6047 fi
|
|
6048
|
|
6049 done
|
|
6050
|
|
6051 for ac_header in io.h
|
|
6052 do :
|
|
6053 ac_fn_c_check_header_mongrel "$LINENO" "io.h" "ac_cv_header_io_h" "$ac_includes_default"
|
|
6054 if test "x$ac_cv_header_io_h" = xyes; then :
|
|
6055 cat >>confdefs.h <<_ACEOF
|
|
6056 #define HAVE_IO_H 1
|
|
6057 _ACEOF
|
|
6058
|
|
6059 fi
|
|
6060
|
|
6061 done
|
|
6062
|
|
6063 for ac_header in fcntl.h
|
|
6064 do :
|
|
6065 ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
|
|
6066 if test "x$ac_cv_header_fcntl_h" = xyes; then :
|
|
6067 cat >>confdefs.h <<_ACEOF
|
|
6068 #define HAVE_FCNTL_H 1
|
|
6069 _ACEOF
|
|
6070
|
|
6071 fi
|
|
6072
|
|
6073 done
|
|
6074
|
|
6075 for ac_header in unistd.h
|
|
6076 do :
|
|
6077 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
|
|
6078 if test "x$ac_cv_header_unistd_h" = xyes; then :
|
|
6079 cat >>confdefs.h <<_ACEOF
|
|
6080 #define HAVE_UNISTD_H 1
|
|
6081 _ACEOF
|
|
6082
|
|
6083 fi
|
|
6084
|
|
6085 done
|
|
6086
|
|
6087 for ac_header in sys/param.h
|
|
6088 do :
|
|
6089 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
|
|
6090 if test "x$ac_cv_header_sys_param_h" = xyes; then :
|
|
6091 cat >>confdefs.h <<_ACEOF
|
|
6092 #define HAVE_SYS_PARAM_H 1
|
|
6093 _ACEOF
|
|
6094
|
|
6095 fi
|
|
6096
|
|
6097 done
|
|
6098
|
|
6099 for ac_header in sys/mman.h
|
|
6100 do :
|
|
6101 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
|
|
6102 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
|
|
6103 cat >>confdefs.h <<_ACEOF
|
|
6104 #define HAVE_SYS_MMAN_H 1
|
|
6105 _ACEOF
|
|
6106
|
|
6107 fi
|
|
6108
|
|
6109 done
|
|
6110
|
|
6111 for ac_header in sys/stat.h
|
|
6112 do :
|
|
6113 ac_fn_c_check_header_mongrel "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
|
|
6114 if test "x$ac_cv_header_sys_stat_h" = xyes; then :
|
|
6115 cat >>confdefs.h <<_ACEOF
|
|
6116 #define HAVE_SYS_STAT_H 1
|
|
6117 _ACEOF
|
|
6118
|
|
6119 fi
|
|
6120
|
|
6121 done
|
|
6122
|
|
6123 for ac_header in sys/types.h
|
|
6124 do :
|
|
6125 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
|
|
6126 if test "x$ac_cv_header_sys_types_h" = xyes; then :
|
|
6127 cat >>confdefs.h <<_ACEOF
|
|
6128 #define HAVE_SYS_TYPES_H 1
|
|
6129 _ACEOF
|
|
6130
|
|
6131 fi
|
|
6132
|
|
6133 done
|
|
6134
|
|
6135
|
|
6136 for ac_func in strcasecmp stricmp
|
|
6137 do :
|
|
6138 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
6139 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
|
6140 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
|
6141 cat >>confdefs.h <<_ACEOF
|
|
6142 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
6143 _ACEOF
|
|
6144
|
|
6145 fi
|
|
6146 done
|
|
6147
|
|
6148 for ac_func in strncasecmp strnicmp
|
|
6149 do :
|
|
6150 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
6151 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
|
6152 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
|
6153 cat >>confdefs.h <<_ACEOF
|
|
6154 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
6155 _ACEOF
|
|
6156
|
|
6157 fi
|
|
6158 done
|
|
6159
|
|
6160 for ac_func in strsep
|
|
6161 do :
|
|
6162 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
|
|
6163 if test "x$ac_cv_func_strsep" = xyes; then :
|
|
6164 cat >>confdefs.h <<_ACEOF
|
|
6165 #define HAVE_STRSEP 1
|
|
6166 _ACEOF
|
|
6167
|
|
6168 fi
|
|
6169 done
|
|
6170
|
|
6171 for ac_func in strnlen
|
|
6172 do :
|
|
6173 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
|
|
6174 if test "x$ac_cv_func_strnlen" = xyes; then :
|
|
6175 cat >>confdefs.h <<_ACEOF
|
|
6176 #define HAVE_STRNLEN 1
|
|
6177 _ACEOF
|
|
6178
|
|
6179 fi
|
|
6180 done
|
|
6181
|
|
6182
|
|
6183 for ac_func in getuid
|
|
6184 do :
|
|
6185 ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid"
|
|
6186 if test "x$ac_cv_func_getuid" = xyes; then :
|
|
6187 cat >>confdefs.h <<_ACEOF
|
|
6188 #define HAVE_GETUID 1
|
|
6189 _ACEOF
|
|
6190
|
|
6191 fi
|
|
6192 done
|
|
6193
|
|
6194 for ac_func in getgid
|
|
6195 do :
|
|
6196 ac_fn_c_check_func "$LINENO" "getgid" "ac_cv_func_getgid"
|
|
6197 if test "x$ac_cv_func_getgid" = xyes; then :
|
|
6198 cat >>confdefs.h <<_ACEOF
|
|
6199 #define HAVE_GETGID 1
|
|
6200 _ACEOF
|
|
6201
|
|
6202 fi
|
|
6203 done
|
|
6204
|
|
6205
|
|
6206 for ac_func in realpath
|
|
6207 do :
|
|
6208 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
|
|
6209 if test "x$ac_cv_func_realpath" = xyes; then :
|
|
6210 cat >>confdefs.h <<_ACEOF
|
|
6211 #define HAVE_REALPATH 1
|
|
6212 _ACEOF
|
|
6213
|
|
6214 fi
|
|
6215 done
|
|
6216
|
|
6217 for ac_func in canonicalize_file_name
|
|
6218 do :
|
|
6219 ac_fn_c_check_func "$LINENO" "canonicalize_file_name" "ac_cv_func_canonicalize_file_name"
|
|
6220 if test "x$ac_cv_func_canonicalize_file_name" = xyes; then :
|
|
6221 cat >>confdefs.h <<_ACEOF
|
|
6222 #define HAVE_CANONICALIZE_FILE_NAME 1
|
|
6223 _ACEOF
|
|
6224
|
|
6225 fi
|
|
6226 done
|
|
6227
|
|
6228 for ac_func in _fullpath
|
|
6229 do :
|
|
6230 ac_fn_c_check_func "$LINENO" "_fullpath" "ac_cv_func__fullpath"
|
|
6231 if test "x$ac_cv_func__fullpath" = xyes; then :
|
|
6232 cat >>confdefs.h <<_ACEOF
|
|
6233 #define HAVE__FULLPATH 1
|
|
6234 _ACEOF
|
|
6235
|
|
6236 fi
|
|
6237 done
|
|
6238
|
|
6239 for ac_func in pathconf
|
|
6240 do :
|
|
6241 ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf"
|
|
6242 if test "x$ac_cv_func_pathconf" = xyes; then :
|
|
6243 cat >>confdefs.h <<_ACEOF
|
|
6244 #define HAVE_PATHCONF 1
|
|
6245 _ACEOF
|
|
6246
|
|
6247 fi
|
|
6248 done
|
|
6249
|
|
6250
|
|
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
|
|
6252 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
|
|
6253 if ${ac_cv_sys_largefile_source+:} false; then :
|
|
6254 $as_echo_n "(cached) " >&6
|
|
6255 else
|
|
6256 while :; do
|
|
6257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6258 /* end confdefs.h. */
|
|
6259 #include <sys/types.h> /* for off_t */
|
|
6260 #include <stdio.h>
|
|
6261 int
|
|
6262 main ()
|
|
6263 {
|
|
6264 int (*fp) (FILE *, off_t, int) = fseeko;
|
|
6265 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
|
|
6266 ;
|
|
6267 return 0;
|
|
6268 }
|
|
6269 _ACEOF
|
|
6270 if ac_fn_c_try_link "$LINENO"; then :
|
|
6271 ac_cv_sys_largefile_source=no; break
|
|
6272 fi
|
|
6273 rm -f core conftest.err conftest.$ac_objext \
|
|
6274 conftest$ac_exeext conftest.$ac_ext
|
|
6275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6276 /* end confdefs.h. */
|
|
6277 #define _LARGEFILE_SOURCE 1
|
|
6278 #include <sys/types.h> /* for off_t */
|
|
6279 #include <stdio.h>
|
|
6280 int
|
|
6281 main ()
|
|
6282 {
|
|
6283 int (*fp) (FILE *, off_t, int) = fseeko;
|
|
6284 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
|
|
6285 ;
|
|
6286 return 0;
|
|
6287 }
|
|
6288 _ACEOF
|
|
6289 if ac_fn_c_try_link "$LINENO"; then :
|
|
6290 ac_cv_sys_largefile_source=1; break
|
|
6291 fi
|
|
6292 rm -f core conftest.err conftest.$ac_objext \
|
|
6293 conftest$ac_exeext conftest.$ac_ext
|
|
6294 ac_cv_sys_largefile_source=unknown
|
|
6295 break
|
|
6296 done
|
|
6297 fi
|
|
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
|
|
6299 $as_echo "$ac_cv_sys_largefile_source" >&6; }
|
|
6300 case $ac_cv_sys_largefile_source in #(
|
|
6301 no | unknown) ;;
|
|
6302 *)
|
|
6303 cat >>confdefs.h <<_ACEOF
|
|
6304 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
|
|
6305 _ACEOF
|
|
6306 ;;
|
|
6307 esac
|
|
6308 rm -rf conftest*
|
|
6309
|
|
6310 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
|
|
6311 # in glibc 2.1.3, but that breaks too many other things.
|
|
6312 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
|
|
6313 if test $ac_cv_sys_largefile_source != unknown; then
|
|
6314
|
|
6315 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
|
|
6316
|
|
6317 fi
|
|
6318
|
|
6319 for ac_func in _fseeki64
|
|
6320 do :
|
|
6321 ac_fn_c_check_func "$LINENO" "_fseeki64" "ac_cv_func__fseeki64"
|
|
6322 if test "x$ac_cv_func__fseeki64" = xyes; then :
|
|
6323 cat >>confdefs.h <<_ACEOF
|
|
6324 #define HAVE__FSEEKI64 1
|
|
6325 _ACEOF
|
|
6326
|
|
6327 fi
|
|
6328 done
|
|
6329
|
|
6330 for ac_func in ftruncate _chsize _chsize_s
|
|
6331 do :
|
|
6332 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
6333 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
|
6334 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
|
6335 cat >>confdefs.h <<_ACEOF
|
|
6336 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
6337 _ACEOF
|
|
6338
|
|
6339 fi
|
|
6340 done
|
|
6341
|
|
6342 for ac_func in fileno _fileno
|
|
6343 do :
|
|
6344 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
6345 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
|
6346 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
|
6347 cat >>confdefs.h <<_ACEOF
|
|
6348 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
6349 _ACEOF
|
|
6350
|
|
6351 fi
|
|
6352 done
|
|
6353
|
|
6354
|
|
6355 for ac_func in _filelengthi64
|
|
6356 do :
|
|
6357 ac_fn_c_check_func "$LINENO" "_filelengthi64" "ac_cv_func__filelengthi64"
|
|
6358 if test "x$ac_cv_func__filelengthi64" = xyes; then :
|
|
6359 cat >>confdefs.h <<_ACEOF
|
|
6360 #define HAVE__FILELENGTHI64 1
|
|
6361 _ACEOF
|
|
6362
|
|
6363 fi
|
|
6364 done
|
|
6365
|
|
6366 for ac_func in stat _stati64
|
|
6367 do :
|
|
6368 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
6369 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
|
6370 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
|
6371 cat >>confdefs.h <<_ACEOF
|
|
6372 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
6373 _ACEOF
|
|
6374
|
|
6375 fi
|
|
6376 done
|
|
6377
|
|
6378 for ac_func in fstat
|
|
6379 do :
|
|
6380 ac_fn_c_check_func "$LINENO" "fstat" "ac_cv_func_fstat"
|
|
6381 if test "x$ac_cv_func_fstat" = xyes; then :
|
|
6382 cat >>confdefs.h <<_ACEOF
|
|
6383 #define HAVE_FSTAT 1
|
|
6384 _ACEOF
|
|
6385
|
|
6386 fi
|
|
6387 done
|
|
6388
|
|
6389
|
|
6390
|
|
6391
|
|
6392 for ac_header in $ac_header_list
|
|
6393 do :
|
|
6394 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
|
6395 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
|
|
6396 "
|
|
6397 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
|
6398 cat >>confdefs.h <<_ACEOF
|
|
6399 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
|
6400 _ACEOF
|
|
6401
|
|
6402 fi
|
|
6403
|
|
6404 done
|
|
6405
|
|
6406
|
|
6407
|
|
6408
|
|
6409
|
|
6410
|
|
6411
|
|
6412
|
|
6413 for ac_func in getpagesize
|
|
6414 do :
|
|
6415 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
|
|
6416 if test "x$ac_cv_func_getpagesize" = xyes; then :
|
|
6417 cat >>confdefs.h <<_ACEOF
|
|
6418 #define HAVE_GETPAGESIZE 1
|
|
6419 _ACEOF
|
|
6420
|
|
6421 fi
|
|
6422 done
|
|
6423
|
|
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
|
|
6425 $as_echo_n "checking for working mmap... " >&6; }
|
|
6426 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
|
|
6427 $as_echo_n "(cached) " >&6
|
|
6428 else
|
|
6429 if test "$cross_compiling" = yes; then :
|
|
6430 ac_cv_func_mmap_fixed_mapped=no
|
|
6431 else
|
|
6432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6433 /* end confdefs.h. */
|
|
6434 $ac_includes_default
|
|
6435 /* malloc might have been renamed as rpl_malloc. */
|
|
6436 #undef malloc
|
|
6437
|
|
6438 /* Thanks to Mike Haertel and Jim Avera for this test.
|
|
6439 Here is a matrix of mmap possibilities:
|
|
6440 mmap private not fixed
|
|
6441 mmap private fixed at somewhere currently unmapped
|
|
6442 mmap private fixed at somewhere already mapped
|
|
6443 mmap shared not fixed
|
|
6444 mmap shared fixed at somewhere currently unmapped
|
|
6445 mmap shared fixed at somewhere already mapped
|
|
6446 For private mappings, we should verify that changes cannot be read()
|
|
6447 back from the file, nor mmap's back from the file at a different
|
|
6448 address. (There have been systems where private was not correctly
|
|
6449 implemented like the infamous i386 svr4.0, and systems where the
|
|
6450 VM page cache was not coherent with the file system buffer cache
|
|
6451 like early versions of FreeBSD and possibly contemporary NetBSD.)
|
|
6452 For shared mappings, we should conversely verify that changes get
|
|
6453 propagated back to all the places they're supposed to be.
|
|
6454
|
|
6455 Grep wants private fixed already mapped.
|
|
6456 The main things grep needs to know about mmap are:
|
|
6457 * does it exist and is it safe to write into the mmap'd area
|
|
6458 * how to use it (BSD variants) */
|
|
6459
|
|
6460 #include <fcntl.h>
|
|
6461 #include <sys/mman.h>
|
|
6462
|
|
6463 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
|
|
6464 char *malloc ();
|
|
6465 #endif
|
|
6466
|
|
6467 /* This mess was copied from the GNU getpagesize.h. */
|
|
6468 #ifndef HAVE_GETPAGESIZE
|
|
6469 # ifdef _SC_PAGESIZE
|
|
6470 # define getpagesize() sysconf(_SC_PAGESIZE)
|
|
6471 # else /* no _SC_PAGESIZE */
|
|
6472 # ifdef HAVE_SYS_PARAM_H
|
|
6473 # include <sys/param.h>
|
|
6474 # ifdef EXEC_PAGESIZE
|
|
6475 # define getpagesize() EXEC_PAGESIZE
|
|
6476 # else /* no EXEC_PAGESIZE */
|
|
6477 # ifdef NBPG
|
|
6478 # define getpagesize() NBPG * CLSIZE
|
|
6479 # ifndef CLSIZE
|
|
6480 # define CLSIZE 1
|
|
6481 # endif /* no CLSIZE */
|
|
6482 # else /* no NBPG */
|
|
6483 # ifdef NBPC
|
|
6484 # define getpagesize() NBPC
|
|
6485 # else /* no NBPC */
|
|
6486 # ifdef PAGESIZE
|
|
6487 # define getpagesize() PAGESIZE
|
|
6488 # endif /* PAGESIZE */
|
|
6489 # endif /* no NBPC */
|
|
6490 # endif /* no NBPG */
|
|
6491 # endif /* no EXEC_PAGESIZE */
|
|
6492 # else /* no HAVE_SYS_PARAM_H */
|
|
6493 # define getpagesize() 8192 /* punt totally */
|
|
6494 # endif /* no HAVE_SYS_PARAM_H */
|
|
6495 # endif /* no _SC_PAGESIZE */
|
|
6496
|
|
6497 #endif /* no HAVE_GETPAGESIZE */
|
|
6498
|
|
6499 int
|
|
6500 main ()
|
|
6501 {
|
|
6502 char *data, *data2, *data3;
|
|
6503 const char *cdata2;
|
|
6504 int i, pagesize;
|
|
6505 int fd, fd2;
|
|
6506
|
|
6507 pagesize = getpagesize ();
|
|
6508
|
|
6509 /* First, make a file with some known garbage in it. */
|
|
6510 data = (char *) malloc (pagesize);
|
|
6511 if (!data)
|
|
6512 return 1;
|
|
6513 for (i = 0; i < pagesize; ++i)
|
|
6514 *(data + i) = rand ();
|
|
6515 umask (0);
|
|
6516 fd = creat ("conftest.mmap", 0600);
|
|
6517 if (fd < 0)
|
|
6518 return 2;
|
|
6519 if (write (fd, data, pagesize) != pagesize)
|
|
6520 return 3;
|
|
6521 close (fd);
|
|
6522
|
|
6523 /* Next, check that the tail of a page is zero-filled. File must have
|
|
6524 non-zero length, otherwise we risk SIGBUS for entire page. */
|
|
6525 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
|
|
6526 if (fd2 < 0)
|
|
6527 return 4;
|
|
6528 cdata2 = "";
|
|
6529 if (write (fd2, cdata2, 1) != 1)
|
|
6530 return 5;
|
|
6531 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
|
|
6532 if (data2 == MAP_FAILED)
|
|
6533 return 6;
|
|
6534 for (i = 0; i < pagesize; ++i)
|
|
6535 if (*(data2 + i))
|
|
6536 return 7;
|
|
6537 close (fd2);
|
|
6538 if (munmap (data2, pagesize))
|
|
6539 return 8;
|
|
6540
|
|
6541 /* Next, try to mmap the file at a fixed address which already has
|
|
6542 something else allocated at it. If we can, also make sure that
|
|
6543 we see the same garbage. */
|
|
6544 fd = open ("conftest.mmap", O_RDWR);
|
|
6545 if (fd < 0)
|
|
6546 return 9;
|
|
6547 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
|
|
6548 MAP_PRIVATE | MAP_FIXED, fd, 0L))
|
|
6549 return 10;
|
|
6550 for (i = 0; i < pagesize; ++i)
|
|
6551 if (*(data + i) != *(data2 + i))
|
|
6552 return 11;
|
|
6553
|
|
6554 /* Finally, make sure that changes to the mapped area do not
|
|
6555 percolate back to the file as seen by read(). (This is a bug on
|
|
6556 some variants of i386 svr4.0.) */
|
|
6557 for (i = 0; i < pagesize; ++i)
|
|
6558 *(data2 + i) = *(data2 + i) + 1;
|
|
6559 data3 = (char *) malloc (pagesize);
|
|
6560 if (!data3)
|
|
6561 return 12;
|
|
6562 if (read (fd, data3, pagesize) != pagesize)
|
|
6563 return 13;
|
|
6564 for (i = 0; i < pagesize; ++i)
|
|
6565 if (*(data + i) != *(data3 + i))
|
|
6566 return 14;
|
|
6567 close (fd);
|
|
6568 return 0;
|
|
6569 }
|
|
6570 _ACEOF
|
|
6571 if ac_fn_c_try_run "$LINENO"; then :
|
|
6572 ac_cv_func_mmap_fixed_mapped=yes
|
|
6573 else
|
|
6574 ac_cv_func_mmap_fixed_mapped=no
|
|
6575 fi
|
|
6576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
6577 conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
6578 fi
|
|
6579
|
|
6580 fi
|
|
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
|
|
6582 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
|
|
6583 if test $ac_cv_func_mmap_fixed_mapped = yes; then
|
|
6584
|
|
6585 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
|
|
6586
|
|
6587 fi
|
|
6588 rm -f conftest.mmap conftest.txt
|
|
6589
|
|
6590 for ac_func in getpagesize
|
|
6591 do :
|
|
6592 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
|
|
6593 if test "x$ac_cv_func_getpagesize" = xyes; then :
|
|
6594 cat >>confdefs.h <<_ACEOF
|
|
6595 #define HAVE_GETPAGESIZE 1
|
|
6596 _ACEOF
|
|
6597
|
|
6598 fi
|
|
6599 done
|
|
6600
|
|
6601 for ac_func in sysconf
|
|
6602 do :
|
|
6603 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
|
|
6604 if test "x$ac_cv_func_sysconf" = xyes; then :
|
|
6605 cat >>confdefs.h <<_ACEOF
|
|
6606 #define HAVE_SYSCONF 1
|
|
6607 _ACEOF
|
|
6608
|
|
6609 fi
|
|
6610 done
|
|
6611
|
|
6612
|
|
6613 for ac_func in access _access faccessat
|
|
6614 do :
|
|
6615 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
6616 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
|
6617 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
|
6618 cat >>confdefs.h <<_ACEOF
|
|
6619 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
6620 _ACEOF
|
|
6621
|
|
6622 fi
|
|
6623 done
|
|
6624
|
|
6625
|
|
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5
|
|
6627 $as_echo_n "checking for __builtin_clz... " >&6; }
|
|
6628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6629 /* end confdefs.h. */
|
|
6630
|
|
6631 int
|
|
6632 main ()
|
|
6633 {
|
|
6634 (void)__builtin_clz(0U);
|
|
6635 ;
|
|
6636 return 0;
|
|
6637 }
|
|
6638 _ACEOF
|
|
6639 if ac_fn_c_try_link "$LINENO"; then :
|
|
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
6641 $as_echo "yes" >&6; }
|
|
6642
|
|
6643 $as_echo "#define HAVE___BUILTIN_CLZ 1" >>confdefs.h
|
|
6644
|
|
6645 else
|
|
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
6647 $as_echo "no" >&6; }
|
|
6648 fi
|
|
6649 rm -f core conftest.err conftest.$ac_objext \
|
|
6650 conftest$ac_exeext conftest.$ac_ext
|
|
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clzl" >&5
|
|
6652 $as_echo_n "checking for __builtin_clzl... " >&6; }
|
|
6653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6654 /* end confdefs.h. */
|
|
6655
|
|
6656 int
|
|
6657 main ()
|
|
6658 {
|
|
6659 (void)__builtin_clzl(0UL);
|
|
6660 ;
|
|
6661 return 0;
|
|
6662 }
|
|
6663 _ACEOF
|
|
6664 if ac_fn_c_try_link "$LINENO"; then :
|
|
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
6666 $as_echo "yes" >&6; }
|
|
6667
|
|
6668 $as_echo "#define HAVE___BUILTIN_CLZL 1" >>confdefs.h
|
|
6669
|
|
6670 else
|
|
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
6672 $as_echo "no" >&6; }
|
|
6673 fi
|
|
6674 rm -f core conftest.err conftest.$ac_objext \
|
|
6675 conftest$ac_exeext conftest.$ac_ext
|
|
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clzll" >&5
|
|
6677 $as_echo_n "checking for __builtin_clzll... " >&6; }
|
|
6678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6679 /* end confdefs.h. */
|
|
6680
|
|
6681 int
|
|
6682 main ()
|
|
6683 {
|
|
6684 (void)__builtin_clzll(0ULL);
|
|
6685 ;
|
|
6686 return 0;
|
|
6687 }
|
|
6688 _ACEOF
|
|
6689 if ac_fn_c_try_link "$LINENO"; then :
|
|
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
6691 $as_echo "yes" >&6; }
|
|
6692
|
|
6693 $as_echo "#define HAVE___BUILTIN_CLZLL 1" >>confdefs.h
|
|
6694
|
|
6695 else
|
|
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
6697 $as_echo "no" >&6; }
|
|
6698 fi
|
|
6699 rm -f core conftest.err conftest.$ac_objext \
|
|
6700 conftest$ac_exeext conftest.$ac_ext
|
|
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
|
|
6702 $as_echo_n "checking for __builtin_expect... " >&6; }
|
|
6703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6704 /* end confdefs.h. */
|
|
6705
|
|
6706 int
|
|
6707 main ()
|
|
6708 {
|
|
6709 (void)__builtin_expect(1,1);
|
|
6710 ;
|
|
6711 return 0;
|
|
6712 }
|
|
6713 _ACEOF
|
|
6714 if ac_fn_c_try_link "$LINENO"; then :
|
|
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
6716 $as_echo "yes" >&6; }
|
|
6717
|
|
6718 $as_echo "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h
|
|
6719
|
|
6720 else
|
|
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
6722 $as_echo "no" >&6; }
|
|
6723 fi
|
|
6724 rm -f core conftest.err conftest.$ac_objext \
|
|
6725 conftest$ac_exeext conftest.$ac_ext
|
|
6726
|
|
6727 for ac_func in vsnprintf _vsnprintf
|
|
6728 do :
|
|
6729 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
6730 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
|
6731 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
|
6732 cat >>confdefs.h <<_ACEOF
|
|
6733 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
6734 _ACEOF
|
|
6735
|
|
6736 fi
|
|
6737 done
|
|
6738
|
|
6739 for ac_func in snprintf _snprintf
|
|
6740 do :
|
|
6741 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
6742 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
|
6743 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
|
6744 cat >>confdefs.h <<_ACEOF
|
|
6745 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
6746 _ACEOF
|
|
6747
|
|
6748 fi
|
|
6749 done
|
|
6750
|
|
6751 for ac_func in strlcpy
|
|
6752 do :
|
|
6753 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
|
|
6754 if test "x$ac_cv_func_strlcpy" = xyes; then :
|
|
6755 cat >>confdefs.h <<_ACEOF
|
|
6756 #define HAVE_STRLCPY 1
|
|
6757 _ACEOF
|
|
6758
|
|
6759 fi
|
|
6760 done
|
|
6761
|
|
6762
|
|
6763 ac_fn_c_check_decl "$LINENO" "strcasecmp" "ac_cv_have_decl_strcasecmp" "$ac_includes_default"
|
|
6764 if test "x$ac_cv_have_decl_strcasecmp" = xyes; then :
|
|
6765 ac_have_decl=1
|
|
6766 else
|
|
6767 ac_have_decl=0
|
|
6768 fi
|
|
6769
|
|
6770 cat >>confdefs.h <<_ACEOF
|
|
6771 #define HAVE_DECL_STRCASECMP $ac_have_decl
|
|
6772 _ACEOF
|
|
6773
|
|
6774 ac_fn_c_check_decl "$LINENO" "stricmp" "ac_cv_have_decl_stricmp" "$ac_includes_default"
|
|
6775 if test "x$ac_cv_have_decl_stricmp" = xyes; then :
|
|
6776 ac_have_decl=1
|
|
6777 else
|
|
6778 ac_have_decl=0
|
|
6779 fi
|
|
6780
|
|
6781 cat >>confdefs.h <<_ACEOF
|
|
6782 #define HAVE_DECL_STRICMP $ac_have_decl
|
|
6783 _ACEOF
|
|
6784
|
|
6785 ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default"
|
|
6786 if test "x$ac_cv_have_decl_strncasecmp" = xyes; then :
|
|
6787 ac_have_decl=1
|
|
6788 else
|
|
6789 ac_have_decl=0
|
|
6790 fi
|
|
6791
|
|
6792 cat >>confdefs.h <<_ACEOF
|
|
6793 #define HAVE_DECL_STRNCASECMP $ac_have_decl
|
|
6794 _ACEOF
|
|
6795
|
|
6796 ac_fn_c_check_decl "$LINENO" "strnicmp" "ac_cv_have_decl_strnicmp" "$ac_includes_default"
|
|
6797 if test "x$ac_cv_have_decl_strnicmp" = xyes; then :
|
|
6798 ac_have_decl=1
|
|
6799 else
|
|
6800 ac_have_decl=0
|
|
6801 fi
|
|
6802
|
|
6803 cat >>confdefs.h <<_ACEOF
|
|
6804 #define HAVE_DECL_STRNICMP $ac_have_decl
|
|
6805 _ACEOF
|
|
6806
|
|
6807 ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" "$ac_includes_default"
|
|
6808 if test "x$ac_cv_have_decl_strsep" = xyes; then :
|
|
6809 ac_have_decl=1
|
|
6810 else
|
|
6811 ac_have_decl=0
|
|
6812 fi
|
|
6813
|
|
6814 cat >>confdefs.h <<_ACEOF
|
|
6815 #define HAVE_DECL_STRSEP $ac_have_decl
|
|
6816 _ACEOF
|
|
6817
|
|
6818 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
|
|
6819 if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
|
|
6820 ac_have_decl=1
|
|
6821 else
|
|
6822 ac_have_decl=0
|
|
6823 fi
|
|
6824
|
|
6825 cat >>confdefs.h <<_ACEOF
|
|
6826 #define HAVE_DECL_STRLCPY $ac_have_decl
|
|
6827 _ACEOF
|
|
6828
|
|
6829 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
|
|
6830 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
|
|
6831 ac_have_decl=1
|
|
6832 else
|
|
6833 ac_have_decl=0
|
|
6834 fi
|
|
6835
|
|
6836 cat >>confdefs.h <<_ACEOF
|
|
6837 #define HAVE_DECL_STRNLEN $ac_have_decl
|
|
6838 _ACEOF
|
|
6839
|
|
6840
|
|
6841
|
|
6842 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
|
|
6843 if test "x$ac_cv_type_uintptr_t" = xyes; then :
|
|
6844
|
|
6845 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
|
|
6846
|
|
6847 else
|
|
6848 for ac_type in 'unsigned int' 'unsigned long int' \
|
|
6849 'unsigned long long int'; do
|
|
6850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6851 /* end confdefs.h. */
|
|
6852 $ac_includes_default
|
|
6853 int
|
|
6854 main ()
|
|
6855 {
|
|
6856 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
|
|
6857 test_array [0] = 0;
|
|
6858 return test_array [0];
|
|
6859
|
|
6860 ;
|
|
6861 return 0;
|
|
6862 }
|
|
6863 _ACEOF
|
|
6864 if ac_fn_c_try_compile "$LINENO"; then :
|
|
6865
|
|
6866 cat >>confdefs.h <<_ACEOF
|
|
6867 #define uintptr_t $ac_type
|
|
6868 _ACEOF
|
|
6869
|
|
6870 ac_type=
|
|
6871 fi
|
|
6872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
6873 test -z "$ac_type" && break
|
|
6874 done
|
|
6875 fi
|
|
6876
|
|
6877
|
|
6878
|
|
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=attributes" >&5
|
|
6880 $as_echo_n "checking if $CC accepts -Werror=attributes... " >&6; }
|
|
6881 pa_add_cflags__old_cflags="$CFLAGS"
|
|
6882 CFLAGS="$CFLAGS -Werror=attributes"
|
|
6883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6884 /* end confdefs.h. */
|
|
6885 #include <stdio.h>
|
|
6886 int
|
|
6887 main ()
|
|
6888 {
|
|
6889 printf("Hello, World!\n");
|
|
6890 ;
|
|
6891 return 0;
|
|
6892 }
|
|
6893 _ACEOF
|
|
6894 if ac_fn_c_try_link "$LINENO"; then :
|
|
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
6896 $as_echo "yes" >&6; }
|
|
6897 CFLAGS="$pa_add_cflags__old_cflags -Werror=attributes"
|
|
6898 else
|
|
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
6900 $as_echo "no" >&6; }
|
|
6901 CFLAGS="$pa_add_cflags__old_cflags"
|
|
6902 fi
|
|
6903 rm -f core conftest.err conftest.$ac_objext \
|
|
6904 conftest$ac_exeext conftest.$ac_ext
|
|
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the noreturn function attribute" >&5
|
|
6906 $as_echo_n "checking if $CC supports the noreturn function attribute... " >&6; }
|
|
6907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6908 /* end confdefs.h. */
|
|
6909
|
|
6910 #include <stdarg.h>
|
|
6911 extern void * __attribute__((noreturn))
|
|
6912 bar(int);
|
|
6913 void *foo(void);
|
|
6914 void *foo(void)
|
|
6915 {
|
|
6916 return bar(1);
|
|
6917 }
|
|
6918
|
|
6919 _ACEOF
|
|
6920 if ac_fn_c_try_compile "$LINENO"; then :
|
|
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
6922 $as_echo "yes" >&6; }
|
|
6923
|
|
6924 $as_echo "#define HAVE_FUNC_ATTRIBUTE_NORETURN 1" >>confdefs.h
|
|
6925
|
|
6926 else
|
|
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
6928 $as_echo "no" >&6; }
|
|
6929 fi
|
|
6930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
6931
|
|
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the returns_nonnull function attribute" >&5
|
|
6933 $as_echo_n "checking if $CC supports the returns_nonnull function attribute... " >&6; }
|
|
6934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6935 /* end confdefs.h. */
|
|
6936
|
|
6937 #include <stdarg.h>
|
|
6938 extern void * __attribute__((returns_nonnull))
|
|
6939 bar(int);
|
|
6940 void *foo(void);
|
|
6941 void *foo(void)
|
|
6942 {
|
|
6943 return bar(1);
|
|
6944 }
|
|
6945
|
|
6946 _ACEOF
|
|
6947 if ac_fn_c_try_compile "$LINENO"; then :
|
|
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
6949 $as_echo "yes" >&6; }
|
|
6950
|
|
6951 $as_echo "#define HAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL 1" >>confdefs.h
|
|
6952
|
|
6953 else
|
|
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
6955 $as_echo "no" >&6; }
|
|
6956 fi
|
|
6957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
6958
|
|
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the malloc function attribute" >&5
|
|
6960 $as_echo_n "checking if $CC supports the malloc function attribute... " >&6; }
|
|
6961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6962 /* end confdefs.h. */
|
|
6963
|
|
6964 #include <stdarg.h>
|
|
6965 extern void * __attribute__((malloc))
|
|
6966 bar(int);
|
|
6967 void *foo(void);
|
|
6968 void *foo(void)
|
|
6969 {
|
|
6970 return bar(1);
|
|
6971 }
|
|
6972
|
|
6973 _ACEOF
|
|
6974 if ac_fn_c_try_compile "$LINENO"; then :
|
|
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
6976 $as_echo "yes" >&6; }
|
|
6977
|
|
6978 $as_echo "#define HAVE_FUNC_ATTRIBUTE_MALLOC 1" >>confdefs.h
|
|
6979
|
|
6980 else
|
|
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
6982 $as_echo "no" >&6; }
|
|
6983 fi
|
|
6984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
6985
|
|
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the alloc_size function attribute" >&5
|
|
6987 $as_echo_n "checking if $CC supports the alloc_size function attribute... " >&6; }
|
|
6988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6989 /* end confdefs.h. */
|
|
6990
|
|
6991 #include <stdarg.h>
|
|
6992 extern void * __attribute__((alloc_size(1)))
|
|
6993 bar(int);
|
|
6994 void *foo(void);
|
|
6995 void *foo(void)
|
|
6996 {
|
|
6997 return bar(1);
|
|
6998 }
|
|
6999
|
|
7000 _ACEOF
|
|
7001 if ac_fn_c_try_compile "$LINENO"; then :
|
|
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
7003 $as_echo "yes" >&6; }
|
|
7004
|
|
7005 $as_echo "#define HAVE_FUNC_ATTRIBUTE_ALLOC_SIZE 1" >>confdefs.h
|
|
7006
|
|
7007 else
|
|
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
7009 $as_echo "no" >&6; }
|
|
7010 fi
|
|
7011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
7012
|
|
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the format function attribute" >&5
|
|
7014 $as_echo_n "checking if $CC supports the format function attribute... " >&6; }
|
|
7015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7016 /* end confdefs.h. */
|
|
7017
|
|
7018 #include <stdarg.h>
|
|
7019 extern int __attribute__((format(printf,1,2)))
|
|
7020 bar(const char *, ...);
|
|
7021 void *foo(void);
|
|
7022 void *foo(void)
|
|
7023 {
|
|
7024 return bar("%d",1);
|
|
7025 }
|
|
7026
|
|
7027 _ACEOF
|
|
7028 if ac_fn_c_try_compile "$LINENO"; then :
|
|
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
7030 $as_echo "yes" >&6; }
|
|
7031
|
|
7032 $as_echo "#define HAVE_FUNC_ATTRIBUTE_FORMAT 1" >>confdefs.h
|
|
7033
|
|
7034 else
|
|
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
7036 $as_echo "no" >&6; }
|
|
7037 fi
|
|
7038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
7039
|
|
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the const function attribute" >&5
|
|
7041 $as_echo_n "checking if $CC supports the const function attribute... " >&6; }
|
|
7042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7043 /* end confdefs.h. */
|
|
7044
|
|
7045 #include <stdarg.h>
|
|
7046 extern void * __attribute__((const))
|
|
7047 bar(int);
|
|
7048 void *foo(void);
|
|
7049 void *foo(void)
|
|
7050 {
|
|
7051 return bar(1);
|
|
7052 }
|
|
7053
|
|
7054 _ACEOF
|
|
7055 if ac_fn_c_try_compile "$LINENO"; then :
|
|
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
7057 $as_echo "yes" >&6; }
|
|
7058
|
|
7059 $as_echo "#define HAVE_FUNC_ATTRIBUTE_CONST 1" >>confdefs.h
|
|
7060
|
|
7061 else
|
|
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
7063 $as_echo "no" >&6; }
|
|
7064 fi
|
|
7065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
7066
|
|
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the pure function attribute" >&5
|
|
7068 $as_echo_n "checking if $CC supports the pure function attribute... " >&6; }
|
|
7069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7070 /* end confdefs.h. */
|
|
7071
|
|
7072 #include <stdarg.h>
|
|
7073 extern void * __attribute__((pure))
|
|
7074 bar(int);
|
|
7075 void *foo(void);
|
|
7076 void *foo(void)
|
|
7077 {
|
|
7078 return bar(1);
|
|
7079 }
|
|
7080
|
|
7081 _ACEOF
|
|
7082 if ac_fn_c_try_compile "$LINENO"; then :
|
|
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
7084 $as_echo "yes" >&6; }
|
|
7085
|
|
7086 $as_echo "#define HAVE_FUNC_ATTRIBUTE_PURE 1" >>confdefs.h
|
|
7087
|
|
7088 else
|
|
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
7090 $as_echo "no" >&6; }
|
|
7091 fi
|
|
7092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
7093
|
|
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the error function attribute" >&5
|
|
7095 $as_echo_n "checking if $CC supports the error function attribute... " >&6; }
|
|
7096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7097 /* end confdefs.h. */
|
|
7098
|
|
7099 #include <stdarg.h>
|
|
7100 extern void __attribute__((error("message"))) barf(void);
|
|
7101 void foo(void);
|
|
7102 void foo(void)
|
|
7103 {
|
|
7104 if (0)
|
|
7105 barf();
|
|
7106 }
|
|
7107
|
|
7108 _ACEOF
|
|
7109 if ac_fn_c_try_compile "$LINENO"; then :
|
|
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
7111 $as_echo "yes" >&6; }
|
|
7112
|
|
7113 $as_echo "#define HAVE_FUNC_ATTRIBUTE_ERROR 1" >>confdefs.h
|
|
7114
|
|
7115 else
|
|
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
7117 $as_echo "no" >&6; }
|
|
7118 fi
|
|
7119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
7120
|
|
7121
|
|
7122 # Check whether --enable-sections was given.
|
|
7123 if test "${enable_sections+set}" = set; then :
|
|
7124 enableval=$enable_sections; { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -ffunction-sections" >&5
|
|
7125 $as_echo_n "checking if $CC accepts -ffunction-sections... " >&6; }
|
|
7126 pa_add_cflags__old_cflags="$CFLAGS"
|
|
7127 CFLAGS="$CFLAGS -ffunction-sections"
|
|
7128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7129 /* end confdefs.h. */
|
|
7130 #include <stdio.h>
|
|
7131 int
|
|
7132 main ()
|
|
7133 {
|
|
7134 printf("Hello, World!\n");
|
|
7135 ;
|
|
7136 return 0;
|
|
7137 }
|
|
7138 _ACEOF
|
|
7139 if ac_fn_c_try_link "$LINENO"; then :
|
|
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
7141 $as_echo "yes" >&6; }
|
|
7142 CFLAGS="$pa_add_cflags__old_cflags -ffunction-sections"
|
|
7143 else
|
|
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
7145 $as_echo "no" >&6; }
|
|
7146 CFLAGS="$pa_add_cflags__old_cflags"
|
|
7147 fi
|
|
7148 rm -f core conftest.err conftest.$ac_objext \
|
|
7149 conftest$ac_exeext conftest.$ac_ext,
|
|
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fdata-sections" >&5
|
|
7151 $as_echo_n "checking if $CC accepts -fdata-sections... " >&6; }
|
|
7152 pa_add_cflags__old_cflags="$CFLAGS"
|
|
7153 CFLAGS="$CFLAGS -fdata-sections"
|
|
7154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7155 /* end confdefs.h. */
|
|
7156 #include <stdio.h>
|
|
7157 int
|
|
7158 main ()
|
|
7159 {
|
|
7160 printf("Hello, World!\n");
|
|
7161 ;
|
|
7162 return 0;
|
|
7163 }
|
|
7164 _ACEOF
|
|
7165 if ac_fn_c_try_link "$LINENO"; then :
|
|
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
7167 $as_echo "yes" >&6; }
|
|
7168 CFLAGS="$pa_add_cflags__old_cflags -fdata-sections"
|
|
7169 else
|
|
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
7171 $as_echo "no" >&6; }
|
|
7172 CFLAGS="$pa_add_cflags__old_cflags"
|
|
7173 fi
|
|
7174 rm -f core conftest.err conftest.$ac_objext \
|
|
7175 conftest$ac_exeext conftest.$ac_ext
|
|
7176 fi
|
|
7177
|
|
7178
|
|
7179 # Check whether --enable-lto was given.
|
|
7180 if test "${enable_lto+set}" = set; then :
|
|
7181 enableval=$enable_lto; { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -flto" >&5
|
|
7182 $as_echo_n "checking if $CC accepts -flto... " >&6; }
|
|
7183 pa_add_cldflags__old_cflags="$CFLAGS"
|
|
7184 CFLAGS="$CFLAGS -flto"
|
|
7185 pa_add_cldflags__old_ldflags="$LDFLAGS"
|
|
7186 LDFLAGS="$LDFLAGS -flto"
|
|
7187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7188 /* end confdefs.h. */
|
|
7189 #include <stdio.h>
|
|
7190 int
|
|
7191 main ()
|
|
7192 {
|
|
7193 printf("Hello, World!\n");
|
|
7194 ;
|
|
7195 return 0;
|
|
7196 }
|
|
7197 _ACEOF
|
|
7198 if ac_fn_c_try_link "$LINENO"; then :
|
|
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
7200 $as_echo "yes" >&6; }
|
|
7201 CFLAGS="$pa_add_cldflags__old_cflags -flto"
|
|
7202 LDFLAGS="$pa_add_cldflags__old_ldflags -flto"
|
|
7203 else
|
|
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
7205 $as_echo "no" >&6; }
|
|
7206 CFLAGS="$pa_add_cldflags__old_cflags"
|
|
7207 LDFLAGS="$pa_add_cldflags__old_ldflags"
|
|
7208 fi
|
|
7209 rm -f core conftest.err conftest.$ac_objext \
|
|
7210 conftest$ac_exeext conftest.$ac_ext
|
|
7211 ccbase=`echo "$CC" | awk '{ print $1; }'`
|
|
7212 # Extract the first word of "${ccbase}-ar", so it can be a program name with args.
|
|
7213 set dummy ${ccbase}-ar; ac_word=$2
|
|
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
7215 $as_echo_n "checking for $ac_word... " >&6; }
|
|
7216 if ${ac_cv_prog_CC_AR+:} false; then :
|
|
7217 $as_echo_n "(cached) " >&6
|
|
7218 else
|
|
7219 if test -n "$CC_AR"; then
|
|
7220 ac_cv_prog_CC_AR="$CC_AR" # Let the user override the test.
|
|
7221 else
|
|
7222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
7223 for as_dir in $PATH
|
|
7224 do
|
|
7225 IFS=$as_save_IFS
|
|
7226 test -z "$as_dir" && as_dir=.
|
|
7227 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
7228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
7229 ac_cv_prog_CC_AR="${ccbase}-ar"
|
|
7230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
7231 break 2
|
|
7232 fi
|
|
7233 done
|
|
7234 done
|
|
7235 IFS=$as_save_IFS
|
|
7236
|
|
7237 test -z "$ac_cv_prog_CC_AR" && ac_cv_prog_CC_AR="$ac_cv_prog_AR"
|
|
7238 fi
|
|
7239 fi
|
|
7240 CC_AR=$ac_cv_prog_CC_AR
|
|
7241 if test -n "$CC_AR"; then
|
|
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_AR" >&5
|
|
7243 $as_echo "$CC_AR" >&6; }
|
|
7244 else
|
|
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
7246 $as_echo "no" >&6; }
|
|
7247 fi
|
|
7248
|
|
7249
|
|
7250 AR="$CC_AR"
|
|
7251 # Extract the first word of "${ccbase}-ranlib", so it can be a program name with args.
|
|
7252 set dummy ${ccbase}-ranlib; ac_word=$2
|
|
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
7254 $as_echo_n "checking for $ac_word... " >&6; }
|
|
7255 if ${ac_cv_prog_CC_RANLIB+:} false; then :
|
|
7256 $as_echo_n "(cached) " >&6
|
|
7257 else
|
|
7258 if test -n "$CC_RANLIB"; then
|
|
7259 ac_cv_prog_CC_RANLIB="$CC_RANLIB" # Let the user override the test.
|
|
7260 else
|
|
7261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
7262 for as_dir in $PATH
|
|
7263 do
|
|
7264 IFS=$as_save_IFS
|
|
7265 test -z "$as_dir" && as_dir=.
|
|
7266 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
7267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
7268 ac_cv_prog_CC_RANLIB="${ccbase}-ranlib"
|
|
7269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
7270 break 2
|
|
7271 fi
|
|
7272 done
|
|
7273 done
|
|
7274 IFS=$as_save_IFS
|
|
7275
|
|
7276 test -z "$ac_cv_prog_CC_RANLIB" && ac_cv_prog_CC_RANLIB="$ac_cv_prog_RANLIB"
|
|
7277 fi
|
|
7278 fi
|
|
7279 CC_RANLIB=$ac_cv_prog_CC_RANLIB
|
|
7280 if test -n "$CC_RANLIB"; then
|
|
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_RANLIB" >&5
|
|
7282 $as_echo "$CC_RANLIB" >&6; }
|
|
7283 else
|
|
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
7285 $as_echo "no" >&6; }
|
|
7286 fi
|
|
7287
|
|
7288
|
|
7289 RANLIB="$CC_RANLIB"
|
|
7290
|
|
7291 fi
|
|
7292
|
|
7293
|
|
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -W" >&5
|
|
7295 $as_echo_n "checking if $CC accepts -W... " >&6; }
|
|
7296 pa_add_cflags__old_cflags="$CFLAGS"
|
|
7297 CFLAGS="$CFLAGS -W"
|
|
7298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7299 /* end confdefs.h. */
|
|
7300 #include <stdio.h>
|
|
7301 int
|
|
7302 main ()
|
|
7303 {
|
|
7304 printf("Hello, World!\n");
|
|
7305 ;
|
|
7306 return 0;
|
|
7307 }
|
|
7308 _ACEOF
|
|
7309 if ac_fn_c_try_link "$LINENO"; then :
|
|
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
7311 $as_echo "yes" >&6; }
|
|
7312 CFLAGS="$pa_add_cflags__old_cflags -W"
|
|
7313 else
|
|
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
7315 $as_echo "no" >&6; }
|
|
7316 CFLAGS="$pa_add_cflags__old_cflags"
|
|
7317 fi
|
|
7318 rm -f core conftest.err conftest.$ac_objext \
|
|
7319 conftest$ac_exeext conftest.$ac_ext
|
|
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wall" >&5
|
|
7321 $as_echo_n "checking if $CC accepts -Wall... " >&6; }
|
|
7322 pa_add_cflags__old_cflags="$CFLAGS"
|
|
7323 CFLAGS="$CFLAGS -Wall"
|
|
7324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7325 /* end confdefs.h. */
|
|
7326 #include <stdio.h>
|
|
7327 int
|
|
7328 main ()
|
|
7329 {
|
|
7330 printf("Hello, World!\n");
|
|
7331 ;
|
|
7332 return 0;
|
|
7333 }
|
|
7334 _ACEOF
|
|
7335 if ac_fn_c_try_link "$LINENO"; then :
|
|
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
7337 $as_echo "yes" >&6; }
|
|
7338 CFLAGS="$pa_add_cflags__old_cflags -Wall"
|
|
7339 else
|
|
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
7341 $as_echo "no" >&6; }
|
|
7342 CFLAGS="$pa_add_cflags__old_cflags"
|
|
7343 fi
|
|
7344 rm -f core conftest.err conftest.$ac_objext \
|
|
7345 conftest$ac_exeext conftest.$ac_ext
|
|
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -pedantic" >&5
|
|
7347 $as_echo_n "checking if $CC accepts -pedantic... " >&6; }
|
|
7348 pa_add_cflags__old_cflags="$CFLAGS"
|
|
7349 CFLAGS="$CFLAGS -pedantic"
|
|
7350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7351 /* end confdefs.h. */
|
|
7352 #include <stdio.h>
|
|
7353 int
|
|
7354 main ()
|
|
7355 {
|
|
7356 printf("Hello, World!\n");
|
|
7357 ;
|
|
7358 return 0;
|
|
7359 }
|
|
7360 _ACEOF
|
|
7361 if ac_fn_c_try_link "$LINENO"; then :
|
|
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
7363 $as_echo "yes" >&6; }
|
|
7364 CFLAGS="$pa_add_cflags__old_cflags -pedantic"
|
|
7365 else
|
|
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
7367 $as_echo "no" >&6; }
|
|
7368 CFLAGS="$pa_add_cflags__old_cflags"
|
|
7369 fi
|
|
7370 rm -f core conftest.err conftest.$ac_objext \
|
|
7371 conftest$ac_exeext conftest.$ac_ext
|
|
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=unknown-warning-option" >&5
|
|
7373 $as_echo_n "checking if $CC accepts -Werror=unknown-warning-option... " >&6; }
|
|
7374 pa_add_cflags__old_cflags="$CFLAGS"
|
|
7375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
|
|
7376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7377 /* end confdefs.h. */
|
|
7378 #include <stdio.h>
|
|
7379 int
|
|
7380 main ()
|
|
7381 {
|
|
7382 printf("Hello, World!\n");
|
|
7383 ;
|
|
7384 return 0;
|
|
7385 }
|
|
7386 _ACEOF
|
|
7387 if ac_fn_c_try_link "$LINENO"; then :
|
|
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
7389 $as_echo "yes" >&6; }
|
|
7390 CFLAGS="$pa_add_cflags__old_cflags -Werror=unknown-warning-option"
|
|
7391 else
|
|
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
7393 $as_echo "no" >&6; }
|
|
7394 CFLAGS="$pa_add_cflags__old_cflags"
|
|
7395 fi
|
|
7396 rm -f core conftest.err conftest.$ac_objext \
|
|
7397 conftest$ac_exeext conftest.$ac_ext
|
|
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wpedantic-ms-format" >&5
|
|
7399 $as_echo_n "checking if $CC accepts -Wpedantic-ms-format... " >&6; }
|
|
7400 pa_add_cflags__old_cflags="$CFLAGS"
|
|
7401 CFLAGS="$CFLAGS -Wpedantic-ms-format"
|
|
7402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7403 /* end confdefs.h. */
|
|
7404 #include <stdio.h>
|
|
7405 int
|
|
7406 main ()
|
|
7407 {
|
|
7408 printf("Hello, World!\n");
|
|
7409 ;
|
|
7410 return 0;
|
|
7411 }
|
|
7412 _ACEOF
|
|
7413 if ac_fn_c_try_link "$LINENO"; then :
|
|
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
7415 $as_echo "yes" >&6; }
|
|
7416 CFLAGS="$pa_add_cflags__old_cflags -Wno-pedantic-ms-format"
|
|
7417 else
|
|
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
7419 $as_echo "no" >&6; }
|
|
7420 CFLAGS="$pa_add_cflags__old_cflags"
|
|
7421 fi
|
|
7422 rm -f core conftest.err conftest.$ac_objext \
|
|
7423 conftest$ac_exeext conftest.$ac_ext
|
|
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wc90-c99-compat" >&5
|
|
7425 $as_echo_n "checking if $CC accepts -Wc90-c99-compat... " >&6; }
|
|
7426 pa_add_cflags__old_cflags="$CFLAGS"
|
|
7427 CFLAGS="$CFLAGS -Wc90-c99-compat"
|
|
7428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7429 /* end confdefs.h. */
|
|
7430 #include <stdio.h>
|
|
7431 int
|
|
7432 main ()
|
|
7433 {
|
|
7434 printf("Hello, World!\n");
|
|
7435 ;
|
|
7436 return 0;
|
|
7437 }
|
|
7438 _ACEOF
|
|
7439 if ac_fn_c_try_link "$LINENO"; then :
|
|
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
7441 $as_echo "yes" >&6; }
|
|
7442 CFLAGS="$pa_add_cflags__old_cflags -Wc90-c99-compat"
|
|
7443 else
|
|
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
7445 $as_echo "no" >&6; }
|
|
7446 CFLAGS="$pa_add_cflags__old_cflags"
|
|
7447 fi
|
|
7448 rm -f core conftest.err conftest.$ac_objext \
|
|
7449 conftest$ac_exeext conftest.$ac_ext
|
|
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wlong-long" >&5
|
|
7451 $as_echo_n "checking if $CC accepts -Wlong-long... " >&6; }
|
|
7452 pa_add_cflags__old_cflags="$CFLAGS"
|
|
7453 CFLAGS="$CFLAGS -Wlong-long"
|
|
7454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7455 /* end confdefs.h. */
|
|
7456 #include <stdio.h>
|
|
7457 int
|
|
7458 main ()
|
|
7459 {
|
|
7460 printf("Hello, World!\n");
|
|
7461 ;
|
|
7462 return 0;
|
|
7463 }
|
|
7464 _ACEOF
|
|
7465 if ac_fn_c_try_link "$LINENO"; then :
|
|
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
7467 $as_echo "yes" >&6; }
|
|
7468 CFLAGS="$pa_add_cflags__old_cflags -Wno-long-long"
|
|
7469 else
|
|
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
7471 $as_echo "no" >&6; }
|
|
7472 CFLAGS="$pa_add_cflags__old_cflags"
|
|
7473 fi
|
|
7474 rm -f core conftest.err conftest.$ac_objext \
|
|
7475 conftest$ac_exeext conftest.$ac_ext
|
|
7476 # Check whether --enable-werror was given.
|
|
7477 if test "${enable_werror+set}" = set; then :
|
|
7478 enableval=$enable_werror;
|
|
7479 else
|
|
7480 enable_werror=no
|
|
7481 fi
|
|
7482
|
|
7483 if test x"$enable_werror" != xno; then :
|
|
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror" >&5
|
|
7485 $as_echo_n "checking if $CC accepts -Werror... " >&6; }
|
|
7486 pa_add_cflags__old_cflags="$CFLAGS"
|
|
7487 CFLAGS="$CFLAGS -Werror"
|
|
7488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7489 /* end confdefs.h. */
|
|
7490 #include <stdio.h>
|
|
7491 int
|
|
7492 main ()
|
|
7493 {
|
|
7494 printf("Hello, World!\n");
|
|
7495 ;
|
|
7496 return 0;
|
|
7497 }
|
|
7498 _ACEOF
|
|
7499 if ac_fn_c_try_link "$LINENO"; then :
|
|
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
7501 $as_echo "yes" >&6; }
|
|
7502 CFLAGS="$pa_add_cflags__old_cflags -Werror"
|
|
7503 else
|
|
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
7505 $as_echo "no" >&6; }
|
|
7506 CFLAGS="$pa_add_cflags__old_cflags"
|
|
7507 fi
|
|
7508 rm -f core conftest.err conftest.$ac_objext \
|
|
7509 conftest$ac_exeext conftest.$ac_ext
|
|
7510 else
|
|
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=implicit" >&5
|
|
7512 $as_echo_n "checking if $CC accepts -Werror=implicit... " >&6; }
|
|
7513 pa_add_cflags__old_cflags="$CFLAGS"
|
|
7514 CFLAGS="$CFLAGS -Werror=implicit"
|
|
7515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7516 /* end confdefs.h. */
|
|
7517 #include <stdio.h>
|
|
7518 int
|
|
7519 main ()
|
|
7520 {
|
|
7521 printf("Hello, World!\n");
|
|
7522 ;
|
|
7523 return 0;
|
|
7524 }
|
|
7525 _ACEOF
|
|
7526 if ac_fn_c_try_link "$LINENO"; then :
|
|
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
7528 $as_echo "yes" >&6; }
|
|
7529 CFLAGS="$pa_add_cflags__old_cflags -Werror=implicit"
|
|
7530 else
|
|
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
7532 $as_echo "no" >&6; }
|
|
7533 CFLAGS="$pa_add_cflags__old_cflags"
|
|
7534 fi
|
|
7535 rm -f core conftest.err conftest.$ac_objext \
|
|
7536 conftest$ac_exeext conftest.$ac_ext
|
|
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=missing-braces" >&5
|
|
7538 $as_echo_n "checking if $CC accepts -Werror=missing-braces... " >&6; }
|
|
7539 pa_add_cflags__old_cflags="$CFLAGS"
|
|
7540 CFLAGS="$CFLAGS -Werror=missing-braces"
|
|
7541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7542 /* end confdefs.h. */
|
|
7543 #include <stdio.h>
|
|
7544 int
|
|
7545 main ()
|
|
7546 {
|
|
7547 printf("Hello, World!\n");
|
|
7548 ;
|
|
7549 return 0;
|
|
7550 }
|
|
7551 _ACEOF
|
|
7552 if ac_fn_c_try_link "$LINENO"; then :
|
|
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
7554 $as_echo "yes" >&6; }
|
|
7555 CFLAGS="$pa_add_cflags__old_cflags -Werror=missing-braces"
|
|
7556 else
|
|
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
7558 $as_echo "no" >&6; }
|
|
7559 CFLAGS="$pa_add_cflags__old_cflags"
|
|
7560 fi
|
|
7561 rm -f core conftest.err conftest.$ac_objext \
|
|
7562 conftest$ac_exeext conftest.$ac_ext
|
|
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=return-type" >&5
|
|
7564 $as_echo_n "checking if $CC accepts -Werror=return-type... " >&6; }
|
|
7565 pa_add_cflags__old_cflags="$CFLAGS"
|
|
7566 CFLAGS="$CFLAGS -Werror=return-type"
|
|
7567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7568 /* end confdefs.h. */
|
|
7569 #include <stdio.h>
|
|
7570 int
|
|
7571 main ()
|
|
7572 {
|
|
7573 printf("Hello, World!\n");
|
|
7574 ;
|
|
7575 return 0;
|
|
7576 }
|
|
7577 _ACEOF
|
|
7578 if ac_fn_c_try_link "$LINENO"; then :
|
|
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
7580 $as_echo "yes" >&6; }
|
|
7581 CFLAGS="$pa_add_cflags__old_cflags -Werror=return-type"
|
|
7582 else
|
|
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
7584 $as_echo "no" >&6; }
|
|
7585 CFLAGS="$pa_add_cflags__old_cflags"
|
|
7586 fi
|
|
7587 rm -f core conftest.err conftest.$ac_objext \
|
|
7588 conftest$ac_exeext conftest.$ac_ext
|
|
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=trigraphs" >&5
|
|
7590 $as_echo_n "checking if $CC accepts -Werror=trigraphs... " >&6; }
|
|
7591 pa_add_cflags__old_cflags="$CFLAGS"
|
|
7592 CFLAGS="$CFLAGS -Werror=trigraphs"
|
|
7593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7594 /* end confdefs.h. */
|
|
7595 #include <stdio.h>
|
|
7596 int
|
|
7597 main ()
|
|
7598 {
|
|
7599 printf("Hello, World!\n");
|
|
7600 ;
|
|
7601 return 0;
|
|
7602 }
|
|
7603 _ACEOF
|
|
7604 if ac_fn_c_try_link "$LINENO"; then :
|
|
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
7606 $as_echo "yes" >&6; }
|
|
7607 CFLAGS="$pa_add_cflags__old_cflags -Werror=trigraphs"
|
|
7608 else
|
|
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
7610 $as_echo "no" >&6; }
|
|
7611 CFLAGS="$pa_add_cflags__old_cflags"
|
|
7612 fi
|
|
7613 rm -f core conftest.err conftest.$ac_objext \
|
|
7614 conftest$ac_exeext conftest.$ac_ext
|
|
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=pointer-arith" >&5
|
|
7616 $as_echo_n "checking if $CC accepts -Werror=pointer-arith... " >&6; }
|
|
7617 pa_add_cflags__old_cflags="$CFLAGS"
|
|
7618 CFLAGS="$CFLAGS -Werror=pointer-arith"
|
|
7619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7620 /* end confdefs.h. */
|
|
7621 #include <stdio.h>
|
|
7622 int
|
|
7623 main ()
|
|
7624 {
|
|
7625 printf("Hello, World!\n");
|
|
7626 ;
|
|
7627 return 0;
|
|
7628 }
|
|
7629 _ACEOF
|
|
7630 if ac_fn_c_try_link "$LINENO"; then :
|
|
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
7632 $as_echo "yes" >&6; }
|
|
7633 CFLAGS="$pa_add_cflags__old_cflags -Werror=pointer-arith"
|
|
7634 else
|
|
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
7636 $as_echo "no" >&6; }
|
|
7637 CFLAGS="$pa_add_cflags__old_cflags"
|
|
7638 fi
|
|
7639 rm -f core conftest.err conftest.$ac_objext \
|
|
7640 conftest$ac_exeext conftest.$ac_ext
|
|
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=strict-prototypes" >&5
|
|
7642 $as_echo_n "checking if $CC accepts -Werror=strict-prototypes... " >&6; }
|
|
7643 pa_add_cflags__old_cflags="$CFLAGS"
|
|
7644 CFLAGS="$CFLAGS -Werror=strict-prototypes"
|
|
7645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7646 /* end confdefs.h. */
|
|
7647 #include <stdio.h>
|
|
7648 int
|
|
7649 main ()
|
|
7650 {
|
|
7651 printf("Hello, World!\n");
|
|
7652 ;
|
|
7653 return 0;
|
|
7654 }
|
|
7655 _ACEOF
|
|
7656 if ac_fn_c_try_link "$LINENO"; then :
|
|
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
7658 $as_echo "yes" >&6; }
|
|
7659 CFLAGS="$pa_add_cflags__old_cflags -Werror=strict-prototypes"
|
|
7660 else
|
|
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
7662 $as_echo "no" >&6; }
|
|
7663 CFLAGS="$pa_add_cflags__old_cflags"
|
|
7664 fi
|
|
7665 rm -f core conftest.err conftest.$ac_objext \
|
|
7666 conftest$ac_exeext conftest.$ac_ext
|
|
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=missing-prototypes" >&5
|
|
7668 $as_echo_n "checking if $CC accepts -Werror=missing-prototypes... " >&6; }
|
|
7669 pa_add_cflags__old_cflags="$CFLAGS"
|
|
7670 CFLAGS="$CFLAGS -Werror=missing-prototypes"
|
|
7671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7672 /* end confdefs.h. */
|
|
7673 #include <stdio.h>
|
|
7674 int
|
|
7675 main ()
|
|
7676 {
|
|
7677 printf("Hello, World!\n");
|
|
7678 ;
|
|
7679 return 0;
|
|
7680 }
|
|
7681 _ACEOF
|
|
7682 if ac_fn_c_try_link "$LINENO"; then :
|
|
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
7684 $as_echo "yes" >&6; }
|
|
7685 CFLAGS="$pa_add_cflags__old_cflags -Werror=missing-prototypes"
|
|
7686 else
|
|
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
7688 $as_echo "no" >&6; }
|
|
7689 CFLAGS="$pa_add_cflags__old_cflags"
|
|
7690 fi
|
|
7691 rm -f core conftest.err conftest.$ac_objext \
|
|
7692 conftest$ac_exeext conftest.$ac_ext
|
|
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=missing-declarations" >&5
|
|
7694 $as_echo_n "checking if $CC accepts -Werror=missing-declarations... " >&6; }
|
|
7695 pa_add_cflags__old_cflags="$CFLAGS"
|
|
7696 CFLAGS="$CFLAGS -Werror=missing-declarations"
|
|
7697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7698 /* end confdefs.h. */
|
|
7699 #include <stdio.h>
|
|
7700 int
|
|
7701 main ()
|
|
7702 {
|
|
7703 printf("Hello, World!\n");
|
|
7704 ;
|
|
7705 return 0;
|
|
7706 }
|
|
7707 _ACEOF
|
|
7708 if ac_fn_c_try_link "$LINENO"; then :
|
|
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
7710 $as_echo "yes" >&6; }
|
|
7711 CFLAGS="$pa_add_cflags__old_cflags -Werror=missing-declarations"
|
|
7712 else
|
|
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
7714 $as_echo "no" >&6; }
|
|
7715 CFLAGS="$pa_add_cflags__old_cflags"
|
|
7716 fi
|
|
7717 rm -f core conftest.err conftest.$ac_objext \
|
|
7718 conftest$ac_exeext conftest.$ac_ext
|
|
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=comment" >&5
|
|
7720 $as_echo_n "checking if $CC accepts -Werror=comment... " >&6; }
|
|
7721 pa_add_cflags__old_cflags="$CFLAGS"
|
|
7722 CFLAGS="$CFLAGS -Werror=comment"
|
|
7723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7724 /* end confdefs.h. */
|
|
7725 #include <stdio.h>
|
|
7726 int
|
|
7727 main ()
|
|
7728 {
|
|
7729 printf("Hello, World!\n");
|
|
7730 ;
|
|
7731 return 0;
|
|
7732 }
|
|
7733 _ACEOF
|
|
7734 if ac_fn_c_try_link "$LINENO"; then :
|
|
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
7736 $as_echo "yes" >&6; }
|
|
7737 CFLAGS="$pa_add_cflags__old_cflags -Werror=comment"
|
|
7738 else
|
|
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
7740 $as_echo "no" >&6; }
|
|
7741 CFLAGS="$pa_add_cflags__old_cflags"
|
|
7742 fi
|
|
7743 rm -f core conftest.err conftest.$ac_objext \
|
|
7744 conftest$ac_exeext conftest.$ac_ext
|
|
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=vla" >&5
|
|
7746 $as_echo_n "checking if $CC accepts -Werror=vla... " >&6; }
|
|
7747 pa_add_cflags__old_cflags="$CFLAGS"
|
|
7748 CFLAGS="$CFLAGS -Werror=vla"
|
|
7749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7750 /* end confdefs.h. */
|
|
7751 #include <stdio.h>
|
|
7752 int
|
|
7753 main ()
|
|
7754 {
|
|
7755 printf("Hello, World!\n");
|
|
7756 ;
|
|
7757 return 0;
|
|
7758 }
|
|
7759 _ACEOF
|
|
7760 if ac_fn_c_try_link "$LINENO"; then :
|
|
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
7762 $as_echo "yes" >&6; }
|
|
7763 CFLAGS="$pa_add_cflags__old_cflags -Werror=vla"
|
|
7764 else
|
|
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
7766 $as_echo "no" >&6; }
|
|
7767 CFLAGS="$pa_add_cflags__old_cflags"
|
|
7768 fi
|
|
7769 rm -f core conftest.err conftest.$ac_objext \
|
|
7770 conftest$ac_exeext conftest.$ac_ext
|
|
7771 fi
|
|
7772
|
|
7773 # Check whether --enable-ccache was given.
|
|
7774 if test "${enable_ccache+set}" = set; then :
|
|
7775 enableval=$enable_ccache; CC="ccache $CC"
|
|
7776 fi
|
|
7777
|
|
7778
|
|
7779 ac_config_commands="$ac_config_commands default-1"
|
|
7780
|
|
7781 ac_config_files="$ac_config_files Makefile rdoff/Makefile doc/Makefile"
|
|
7782
|
|
7783 cat >confcache <<\_ACEOF
|
|
7784 # This file is a shell script that caches the results of configure
|
|
7785 # tests run on this system so they can be shared between configure
|
|
7786 # scripts and configure runs, see configure's option --config-cache.
|
|
7787 # It is not useful on other systems. If it contains results you don't
|
|
7788 # want to keep, you may remove or edit it.
|
|
7789 #
|
|
7790 # config.status only pays attention to the cache file if you give it
|
|
7791 # the --recheck option to rerun configure.
|
|
7792 #
|
|
7793 # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
|
7794 # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
|
7795 # following values.
|
|
7796
|
|
7797 _ACEOF
|
|
7798
|
|
7799 # The following way of writing the cache mishandles newlines in values,
|
|
7800 # but we know of no workaround that is simple, portable, and efficient.
|
|
7801 # So, we kill variables containing newlines.
|
|
7802 # Ultrix sh set writes to stderr and can't be redirected directly,
|
|
7803 # and sets the high bit in the cache file unless we assign to the vars.
|
|
7804 (
|
|
7805 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
|
|
7806 eval ac_val=\$$ac_var
|
|
7807 case $ac_val in #(
|
|
7808 *${as_nl}*)
|
|
7809 case $ac_var in #(
|
|
7810 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
|
7811 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
|
7812 esac
|
|
7813 case $ac_var in #(
|
|
7814 _ | IFS | as_nl) ;; #(
|
|
7815 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
|
7816 *) { eval $ac_var=; unset $ac_var;} ;;
|
|
7817 esac ;;
|
|
7818 esac
|
|
7819 done
|
|
7820
|
|
7821 (set) 2>&1 |
|
|
7822 case $as_nl`(ac_space=' '; set) 2>&1` in #(
|
|
7823 *${as_nl}ac_space=\ *)
|
|
7824 # `set' does not quote correctly, so add quotes: double-quote
|
|
7825 # substitution turns \\\\ into \\, and sed turns \\ into \.
|
|
7826 sed -n \
|
|
7827 "s/'/'\\\\''/g;
|
|
7828 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
|
7829 ;; #(
|
|
7830 *)
|
|
7831 # `set' quotes correctly as required by POSIX, so do not add quotes.
|
|
7832 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
|
7833 ;;
|
|
7834 esac |
|
|
7835 sort
|
|
7836 ) |
|
|
7837 sed '
|
|
7838 /^ac_cv_env_/b end
|
|
7839 t clear
|
|
7840 :clear
|
|
7841 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
|
7842 t end
|
|
7843 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
|
7844 :end' >>confcache
|
|
7845 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
|
|
7846 if test -w "$cache_file"; then
|
|
7847 if test "x$cache_file" != "x/dev/null"; then
|
|
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
|
|
7849 $as_echo "$as_me: updating cache $cache_file" >&6;}
|
|
7850 if test ! -f "$cache_file" || test -h "$cache_file"; then
|
|
7851 cat confcache >"$cache_file"
|
|
7852 else
|
|
7853 case $cache_file in #(
|
|
7854 */* | ?:*)
|
|
7855 mv -f confcache "$cache_file"$$ &&
|
|
7856 mv -f "$cache_file"$$ "$cache_file" ;; #(
|
|
7857 *)
|
|
7858 mv -f confcache "$cache_file" ;;
|
|
7859 esac
|
|
7860 fi
|
|
7861 fi
|
|
7862 else
|
|
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
|
|
7864 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
|
|
7865 fi
|
|
7866 fi
|
|
7867 rm -f confcache
|
|
7868
|
|
7869 test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
|
7870 # Let make expand exec_prefix.
|
|
7871 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
|
7872
|
|
7873 DEFS=-DHAVE_CONFIG_H
|
|
7874
|
|
7875 ac_libobjs=
|
|
7876 ac_ltlibobjs=
|
|
7877 U=
|
|
7878 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
|
7879 # 1. Remove the extension, and $U if already installed.
|
|
7880 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
|
7881 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
|
|
7882 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
|
7883 # will be set to the directory where LIBOBJS objects are built.
|
|
7884 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
|
7885 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
|
|
7886 done
|
|
7887 LIBOBJS=$ac_libobjs
|
|
7888
|
|
7889 LTLIBOBJS=$ac_ltlibobjs
|
|
7890
|
|
7891
|
|
7892
|
|
7893
|
|
7894 : "${CONFIG_STATUS=./config.status}"
|
|
7895 ac_write_fail=0
|
|
7896 ac_clean_files_save=$ac_clean_files
|
|
7897 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
|
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
|
|
7899 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
|
7900 as_write_fail=0
|
|
7901 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
|
|
7902 #! $SHELL
|
|
7903 # Generated by $as_me.
|
|
7904 # Run this file to recreate the current configuration.
|
|
7905 # Compiler output produced by configure, useful for debugging
|
|
7906 # configure, is in config.log if it exists.
|
|
7907
|
|
7908 debug=false
|
|
7909 ac_cs_recheck=false
|
|
7910 ac_cs_silent=false
|
|
7911
|
|
7912 SHELL=\${CONFIG_SHELL-$SHELL}
|
|
7913 export SHELL
|
|
7914 _ASEOF
|
|
7915 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
|
|
7916 ## -------------------- ##
|
|
7917 ## M4sh Initialization. ##
|
|
7918 ## -------------------- ##
|
|
7919
|
|
7920 # Be more Bourne compatible
|
|
7921 DUALCASE=1; export DUALCASE # for MKS sh
|
|
7922 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
|
7923 emulate sh
|
|
7924 NULLCMD=:
|
|
7925 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
|
7926 # is contrary to our usage. Disable this feature.
|
|
7927 alias -g '${1+"$@"}'='"$@"'
|
|
7928 setopt NO_GLOB_SUBST
|
|
7929 else
|
|
7930 case `(set -o) 2>/dev/null` in #(
|
|
7931 *posix*) :
|
|
7932 set -o posix ;; #(
|
|
7933 *) :
|
|
7934 ;;
|
|
7935 esac
|
|
7936 fi
|
|
7937
|
|
7938
|
|
7939 as_nl='
|
|
7940 '
|
|
7941 export as_nl
|
|
7942 # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
|
7943 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
|
7944 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
|
7945 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
|
7946 # Prefer a ksh shell builtin over an external printf program on Solaris,
|
|
7947 # but without wasting forks for bash or zsh.
|
|
7948 if test -z "$BASH_VERSION$ZSH_VERSION" \
|
|
7949 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
|
7950 as_echo='print -r --'
|
|
7951 as_echo_n='print -rn --'
|
|
7952 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
|
7953 as_echo='printf %s\n'
|
|
7954 as_echo_n='printf %s'
|
|
7955 else
|
|
7956 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
|
7957 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
|
7958 as_echo_n='/usr/ucb/echo -n'
|
|
7959 else
|
|
7960 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
|
7961 as_echo_n_body='eval
|
|
7962 arg=$1;
|
|
7963 case $arg in #(
|
|
7964 *"$as_nl"*)
|
|
7965 expr "X$arg" : "X\\(.*\\)$as_nl";
|
|
7966 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
|
7967 esac;
|
|
7968 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
|
7969 '
|
|
7970 export as_echo_n_body
|
|
7971 as_echo_n='sh -c $as_echo_n_body as_echo'
|
|
7972 fi
|
|
7973 export as_echo_body
|
|
7974 as_echo='sh -c $as_echo_body as_echo'
|
|
7975 fi
|
|
7976
|
|
7977 # The user is always right.
|
|
7978 if test "${PATH_SEPARATOR+set}" != set; then
|
|
7979 PATH_SEPARATOR=:
|
|
7980 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
|
7981 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
|
7982 PATH_SEPARATOR=';'
|
|
7983 }
|
|
7984 fi
|
|
7985
|
|
7986
|
|
7987 # IFS
|
|
7988 # We need space, tab and new line, in precisely that order. Quoting is
|
|
7989 # there to prevent editors from complaining about space-tab.
|
|
7990 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
|
7991 # splitting by setting IFS to empty value.)
|
|
7992 IFS=" "" $as_nl"
|
|
7993
|
|
7994 # Find who we are. Look in the path if we contain no directory separator.
|
|
7995 as_myself=
|
|
7996 case $0 in #((
|
|
7997 *[\\/]* ) as_myself=$0 ;;
|
|
7998 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
7999 for as_dir in $PATH
|
|
8000 do
|
|
8001 IFS=$as_save_IFS
|
|
8002 test -z "$as_dir" && as_dir=.
|
|
8003 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
|
8004 done
|
|
8005 IFS=$as_save_IFS
|
|
8006
|
|
8007 ;;
|
|
8008 esac
|
|
8009 # We did not find ourselves, most probably we were run as `sh COMMAND'
|
|
8010 # in which case we are not to be found in the path.
|
|
8011 if test "x$as_myself" = x; then
|
|
8012 as_myself=$0
|
|
8013 fi
|
|
8014 if test ! -f "$as_myself"; then
|
|
8015 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
|
8016 exit 1
|
|
8017 fi
|
|
8018
|
|
8019 # Unset variables that we do not need and which cause bugs (e.g. in
|
|
8020 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
|
8021 # suppresses any "Segmentation fault" message there. '((' could
|
|
8022 # trigger a bug in pdksh 5.2.14.
|
|
8023 for as_var in BASH_ENV ENV MAIL MAILPATH
|
|
8024 do eval test x\${$as_var+set} = xset \
|
|
8025 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
|
8026 done
|
|
8027 PS1='$ '
|
|
8028 PS2='> '
|
|
8029 PS4='+ '
|
|
8030
|
|
8031 # NLS nuisances.
|
|
8032 LC_ALL=C
|
|
8033 export LC_ALL
|
|
8034 LANGUAGE=C
|
|
8035 export LANGUAGE
|
|
8036
|
|
8037 # CDPATH.
|
|
8038 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
|
8039
|
|
8040
|
|
8041 # as_fn_error STATUS ERROR [LINENO LOG_FD]
|
|
8042 # ----------------------------------------
|
|
8043 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
|
8044 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
|
8045 # script with STATUS, using 1 if that was 0.
|
|
8046 as_fn_error ()
|
|
8047 {
|
|
8048 as_status=$1; test $as_status -eq 0 && as_status=1
|
|
8049 if test "$4"; then
|
|
8050 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
8051 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
|
8052 fi
|
|
8053 $as_echo "$as_me: error: $2" >&2
|
|
8054 as_fn_exit $as_status
|
|
8055 } # as_fn_error
|
|
8056
|
|
8057
|
|
8058 # as_fn_set_status STATUS
|
|
8059 # -----------------------
|
|
8060 # Set $? to STATUS, without forking.
|
|
8061 as_fn_set_status ()
|
|
8062 {
|
|
8063 return $1
|
|
8064 } # as_fn_set_status
|
|
8065
|
|
8066 # as_fn_exit STATUS
|
|
8067 # -----------------
|
|
8068 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
|
8069 as_fn_exit ()
|
|
8070 {
|
|
8071 set +e
|
|
8072 as_fn_set_status $1
|
|
8073 exit $1
|
|
8074 } # as_fn_exit
|
|
8075
|
|
8076 # as_fn_unset VAR
|
|
8077 # ---------------
|
|
8078 # Portably unset VAR.
|
|
8079 as_fn_unset ()
|
|
8080 {
|
|
8081 { eval $1=; unset $1;}
|
|
8082 }
|
|
8083 as_unset=as_fn_unset
|
|
8084 # as_fn_append VAR VALUE
|
|
8085 # ----------------------
|
|
8086 # Append the text in VALUE to the end of the definition contained in VAR. Take
|
|
8087 # advantage of any shell optimizations that allow amortized linear growth over
|
|
8088 # repeated appends, instead of the typical quadratic growth present in naive
|
|
8089 # implementations.
|
|
8090 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
|
8091 eval 'as_fn_append ()
|
|
8092 {
|
|
8093 eval $1+=\$2
|
|
8094 }'
|
|
8095 else
|
|
8096 as_fn_append ()
|
|
8097 {
|
|
8098 eval $1=\$$1\$2
|
|
8099 }
|
|
8100 fi # as_fn_append
|
|
8101
|
|
8102 # as_fn_arith ARG...
|
|
8103 # ------------------
|
|
8104 # Perform arithmetic evaluation on the ARGs, and store the result in the
|
|
8105 # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
|
8106 # must be portable across $(()) and expr.
|
|
8107 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
|
8108 eval 'as_fn_arith ()
|
|
8109 {
|
|
8110 as_val=$(( $* ))
|
|
8111 }'
|
|
8112 else
|
|
8113 as_fn_arith ()
|
|
8114 {
|
|
8115 as_val=`expr "$@" || test $? -eq 1`
|
|
8116 }
|
|
8117 fi # as_fn_arith
|
|
8118
|
|
8119
|
|
8120 if expr a : '\(a\)' >/dev/null 2>&1 &&
|
|
8121 test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
|
8122 as_expr=expr
|
|
8123 else
|
|
8124 as_expr=false
|
|
8125 fi
|
|
8126
|
|
8127 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
|
8128 as_basename=basename
|
|
8129 else
|
|
8130 as_basename=false
|
|
8131 fi
|
|
8132
|
|
8133 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
|
8134 as_dirname=dirname
|
|
8135 else
|
|
8136 as_dirname=false
|
|
8137 fi
|
|
8138
|
|
8139 as_me=`$as_basename -- "$0" ||
|
|
8140 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
|
8141 X"$0" : 'X\(//\)$' \| \
|
|
8142 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
|
8143 $as_echo X/"$0" |
|
|
8144 sed '/^.*\/\([^/][^/]*\)\/*$/{
|
|
8145 s//\1/
|
|
8146 q
|
|
8147 }
|
|
8148 /^X\/\(\/\/\)$/{
|
|
8149 s//\1/
|
|
8150 q
|
|
8151 }
|
|
8152 /^X\/\(\/\).*/{
|
|
8153 s//\1/
|
|
8154 q
|
|
8155 }
|
|
8156 s/.*/./; q'`
|
|
8157
|
|
8158 # Avoid depending upon Character Ranges.
|
|
8159 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
|
8160 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
|
8161 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
|
8162 as_cr_digits='0123456789'
|
|
8163 as_cr_alnum=$as_cr_Letters$as_cr_digits
|
|
8164
|
|
8165 ECHO_C= ECHO_N= ECHO_T=
|
|
8166 case `echo -n x` in #(((((
|
|
8167 -n*)
|
|
8168 case `echo 'xy\c'` in
|
|
8169 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
|
8170 xy) ECHO_C='\c';;
|
|
8171 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
|
8172 ECHO_T=' ';;
|
|
8173 esac;;
|
|
8174 *)
|
|
8175 ECHO_N='-n';;
|
|
8176 esac
|
|
8177
|
|
8178 rm -f conf$$ conf$$.exe conf$$.file
|
|
8179 if test -d conf$$.dir; then
|
|
8180 rm -f conf$$.dir/conf$$.file
|
|
8181 else
|
|
8182 rm -f conf$$.dir
|
|
8183 mkdir conf$$.dir 2>/dev/null
|
|
8184 fi
|
|
8185 if (echo >conf$$.file) 2>/dev/null; then
|
|
8186 if ln -s conf$$.file conf$$ 2>/dev/null; then
|
|
8187 as_ln_s='ln -s'
|
|
8188 # ... but there are two gotchas:
|
|
8189 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
|
8190 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
|
8191 # In both cases, we have to default to `cp -pR'.
|
|
8192 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
|
8193 as_ln_s='cp -pR'
|
|
8194 elif ln conf$$.file conf$$ 2>/dev/null; then
|
|
8195 as_ln_s=ln
|
|
8196 else
|
|
8197 as_ln_s='cp -pR'
|
|
8198 fi
|
|
8199 else
|
|
8200 as_ln_s='cp -pR'
|
|
8201 fi
|
|
8202 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
|
8203 rmdir conf$$.dir 2>/dev/null
|
|
8204
|
|
8205
|
|
8206 # as_fn_mkdir_p
|
|
8207 # -------------
|
|
8208 # Create "$as_dir" as a directory, including parents if necessary.
|
|
8209 as_fn_mkdir_p ()
|
|
8210 {
|
|
8211
|
|
8212 case $as_dir in #(
|
|
8213 -*) as_dir=./$as_dir;;
|
|
8214 esac
|
|
8215 test -d "$as_dir" || eval $as_mkdir_p || {
|
|
8216 as_dirs=
|
|
8217 while :; do
|
|
8218 case $as_dir in #(
|
|
8219 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
|
8220 *) as_qdir=$as_dir;;
|
|
8221 esac
|
|
8222 as_dirs="'$as_qdir' $as_dirs"
|
|
8223 as_dir=`$as_dirname -- "$as_dir" ||
|
|
8224 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
|
8225 X"$as_dir" : 'X\(//\)[^/]' \| \
|
|
8226 X"$as_dir" : 'X\(//\)$' \| \
|
|
8227 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
|
8228 $as_echo X"$as_dir" |
|
|
8229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
|
8230 s//\1/
|
|
8231 q
|
|
8232 }
|
|
8233 /^X\(\/\/\)[^/].*/{
|
|
8234 s//\1/
|
|
8235 q
|
|
8236 }
|
|
8237 /^X\(\/\/\)$/{
|
|
8238 s//\1/
|
|
8239 q
|
|
8240 }
|
|
8241 /^X\(\/\).*/{
|
|
8242 s//\1/
|
|
8243 q
|
|
8244 }
|
|
8245 s/.*/./; q'`
|
|
8246 test -d "$as_dir" && break
|
|
8247 done
|
|
8248 test -z "$as_dirs" || eval "mkdir $as_dirs"
|
|
8249 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
|
8250
|
|
8251
|
|
8252 } # as_fn_mkdir_p
|
|
8253 if mkdir -p . 2>/dev/null; then
|
|
8254 as_mkdir_p='mkdir -p "$as_dir"'
|
|
8255 else
|
|
8256 test -d ./-p && rmdir ./-p
|
|
8257 as_mkdir_p=false
|
|
8258 fi
|
|
8259
|
|
8260
|
|
8261 # as_fn_executable_p FILE
|
|
8262 # -----------------------
|
|
8263 # Test if FILE is an executable regular file.
|
|
8264 as_fn_executable_p ()
|
|
8265 {
|
|
8266 test -f "$1" && test -x "$1"
|
|
8267 } # as_fn_executable_p
|
|
8268 as_test_x='test -x'
|
|
8269 as_executable_p=as_fn_executable_p
|
|
8270
|
|
8271 # Sed expression to map a string onto a valid CPP name.
|
|
8272 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
|
8273
|
|
8274 # Sed expression to map a string onto a valid variable name.
|
|
8275 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
|
8276
|
|
8277
|
|
8278 exec 6>&1
|
|
8279 ## ----------------------------------- ##
|
|
8280 ## Main body of $CONFIG_STATUS script. ##
|
|
8281 ## ----------------------------------- ##
|
|
8282 _ASEOF
|
|
8283 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
|
|
8284
|
|
8285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
|
8286 # Save the log message, to keep $0 and so on meaningful, and to
|
|
8287 # report actual input values of CONFIG_FILES etc. instead of their
|
|
8288 # values after options handling.
|
|
8289 ac_log="
|
|
8290 This file was extended by $as_me, which was
|
|
8291 generated by GNU Autoconf 2.69. Invocation command line was
|
|
8292
|
|
8293 CONFIG_FILES = $CONFIG_FILES
|
|
8294 CONFIG_HEADERS = $CONFIG_HEADERS
|
|
8295 CONFIG_LINKS = $CONFIG_LINKS
|
|
8296 CONFIG_COMMANDS = $CONFIG_COMMANDS
|
|
8297 $ $0 $@
|
|
8298
|
|
8299 on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
|
8300 "
|
|
8301
|
|
8302 _ACEOF
|
|
8303
|
|
8304 case $ac_config_files in *"
|
|
8305 "*) set x $ac_config_files; shift; ac_config_files=$*;;
|
|
8306 esac
|
|
8307
|
|
8308 case $ac_config_headers in *"
|
|
8309 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
|
|
8310 esac
|
|
8311
|
|
8312
|
|
8313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
|
8314 # Files that config.status was made for.
|
|
8315 config_files="$ac_config_files"
|
|
8316 config_headers="$ac_config_headers"
|
|
8317 config_commands="$ac_config_commands"
|
|
8318
|
|
8319 _ACEOF
|
|
8320
|
|
8321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
|
8322 ac_cs_usage="\
|
|
8323 \`$as_me' instantiates files and other configuration actions
|
|
8324 from templates according to the current configuration. Unless the files
|
|
8325 and actions are specified as TAGs, all are instantiated by default.
|
|
8326
|
|
8327 Usage: $0 [OPTION]... [TAG]...
|
|
8328
|
|
8329 -h, --help print this help, then exit
|
|
8330 -V, --version print version number and configuration settings, then exit
|
|
8331 --config print configuration, then exit
|
|
8332 -q, --quiet, --silent
|
|
8333 do not print progress messages
|
|
8334 -d, --debug don't remove temporary files
|
|
8335 --recheck update $as_me by reconfiguring in the same conditions
|
|
8336 --file=FILE[:TEMPLATE]
|
|
8337 instantiate the configuration file FILE
|
|
8338 --header=FILE[:TEMPLATE]
|
|
8339 instantiate the configuration header FILE
|
|
8340
|
|
8341 Configuration files:
|
|
8342 $config_files
|
|
8343
|
|
8344 Configuration headers:
|
|
8345 $config_headers
|
|
8346
|
|
8347 Configuration commands:
|
|
8348 $config_commands
|
|
8349
|
|
8350 Report bugs to the package provider."
|
|
8351
|
|
8352 _ACEOF
|
|
8353 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
|
8354 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
|
8355 ac_cs_version="\\
|
|
8356 config.status
|
|
8357 configured by $0, generated by GNU Autoconf 2.69,
|
|
8358 with options \\"\$ac_cs_config\\"
|
|
8359
|
|
8360 Copyright (C) 2012 Free Software Foundation, Inc.
|
|
8361 This config.status script is free software; the Free Software Foundation
|
|
8362 gives unlimited permission to copy, distribute and modify it."
|
|
8363
|
|
8364 ac_pwd='$ac_pwd'
|
|
8365 srcdir='$srcdir'
|
|
8366 INSTALL='$INSTALL'
|
|
8367 test -n "\$AWK" || AWK=awk
|
|
8368 _ACEOF
|
|
8369
|
|
8370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
|
8371 # The default lists apply if the user does not specify any file.
|
|
8372 ac_need_defaults=:
|
|
8373 while test $# != 0
|
|
8374 do
|
|
8375 case $1 in
|
|
8376 --*=?*)
|
|
8377 ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
|
8378 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
|
8379 ac_shift=:
|
|
8380 ;;
|
|
8381 --*=)
|
|
8382 ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
|
8383 ac_optarg=
|
|
8384 ac_shift=:
|
|
8385 ;;
|
|
8386 *)
|
|
8387 ac_option=$1
|
|
8388 ac_optarg=$2
|
|
8389 ac_shift=shift
|
|
8390 ;;
|
|
8391 esac
|
|
8392
|
|
8393 case $ac_option in
|
|
8394 # Handling of the options.
|
|
8395 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
|
8396 ac_cs_recheck=: ;;
|
|
8397 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
|
8398 $as_echo "$ac_cs_version"; exit ;;
|
|
8399 --config | --confi | --conf | --con | --co | --c )
|
|
8400 $as_echo "$ac_cs_config"; exit ;;
|
|
8401 --debug | --debu | --deb | --de | --d | -d )
|
|
8402 debug=: ;;
|
|
8403 --file | --fil | --fi | --f )
|
|
8404 $ac_shift
|
|
8405 case $ac_optarg in
|
|
8406 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
|
8407 '') as_fn_error $? "missing file argument" ;;
|
|
8408 esac
|
|
8409 as_fn_append CONFIG_FILES " '$ac_optarg'"
|
|
8410 ac_need_defaults=false;;
|
|
8411 --header | --heade | --head | --hea )
|
|
8412 $ac_shift
|
|
8413 case $ac_optarg in
|
|
8414 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
|
8415 esac
|
|
8416 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
|
|
8417 ac_need_defaults=false;;
|
|
8418 --he | --h)
|
|
8419 # Conflict between --help and --header
|
|
8420 as_fn_error $? "ambiguous option: \`$1'
|
|
8421 Try \`$0 --help' for more information.";;
|
|
8422 --help | --hel | -h )
|
|
8423 $as_echo "$ac_cs_usage"; exit ;;
|
|
8424 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
|
8425 | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
|
8426 ac_cs_silent=: ;;
|
|
8427
|
|
8428 # This is an error.
|
|
8429 -*) as_fn_error $? "unrecognized option: \`$1'
|
|
8430 Try \`$0 --help' for more information." ;;
|
|
8431
|
|
8432 *) as_fn_append ac_config_targets " $1"
|
|
8433 ac_need_defaults=false ;;
|
|
8434
|
|
8435 esac
|
|
8436 shift
|
|
8437 done
|
|
8438
|
|
8439 ac_configure_extra_args=
|
|
8440
|
|
8441 if $ac_cs_silent; then
|
|
8442 exec 6>/dev/null
|
|
8443 ac_configure_extra_args="$ac_configure_extra_args --silent"
|
|
8444 fi
|
|
8445
|
|
8446 _ACEOF
|
|
8447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
|
8448 if \$ac_cs_recheck; then
|
|
8449 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
|
8450 shift
|
|
8451 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
|
|
8452 CONFIG_SHELL='$SHELL'
|
|
8453 export CONFIG_SHELL
|
|
8454 exec "\$@"
|
|
8455 fi
|
|
8456
|
|
8457 _ACEOF
|
|
8458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
|
8459 exec 5>>config.log
|
|
8460 {
|
|
8461 echo
|
|
8462 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
|
8463 ## Running $as_me. ##
|
|
8464 _ASBOX
|
|
8465 $as_echo "$ac_log"
|
|
8466 } >&5
|
|
8467
|
|
8468 _ACEOF
|
|
8469 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
|
8470 #
|
|
8471 # INIT-COMMANDS
|
|
8472 #
|
|
8473
|
|
8474
|
|
8475 _ACEOF
|
|
8476
|
|
8477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
|
8478
|
|
8479 # Handling of arguments.
|
|
8480 for ac_config_target in $ac_config_targets
|
|
8481 do
|
|
8482 case $ac_config_target in
|
|
8483 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
|
|
8484 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
|
|
8485 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
|
8486 "rdoff/Makefile") CONFIG_FILES="$CONFIG_FILES rdoff/Makefile" ;;
|
|
8487 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
|
|
8488
|
|
8489 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
|
|
8490 esac
|
|
8491 done
|
|
8492
|
|
8493
|
|
8494 # If the user did not use the arguments to specify the items to instantiate,
|
|
8495 # then the envvar interface is used. Set only those that are not.
|
|
8496 # We use the long form for the default assignment because of an extremely
|
|
8497 # bizarre bug on SunOS 4.1.3.
|
|
8498 if $ac_need_defaults; then
|
|
8499 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
|
8500 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
|
8501 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
|
|
8502 fi
|
|
8503
|
|
8504 # Have a temporary directory for convenience. Make it in the build tree
|
|
8505 # simply because there is no reason against having it here, and in addition,
|
|
8506 # creating and moving files from /tmp can sometimes cause problems.
|
|
8507 # Hook for its removal unless debugging.
|
|
8508 # Note that there is a small window in which the directory will not be cleaned:
|
|
8509 # after its creation but before its name has been assigned to `$tmp'.
|
|
8510 $debug ||
|
|
8511 {
|
|
8512 tmp= ac_tmp=
|
|
8513 trap 'exit_status=$?
|
|
8514 : "${ac_tmp:=$tmp}"
|
|
8515 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
|
|
8516 ' 0
|
|
8517 trap 'as_fn_exit 1' 1 2 13 15
|
|
8518 }
|
|
8519 # Create a (secure) tmp directory for tmp files.
|
|
8520
|
|
8521 {
|
|
8522 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
|
|
8523 test -d "$tmp"
|
|
8524 } ||
|
|
8525 {
|
|
8526 tmp=./conf$$-$RANDOM
|
|
8527 (umask 077 && mkdir "$tmp")
|
|
8528 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
|
|
8529 ac_tmp=$tmp
|
|
8530
|
|
8531 # Set up the scripts for CONFIG_FILES section.
|
|
8532 # No need to generate them if there are no CONFIG_FILES.
|
|
8533 # This happens for instance with `./config.status config.h'.
|
|
8534 if test -n "$CONFIG_FILES"; then
|
|
8535
|
|
8536
|
|
8537 ac_cr=`echo X | tr X '\015'`
|
|
8538 # On cygwin, bash can eat \r inside `` if the user requested igncr.
|
|
8539 # But we know of no other shell where ac_cr would be empty at this
|
|
8540 # point, so we can use a bashism as a fallback.
|
|
8541 if test "x$ac_cr" = x; then
|
|
8542 eval ac_cr=\$\'\\r\'
|
|
8543 fi
|
|
8544 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
|
|
8545 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
|
|
8546 ac_cs_awk_cr='\\r'
|
|
8547 else
|
|
8548 ac_cs_awk_cr=$ac_cr
|
|
8549 fi
|
|
8550
|
|
8551 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
|
|
8552 _ACEOF
|
|
8553
|
|
8554
|
|
8555 {
|
|
8556 echo "cat >conf$$subs.awk <<_ACEOF" &&
|
|
8557 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
|
|
8558 echo "_ACEOF"
|
|
8559 } >conf$$subs.sh ||
|
|
8560 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
|
8561 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
|
|
8562 ac_delim='%!_!# '
|
|
8563 for ac_last_try in false false false false false :; do
|
|
8564 . ./conf$$subs.sh ||
|
|
8565 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
|
8566
|
|
8567 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
|
|
8568 if test $ac_delim_n = $ac_delim_num; then
|
|
8569 break
|
|
8570 elif $ac_last_try; then
|
|
8571 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
|
8572 else
|
|
8573 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
|
8574 fi
|
|
8575 done
|
|
8576 rm -f conf$$subs.sh
|
|
8577
|
|
8578 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
|
8579 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
|
|
8580 _ACEOF
|
|
8581 sed -n '
|
|
8582 h
|
|
8583 s/^/S["/; s/!.*/"]=/
|
|
8584 p
|
|
8585 g
|
|
8586 s/^[^!]*!//
|
|
8587 :repl
|
|
8588 t repl
|
|
8589 s/'"$ac_delim"'$//
|
|
8590 t delim
|
|
8591 :nl
|
|
8592 h
|
|
8593 s/\(.\{148\}\)..*/\1/
|
|
8594 t more1
|
|
8595 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
|
|
8596 p
|
|
8597 n
|
|
8598 b repl
|
|
8599 :more1
|
|
8600 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
|
8601 p
|
|
8602 g
|
|
8603 s/.\{148\}//
|
|
8604 t nl
|
|
8605 :delim
|
|
8606 h
|
|
8607 s/\(.\{148\}\)..*/\1/
|
|
8608 t more2
|
|
8609 s/["\\]/\\&/g; s/^/"/; s/$/"/
|
|
8610 p
|
|
8611 b
|
|
8612 :more2
|
|
8613 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
|
8614 p
|
|
8615 g
|
|
8616 s/.\{148\}//
|
|
8617 t delim
|
|
8618 ' <conf$$subs.awk | sed '
|
|
8619 /^[^""]/{
|
|
8620 N
|
|
8621 s/\n//
|
|
8622 }
|
|
8623 ' >>$CONFIG_STATUS || ac_write_fail=1
|
|
8624 rm -f conf$$subs.awk
|
|
8625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
|
8626 _ACAWK
|
|
8627 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
|
|
8628 for (key in S) S_is_set[key] = 1
|
|
8629 FS = ""
|
|
8630
|
|
8631 }
|
|
8632 {
|
|
8633 line = $ 0
|
|
8634 nfields = split(line, field, "@")
|
|
8635 substed = 0
|
|
8636 len = length(field[1])
|
|
8637 for (i = 2; i < nfields; i++) {
|
|
8638 key = field[i]
|
|
8639 keylen = length(key)
|
|
8640 if (S_is_set[key]) {
|
|
8641 value = S[key]
|
|
8642 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
|
|
8643 len += length(value) + length(field[++i])
|
|
8644 substed = 1
|
|
8645 } else
|
|
8646 len += 1 + keylen
|
|
8647 }
|
|
8648
|
|
8649 print line
|
|
8650 }
|
|
8651
|
|
8652 _ACAWK
|
|
8653 _ACEOF
|
|
8654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
|
8655 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
|
|
8656 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
|
|
8657 else
|
|
8658 cat
|
|
8659 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
|
|
8660 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
|
|
8661 _ACEOF
|
|
8662
|
|
8663 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
|
|
8664 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
|
|
8665 # trailing colons and then remove the whole line if VPATH becomes empty
|
|
8666 # (actually we leave an empty line to preserve line numbers).
|
|
8667 if test "x$srcdir" = x.; then
|
|
8668 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
|
|
8669 h
|
|
8670 s///
|
|
8671 s/^/:/
|
|
8672 s/[ ]*$/:/
|
|
8673 s/:\$(srcdir):/:/g
|
|
8674 s/:\${srcdir}:/:/g
|
|
8675 s/:@srcdir@:/:/g
|
|
8676 s/^:*//
|
|
8677 s/:*$//
|
|
8678 x
|
|
8679 s/\(=[ ]*\).*/\1/
|
|
8680 G
|
|
8681 s/\n//
|
|
8682 s/^[^=]*=[ ]*$//
|
|
8683 }'
|
|
8684 fi
|
|
8685
|
|
8686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
|
8687 fi # test -n "$CONFIG_FILES"
|
|
8688
|
|
8689 # Set up the scripts for CONFIG_HEADERS section.
|
|
8690 # No need to generate them if there are no CONFIG_HEADERS.
|
|
8691 # This happens for instance with `./config.status Makefile'.
|
|
8692 if test -n "$CONFIG_HEADERS"; then
|
|
8693 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
|
|
8694 BEGIN {
|
|
8695 _ACEOF
|
|
8696
|
|
8697 # Transform confdefs.h into an awk script `defines.awk', embedded as
|
|
8698 # here-document in config.status, that substitutes the proper values into
|
|
8699 # config.h.in to produce config.h.
|
|
8700
|
|
8701 # Create a delimiter string that does not exist in confdefs.h, to ease
|
|
8702 # handling of long lines.
|
|
8703 ac_delim='%!_!# '
|
|
8704 for ac_last_try in false false :; do
|
|
8705 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
|
|
8706 if test -z "$ac_tt"; then
|
|
8707 break
|
|
8708 elif $ac_last_try; then
|
|
8709 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
|
|
8710 else
|
|
8711 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
|
8712 fi
|
|
8713 done
|
|
8714
|
|
8715 # For the awk script, D is an array of macro values keyed by name,
|
|
8716 # likewise P contains macro parameters if any. Preserve backslash
|
|
8717 # newline sequences.
|
|
8718
|
|
8719 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
|
|
8720 sed -n '
|
|
8721 s/.\{148\}/&'"$ac_delim"'/g
|
|
8722 t rset
|
|
8723 :rset
|
|
8724 s/^[ ]*#[ ]*define[ ][ ]*/ /
|
|
8725 t def
|
|
8726 d
|
|
8727 :def
|
|
8728 s/\\$//
|
|
8729 t bsnl
|
|
8730 s/["\\]/\\&/g
|
|
8731 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
|
8732 D["\1"]=" \3"/p
|
|
8733 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
|
|
8734 d
|
|
8735 :bsnl
|
|
8736 s/["\\]/\\&/g
|
|
8737 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
|
8738 D["\1"]=" \3\\\\\\n"\\/p
|
|
8739 t cont
|
|
8740 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
|
|
8741 t cont
|
|
8742 d
|
|
8743 :cont
|
|
8744 n
|
|
8745 s/.\{148\}/&'"$ac_delim"'/g
|
|
8746 t clear
|
|
8747 :clear
|
|
8748 s/\\$//
|
|
8749 t bsnlc
|
|
8750 s/["\\]/\\&/g; s/^/"/; s/$/"/p
|
|
8751 d
|
|
8752 :bsnlc
|
|
8753 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
|
|
8754 b cont
|
|
8755 ' <confdefs.h | sed '
|
|
8756 s/'"$ac_delim"'/"\\\
|
|
8757 "/g' >>$CONFIG_STATUS || ac_write_fail=1
|
|
8758
|
|
8759 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
|
8760 for (key in D) D_is_set[key] = 1
|
|
8761 FS = ""
|
|
8762 }
|
|
8763 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
|
|
8764 line = \$ 0
|
|
8765 split(line, arg, " ")
|
|
8766 if (arg[1] == "#") {
|
|
8767 defundef = arg[2]
|
|
8768 mac1 = arg[3]
|
|
8769 } else {
|
|
8770 defundef = substr(arg[1], 2)
|
|
8771 mac1 = arg[2]
|
|
8772 }
|
|
8773 split(mac1, mac2, "(") #)
|
|
8774 macro = mac2[1]
|
|
8775 prefix = substr(line, 1, index(line, defundef) - 1)
|
|
8776 if (D_is_set[macro]) {
|
|
8777 # Preserve the white space surrounding the "#".
|
|
8778 print prefix "define", macro P[macro] D[macro]
|
|
8779 next
|
|
8780 } else {
|
|
8781 # Replace #undef with comments. This is necessary, for example,
|
|
8782 # in the case of _POSIX_SOURCE, which is predefined and required
|
|
8783 # on some systems where configure will not decide to define it.
|
|
8784 if (defundef == "undef") {
|
|
8785 print "/*", prefix defundef, macro, "*/"
|
|
8786 next
|
|
8787 }
|
|
8788 }
|
|
8789 }
|
|
8790 { print }
|
|
8791 _ACAWK
|
|
8792 _ACEOF
|
|
8793 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
|
8794 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
|
|
8795 fi # test -n "$CONFIG_HEADERS"
|
|
8796
|
|
8797
|
|
8798 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
|
|
8799 shift
|
|
8800 for ac_tag
|
|
8801 do
|
|
8802 case $ac_tag in
|
|
8803 :[FHLC]) ac_mode=$ac_tag; continue;;
|
|
8804 esac
|
|
8805 case $ac_mode$ac_tag in
|
|
8806 :[FHL]*:*);;
|
|
8807 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
|
|
8808 :[FH]-) ac_tag=-:-;;
|
|
8809 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
|
8810 esac
|
|
8811 ac_save_IFS=$IFS
|
|
8812 IFS=:
|
|
8813 set x $ac_tag
|
|
8814 IFS=$ac_save_IFS
|
|
8815 shift
|
|
8816 ac_file=$1
|
|
8817 shift
|
|
8818
|
|
8819 case $ac_mode in
|
|
8820 :L) ac_source=$1;;
|
|
8821 :[FH])
|
|
8822 ac_file_inputs=
|
|
8823 for ac_f
|
|
8824 do
|
|
8825 case $ac_f in
|
|
8826 -) ac_f="$ac_tmp/stdin";;
|
|
8827 *) # Look for the file first in the build tree, then in the source tree
|
|
8828 # (if the path is not absolute). The absolute path cannot be DOS-style,
|
|
8829 # because $ac_f cannot contain `:'.
|
|
8830 test -f "$ac_f" ||
|
|
8831 case $ac_f in
|
|
8832 [\\/$]*) false;;
|
|
8833 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
|
8834 esac ||
|
|
8835 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
|
|
8836 esac
|
|
8837 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
|
|
8838 as_fn_append ac_file_inputs " '$ac_f'"
|
|
8839 done
|
|
8840
|
|
8841 # Let's still pretend it is `configure' which instantiates (i.e., don't
|
|
8842 # use $as_me), people would be surprised to read:
|
|
8843 # /* config.h. Generated by config.status. */
|
|
8844 configure_input='Generated from '`
|
|
8845 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
|
|
8846 `' by configure.'
|
|
8847 if test x"$ac_file" != x-; then
|
|
8848 configure_input="$ac_file. $configure_input"
|
|
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
|
|
8850 $as_echo "$as_me: creating $ac_file" >&6;}
|
|
8851 fi
|
|
8852 # Neutralize special characters interpreted by sed in replacement strings.
|
|
8853 case $configure_input in #(
|
|
8854 *\&* | *\|* | *\\* )
|
|
8855 ac_sed_conf_input=`$as_echo "$configure_input" |
|
|
8856 sed 's/[\\\\&|]/\\\\&/g'`;; #(
|
|
8857 *) ac_sed_conf_input=$configure_input;;
|
|
8858 esac
|
|
8859
|
|
8860 case $ac_tag in
|
|
8861 *:-:* | *:-) cat >"$ac_tmp/stdin" \
|
|
8862 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
|
|
8863 esac
|
|
8864 ;;
|
|
8865 esac
|
|
8866
|
|
8867 ac_dir=`$as_dirname -- "$ac_file" ||
|
|
8868 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
|
8869 X"$ac_file" : 'X\(//\)[^/]' \| \
|
|
8870 X"$ac_file" : 'X\(//\)$' \| \
|
|
8871 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
|
8872 $as_echo X"$ac_file" |
|
|
8873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
|
8874 s//\1/
|
|
8875 q
|
|
8876 }
|
|
8877 /^X\(\/\/\)[^/].*/{
|
|
8878 s//\1/
|
|
8879 q
|
|
8880 }
|
|
8881 /^X\(\/\/\)$/{
|
|
8882 s//\1/
|
|
8883 q
|
|
8884 }
|
|
8885 /^X\(\/\).*/{
|
|
8886 s//\1/
|
|
8887 q
|
|
8888 }
|
|
8889 s/.*/./; q'`
|
|
8890 as_dir="$ac_dir"; as_fn_mkdir_p
|
|
8891 ac_builddir=.
|
|
8892
|
|
8893 case "$ac_dir" in
|
|
8894 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
|
8895 *)
|
|
8896 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
|
8897 # A ".." for each directory in $ac_dir_suffix.
|
|
8898 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
|
8899 case $ac_top_builddir_sub in
|
|
8900 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
|
8901 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
|
8902 esac ;;
|
|
8903 esac
|
|
8904 ac_abs_top_builddir=$ac_pwd
|
|
8905 ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
|
8906 # for backward compatibility:
|
|
8907 ac_top_builddir=$ac_top_build_prefix
|
|
8908
|
|
8909 case $srcdir in
|
|
8910 .) # We are building in place.
|
|
8911 ac_srcdir=.
|
|
8912 ac_top_srcdir=$ac_top_builddir_sub
|
|
8913 ac_abs_top_srcdir=$ac_pwd ;;
|
|
8914 [\\/]* | ?:[\\/]* ) # Absolute name.
|
|
8915 ac_srcdir=$srcdir$ac_dir_suffix;
|
|
8916 ac_top_srcdir=$srcdir
|
|
8917 ac_abs_top_srcdir=$srcdir ;;
|
|
8918 *) # Relative name.
|
|
8919 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
|
8920 ac_top_srcdir=$ac_top_build_prefix$srcdir
|
|
8921 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
|
8922 esac
|
|
8923 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
|
8924
|
|
8925
|
|
8926 case $ac_mode in
|
|
8927 :F)
|
|
8928 #
|
|
8929 # CONFIG_FILE
|
|
8930 #
|
|
8931
|
|
8932 case $INSTALL in
|
|
8933 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
|
8934 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
|
|
8935 esac
|
|
8936 _ACEOF
|
|
8937
|
|
8938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
|
8939 # If the template does not know about datarootdir, expand it.
|
|
8940 # FIXME: This hack should be removed a few years after 2.60.
|
|
8941 ac_datarootdir_hack=; ac_datarootdir_seen=
|
|
8942 ac_sed_dataroot='
|
|
8943 /datarootdir/ {
|
|
8944 p
|
|
8945 q
|
|
8946 }
|
|
8947 /@datadir@/p
|
|
8948 /@docdir@/p
|
|
8949 /@infodir@/p
|
|
8950 /@localedir@/p
|
|
8951 /@mandir@/p'
|
|
8952 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
|
|
8953 *datarootdir*) ac_datarootdir_seen=yes;;
|
|
8954 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
|
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
|
8956 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
|
8957 _ACEOF
|
|
8958 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
|
8959 ac_datarootdir_hack='
|
|
8960 s&@datadir@&$datadir&g
|
|
8961 s&@docdir@&$docdir&g
|
|
8962 s&@infodir@&$infodir&g
|
|
8963 s&@localedir@&$localedir&g
|
|
8964 s&@mandir@&$mandir&g
|
|
8965 s&\\\${datarootdir}&$datarootdir&g' ;;
|
|
8966 esac
|
|
8967 _ACEOF
|
|
8968
|
|
8969 # Neutralize VPATH when `$srcdir' = `.'.
|
|
8970 # Shell code in configure.ac might set extrasub.
|
|
8971 # FIXME: do we really want to maintain this feature?
|
|
8972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
|
8973 ac_sed_extra="$ac_vpsub
|
|
8974 $extrasub
|
|
8975 _ACEOF
|
|
8976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
|
8977 :t
|
|
8978 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
|
8979 s|@configure_input@|$ac_sed_conf_input|;t t
|
|
8980 s&@top_builddir@&$ac_top_builddir_sub&;t t
|
|
8981 s&@top_build_prefix@&$ac_top_build_prefix&;t t
|
|
8982 s&@srcdir@&$ac_srcdir&;t t
|
|
8983 s&@abs_srcdir@&$ac_abs_srcdir&;t t
|
|
8984 s&@top_srcdir@&$ac_top_srcdir&;t t
|
|
8985 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
|
|
8986 s&@builddir@&$ac_builddir&;t t
|
|
8987 s&@abs_builddir@&$ac_abs_builddir&;t t
|
|
8988 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
|
8989 s&@INSTALL@&$ac_INSTALL&;t t
|
|
8990 $ac_datarootdir_hack
|
|
8991 "
|
|
8992 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
|
|
8993 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
|
8994
|
|
8995 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
|
8996 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
|
|
8997 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
|
|
8998 "$ac_tmp/out"`; test -z "$ac_out"; } &&
|
|
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
|
9000 which seems to be undefined. Please make sure it is defined" >&5
|
|
9001 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
|
9002 which seems to be undefined. Please make sure it is defined" >&2;}
|
|
9003
|
|
9004 rm -f "$ac_tmp/stdin"
|
|
9005 case $ac_file in
|
|
9006 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
|
|
9007 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
|
|
9008 esac \
|
|
9009 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
|
9010 ;;
|
|
9011 :H)
|
|
9012 #
|
|
9013 # CONFIG_HEADER
|
|
9014 #
|
|
9015 if test x"$ac_file" != x-; then
|
|
9016 {
|
|
9017 $as_echo "/* $configure_input */" \
|
|
9018 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
|
|
9019 } >"$ac_tmp/config.h" \
|
|
9020 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
|
9021 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
|
|
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
|
|
9023 $as_echo "$as_me: $ac_file is unchanged" >&6;}
|
|
9024 else
|
|
9025 rm -f "$ac_file"
|
|
9026 mv "$ac_tmp/config.h" "$ac_file" \
|
|
9027 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
|
9028 fi
|
|
9029 else
|
|
9030 $as_echo "/* $configure_input */" \
|
|
9031 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
|
|
9032 || as_fn_error $? "could not create -" "$LINENO" 5
|
|
9033 fi
|
|
9034 ;;
|
|
9035
|
|
9036 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
|
|
9037 $as_echo "$as_me: executing $ac_file commands" >&6;}
|
|
9038 ;;
|
|
9039 esac
|
|
9040
|
|
9041
|
|
9042 case $ac_file$ac_mode in
|
|
9043 "default-1":C) mkdir -p config nasmlib nsis output stdlib x86 asm disasm ;;
|
|
9044
|
|
9045 esac
|
|
9046 done # for ac_tag
|
|
9047
|
|
9048
|
|
9049 as_fn_exit 0
|
|
9050 _ACEOF
|
|
9051 ac_clean_files=$ac_clean_files_save
|
|
9052
|
|
9053 test $ac_write_fail = 0 ||
|
|
9054 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
|
|
9055
|
|
9056
|
|
9057 # configure is writing to config.log, and then calls config.status.
|
|
9058 # config.status does its own redirection, appending to config.log.
|
|
9059 # Unfortunately, on DOS this fails, as config.log is still kept open
|
|
9060 # by configure, so config.status won't be able to write to it; its
|
|
9061 # output is simply discarded. So we exec the FD to /dev/null,
|
|
9062 # effectively closing config.log, so it can be properly (re)opened and
|
|
9063 # appended to by config.status. When coming back to configure, we
|
|
9064 # need to make the FD available again.
|
|
9065 if test "$no_create" != yes; then
|
|
9066 ac_cs_success=:
|
|
9067 ac_config_status_args=
|
|
9068 test "$silent" = yes &&
|
|
9069 ac_config_status_args="$ac_config_status_args --quiet"
|
|
9070 exec 5>/dev/null
|
|
9071 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
|
9072 exec 5>>config.log
|
|
9073 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
|
9074 # would make configure fail if this is the last instruction.
|
|
9075 $ac_cs_success || as_fn_exit 1
|
|
9076 fi
|
|
9077 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
|
|
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
|
|
9079 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
|
|
9080 fi
|
|
9081
|