1 #! /bin/sh
2
3 if test -e '.git' ; then :
4 if test -z "$ac_read_git_config" ; then :
5 extra_args=$(git config ocaml.configure 2>/dev/null)
6 extended_cache=$(git config ocaml.configure-cache 2>/dev/null)
7 cache_file=
8
9 # If ocaml.configure-cache is set, parse the command-line for the --host
10 # option, in order to determine the name of the cache file.
11 if test -n "$extended_cache" ; then :
12 echo "Detected Git configuration option ocaml.configure-cache set to \
13 \"$extended_cache\""
14 dashdash=
15 prev=
16 host=default
17 # The logic here is pretty borrowed from autoconf's
18 for option in $extra_args "$@"
19 do
20 if test -n "$prev" ; then :
21 host=$option
22 continue
23 fi
24
25 case $dashdash$option in
26 --)
27 dashdash=yes ;;
28 -host | --host | --hos | --ho)
29 prev=host ;;
30 -host=* | --host=* | --hos=* | --ho=*)
31 case $option in
32 *=?*) host=$(expr "X$option" : '[^=]*=\(.*\)') ;;
33 *=) host= ;;
34 esac ;;
35 esac
36 done
37 cache_file="`dirname "$0"`/$extended_cache/ocaml-$host.cache"
38 fi
39
40 # If either option has a value, re-invoke configure
41 if test -n "$extra_args$cache_file" ; then :
42 echo "Detected Git configuration option ocaml.configure set to \
43 \"$extra_args\""
44 # Too much effort to get the echo to show appropriate quoting - the
45 # invocation itself intentionally quotes $0 and passes $@ exactly as given
46 # but allows a single expansion of ocaml.configure
47 if test -n "$cache_file" ; then :
48 echo "Re-running $0 $extra_args --cache-file \"$cache_file\" $@"
49 ac_read_git_config=true exec "$0" $extra_args \
50 --cache-file "$cache_file" "$@"
51 else
52 echo "Re-running $0 $extra_args $@"
53 ac_read_git_config=true exec "$0" $extra_args "$@"
54 fi
55 fi
56 fi
57 fi
58 # Guess values for system-dependent variables and create Makefiles.
59 # Generated by GNU Autoconf 2.69 for OCaml 4.10.0.
60 #
61 # Report bugs to <caml-list@inria.fr>.
62 #
63 #
64 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
65 #
66 #
67 # This configure script is free software; the Free Software Foundation
68 # gives unlimited permission to copy, distribute and modify it.
69 ## -------------------- ##
70 ## M4sh Initialization. ##
71 ## -------------------- ##
72
73 # Be more Bourne compatible
74 DUALCASE=1; export DUALCASE # for MKS sh
75 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
76 emulate sh
77 NULLCMD=:
78 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
79 # is contrary to our usage. Disable this feature.
80 alias -g '${1+"$@"}'='"$@"'
81 setopt NO_GLOB_SUBST
82 else
83 case `(set -o) 2>/dev/null` in #(
84 *posix*) :
85 set -o posix ;; #(
86 *) :
87 ;;
88 esac
89 fi
90
91
92 as_nl='
93 '
94 export as_nl
95 # Printing a long string crashes Solaris 7 /usr/bin/printf.
96 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
97 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
98 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
99 # Prefer a ksh shell builtin over an external printf program on Solaris,
100 # but without wasting forks for bash or zsh.
101 if test -z "$BASH_VERSION$ZSH_VERSION" \
102 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
103 as_echo='print -r --'
104 as_echo_n='print -rn --'
105 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
106 as_echo='printf %s\n'
107 as_echo_n='printf %s'
108 else
109 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
110 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
111 as_echo_n='/usr/ucb/echo -n'
112 else
113 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
114 as_echo_n_body='eval
115 arg=$1;
116 case $arg in #(
117 *"$as_nl"*)
118 expr "X$arg" : "X\\(.*\\)$as_nl";
119 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
120 esac;
121 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
122 '
123 export as_echo_n_body
124 as_echo_n='sh -c $as_echo_n_body as_echo'
125 fi
126 export as_echo_body
127 as_echo='sh -c $as_echo_body as_echo'
128 fi
129
130 # The user is always right.
131 if test "${PATH_SEPARATOR+set}" != set; then
132 PATH_SEPARATOR=:
133 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
134 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
135 PATH_SEPARATOR=';'
136 }
137 fi
138
139
140 # IFS
141 # We need space, tab and new line, in precisely that order. Quoting is
142 # there to prevent editors from complaining about space-tab.
143 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
144 # splitting by setting IFS to empty value.)
145 IFS=" "" $as_nl"
146
147 # Find who we are. Look in the path if we contain no directory separator.
148 as_myself=
149 case $0 in #((
150 *[\\/]* ) as_myself=$0 ;;
151 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
152 for as_dir in $PATH
153 do
154 IFS=$as_save_IFS
155 test -z "$as_dir" && as_dir=.
156 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
157 done
158 IFS=$as_save_IFS
159
160 ;;
161 esac
162 # We did not find ourselves, most probably we were run as `sh COMMAND'
163 # in which case we are not to be found in the path.
164 if test "x$as_myself" = x; then
165 as_myself=$0
166 fi
167 if test ! -f "$as_myself"; then
168 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
169 exit 1
170 fi
171
172 # Unset variables that we do not need and which cause bugs (e.g. in
173 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
174 # suppresses any "Segmentation fault" message there. '((' could
175 # trigger a bug in pdksh 5.2.14.
176 for as_var in BASH_ENV ENV MAIL MAILPATH
177 do eval test x\${$as_var+set} = xset \
178 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
179 done
180 PS1='$ '
181 PS2='> '
182 PS4='+ '
183
184 # NLS nuisances.
185 LC_ALL=C
186 export LC_ALL
187 LANGUAGE=C
188 export LANGUAGE
189
190 # CDPATH.
191 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
192
193 # Use a proper internal environment variable to ensure we don't fall
194 # into an infinite loop, continuously re-executing ourselves.
195 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
196 _as_can_reexec=no; export _as_can_reexec;
197 # We cannot yet assume a decent shell, so we have to provide a
198 # neutralization value for shells without unset; and this also
199 # works around shells that cannot unset nonexistent variables.
200 # Preserve -v and -x to the replacement shell.
201 BASH_ENV=/dev/null
202 ENV=/dev/null
203 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
204 case $- in # ((((
205 *v*x* | *x*v* ) as_opts=-vx ;;
206 *v* ) as_opts=-v ;;
207 *x* ) as_opts=-x ;;
208 * ) as_opts= ;;
209 esac
210 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
211 # Admittedly, this is quite paranoid, since all the known shells bail
212 # out after a failed `exec'.
213 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
214 as_fn_exit 255
215 fi
216 # We don't want this to propagate to other subprocesses.
217 { _as_can_reexec=; unset _as_can_reexec;}
218 if test "x$CONFIG_SHELL" = x; then
219 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
220 emulate sh
221 NULLCMD=:
222 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
223 # is contrary to our usage. Disable this feature.
224 alias -g '\${1+\"\$@\"}'='\"\$@\"'
225 setopt NO_GLOB_SUBST
226 else
227 case \`(set -o) 2>/dev/null\` in #(
228 *posix*) :
229 set -o posix ;; #(
230 *) :
231 ;;
232 esac
233 fi
234 "
235 as_required="as_fn_return () { (exit \$1); }
236 as_fn_success () { as_fn_return 0; }
237 as_fn_failure () { as_fn_return 1; }
238 as_fn_ret_success () { return 0; }
239 as_fn_ret_failure () { return 1; }
240
241 exitcode=0
242 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
243 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
244 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
245 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
246 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
247
248 else
249 exitcode=1; echo positional parameters were not saved.
250 fi
251 test x\$exitcode = x0 || exit 1
252 test -x / || exit 1"
253 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
254 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
255 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
256 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
257
258 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
259 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
260 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
261 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
262 PATH=/empty FPATH=/empty; export PATH FPATH
263 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
264 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
265 test \$(( 1 + 1 )) = 2 || exit 1"
266 if (eval "$as_required") 2>/dev/null; then :
267 as_have_required=yes
268 else
269 as_have_required=no
270 fi
271 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
272
273 else
274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
275 as_found=false
276 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
277 do
278 IFS=$as_save_IFS
279 test -z "$as_dir" && as_dir=.
280 as_found=:
281 case $as_dir in #(
282 /*)
283 for as_base in sh bash ksh sh5; do
284 # Try only shells that exist, to save several forks.
285 as_shell=$as_dir/$as_base
286 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
287 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
288 CONFIG_SHELL=$as_shell as_have_required=yes
289 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
290 break 2
291 fi
292 fi
293 done;;
294 esac
295 as_found=false
296 done
297 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
298 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
299 CONFIG_SHELL=$SHELL as_have_required=yes
300 fi; }
301 IFS=$as_save_IFS
302
303
304 if test "x$CONFIG_SHELL" != x; then :
305 export CONFIG_SHELL
306 # We cannot yet assume a decent shell, so we have to provide a
307 # neutralization value for shells without unset; and this also
308 # works around shells that cannot unset nonexistent variables.
309 # Preserve -v and -x to the replacement shell.
310 BASH_ENV=/dev/null
311 ENV=/dev/null
312 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
313 case $- in # ((((
314 *v*x* | *x*v* ) as_opts=-vx ;;
315 *v* ) as_opts=-v ;;
316 *x* ) as_opts=-x ;;
317 * ) as_opts= ;;
318 esac
319 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
320 # Admittedly, this is quite paranoid, since all the known shells bail
321 # out after a failed `exec'.
322 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
323 exit 255
324 fi
325
326 if test x$as_have_required = xno; then :
327 $as_echo "$0: This script requires a shell more modern than all"
328 $as_echo "$0: the shells that I found on your system."
329 if test x${ZSH_VERSION+set} = xset ; then
330 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
331 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
332 else
333 $as_echo "$0: Please tell bug-autoconf@gnu.org and caml-list@inria.fr
334 $0: about your system, including any error possibly output
335 $0: before this message. Then install a modern shell, or
336 $0: manually run the script under such a shell if you do
337 $0: have one."
338 fi
339 exit 1
340 fi
341 fi
342 fi
343 SHELL=${CONFIG_SHELL-/bin/sh}
344 export SHELL
345 # Unset more variables known to interfere with behavior of common tools.
346 CLICOLOR_FORCE= GREP_OPTIONS=
347 unset CLICOLOR_FORCE GREP_OPTIONS
348
349 ## --------------------- ##
350 ## M4sh Shell Functions. ##
351 ## --------------------- ##
352 # as_fn_unset VAR
353 # ---------------
354 # Portably unset VAR.
355 as_fn_unset ()
356 {
357 { eval $1=; unset $1;}
358 }
359 as_unset=as_fn_unset
360
361 # as_fn_set_status STATUS
362 # -----------------------
363 # Set $? to STATUS, without forking.
364 as_fn_set_status ()
365 {
366 return $1
367 } # as_fn_set_status
368
369 # as_fn_exit STATUS
370 # -----------------
371 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
372 as_fn_exit ()
373 {
374 set +e
375 as_fn_set_status $1
376 exit $1
377 } # as_fn_exit
378
379 # as_fn_mkdir_p
380 # -------------
381 # Create "$as_dir" as a directory, including parents if necessary.
382 as_fn_mkdir_p ()
383 {
384
385 case $as_dir in #(
386 -*) as_dir=./$as_dir;;
387 esac
388 test -d "$as_dir" || eval $as_mkdir_p || {
389 as_dirs=
390 while :; do
391 case $as_dir in #(
392 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
393 *) as_qdir=$as_dir;;
394 esac
395 as_dirs="'$as_qdir' $as_dirs"
396 as_dir=`$as_dirname -- "$as_dir" ||
397 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
398 X"$as_dir" : 'X\(//\)[^/]' \| \
399 X"$as_dir" : 'X\(//\)$' \| \
400 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X"$as_dir" |
402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
403 s//\1/
404 q
405 }
406 /^X\(\/\/\)[^/].*/{
407 s//\1/
408 q
409 }
410 /^X\(\/\/\)$/{
411 s//\1/
412 q
413 }
414 /^X\(\/\).*/{
415 s//\1/
416 q
417 }
418 s/.*/./; q'`
419 test -d "$as_dir" && break
420 done
421 test -z "$as_dirs" || eval "mkdir $as_dirs"
422 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
423
424
425 } # as_fn_mkdir_p
426
427 # as_fn_executable_p FILE
428 # -----------------------
429 # Test if FILE is an executable regular file.
430 as_fn_executable_p ()
431 {
432 test -f "$1" && test -x "$1"
433 } # as_fn_executable_p
434 # as_fn_append VAR VALUE
435 # ----------------------
436 # Append the text in VALUE to the end of the definition contained in VAR. Take
437 # advantage of any shell optimizations that allow amortized linear growth over
438 # repeated appends, instead of the typical quadratic growth present in naive
439 # implementations.
440 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
441 eval 'as_fn_append ()
442 {
443 eval $1+=\$2
444 }'
445 else
446 as_fn_append ()
447 {
448 eval $1=\$$1\$2
449 }
450 fi # as_fn_append
451
452 # as_fn_arith ARG...
453 # ------------------
454 # Perform arithmetic evaluation on the ARGs, and store the result in the
455 # global $as_val. Take advantage of shells that can avoid forks. The arguments
456 # must be portable across $(()) and expr.
457 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
458 eval 'as_fn_arith ()
459 {
460 as_val=$(( $* ))
461 }'
462 else
463 as_fn_arith ()
464 {
465 as_val=`expr "$@" || test $? -eq 1`
466 }
467 fi # as_fn_arith
468
469
470 # as_fn_error STATUS ERROR [LINENO LOG_FD]
471 # ----------------------------------------
472 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
473 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
474 # script with STATUS, using 1 if that was 0.
475 as_fn_error ()
476 {
477 as_status=$1; test $as_status -eq 0 && as_status=1
478 if test "$4"; then
479 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
480 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
481 fi
482 $as_echo "$as_me: error: $2" >&2
483 as_fn_exit $as_status
484 } # as_fn_error
485
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 as_expr=expr
489 else
490 as_expr=false
491 fi
492
493 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
494 as_basename=basename
495 else
496 as_basename=false
497 fi
498
499 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
500 as_dirname=dirname
501 else
502 as_dirname=false
503 fi
504
505 as_me=`$as_basename -- "$0" ||
506 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
507 X"$0" : 'X\(//\)$' \| \
508 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
509 $as_echo X/"$0" |
510 sed '/^.*\/\([^/][^/]*\)\/*$/{
511 s//\1/
512 q
513 }
514 /^X\/\(\/\/\)$/{
515 s//\1/
516 q
517 }
518 /^X\/\(\/\).*/{
519 s//\1/
520 q
521 }
522 s/.*/./; q'`
523
524 # Avoid depending upon Character Ranges.
525 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
526 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
527 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
528 as_cr_digits='0123456789'
529 as_cr_alnum=$as_cr_Letters$as_cr_digits
530
531
532 as_lineno_1=$LINENO as_lineno_1a=$LINENO
533 as_lineno_2=$LINENO as_lineno_2a=$LINENO
534 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
535 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
536 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
537 sed -n '
538 p
539 /[$]LINENO/=
540 ' <$as_myself |
541 sed '
542 s/[$]LINENO.*/&-/
543 t lineno
544 b
545 :lineno
546 N
547 :loop
548 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
549 t loop
550 s/-\n.*//
551 ' >$as_me.lineno &&
552 chmod +x "$as_me.lineno" ||
553 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
554
555 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
556 # already done that, so ensure we don't try to do so again and fall
557 # in an infinite loop. This has already happened in practice.
558 _as_can_reexec=no; export _as_can_reexec
559 # Don't try to exec as it changes $[0], causing all sort of problems
560 # (the dirname of $[0] is not the place where we might find the
561 # original and so on. Autoconf is especially sensitive to this).
562 . "./$as_me.lineno"
563 # Exit status is that of the last command.
564 exit
565 }
566
567 ECHO_C= ECHO_N= ECHO_T=
568 case `echo -n x` in #(((((
569 -n*)
570 case `echo 'xy\c'` in
571 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
572 xy) ECHO_C='\c';;
573 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
574 ECHO_T=' ';;
575 esac;;
576 *)
577 ECHO_N='-n';;
578 esac
579
580 rm -f conf$$ conf$$.exe conf$$.file
581 if test -d conf$$.dir; then
582 rm -f conf$$.dir/conf$$.file
583 else
584 rm -f conf$$.dir
585 mkdir conf$$.dir 2>/dev/null
586 fi
587 if (echo >conf$$.file) 2>/dev/null; then
588 if ln -s conf$$.file conf$$ 2>/dev/null; then
589 as_ln_s='ln -s'
590 # ... but there are two gotchas:
591 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
592 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
593 # In both cases, we have to default to `cp -pR'.
594 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
595 as_ln_s='cp -pR'
596 elif ln conf$$.file conf$$ 2>/dev/null; then
597 as_ln_s=ln
598 else
599 as_ln_s='cp -pR'
600 fi
601 else
602 as_ln_s='cp -pR'
603 fi
604 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
605 rmdir conf$$.dir 2>/dev/null
606
607 if mkdir -p . 2>/dev/null; then
608 as_mkdir_p='mkdir -p "$as_dir"'
609 else
610 test -d ./-p && rmdir ./-p
611 as_mkdir_p=false
612 fi
613
614 as_test_x='test -x'
615 as_executable_p=as_fn_executable_p
616
617 # Sed expression to map a string onto a valid CPP name.
618 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
619
620 # Sed expression to map a string onto a valid variable name.
621 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
622
623 SHELL=${CONFIG_SHELL-/bin/sh}
624
625
626 test -n "$DJDIR" || exec 7<&0 </dev/null
627 exec 6>&1
628
629 # Name of the host.
630 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
631 # so uname gets run too.
632 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
633
634 #
635 # Initializations.
636 #
637 ac_default_prefix=/usr/local
638 ac_clean_files=
639 ac_config_libobj_dir=.
640 LIBOBJS=
641 cross_compiling=no
642 subdirs=
643 MFLAGS=
644 MAKEFLAGS=
645
646 # Identity of this package.
647 PACKAGE_NAME='OCaml'
648 PACKAGE_TARNAME='ocaml'
649 PACKAGE_VERSION='4.10.0'
650 PACKAGE_STRING='OCaml 4.10.0'
651 PACKAGE_BUGREPORT='caml-list@inria.fr'
652 PACKAGE_URL='http://www.ocaml.org'
653
654 ac_unique_file="runtime/interp.c"
655 # Factoring default headers for most tests.
656 ac_includes_default="\
657 #include <stdio.h>
658 #ifdef HAVE_SYS_TYPES_H
659 # include <sys/types.h>
660 #endif
661 #ifdef HAVE_SYS_STAT_H
662 # include <sys/stat.h>
663 #endif
664 #ifdef STDC_HEADERS
665 # include <stdlib.h>
666 # include <stddef.h>
667 #else
668 # ifdef HAVE_STDLIB_H
669 # include <stdlib.h>
670 # endif
671 #endif
672 #ifdef HAVE_STRING_H
673 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
674 # include <memory.h>
675 # endif
676 # include <string.h>
677 #endif
678 #ifdef HAVE_STRINGS_H
679 # include <strings.h>
680 #endif
681 #ifdef HAVE_INTTYPES_H
682 # include <inttypes.h>
683 #endif
684 #ifdef HAVE_STDINT_H
685 # include <stdint.h>
686 #endif
687 #ifdef HAVE_UNISTD_H
688 # include <unistd.h>
689 #endif"
690
691 ac_subst_vars='LTLIBOBJS
692 LIBOBJS
693 PTHREAD_CFLAGS
694 PTHREAD_LIBS
695 PTHREAD_CC
696 ax_pthread_config
697 DIRECT_LD
698 INSTALL_DATA
699 INSTALL_SCRIPT
700 INSTALL_PROGRAM
701 CPP
702 LT_SYS_LIBRARY_PATH
703 OTOOL64
704 OTOOL
705 LIPO
706 NMEDIT
707 DSYMUTIL
708 MANIFEST_TOOL
709 AWK
710 STRIP
711 ac_ct_AR
712 DLLTOOL
713 OBJDUMP
714 LN_S
715 NM
716 ac_ct_DUMPBIN
717 DUMPBIN
718 FGREP
719 EGREP
720 GREP
721 SED
722 EXEEXT
723 ac_ct_CC
724 CPPFLAGS
725 LDFLAGS
726 CFLAGS
727 LIBTOOL
728 ac_ct_LD
729 LD
730 DEFAULT_STRING
731 WINDOWS_UNICODE_MODE
732 BFD_LIB_DIR
733 BFD_INCLUDE_DIR
734 LIBUNWIND_LIB_DIR
735 LIBUNWIND_INCLUDE_DIR
736 DLLIBS
737 PARTIALLD
738 target_os
739 target_vendor
740 target_cpu
741 target
742 host_os
743 host_vendor
744 host_cpu
745 host
746 build_os
747 build_vendor
748 build_cpu
749 build
750 stdlib_manpages
751 PACKLD
752 flexlink_flags
753 flexdll_chain
754 default_safe_string
755 force_safe_string
756 afl
757 function_sections
758 flat_float_array
759 windows_unicode
760 max_testsuite_dir_retries
761 flambda_invariants
762 flambda
763 libunwind_link_flags
764 libunwind_include_flags
765 libunwind_available
766 call_counts
767 spacetime
768 frame_pointers
769 profinfo_width
770 profinfo
771 install_source_artifacts
772 install_bytecode_programs
773 mksharedlibrpath
774 mkmaindll
775 mksharedlib
776 rpath
777 sharedlib_cflags
778 asm_cfi_supported
779 AS
780 ASPP
781 bfd_ldlibs
782 bfd_ldflags
783 bfd_cppflags
784 x_libraries
785 x_includes
786 pthread_link
787 ocamldoc
788 with_camltex
789 with_debugger
790 as_has_debug_prefix_map
791 cc_has_debug_prefix_map
792 otherlibraries
793 instrumented_runtime
794 debug_runtime
795 cmxs
796 natdynlinkopts
797 natdynlink
798 supports_shared_libraries
799 mklib
800 RANLIBCMD
801 RANLIB
802 AR
803 shebangscripts
804 long_shebang
805 iflexdir
806 ocamlopt_cppflags
807 ocamlopt_cflags
808 ocamlc_cppflags
809 ocamlc_cflags
810 nativecclibs
811 bytecclibs
812 oc_ldflags
813 oc_cppflags
814 oc_cflags
815 toolchain
816 ccomptype
817 mkexedebugflag
818 mkexe
819 fpic
820 libraries_man_section
821 programs_man_section
822 extralibs
823 syslib
824 outputobj
825 outputexe
826 unixlib
827 unix_or_win32
828 systhread_support
829 system
830 model
831 arch64
832 arch
833 SO
834 S
835 libext
836 OBJEXT
837 exeext
838 ac_tool_prefix
839 DIRECT_CPP
840 CC
841 VERSION
842 native_compiler
843 CONFIGURE_ARGS
844 target_alias
845 host_alias
846 build_alias
847 LIBS
848 ECHO_T
849 ECHO_N
850 ECHO_C
851 DEFS
852 mandir
853 localedir
854 libdir
855 psdir
856 pdfdir
857 dvidir
858 htmldir
859 infodir
860 docdir
861 oldincludedir
862 includedir
863 localstatedir
864 sharedstatedir
865 sysconfdir
866 datadir
867 datarootdir
868 libexecdir
869 sbindir
870 bindir
871 program_transform_name
872 prefix
873 exec_prefix
874 PACKAGE_URL
875 PACKAGE_BUGREPORT
876 PACKAGE_STRING
877 PACKAGE_VERSION
878 PACKAGE_TARNAME
879 PACKAGE_NAME
880 PATH_SEPARATOR
881 SHELL'
882 ac_subst_files=''
883 ac_user_opts='
884 enable_option_checking
885 enable_debug_runtime
886 enable_debugger
887 enable_instrumented_runtime
888 enable_vmthreads
889 enable_systhreads
890 with_libunwind
891 with_bfd
892 enable_graph_lib
893 enable_str_lib
894 enable_unix_lib
895 enable_bigarray_lib
896 enable_ocamldoc
897 enable_frame_pointers
898 enable_naked_pointers
899 enable_spacetime
900 enable_call_counts
901 enable_cfi
902 enable_installing_source_artifacts
903 enable_installing_bytecode_programs
904 enable_native_compiler
905 enable_flambda
906 enable_flambda_invariants
907 with_target_bindir
908 enable_reserved_header_bits
909 enable_stdlib_manpages
910 enable_force_safe_string
911 enable_flat_float_array
912 enable_function_sections
913 with_afl
914 enable_shared
915 enable_static
916 with_pic
917 enable_fast_install
918 with_aix_soname
919 with_gnu_ld
920 with_sysroot
921 enable_libtool_lock
922 '
923 ac_precious_vars='build_alias
924 host_alias
925 target_alias
926 AS
927 ASPP
928 PARTIALLD
929 DLLIBS
930 LIBUNWIND_INCLUDE_DIR
931 LIBUNWIND_LIB_DIR
932 BFD_INCLUDE_DIR
933 BFD_LIB_DIR
934 WINDOWS_UNICODE_MODE
935 DEFAULT_STRING
936 CC
937 CFLAGS
938 LDFLAGS
939 LIBS
940 CPPFLAGS
941 LT_SYS_LIBRARY_PATH
942 CPP'
943
944
945 # Initialize some variables set by options.
946 ac_init_help=
947 ac_init_version=false
948 ac_unrecognized_opts=
949 ac_unrecognized_sep=
950 # The variables have the same names as the options, with
951 # dashes changed to underlines.
952 cache_file=/dev/null
953 exec_prefix=NONE
954 no_create=
955 no_recursion=
956 prefix=NONE
957 program_prefix=NONE
958 program_suffix=NONE
959 program_transform_name=s,x,x,
960 silent=
961 site=
962 srcdir=
963 verbose=
964 x_includes=NONE
965 x_libraries=NONE
966
967 # Installation directory options.
968 # These are left unexpanded so users can "make install exec_prefix=/foo"
969 # and all the variables that are supposed to be based on exec_prefix
970 # by default will actually change.
971 # Use braces instead of parens because sh, perl, etc. also accept them.
972 # (The list follows the same order as the GNU Coding Standards.)
973 bindir='${exec_prefix}/bin'
974 sbindir='${exec_prefix}/sbin'
975 libexecdir='${exec_prefix}/libexec'
976 datarootdir='${prefix}/share'
977 datadir='${datarootdir}'
978 sysconfdir='${prefix}/etc'
979 sharedstatedir='${prefix}/com'
980 localstatedir='${prefix}/var'
981 includedir='${prefix}/include'
982 oldincludedir='/usr/include'
983 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
984 infodir='${datarootdir}/info'
985 htmldir='${docdir}'
986 dvidir='${docdir}'
987 pdfdir='${docdir}'
988 psdir='${docdir}'
989 libdir='${exec_prefix}/lib'
990 localedir='${datarootdir}/locale'
991 mandir='${datarootdir}/man'
992
993 ac_prev=
994 ac_dashdash=
995 for ac_option
996 do
997 # If the previous option needs an argument, assign it.
998 if test -n "$ac_prev"; then
999 eval $ac_prev=\$ac_option
1000 ac_prev=
1001 continue
1002 fi
1003
1004 case $ac_option in
1005 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1006 *=) ac_optarg= ;;
1007 *) ac_optarg=yes ;;
1008 esac
1009
1010 # Accept the important Cygnus configure options, so we can diagnose typos.
1011
1012 case $ac_dashdash$ac_option in
1013 --)
1014 ac_dashdash=yes ;;
1015
1016 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1017 ac_prev=bindir ;;
1018 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1019 bindir=$ac_optarg ;;
1020
1021 -build | --build | --buil | --bui | --bu)
1022 ac_prev=build_alias ;;
1023 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1024 build_alias=$ac_optarg ;;
1025
1026 -cache-file | --cache-file | --cache-fil | --cache-fi \
1027 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1028 ac_prev=cache_file ;;
1029 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1030 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1031 cache_file=$ac_optarg ;;
1032
1033 --config-cache | -C)
1034 cache_file=config.cache ;;
1035
1036 -datadir | --datadir | --datadi | --datad)
1037 ac_prev=datadir ;;
1038 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1039 datadir=$ac_optarg ;;
1040
1041 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1042 | --dataroo | --dataro | --datar)
1043 ac_prev=datarootdir ;;
1044 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1045 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1046 datarootdir=$ac_optarg ;;
1047
1048 -disable-* | --disable-*)
1049 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1050 # Reject names that are not valid shell variable names.
1051 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1052 as_fn_error $? "invalid feature name: $ac_useropt"
1053 ac_useropt_orig=$ac_useropt
1054 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055 case $ac_user_opts in
1056 *"
1057 "enable_$ac_useropt"
1058 "*) ;;
1059 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1060 ac_unrecognized_sep=', ';;
1061 esac
1062 eval enable_$ac_useropt=no ;;
1063
1064 -docdir | --docdir | --docdi | --doc | --do)
1065 ac_prev=docdir ;;
1066 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1067 docdir=$ac_optarg ;;
1068
1069 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1070 ac_prev=dvidir ;;
1071 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1072 dvidir=$ac_optarg ;;
1073
1074 -enable-* | --enable-*)
1075 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1078 as_fn_error $? "invalid feature name: $ac_useropt"
1079 ac_useropt_orig=$ac_useropt
1080 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081 case $ac_user_opts in
1082 *"
1083 "enable_$ac_useropt"
1084 "*) ;;
1085 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1086 ac_unrecognized_sep=', ';;
1087 esac
1088 eval enable_$ac_useropt=\$ac_optarg ;;
1089
1090 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1091 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1092 | --exec | --exe | --ex)
1093 ac_prev=exec_prefix ;;
1094 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1095 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1096 | --exec=* | --exe=* | --ex=*)
1097 exec_prefix=$ac_optarg ;;
1098
1099 -gas | --gas | --ga | --g)
1100 # Obsolete; use --with-gas.
1101 with_gas=yes ;;
1102
1103 -help | --help | --hel | --he | -h)
1104 ac_init_help=long ;;
1105 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1106 ac_init_help=recursive ;;
1107 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1108 ac_init_help=short ;;
1109
1110 -host | --host | --hos | --ho)
1111 ac_prev=host_alias ;;
1112 -host=* | --host=* | --hos=* | --ho=*)
1113 host_alias=$ac_optarg ;;
1114
1115 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1116 ac_prev=htmldir ;;
1117 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1118 | --ht=*)
1119 htmldir=$ac_optarg ;;
1120
1121 -includedir | --includedir | --includedi | --included | --include \
1122 | --includ | --inclu | --incl | --inc)
1123 ac_prev=includedir ;;
1124 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1125 | --includ=* | --inclu=* | --incl=* | --inc=*)
1126 includedir=$ac_optarg ;;
1127
1128 -infodir | --infodir | --infodi | --infod | --info | --inf)
1129 ac_prev=infodir ;;
1130 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1131 infodir=$ac_optarg ;;
1132
1133 -libdir | --libdir | --libdi | --libd)
1134 ac_prev=libdir ;;
1135 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1136 libdir=$ac_optarg ;;
1137
1138 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1139 | --libexe | --libex | --libe)
1140 ac_prev=libexecdir ;;
1141 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1142 | --libexe=* | --libex=* | --libe=*)
1143 libexecdir=$ac_optarg ;;
1144
1145 -localedir | --localedir | --localedi | --localed | --locale)
1146 ac_prev=localedir ;;
1147 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1148 localedir=$ac_optarg ;;
1149
1150 -localstatedir | --localstatedir | --localstatedi | --localstated \
1151 | --localstate | --localstat | --localsta | --localst | --locals)
1152 ac_prev=localstatedir ;;
1153 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1154 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1155 localstatedir=$ac_optarg ;;
1156
1157 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1158 ac_prev=mandir ;;
1159 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1160 mandir=$ac_optarg ;;
1161
1162 -nfp | --nfp | --nf)
1163 # Obsolete; use --without-fp.
1164 with_fp=no ;;
1165
1166 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1167 | --no-cr | --no-c | -n)
1168 no_create=yes ;;
1169
1170 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1171 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1172 no_recursion=yes ;;
1173
1174 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1175 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1176 | --oldin | --oldi | --old | --ol | --o)
1177 ac_prev=oldincludedir ;;
1178 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1179 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1180 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1181 oldincludedir=$ac_optarg ;;
1182
1183 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1184 ac_prev=prefix ;;
1185 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1186 prefix=$ac_optarg ;;
1187
1188 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1189 | --program-pre | --program-pr | --program-p)
1190 ac_prev=program_prefix ;;
1191 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1192 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1193 program_prefix=$ac_optarg ;;
1194
1195 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1196 | --program-suf | --program-su | --program-s)
1197 ac_prev=program_suffix ;;
1198 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1199 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1200 program_suffix=$ac_optarg ;;
1201
1202 -program-transform-name | --program-transform-name \
1203 | --program-transform-nam | --program-transform-na \
1204 | --program-transform-n | --program-transform- \
1205 | --program-transform | --program-transfor \
1206 | --program-transfo | --program-transf \
1207 | --program-trans | --program-tran \
1208 | --progr-tra | --program-tr | --program-t)
1209 ac_prev=program_transform_name ;;
1210 -program-transform-name=* | --program-transform-name=* \
1211 | --program-transform-nam=* | --program-transform-na=* \
1212 | --program-transform-n=* | --program-transform-=* \
1213 | --program-transform=* | --program-transfor=* \
1214 | --program-transfo=* | --program-transf=* \
1215 | --program-trans=* | --program-tran=* \
1216 | --progr-tra=* | --program-tr=* | --program-t=*)
1217 program_transform_name=$ac_optarg ;;
1218
1219 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1220 ac_prev=pdfdir ;;
1221 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1222 pdfdir=$ac_optarg ;;
1223
1224 -psdir | --psdir | --psdi | --psd | --ps)
1225 ac_prev=psdir ;;
1226 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1227 psdir=$ac_optarg ;;
1228
1229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1230 | -silent | --silent | --silen | --sile | --sil)
1231 silent=yes ;;
1232
1233 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1234 ac_prev=sbindir ;;
1235 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1236 | --sbi=* | --sb=*)
1237 sbindir=$ac_optarg ;;
1238
1239 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1240 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1241 | --sharedst | --shareds | --shared | --share | --shar \
1242 | --sha | --sh)
1243 ac_prev=sharedstatedir ;;
1244 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1245 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1246 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1247 | --sha=* | --sh=*)
1248 sharedstatedir=$ac_optarg ;;
1249
1250 -site | --site | --sit)
1251 ac_prev=site ;;
1252 -site=* | --site=* | --sit=*)
1253 site=$ac_optarg ;;
1254
1255 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1256 ac_prev=srcdir ;;
1257 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1258 srcdir=$ac_optarg ;;
1259
1260 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1261 | --syscon | --sysco | --sysc | --sys | --sy)
1262 ac_prev=sysconfdir ;;
1263 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1264 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1265 sysconfdir=$ac_optarg ;;
1266
1267 -target | --target | --targe | --targ | --tar | --ta | --t)
1268 ac_prev=target_alias ;;
1269 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1270 target_alias=$ac_optarg ;;
1271
1272 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1273 verbose=yes ;;
1274
1275 -version | --version | --versio | --versi | --vers | -V)
1276 ac_init_version=: ;;
1277
1278 -with-* | --with-*)
1279 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1280 # Reject names that are not valid shell variable names.
1281 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1282 as_fn_error $? "invalid package name: $ac_useropt"
1283 ac_useropt_orig=$ac_useropt
1284 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1285 case $ac_user_opts in
1286 *"
1287 "with_$ac_useropt"
1288 "*) ;;
1289 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1290 ac_unrecognized_sep=', ';;
1291 esac
1292 eval with_$ac_useropt=\$ac_optarg ;;
1293
1294 -without-* | --without-*)
1295 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1296 # Reject names that are not valid shell variable names.
1297 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1298 as_fn_error $? "invalid package name: $ac_useropt"
1299 ac_useropt_orig=$ac_useropt
1300 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1301 case $ac_user_opts in
1302 *"
1303 "with_$ac_useropt"
1304 "*) ;;
1305 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1306 ac_unrecognized_sep=', ';;
1307 esac
1308 eval with_$ac_useropt=no ;;
1309
1310 --x)
1311 # Obsolete; use --with-x.
1312 with_x=yes ;;
1313
1314 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1315 | --x-incl | --x-inc | --x-in | --x-i)
1316 ac_prev=x_includes ;;
1317 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1318 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1319 x_includes=$ac_optarg ;;
1320
1321 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1322 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1323 ac_prev=x_libraries ;;
1324 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1325 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1326 x_libraries=$ac_optarg ;;
1327
1328 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1329 Try \`$0 --help' for more information"
1330 ;;
1331
1332 *=*)
1333 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1334 # Reject names that are not valid shell variable names.
1335 case $ac_envvar in #(
1336 '' | [0-9]* | *[!_$as_cr_alnum]* )
1337 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1338 esac
1339 eval $ac_envvar=\$ac_optarg
1340 export $ac_envvar ;;
1341
1342 *)
1343 # FIXME: should be removed in autoconf 3.0.
1344 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1345 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1346 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1347 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1348 ;;
1349
1350 esac
1351 done
1352
1353 if test -n "$ac_prev"; then
1354 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1355 as_fn_error $? "missing argument to $ac_option"
1356 fi
1357
1358 if test -n "$ac_unrecognized_opts"; then
1359 case $enable_option_checking in
1360 no) ;;
1361 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1362 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1363 esac
1364 fi
1365
1366 # Check all directory arguments for consistency.
1367 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1368 datadir sysconfdir sharedstatedir localstatedir includedir \
1369 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1370 libdir localedir mandir
1371 do
1372 eval ac_val=\$$ac_var
1373 # Remove trailing slashes.
1374 case $ac_val in
1375 */ )
1376 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1377 eval $ac_var=\$ac_val;;
1378 esac
1379 # Be sure to have absolute directory names.
1380 case $ac_val in
1381 [\\/$]* | ?:[\\/]* ) continue;;
1382 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1383 esac
1384 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1385 done
1386
1387 # There might be people who depend on the old broken behavior: `$host'
1388 # used to hold the argument of --host etc.
1389 # FIXME: To remove some day.
1390 build=$build_alias
1391 host=$host_alias
1392 target=$target_alias
1393
1394 # FIXME: To remove some day.
1395 if test "x$host_alias" != x; then
1396 if test "x$build_alias" = x; then
1397 cross_compiling=maybe
1398 elif test "x$build_alias" != "x$host_alias"; then
1399 cross_compiling=yes
1400 fi
1401 fi
1402
1403 ac_tool_prefix=
1404 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1405
1406 test "$silent" = yes && exec 6>/dev/null
1407
1408
1409 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1410 ac_ls_di=`ls -di .` &&
1411 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1412 as_fn_error $? "working directory cannot be determined"
1413 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1414 as_fn_error $? "pwd does not report name of working directory"
1415
1416
1417 # Find the source files, if location was not specified.
1418 if test -z "$srcdir"; then
1419 ac_srcdir_defaulted=yes
1420 # Try the directory containing this script, then the parent directory.
1421 ac_confdir=`$as_dirname -- "$as_myself" ||
1422 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1423 X"$as_myself" : 'X\(//\)[^/]' \| \
1424 X"$as_myself" : 'X\(//\)$' \| \
1425 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1426 $as_echo X"$as_myself" |
1427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1428 s//\1/
1429 q
1430 }
1431 /^X\(\/\/\)[^/].*/{
1432 s//\1/
1433 q
1434 }
1435 /^X\(\/\/\)$/{
1436 s//\1/
1437 q
1438 }
1439 /^X\(\/\).*/{
1440 s//\1/
1441 q
1442 }
1443 s/.*/./; q'`
1444 srcdir=$ac_confdir
1445 if test ! -r "$srcdir/$ac_unique_file"; then
1446 srcdir=..
1447 fi
1448 else
1449 ac_srcdir_defaulted=no
1450 fi
1451 if test ! -r "$srcdir/$ac_unique_file"; then
1452 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1453 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1454 fi
1455 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1456 ac_abs_confdir=`(
1457 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1458 pwd)`
1459 # When building in place, set srcdir=.
1460 if test "$ac_abs_confdir" = "$ac_pwd"; then
1461 srcdir=.
1462 fi
1463 # Remove unnecessary trailing slashes from srcdir.
1464 # Double slashes in file names in object file debugging info
1465 # mess up M-x gdb in Emacs.
1466 case $srcdir in
1467 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1468 esac
1469 for ac_var in $ac_precious_vars; do
1470 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1471 eval ac_env_${ac_var}_value=\$${ac_var}
1472 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1473 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1474 done
1475
1476 #
1477 # Report the --help message.
1478 #
1479 if test "$ac_init_help" = "long"; then
1480 # Omit some internal or obsolete options to make the list less imposing.
1481 # This message is too long to be a string in the A/UX 3.1 sh.
1482 cat <<_ACEOF
1483 \`configure' configures OCaml 4.10.0 to adapt to many kinds of systems.
1484
1485 Usage: $0 [OPTION]... [VAR=VALUE]...
1486
1487 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1488 VAR=VALUE. See below for descriptions of some of the useful variables.
1489
1490 Defaults for the options are specified in brackets.
1491
1492 Configuration:
1493 -h, --help display this help and exit
1494 --help=short display options specific to this package
1495 --help=recursive display the short help of all the included packages
1496 -V, --version display version information and exit
1497 -q, --quiet, --silent do not print \`checking ...' messages
1498 --cache-file=FILE cache test results in FILE [disabled]
1499 -C, --config-cache alias for \`--cache-file=config.cache'
1500 -n, --no-create do not create output files
1501 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1502
1503 Installation directories:
1504 --prefix=PREFIX install architecture-independent files in PREFIX
1505 [$ac_default_prefix]
1506 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1507 [PREFIX]
1508
1509 By default, \`make install' will install all the files in
1510 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1511 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1512 for instance \`--prefix=\$HOME'.
1513
1514 For better control, use the options below.
1515
1516 Fine tuning of the installation directories:
1517 --bindir=DIR user executables [EPREFIX/bin]
1518 --sbindir=DIR system admin executables [EPREFIX/sbin]
1519 --libexecdir=DIR program executables [EPREFIX/libexec]
1520 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1521 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1522 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1523 --libdir=DIR object code libraries [EPREFIX/lib]
1524 --includedir=DIR C header files [PREFIX/include]
1525 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1526 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1527 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1528 --infodir=DIR info documentation [DATAROOTDIR/info]
1529 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1530 --mandir=DIR man documentation [DATAROOTDIR/man]
1531 --docdir=DIR documentation root [DATAROOTDIR/doc/ocaml]
1532 --htmldir=DIR html documentation [DOCDIR]
1533 --dvidir=DIR dvi documentation [DOCDIR]
1534 --pdfdir=DIR pdf documentation [DOCDIR]
1535 --psdir=DIR ps documentation [DOCDIR]
1536 _ACEOF
1537
1538 cat <<\_ACEOF
1539
1540 System types:
1541 --build=BUILD configure for building on BUILD [guessed]
1542 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1543 --target=TARGET configure for building compilers for TARGET [HOST]
1544 _ACEOF
1545 fi
1546
1547 if test -n "$ac_init_help"; then
1548 case $ac_init_help in
1549 short | recursive ) echo "Configuration of OCaml 4.10.0:";;
1550 esac
1551 cat <<\_ACEOF
1552
1553 Optional Features:
1554 --disable-option-checking ignore unrecognized --enable/--with options
1555 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1556 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1557 --disable-debug-runtime do not build runtime with debugging support
1558 --enable-debugger build the debugger [default=auto]
1559 --enable-instrumented-runtime
1560 build the instrumented runtime [default=auto]
1561
1562 --disable-systhreads disable the Win32/POSIX threads library
1563 --disable-str-lib do not build the str library
1564 --disable-unix-lib do not build the unix library
1565 --disable-bigarray-lib do not build the legacy separate bigarray library
1566 --disable-ocamldoc do not build the ocamldoc documentation system
1567 --enable-frame-pointers use frame pointers in runtime and generated code
1568 --disable-naked-pointers
1569 do not allow naked pointers
1570 --enable-spacetime build the spacetime profiler
1571 --disable-call-counts disable the call counts in spacetime
1572 --disable-cfi disable the CFI directives in assembly files
1573 --enable-installing-source-artifacts
1574 install *.cmt* and *.mli files
1575 --enable-installing-bytecode-programs
1576 also install the bytecode versions of programs
1577 --disable-native-compiler
1578 do not build the native compiler
1579 --enable-flambda enable flambda optimizations
1580 --enable-flambda-invariants
1581 enable invariants checks in flambda
1582 --enable-reserved-header-bits=BITS
1583 reserve BITS (between 0 and 31) bits in block
1584 headers for profiling info
1585 --disable-stdlib-manpages
1586 do not build or install the library man pages
1587 --disable-force-safe-string
1588 do not force strings to be safe
1589 --disable-flat-float-array
1590 do not use flat float arrays
1591 --disable-function-sections
1592 do not emit each function in a separate section
1593 --enable-shared[=PKGS] build shared libraries [default=yes]
1594 --enable-static[=PKGS] build static libraries [default=yes]
1595 --enable-fast-install[=PKGS]
1596 optimize for fast installation [default=yes]
1597 --disable-libtool-lock avoid locking (might break parallel builds)
1598
1599 Optional Packages:
1600 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1601 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1602 --without-libunwind disable libunwind support for Spacetime profiling
1603 --without-bfd disable BFD (Binary File Description) library
1604 support
1605 --with-target-bindir location of binary programs on target system
1606 --with-afl use the AFL fuzzer
1607 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1608 both]
1609 --with-aix-soname=aix|svr4|both
1610 shared library versioning (aka "SONAME") variant to
1611 provide on AIX, [default=aix].
1612 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1613 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1614 compiler's sysroot if not specified).
1615
1616 Some influential environment variables:
1617 AS which assembler to use
1618 ASPP which assembler (with preprocessor) to use
1619 PARTIALLD how to build partial (relocatable) object files
1620 DLLIBS which libraries to use (in addition to -ldl) to load dynamic
1621 libs
1622 LIBUNWIND_INCLUDE_DIR
1623 location of header files for libunwind
1624 LIBUNWIND_LIB_DIR
1625 location of library files for libunwind
1626 BFD_INCLUDE_DIR
1627 location of header files for the BFD library
1628 BFD_LIB_DIR location of library files for the BFD library
1629 WINDOWS_UNICODE_MODE
1630 how to handle Unicode under Windows: ansi, compatible
1631 DEFAULT_STRING
1632 whether strings should be safe (default) or unsafe
1633 CC C compiler command
1634 CFLAGS C compiler flags
1635 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1636 nonstandard directory <lib dir>
1637 LIBS libraries to pass to the linker, e.g. -l<library>
1638 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1639 you have headers in a nonstandard directory <include dir>
1640 LT_SYS_LIBRARY_PATH
1641 User-defined run-time library search path.
1642 CPP C preprocessor
1643
1644 Use these variables to override the choices made by `configure' or to help
1645 it to find libraries and programs with nonstandard names/locations.
1646
1647 Report bugs to <caml-list@inria.fr>.
1648 OCaml home page: <http://www.ocaml.org>.
1649 _ACEOF
1650 ac_status=$?
1651 fi
1652
1653 if test "$ac_init_help" = "recursive"; then
1654 # If there are subdirs, report their specific --help.
1655 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1656 test -d "$ac_dir" ||
1657 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1658 continue
1659 ac_builddir=.
1660
1661 case "$ac_dir" in
1662 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1663 *)
1664 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1665 # A ".." for each directory in $ac_dir_suffix.
1666 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1667 case $ac_top_builddir_sub in
1668 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1669 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1670 esac ;;
1671 esac
1672 ac_abs_top_builddir=$ac_pwd
1673 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1674 # for backward compatibility:
1675 ac_top_builddir=$ac_top_build_prefix
1676
1677 case $srcdir in
1678 .) # We are building in place.
1679 ac_srcdir=.
1680 ac_top_srcdir=$ac_top_builddir_sub
1681 ac_abs_top_srcdir=$ac_pwd ;;
1682 [\\/]* | ?:[\\/]* ) # Absolute name.
1683 ac_srcdir=$srcdir$ac_dir_suffix;
1684 ac_top_srcdir=$srcdir
1685 ac_abs_top_srcdir=$srcdir ;;
1686 *) # Relative name.
1687 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1688 ac_top_srcdir=$ac_top_build_prefix$srcdir
1689 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1690 esac
1691 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1692
1693 cd "$ac_dir" || { ac_status=$?; continue; }
1694 # Check for guested configure.
1695 if test -f "$ac_srcdir/configure.gnu"; then
1696 echo &&
1697 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1698 elif test -f "$ac_srcdir/configure"; then
1699 echo &&
1700 $SHELL "$ac_srcdir/configure" --help=recursive
1701 else
1702 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1703 fi || ac_status=$?
1704 cd "$ac_pwd" || { ac_status=$?; break; }
1705 done
1706 fi
1707
1708 test -n "$ac_init_help" && exit $ac_status
1709 if $ac_init_version; then
1710 cat <<\_ACEOF
1711 OCaml configure 4.10.0
1712 generated by GNU Autoconf 2.69
1713
1714 Copyright (C) 2012 Free Software Foundation, Inc.
1715 This configure script is free software; the Free Software Foundation
1716 gives unlimited permission to copy, distribute and modify it.
1717 _ACEOF
1718 exit
1719 fi
1720
1721 ## ------------------------ ##
1722 ## Autoconf initialization. ##
1723 ## ------------------------ ##
1724
1725 # ac_fn_c_try_compile LINENO
1726 # --------------------------
1727 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1728 ac_fn_c_try_compile ()
1729 {
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 rm -f conftest.$ac_objext
1732 if { { ac_try="$ac_compile"
1733 case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736 esac
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_compile") 2>conftest.err
1740 ac_status=$?
1741 if test -s conftest.err; then
1742 grep -v '^ *+' conftest.err >conftest.er1
1743 cat conftest.er1 >&5
1744 mv -f conftest.er1 conftest.err
1745 fi
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; } && {
1748 test -z "$ac_c_werror_flag" ||
1749 test ! -s conftest.err
1750 } && test -s conftest.$ac_objext; then :
1751 ac_retval=0
1752 else
1753 $as_echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1755
1756 ac_retval=1
1757 fi
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759 as_fn_set_status $ac_retval
1760
1761 } # ac_fn_c_try_compile
1762
1763 # ac_fn_c_try_link LINENO
1764 # -----------------------
1765 # Try to link conftest.$ac_ext, and return whether this succeeded.
1766 ac_fn_c_try_link ()
1767 {
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 rm -f conftest.$ac_objext conftest$ac_exeext
1770 if { { ac_try="$ac_link"
1771 case "(($ac_try" in
1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773 *) ac_try_echo=$ac_try;;
1774 esac
1775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776 $as_echo "$ac_try_echo"; } >&5
1777 (eval "$ac_link") 2>conftest.err
1778 ac_status=$?
1779 if test -s conftest.err; then
1780 grep -v '^ *+' conftest.err >conftest.er1
1781 cat conftest.er1 >&5
1782 mv -f conftest.er1 conftest.err
1783 fi
1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; } && {
1786 test -z "$ac_c_werror_flag" ||
1787 test ! -s conftest.err
1788 } && test -s conftest$ac_exeext && {
1789 test "$cross_compiling" = yes ||
1790 test -x conftest$ac_exeext
1791 }; then :
1792 ac_retval=0
1793 else
1794 $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1796
1797 ac_retval=1
1798 fi
1799 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1800 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1801 # interfere with the next link command; also delete a directory that is
1802 # left behind by Apple's compiler. We do this before executing the actions.
1803 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805 as_fn_set_status $ac_retval
1806
1807 } # ac_fn_c_try_link
1808
1809 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1810 # -------------------------------------------------------
1811 # Tests whether HEADER exists and can be compiled using the include files in
1812 # INCLUDES, setting the cache variable VAR accordingly.
1813 ac_fn_c_check_header_compile ()
1814 {
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817 $as_echo_n "checking for $2... " >&6; }
1818 if eval \${$3+:} false; then :
1819 $as_echo_n "(cached) " >&6
1820 else
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1823 $4
1824 #include <$2>
1825 _ACEOF
1826 if ac_fn_c_try_compile "$LINENO"; then :
1827 eval "$3=yes"
1828 else
1829 eval "$3=no"
1830 fi
1831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1832 fi
1833 eval ac_res=\$$3
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 $as_echo "$ac_res" >&6; }
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837
1838 } # ac_fn_c_check_header_compile
1839
1840 # ac_fn_c_try_cpp LINENO
1841 # ----------------------
1842 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1843 ac_fn_c_try_cpp ()
1844 {
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 if { { ac_try="$ac_cpp conftest.$ac_ext"
1847 case "(($ac_try" in
1848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849 *) ac_try_echo=$ac_try;;
1850 esac
1851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852 $as_echo "$ac_try_echo"; } >&5
1853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1854 ac_status=$?
1855 if test -s conftest.err; then
1856 grep -v '^ *+' conftest.err >conftest.er1
1857 cat conftest.er1 >&5
1858 mv -f conftest.er1 conftest.err
1859 fi
1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; } > conftest.i && {
1862 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1863 test ! -s conftest.err
1864 }; then :
1865 ac_retval=0
1866 else
1867 $as_echo "$as_me: failed program was:" >&5
1868 sed 's/^/| /' conftest.$ac_ext >&5
1869
1870 ac_retval=1
1871 fi
1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873 as_fn_set_status $ac_retval
1874
1875 } # ac_fn_c_try_cpp
1876
1877 # ac_fn_c_try_run LINENO
1878 # ----------------------
1879 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1880 # that executables *can* be run.
1881 ac_fn_c_try_run ()
1882 {
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 if { { ac_try="$ac_link"
1885 case "(($ac_try" in
1886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887 *) ac_try_echo=$ac_try;;
1888 esac
1889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890 $as_echo "$ac_try_echo"; } >&5
1891 (eval "$ac_link") 2>&5
1892 ac_status=$?
1893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1895 { { case "(($ac_try" in
1896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1897 *) ac_try_echo=$ac_try;;
1898 esac
1899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900 $as_echo "$ac_try_echo"; } >&5
1901 (eval "$ac_try") 2>&5
1902 ac_status=$?
1903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904 test $ac_status = 0; }; }; then :
1905 ac_retval=0
1906 else
1907 $as_echo "$as_me: program exited with status $ac_status" >&5
1908 $as_echo "$as_me: failed program was:" >&5
1909 sed 's/^/| /' conftest.$ac_ext >&5
1910
1911 ac_retval=$ac_status
1912 fi
1913 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915 as_fn_set_status $ac_retval
1916
1917 } # ac_fn_c_try_run
1918
1919 # ac_fn_c_check_func LINENO FUNC VAR
1920 # ----------------------------------
1921 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1922 ac_fn_c_check_func ()
1923 {
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1926 $as_echo_n "checking for $2... " >&6; }
1927 if eval \${$3+:} false; then :
1928 $as_echo_n "(cached) " >&6
1929 else
1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h. */
1932 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1934 #define $2 innocuous_$2
1935
1936 /* System header to define __stub macros and hopefully few prototypes,
1937 which can conflict with char $2 (); below.
1938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1939 <limits.h> exists even on freestanding compilers. */
1940
1941 #ifdef __STDC__
1942 # include <limits.h>
1943 #else
1944 # include <assert.h>
1945 #endif
1946
1947 #undef $2
1948
1949 /* Override any GCC internal prototype to avoid an error.
1950 Use char because int might match the return type of a GCC
1951 builtin and then its argument prototype would still apply. */
1952 #ifdef __cplusplus
1953 extern "C"
1954 #endif
1955 char $2 ();
1956 /* The GNU C library defines this for functions which it implements
1957 to always fail with ENOSYS. Some functions are actually named
1958 something starting with __ and the normal name is an alias. */
1959 #if defined __stub_$2 || defined __stub___$2
1960 choke me
1961 #endif
1962
1963 int
1964 main ()
1965 {
1966 return $2 ();
1967 ;
1968 return 0;
1969 }
1970 _ACEOF
1971 if ac_fn_c_try_link "$LINENO"; then :
1972 eval "$3=yes"
1973 else
1974 eval "$3=no"
1975 fi
1976 rm -f core conftest.err conftest.$ac_objext \
1977 conftest$ac_exeext conftest.$ac_ext
1978 fi
1979 eval ac_res=\$$3
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981 $as_echo "$ac_res" >&6; }
1982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983
1984 } # ac_fn_c_check_func
1985
1986 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1987 # -------------------------------------------------------
1988 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1989 # the include files in INCLUDES and setting the cache variable VAR
1990 # accordingly.
1991 ac_fn_c_check_header_mongrel ()
1992 {
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 if eval \${$3+:} false; then :
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1996 $as_echo_n "checking for $2... " >&6; }
1997 if eval \${$3+:} false; then :
1998 $as_echo_n "(cached) " >&6
1999 fi
2000 eval ac_res=\$$3
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002 $as_echo "$ac_res" >&6; }
2003 else
2004 # Is the header compilable?
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2006 $as_echo_n "checking $2 usability... " >&6; }
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h. */
2009 $4
2010 #include <$2>
2011 _ACEOF
2012 if ac_fn_c_try_compile "$LINENO"; then :
2013 ac_header_compiler=yes
2014 else
2015 ac_header_compiler=no
2016 fi
2017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2019 $as_echo "$ac_header_compiler" >&6; }
2020
2021 # Is the header present?
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2023 $as_echo_n "checking $2 presence... " >&6; }
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h. */
2026 #include <$2>
2027 _ACEOF
2028 if ac_fn_c_try_cpp "$LINENO"; then :
2029 ac_header_preproc=yes
2030 else
2031 ac_header_preproc=no
2032 fi
2033 rm -f conftest.err conftest.i conftest.$ac_ext
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2035 $as_echo "$ac_header_preproc" >&6; }
2036
2037 # So? What about this header?
2038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2039 yes:no: )
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2041 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2043 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2044 ;;
2045 no:yes:* )
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2047 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2049 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2051 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2053 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2055 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2056 ( $as_echo "## --------------------------------- ##
2057 ## Report this to caml-list@inria.fr ##
2058 ## --------------------------------- ##"
2059 ) | sed "s/^/$as_me: WARNING: /" >&2
2060 ;;
2061 esac
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2063 $as_echo_n "checking for $2... " >&6; }
2064 if eval \${$3+:} false; then :
2065 $as_echo_n "(cached) " >&6
2066 else
2067 eval "$3=\$ac_header_compiler"
2068 fi
2069 eval ac_res=\$$3
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2071 $as_echo "$ac_res" >&6; }
2072 fi
2073 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2074
2075 } # ac_fn_c_check_header_mongrel
2076
2077 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2078 # -------------------------------------------
2079 # Tests whether TYPE exists after having included INCLUDES, setting cache
2080 # variable VAR accordingly.
2081 ac_fn_c_check_type ()
2082 {
2083 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2085 $as_echo_n "checking for $2... " >&6; }
2086 if eval \${$3+:} false; then :
2087 $as_echo_n "(cached) " >&6
2088 else
2089 eval "$3=no"
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2092 $4
2093 int
2094 main ()
2095 {
2096 if (sizeof ($2))
2097 return 0;
2098 ;
2099 return 0;
2100 }
2101 _ACEOF
2102 if ac_fn_c_try_compile "$LINENO"; then :
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2105 $4
2106 int
2107 main ()
2108 {
2109 if (sizeof (($2)))
2110 return 0;
2111 ;
2112 return 0;
2113 }
2114 _ACEOF
2115 if ac_fn_c_try_compile "$LINENO"; then :
2116
2117 else
2118 eval "$3=yes"
2119 fi
2120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121 fi
2122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123 fi
2124 eval ac_res=\$$3
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126 $as_echo "$ac_res" >&6; }
2127 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2128
2129 } # ac_fn_c_check_type
2130
2131 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2132 # --------------------------------------------
2133 # Tries to find the compile-time value of EXPR in a program that includes
2134 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2135 # computed
2136 ac_fn_c_compute_int ()
2137 {
2138 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139 if test "$cross_compiling" = yes; then
2140 # Depending upon the size, compute the lo and hi bounds.
2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h. */
2143 $4
2144 int
2145 main ()
2146 {
2147 static int test_array [1 - 2 * !(($2) >= 0)];
2148 test_array [0] = 0;
2149 return test_array [0];
2150
2151 ;
2152 return 0;
2153 }
2154 _ACEOF
2155 if ac_fn_c_try_compile "$LINENO"; then :
2156 ac_lo=0 ac_mid=0
2157 while :; do
2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h. */
2160 $4
2161 int
2162 main ()
2163 {
2164 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2165 test_array [0] = 0;
2166 return test_array [0];
2167
2168 ;
2169 return 0;
2170 }
2171 _ACEOF
2172 if ac_fn_c_try_compile "$LINENO"; then :
2173 ac_hi=$ac_mid; break
2174 else
2175 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2176 if test $ac_lo -le $ac_mid; then
2177 ac_lo= ac_hi=
2178 break
2179 fi
2180 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2181 fi
2182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183 done
2184 else
2185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186 /* end confdefs.h. */
2187 $4
2188 int
2189 main ()
2190 {
2191 static int test_array [1 - 2 * !(($2) < 0)];
2192 test_array [0] = 0;
2193 return test_array [0];
2194
2195 ;
2196 return 0;
2197 }
2198 _ACEOF
2199 if ac_fn_c_try_compile "$LINENO"; then :
2200 ac_hi=-1 ac_mid=-1
2201 while :; do
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2204 $4
2205 int
2206 main ()
2207 {
2208 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2209 test_array [0] = 0;
2210 return test_array [0];
2211
2212 ;
2213 return 0;
2214 }
2215 _ACEOF
2216 if ac_fn_c_try_compile "$LINENO"; then :
2217 ac_lo=$ac_mid; break
2218 else
2219 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2220 if test $ac_mid -le $ac_hi; then
2221 ac_lo= ac_hi=
2222 break
2223 fi
2224 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2225 fi
2226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2227 done
2228 else
2229 ac_lo= ac_hi=
2230 fi
2231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232 fi
2233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2234 # Binary search between lo and hi bounds.
2235 while test "x$ac_lo" != "x$ac_hi"; do
2236 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h. */
2239 $4
2240 int
2241 main ()
2242 {
2243 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2244 test_array [0] = 0;
2245 return test_array [0];
2246
2247 ;
2248 return 0;
2249 }
2250 _ACEOF
2251 if ac_fn_c_try_compile "$LINENO"; then :
2252 ac_hi=$ac_mid
2253 else
2254 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2255 fi
2256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2257 done
2258 case $ac_lo in #((
2259 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2260 '') ac_retval=1 ;;
2261 esac
2262 else
2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h. */
2265 $4
2266 static long int longval () { return $2; }
2267 static unsigned long int ulongval () { return $2; }
2268 #include <stdio.h>
2269 #include <stdlib.h>
2270 int
2271 main ()
2272 {
2273
2274 FILE *f = fopen ("conftest.val", "w");
2275 if (! f)
2276 return 1;
2277 if (($2) < 0)
2278 {
2279 long int i = longval ();
2280 if (i != ($2))
2281 return 1;
2282 fprintf (f, "%ld", i);
2283 }
2284 else
2285 {
2286 unsigned long int i = ulongval ();
2287 if (i != ($2))
2288 return 1;
2289 fprintf (f, "%lu", i);
2290 }
2291 /* Do not output a trailing newline, as this causes \r\n confusion
2292 on some platforms. */
2293 return ferror (f) || fclose (f) != 0;
2294
2295 ;
2296 return 0;
2297 }
2298 _ACEOF
2299 if ac_fn_c_try_run "$LINENO"; then :
2300 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2301 else
2302 ac_retval=1
2303 fi
2304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2305 conftest.$ac_objext conftest.beam conftest.$ac_ext
2306 rm -f conftest.val
2307
2308 fi
2309 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2310 as_fn_set_status $ac_retval
2311
2312 } # ac_fn_c_compute_int
2313
2314 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2315 # ----------------------------------------------------
2316 # Tries to find if the field MEMBER exists in type AGGR, after including
2317 # INCLUDES, setting cache variable VAR accordingly.
2318 ac_fn_c_check_member ()
2319 {
2320 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2322 $as_echo_n "checking for $2.$3... " >&6; }
2323 if eval \${$4+:} false; then :
2324 $as_echo_n "(cached) " >&6
2325 else
2326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327 /* end confdefs.h. */
2328 $5
2329 int
2330 main ()
2331 {
2332 static $2 ac_aggr;
2333 if (ac_aggr.$3)
2334 return 0;
2335 ;
2336 return 0;
2337 }
2338 _ACEOF
2339 if ac_fn_c_try_compile "$LINENO"; then :
2340 eval "$4=yes"
2341 else
2342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2343 /* end confdefs.h. */
2344 $5
2345 int
2346 main ()
2347 {
2348 static $2 ac_aggr;
2349 if (sizeof ac_aggr.$3)
2350 return 0;
2351 ;
2352 return 0;
2353 }
2354 _ACEOF
2355 if ac_fn_c_try_compile "$LINENO"; then :
2356 eval "$4=yes"
2357 else
2358 eval "$4=no"
2359 fi
2360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2361 fi
2362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2363 fi
2364 eval ac_res=\$$4
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2366 $as_echo "$ac_res" >&6; }
2367 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2368
2369 } # ac_fn_c_check_member
2370 cat >config.log <<_ACEOF
2371 This file contains any messages produced by compilers while
2372 running configure, to aid debugging if configure makes a mistake.
2373
2374 It was created by OCaml $as_me 4.10.0, which was
2375 generated by GNU Autoconf 2.69. Invocation command line was
2376
2377 $ $0 $@
2378
2379 _ACEOF
2380 exec 5>>config.log
2381 {
2382 cat <<_ASUNAME
2383 ## --------- ##
2384 ## Platform. ##
2385 ## --------- ##
2386
2387 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2388 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2389 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2390 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2391 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2392
2393 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2394 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2395
2396 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2397 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2398 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2399 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2400 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2401 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2402 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2403
2404 _ASUNAME
2405
2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 for as_dir in $PATH
2408 do
2409 IFS=$as_save_IFS
2410 test -z "$as_dir" && as_dir=.
2411 $as_echo "PATH: $as_dir"
2412 done
2413 IFS=$as_save_IFS
2414
2415 } >&5
2416
2417 cat >&5 <<_ACEOF
2418
2419
2420 ## ----------- ##
2421 ## Core tests. ##
2422 ## ----------- ##
2423
2424 _ACEOF
2425
2426
2427 # Keep a trace of the command line.
2428 # Strip out --no-create and --no-recursion so they do not pile up.
2429 # Strip out --silent because we don't want to record it for future runs.
2430 # Also quote any args containing shell meta-characters.
2431 # Make two passes to allow for proper duplicate-argument suppression.
2432 ac_configure_args=
2433 ac_configure_args0=
2434 ac_configure_args1=
2435 ac_must_keep_next=false
2436 for ac_pass in 1 2
2437 do
2438 for ac_arg
2439 do
2440 case $ac_arg in
2441 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2442 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2443 | -silent | --silent | --silen | --sile | --sil)
2444 continue ;;
2445 *\'*)
2446 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2447 esac
2448 case $ac_pass in
2449 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2450 2)
2451 as_fn_append ac_configure_args1 " '$ac_arg'"
2452 if test $ac_must_keep_next = true; then
2453 ac_must_keep_next=false # Got value, back to normal.
2454 else
2455 case $ac_arg in
2456 *=* | --config-cache | -C | -disable-* | --disable-* \
2457 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2458 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2459 | -with-* | --with-* | -without-* | --without-* | --x)
2460 case "$ac_configure_args0 " in
2461 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2462 esac
2463 ;;
2464 -* ) ac_must_keep_next=true ;;
2465 esac
2466 fi
2467 as_fn_append ac_configure_args " '$ac_arg'"
2468 ;;
2469 esac
2470 done
2471 done
2472 { ac_configure_args0=; unset ac_configure_args0;}
2473 { ac_configure_args1=; unset ac_configure_args1;}
2474
2475 # When interrupted or exit'd, cleanup temporary files, and complete
2476 # config.log. We remove comments because anyway the quotes in there
2477 # would cause problems or look ugly.
2478 # WARNING: Use '\'' to represent an apostrophe within the trap.
2479 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2480 trap 'exit_status=$?
2481 # Save into config.log some information that might help in debugging.
2482 {
2483 echo
2484
2485 $as_echo "## ---------------- ##
2486 ## Cache variables. ##
2487 ## ---------------- ##"
2488 echo
2489 # The following way of writing the cache mishandles newlines in values,
2490 (
2491 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2492 eval ac_val=\$$ac_var
2493 case $ac_val in #(
2494 *${as_nl}*)
2495 case $ac_var in #(
2496 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2497 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2498 esac
2499 case $ac_var in #(
2500 _ | IFS | as_nl) ;; #(
2501 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2502 *) { eval $ac_var=; unset $ac_var;} ;;
2503 esac ;;
2504 esac
2505 done
2506 (set) 2>&1 |
2507 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2508 *${as_nl}ac_space=\ *)
2509 sed -n \
2510 "s/'\''/'\''\\\\'\'''\''/g;
2511 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2512 ;; #(
2513 *)
2514 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2515 ;;
2516 esac |
2517 sort
2518 )
2519 echo
2520
2521 $as_echo "## ----------------- ##
2522 ## Output variables. ##
2523 ## ----------------- ##"
2524 echo
2525 for ac_var in $ac_subst_vars
2526 do
2527 eval ac_val=\$$ac_var
2528 case $ac_val in
2529 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2530 esac
2531 $as_echo "$ac_var='\''$ac_val'\''"
2532 done | sort
2533 echo
2534
2535 if test -n "$ac_subst_files"; then
2536 $as_echo "## ------------------- ##
2537 ## File substitutions. ##
2538 ## ------------------- ##"
2539 echo
2540 for ac_var in $ac_subst_files
2541 do
2542 eval ac_val=\$$ac_var
2543 case $ac_val in
2544 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2545 esac
2546 $as_echo "$ac_var='\''$ac_val'\''"
2547 done | sort
2548 echo
2549 fi
2550
2551 if test -s confdefs.h; then
2552 $as_echo "## ----------- ##
2553 ## confdefs.h. ##
2554 ## ----------- ##"
2555 echo
2556 cat confdefs.h
2557 echo
2558 fi
2559 test "$ac_signal" != 0 &&
2560 $as_echo "$as_me: caught signal $ac_signal"
2561 $as_echo "$as_me: exit $exit_status"
2562 } >&5
2563 rm -f core *.core core.conftest.* &&
2564 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2565 exit $exit_status
2566 ' 0
2567 for ac_signal in 1 2 13 15; do
2568 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2569 done
2570 ac_signal=0
2571
2572 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2573 rm -f -r conftest* confdefs.h
2574
2575 $as_echo "/* confdefs.h */" > confdefs.h
2576
2577 # Predefined preprocessor variables.
2578
2579 cat >>confdefs.h <<_ACEOF
2580 #define PACKAGE_NAME "$PACKAGE_NAME"
2581 _ACEOF
2582
2583 cat >>confdefs.h <<_ACEOF
2584 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2585 _ACEOF
2586
2587 cat >>confdefs.h <<_ACEOF
2588 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2589 _ACEOF
2590
2591 cat >>confdefs.h <<_ACEOF
2592 #define PACKAGE_STRING "$PACKAGE_STRING"
2593 _ACEOF
2594
2595 cat >>confdefs.h <<_ACEOF
2596 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2597 _ACEOF
2598
2599 cat >>confdefs.h <<_ACEOF
2600 #define PACKAGE_URL "$PACKAGE_URL"
2601 _ACEOF
2602
2603
2604 # Let the site file select an alternate cache file if it wants to.
2605 # Prefer an explicitly selected file to automatically selected ones.
2606 ac_site_file1=NONE
2607 ac_site_file2=NONE
2608 if test -n "$CONFIG_SITE"; then
2609 # We do not want a PATH search for config.site.
2610 case $CONFIG_SITE in #((
2611 -*) ac_site_file1=./$CONFIG_SITE;;
2612 */*) ac_site_file1=$CONFIG_SITE;;
2613 *) ac_site_file1=./$CONFIG_SITE;;
2614 esac
2615 elif test "x$prefix" != xNONE; then
2616 ac_site_file1=$prefix/share/config.site
2617 ac_site_file2=$prefix/etc/config.site
2618 else
2619 ac_site_file1=$ac_default_prefix/share/config.site
2620 ac_site_file2=$ac_default_prefix/etc/config.site
2621 fi
2622 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2623 do
2624 test "x$ac_site_file" = xNONE && continue
2625 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2627 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2628 sed 's/^/| /' "$ac_site_file" >&5
2629 . "$ac_site_file" \
2630 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2631 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2632 as_fn_error $? "failed to load site script $ac_site_file
2633 See \`config.log' for more details" "$LINENO" 5; }
2634 fi
2635 done
2636
2637 if test -r "$cache_file"; then
2638 # Some versions of bash will fail to source /dev/null (special files
2639 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2640 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2642 $as_echo "$as_me: loading cache $cache_file" >&6;}
2643 case $cache_file in
2644 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2645 *) . "./$cache_file";;
2646 esac
2647 fi
2648 else
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2650 $as_echo "$as_me: creating cache $cache_file" >&6;}
2651 >$cache_file
2652 fi
2653
2654 # Check that the precious variables saved in the cache have kept the same
2655 # value.
2656 ac_cache_corrupted=false
2657 for ac_var in $ac_precious_vars; do
2658 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2659 eval ac_new_set=\$ac_env_${ac_var}_set
2660 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2661 eval ac_new_val=\$ac_env_${ac_var}_value
2662 case $ac_old_set,$ac_new_set in
2663 set,)
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2665 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2666 ac_cache_corrupted=: ;;
2667 ,set)
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2669 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2670 ac_cache_corrupted=: ;;
2671 ,);;
2672 *)
2673 if test "x$ac_old_val" != "x$ac_new_val"; then
2674 # differences in whitespace do not lead to failure.
2675 ac_old_val_w=`echo x $ac_old_val`
2676 ac_new_val_w=`echo x $ac_new_val`
2677 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2679 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2680 ac_cache_corrupted=:
2681 else
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2683 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2684 eval $ac_var=\$ac_old_val
2685 fi
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2687 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2689 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2690 fi;;
2691 esac
2692 # Pass precious variables to config.status.
2693 if test "$ac_new_set" = set; then
2694 case $ac_new_val in
2695 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2696 *) ac_arg=$ac_var=$ac_new_val ;;
2697 esac
2698 case " $ac_configure_args " in
2699 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2700 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2701 esac
2702 fi
2703 done
2704 if $ac_cache_corrupted; then
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2708 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2709 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2710 fi
2711 ## -------------------- ##
2712 ## Main body of script. ##
2713 ## -------------------- ##
2714
2715 ac_ext=c
2716 ac_cpp='$CPP $CPPFLAGS'
2717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2720
2721
2722
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring OCaml version 4.10.0" >&5
2724 $as_echo "$as_me: Configuring OCaml version 4.10.0" >&6;}
2725
2726 # Configuration variables
2727
2728 ## Command-line arguments passed to configure
2729 CONFIGURE_ARGS="$*"
2730
2731 # Command-line tools section of the Unix manual
2732 programs_man_section=1
2733
2734 # Library section of the Unix manual
2735 libraries_man_section=3
2736
2737 # Command to build executalbes
2738 mkexe="\$(CC) \$(OC_CFLAGS) \$(OC_CPPFLAGS) \$(OC_LDFLAGS)"
2739
2740 # Flags for building executable files with debugging symbols
2741 mkexedebugflag="-g"
2742 common_cflags=""
2743 common_cppflags=""
2744 internal_cflags=""
2745 internal_cppflags=""
2746 ocamlc_cflags=""
2747 ocamlc_cppflags=""
2748 ocamlopt_cflags=""
2749 ocamlopt_cppflags=""
2750 oc_ldflags=""
2751 with_sharedlibs=true
2752 ostype="Unix"
2753 iflexdir=""
2754 SO="so"
2755 toolchain="cc"
2756 profinfo=false
2757 profinfo_width=0
2758 extralibs=
2759
2760 # Information about the package
2761
2762 ## Source directory
2763
2764
2765 ## Directory containing auxiliary scripts used dugring build
2766 ac_aux_dir=
2767 for ac_dir in build-aux "$srcdir"/build-aux; do
2768 if test -f "$ac_dir/install-sh"; then
2769 ac_aux_dir=$ac_dir
2770 ac_install_sh="$ac_aux_dir/install-sh -c"
2771 break
2772 elif test -f "$ac_dir/install.sh"; then
2773 ac_aux_dir=$ac_dir
2774 ac_install_sh="$ac_aux_dir/install.sh -c"
2775 break
2776 elif test -f "$ac_dir/shtool"; then
2777 ac_aux_dir=$ac_dir
2778 ac_install_sh="$ac_aux_dir/shtool install -c"
2779 break
2780 fi
2781 done
2782 if test -z "$ac_aux_dir"; then
2783 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2784 fi
2785
2786 # These three variables are undocumented and unsupported,
2787 # and are intended to be withdrawn in a future Autoconf release.
2788 # They can cause serious problems if a builder's source tree is in a directory
2789 # whose full name contains unusual characters.
2790 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2791 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2792 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2793
2794
2795
2796 ## Output variables
2797
2798
2799
2800 VERSION=4.10.0
2801
2802
2803 # Note: This is present for the flexdll bootstrap where it exposed as the old
2804 # TOOLPREF variable. It would be better if flexdll where updated to require
2805 # WINDRES instead.
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856 # TODO: rename this variable
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897 ## Generated files
2898
2899 ac_config_files="$ac_config_files Makefile.common"
2900
2901 ac_config_files="$ac_config_files Makefile.config"
2902
2903 ac_config_headers="$ac_config_headers runtime/caml/m.h"
2904
2905 ac_config_headers="$ac_config_headers runtime/caml/s.h"
2906
2907
2908 # Checks for system types
2909
2910 # Make sure we can run config.sub.
2911 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2912 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2913
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2915 $as_echo_n "checking build system type... " >&6; }
2916 if ${ac_cv_build+:} false; then :
2917 $as_echo_n "(cached) " >&6
2918 else
2919 ac_build_alias=$build_alias
2920 test "x$ac_build_alias" = x &&
2921 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2922 test "x$ac_build_alias" = x &&
2923 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2924 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2925 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2926
2927 fi
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2929 $as_echo "$ac_cv_build" >&6; }
2930 case $ac_cv_build in
2931 *-*-*) ;;
2932 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2933 esac
2934 build=$ac_cv_build
2935 ac_save_IFS=$IFS; IFS='-'
2936 set x $ac_cv_build
2937 shift
2938 build_cpu=$1
2939 build_vendor=$2
2940 shift; shift
2941 # Remember, the first character of IFS is used to create $*,
2942 # except with old shells:
2943 build_os=$*
2944 IFS=$ac_save_IFS
2945 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2946
2947
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2949 $as_echo_n "checking host system type... " >&6; }
2950 if ${ac_cv_host+:} false; then :
2951 $as_echo_n "(cached) " >&6
2952 else
2953 if test "x$host_alias" = x; then
2954 ac_cv_host=$ac_cv_build
2955 else
2956 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2957 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2958 fi
2959
2960 fi
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2962 $as_echo "$ac_cv_host" >&6; }
2963 case $ac_cv_host in
2964 *-*-*) ;;
2965 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2966 esac
2967 host=$ac_cv_host
2968 ac_save_IFS=$IFS; IFS='-'
2969 set x $ac_cv_host
2970 shift
2971 host_cpu=$1
2972 host_vendor=$2
2973 shift; shift
2974 # Remember, the first character of IFS is used to create $*,
2975 # except with old shells:
2976 host_os=$*
2977 IFS=$ac_save_IFS
2978 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2979
2980
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2982 $as_echo_n "checking target system type... " >&6; }
2983 if ${ac_cv_target+:} false; then :
2984 $as_echo_n "(cached) " >&6
2985 else
2986 if test "x$target_alias" = x; then
2987 ac_cv_target=$ac_cv_host
2988 else
2989 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2990 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2991 fi
2992
2993 fi
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2995 $as_echo "$ac_cv_target" >&6; }
2996 case $ac_cv_target in
2997 *-*-*) ;;
2998 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2999 esac
3000 target=$ac_cv_target
3001 ac_save_IFS=$IFS; IFS='-'
3002 set x $ac_cv_target
3003 shift
3004 target_cpu=$1
3005 target_vendor=$2
3006 shift; shift
3007 # Remember, the first character of IFS is used to create $*,
3008 # except with old shells:
3009 target_os=$*
3010 IFS=$ac_save_IFS
3011 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3012
3013
3014 # The aliases save the names the user supplied, while $host etc.
3015 # will get canonicalized.
3016 test -n "$target_alias" &&
3017 test "$program_prefix$program_suffix$program_transform_name" = \
3018 NONENONEs,x,x, &&
3019 program_prefix=${target_alias}-
3020
3021 case $host in #(
3022 *-pc-windows) :
3023 CC=cl
3024 ccomptype=msvc
3025 S=asm
3026 SO=dll
3027 outputexe=-Fe
3028 syslib='$(1).lib' ;; #(
3029 *) :
3030 ccomptype=cc
3031 S=s
3032 SO=so
3033 outputexe='-o $(EMPTY)'
3034 syslib='-l$(1)' ;;
3035 esac
3036
3037 # Environment variables that are taken into account
3038
3039
3040
3041
3042
3043 # Command-line arguments to configure
3044
3045 # Check whether --enable-debug-runtime was given.
3046 if test "${enable_debug_runtime+set}" = set; then :
3047 enableval=$enable_debug_runtime;
3048 fi
3049
3050
3051 # Check whether --enable-debugger was given.
3052 if test "${enable_debugger+set}" = set; then :
3053 enableval=$enable_debugger;
3054 else
3055 enable_debugger=auto
3056 fi
3057
3058
3059
3060
3061 # Check whether --enable-instrumented-runtime was given.
3062 if test "${enable_instrumented_runtime+set}" = set; then :
3063 enableval=$enable_instrumented_runtime;
3064 else
3065 enable_instrumented_runtime=auto
3066 fi
3067
3068
3069 # Check whether --enable-vmthreads was given.
3070 if test "${enable_vmthreads+set}" = set; then :
3071 enableval=$enable_vmthreads; as_fn_error $? "The vmthreads library is no longer available. \
3072 It was deleted in OCaml 4.09." "$LINENO" 5
3073 fi
3074
3075
3076 # Check whether --enable-systhreads was given.
3077 if test "${enable_systhreads+set}" = set; then :
3078 enableval=$enable_systhreads;
3079 fi
3080
3081
3082
3083 # Check whether --with-libunwind was given.
3084 if test "${with_libunwind+set}" = set; then :
3085 withval=$with_libunwind;
3086 fi
3087
3088
3089
3090
3091
3092
3093
3094 # Check whether --with-bfd was given.
3095 if test "${with_bfd+set}" = set; then :
3096 withval=$with_bfd;
3097 else
3098 with_bfd=auto
3099 fi
3100
3101
3102
3103
3104
3105
3106 # Check whether --enable-graph-lib was given.
3107 if test "${enable_graph_lib+set}" = set; then :
3108 enableval=$enable_graph_lib; as_fn_error $? "The graphics library is no longer distributed with OCaml \
3109 since version 4.09. It is now distributed as a separate \"graphics\" package: \
3110 https://github.com/ocaml/graphics" "$LINENO" 5
3111 fi
3112
3113
3114 # Check whether --enable-str-lib was given.
3115 if test "${enable_str_lib+set}" = set; then :
3116 enableval=$enable_str_lib;
3117 fi
3118
3119
3120 # Check whether --enable-unix-lib was given.
3121 if test "${enable_unix_lib+set}" = set; then :
3122 enableval=$enable_unix_lib;
3123 fi
3124
3125
3126 # Check whether --enable-bigarray-lib was given.
3127 if test "${enable_bigarray_lib+set}" = set; then :
3128 enableval=$enable_bigarray_lib;
3129 fi
3130
3131
3132 # Check whether --enable-ocamldoc was given.
3133 if test "${enable_ocamldoc+set}" = set; then :
3134 enableval=$enable_ocamldoc;
3135 else
3136 ocamldoc=auto
3137 fi
3138
3139
3140 # Check whether --enable-frame-pointers was given.
3141 if test "${enable_frame_pointers+set}" = set; then :
3142 enableval=$enable_frame_pointers;
3143 fi
3144
3145
3146 # Check whether --enable-naked-pointers was given.
3147 if test "${enable_naked_pointers+set}" = set; then :
3148 enableval=$enable_naked_pointers;
3149 fi
3150
3151
3152 # Check whether --enable-spacetime was given.
3153 if test "${enable_spacetime+set}" = set; then :
3154 enableval=$enable_spacetime;
3155 fi
3156
3157
3158 # Check whether --enable-call-counts was given.
3159 if test "${enable_call_counts+set}" = set; then :
3160 enableval=$enable_call_counts;
3161 fi
3162
3163
3164 # Check whether --enable-cfi was given.
3165 if test "${enable_cfi+set}" = set; then :
3166 enableval=$enable_cfi;
3167 fi
3168
3169
3170 # Check whether --enable-installing-source-artifacts was given.
3171 if test "${enable_installing_source_artifacts+set}" = set; then :
3172 enableval=$enable_installing_source_artifacts;
3173 fi
3174
3175 # Check whether --enable-installing-bytecode-programs was given.
3176 if test "${enable_installing_bytecode_programs+set}" = set; then :
3177 enableval=$enable_installing_bytecode_programs;
3178 fi
3179
3180
3181 # Check whether --enable-native-compiler was given.
3182 if test "${enable_native_compiler+set}" = set; then :
3183 enableval=$enable_native_compiler;
3184 fi
3185
3186
3187 # Check whether --enable-flambda was given.
3188 if test "${enable_flambda+set}" = set; then :
3189 enableval=$enable_flambda;
3190 fi
3191
3192
3193 # Check whether --enable-flambda-invariants was given.
3194 if test "${enable_flambda_invariants+set}" = set; then :
3195 enableval=$enable_flambda_invariants;
3196 fi
3197
3198
3199
3200 # Check whether --with-target-bindir was given.
3201 if test "${with_target_bindir+set}" = set; then :
3202 withval=$with_target_bindir;
3203 fi
3204
3205
3206 # Check whether --enable-reserved-header-bits was given.
3207 if test "${enable_reserved_header_bits+set}" = set; then :
3208 enableval=$enable_reserved_header_bits; case $enable_reserved_header_bits in #(
3209 0) :
3210 with_profinfo=false
3211 profinfo_width=0 ;; #(
3212 [1-9]|1[0-9]|2[0-1]) :
3213 with_profinfo=true
3214 profinfo_width="$enable_reserved_header_bits" ;; #(
3215 *) :
3216 as_fn_error $? "invalid argument to --enable-reserved-header-bits" "$LINENO" 5 ;;
3217 esac
3218 fi
3219
3220
3221 # Check whether --enable-stdlib-manpages was given.
3222 if test "${enable_stdlib_manpages+set}" = set; then :
3223 enableval=$enable_stdlib_manpages;
3224 fi
3225
3226
3227
3228
3229 # There are two configure-time string safety options,
3230 # --(enable|disable)-force-safe-string and
3231 # DEFAULT_STRING=safe|unsafe that
3232 # interact with a compile-time (un)safe-string option.
3233 #
3234 # If --enable-force-safe-string is set at configure time, then the compiler
3235 # will always enforce that string and bytes are distinct: the
3236 # compile-time -unsafe-string option is disabled. This lets us
3237 # assume pervasive string immutability, for code optimizations and
3238 # in the C layer.
3239 #
3240 # If --disable-force-safe-string is set at configure-time, the compiler
3241 # will use the compile-time (un)safe-string option to decide whether
3242 # string and bytes are compatible on a per-file basis. The
3243 # configuration variable DEFAULT_STRING=safe|unsafe decides which
3244 # setting will be chosen by default, if no compile-time option is
3245 # explicitly passed.
3246 #
3247 # The configure-time behavior of OCaml 4.05 and older was equivalent
3248 # to --disable-force-safe-string DEFAULT_STRING=unsafe. With OCaml 4.06
3249 # and older was equivalent to --disable-force-safe-string DEFAULT_STRING=safe.
3250 # With OCaml 4.10 and later use --enable-force-safe-string DEFAULT_STRING=safe.
3251 # We expect the --disable-force-safe-string and DEFAULT_STRING=unsafe options
3252 # to be removed in the future.
3253
3254 # Check whether --enable-force-safe-string was given.
3255 if test "${enable_force_safe_string+set}" = set; then :
3256 enableval=$enable_force_safe_string;
3257 fi
3258
3259
3260
3261
3262 # Check whether --enable-flat-float-array was given.
3263 if test "${enable_flat_float_array+set}" = set; then :
3264 enableval=$enable_flat_float_array;
3265 fi
3266
3267
3268 # Check whether --enable-function-sections was given.
3269 if test "${enable_function_sections+set}" = set; then :
3270 enableval=$enable_function_sections;
3271 else
3272 enable_function_sections=auto
3273 fi
3274
3275
3276
3277 # Check whether --with-afl was given.
3278 if test "${with_afl+set}" = set; then :
3279 withval=$with_afl;
3280 fi
3281
3282
3283 if test x"$enable_unix_lib" = "xno"; then :
3284 if test x"$enable_debugger" = "xyes"; then :
3285 as_fn_error $? "replay debugger requires the unix library" "$LINENO" 5
3286 else
3287 enable_debugger="no"
3288 fi
3289 if test x"$enable_bigarray_lib" = "xyes"; then :
3290 as_fn_error $? "legacy bigarray library requires the unix library" "$LINENO" 5
3291 fi
3292 fi
3293
3294 if test x"$enable_unix_lib" = "xno" -o x"$enable_str_lib" = "xno"; then :
3295 if test x"$enable_ocamldoc" = "xyes"; then :
3296 as_fn_error $? "ocamldoc requires the unix and str libraries" "$LINENO" 5
3297 else
3298 enable_ocamldoc="no"
3299 with_camltex=""
3300 fi
3301 else
3302 with_camltex="true"
3303 fi
3304
3305 # Initialization of libtool
3306 # Allow the MSVC linker to be found even if ld isn't installed.
3307 # User-specified LD still takes precedence.
3308 if test -n "$ac_tool_prefix"; then
3309 for ac_prog in ld link
3310 do
3311 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3312 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3314 $as_echo_n "checking for $ac_word... " >&6; }
3315 if ${ac_cv_prog_LD+:} false; then :
3316 $as_echo_n "(cached) " >&6
3317 else
3318 if test -n "$LD"; then
3319 ac_cv_prog_LD="$LD" # Let the user override the test.
3320 else
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322 for as_dir in $PATH
3323 do
3324 IFS=$as_save_IFS
3325 test -z "$as_dir" && as_dir=.
3326 for ac_exec_ext in '' $ac_executable_extensions; do
3327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3328 ac_cv_prog_LD="$ac_tool_prefix$ac_prog"
3329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3330 break 2
3331 fi
3332 done
3333 done
3334 IFS=$as_save_IFS
3335
3336 fi
3337 fi
3338 LD=$ac_cv_prog_LD
3339 if test -n "$LD"; then
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3341 $as_echo "$LD" >&6; }
3342 else
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344 $as_echo "no" >&6; }
3345 fi
3346
3347
3348 test -n "$LD" && break
3349 done
3350 fi
3351 if test -z "$LD"; then
3352 ac_ct_LD=$LD
3353 for ac_prog in ld link
3354 do
3355 # Extract the first word of "$ac_prog", so it can be a program name with args.
3356 set dummy $ac_prog; ac_word=$2
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3358 $as_echo_n "checking for $ac_word... " >&6; }
3359 if ${ac_cv_prog_ac_ct_LD+:} false; then :
3360 $as_echo_n "(cached) " >&6
3361 else
3362 if test -n "$ac_ct_LD"; then
3363 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3364 else
3365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366 for as_dir in $PATH
3367 do
3368 IFS=$as_save_IFS
3369 test -z "$as_dir" && as_dir=.
3370 for ac_exec_ext in '' $ac_executable_extensions; do
3371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3372 ac_cv_prog_ac_ct_LD="$ac_prog"
3373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3374 break 2
3375 fi
3376 done
3377 done
3378 IFS=$as_save_IFS
3379
3380 fi
3381 fi
3382 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3383 if test -n "$ac_ct_LD"; then
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
3385 $as_echo "$ac_ct_LD" >&6; }
3386 else
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388 $as_echo "no" >&6; }
3389 fi
3390
3391
3392 test -n "$ac_ct_LD" && break
3393 done
3394
3395 if test "x$ac_ct_LD" = x; then
3396 LD=""
3397 else
3398 case $cross_compiling:$ac_tool_warned in
3399 yes:)
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3402 ac_tool_warned=yes ;;
3403 esac
3404 LD=$ac_ct_LD
3405 fi
3406 fi
3407
3408 # libtool expects host_os=mingw for native Windows
3409 old_host_os=$host_os
3410 if test x"$host_os" = "xwindows"; then :
3411 host_os=mingw
3412 fi
3413 case `pwd` in
3414 *\ * | *\ *)
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3416 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3417 esac
3418
3419
3420
3421 macro_version='2.4.6'
3422 macro_revision='2.4.6'
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436 ltmain=$ac_aux_dir/ltmain.sh
3437
3438 # Backslashify metacharacters that are still active within
3439 # double-quoted strings.
3440 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3441
3442 # Same as above, but do not quote variable references.
3443 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3444
3445 # Sed substitution to delay expansion of an escaped shell variable in a
3446 # double_quote_subst'ed string.
3447 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3448
3449 # Sed substitution to delay expansion of an escaped single quote.
3450 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3451
3452 # Sed substitution to avoid accidental globbing in evaled expressions
3453 no_glob_subst='s/\*/\\\*/g'
3454
3455 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3456 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3457 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3458
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3460 $as_echo_n "checking how to print strings... " >&6; }
3461 # Test print first, because it will be a builtin if present.
3462 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3463 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3464 ECHO='print -r --'
3465 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3466 ECHO='printf %s\n'
3467 else
3468 # Use this function as a fallback that always works.
3469 func_fallback_echo ()
3470 {
3471 eval 'cat <<_LTECHO_EOF
3472 $1
3473 _LTECHO_EOF'
3474 }
3475 ECHO='func_fallback_echo'
3476 fi
3477
3478 # func_echo_all arg...
3479 # Invoke $ECHO with all args, space-separated.
3480 func_echo_all ()
3481 {
3482 $ECHO ""
3483 }
3484
3485 case $ECHO in
3486 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3487 $as_echo "printf" >&6; } ;;
3488 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3489 $as_echo "print -r" >&6; } ;;
3490 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3491 $as_echo "cat" >&6; } ;;
3492 esac
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507 ac_ext=c
3508 ac_cpp='$CPP $CPPFLAGS'
3509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3512 if test -n "$ac_tool_prefix"; then
3513 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3514 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3516 $as_echo_n "checking for $ac_word... " >&6; }
3517 if ${ac_cv_prog_CC+:} false; then :
3518 $as_echo_n "(cached) " >&6
3519 else
3520 if test -n "$CC"; then
3521 ac_cv_prog_CC="$CC" # Let the user override the test.
3522 else
3523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524 for as_dir in $PATH
3525 do
3526 IFS=$as_save_IFS
3527 test -z "$as_dir" && as_dir=.
3528 for ac_exec_ext in '' $ac_executable_extensions; do
3529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3530 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3532 break 2
3533 fi
3534 done
3535 done
3536 IFS=$as_save_IFS
3537
3538 fi
3539 fi
3540 CC=$ac_cv_prog_CC
3541 if test -n "$CC"; then
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3543 $as_echo "$CC" >&6; }
3544 else
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3546 $as_echo "no" >&6; }
3547 fi
3548
3549
3550 fi
3551 if test -z "$ac_cv_prog_CC"; then
3552 ac_ct_CC=$CC
3553 # Extract the first word of "gcc", so it can be a program name with args.
3554 set dummy gcc; ac_word=$2
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3556 $as_echo_n "checking for $ac_word... " >&6; }
3557 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3558 $as_echo_n "(cached) " >&6
3559 else
3560 if test -n "$ac_ct_CC"; then
3561 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3562 else
3563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564 for as_dir in $PATH
3565 do
3566 IFS=$as_save_IFS
3567 test -z "$as_dir" && as_dir=.
3568 for ac_exec_ext in '' $ac_executable_extensions; do
3569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3570 ac_cv_prog_ac_ct_CC="gcc"
3571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3572 break 2
3573 fi
3574 done
3575 done
3576 IFS=$as_save_IFS
3577
3578 fi
3579 fi
3580 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3581 if test -n "$ac_ct_CC"; then
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3583 $as_echo "$ac_ct_CC" >&6; }
3584 else
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3586 $as_echo "no" >&6; }
3587 fi
3588
3589 if test "x$ac_ct_CC" = x; then
3590 CC=""
3591 else
3592 case $cross_compiling:$ac_tool_warned in
3593 yes:)
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3596 ac_tool_warned=yes ;;
3597 esac
3598 CC=$ac_ct_CC
3599 fi
3600 else
3601 CC="$ac_cv_prog_CC"
3602 fi
3603
3604 if test -z "$CC"; then
3605 if test -n "$ac_tool_prefix"; then
3606 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3607 set dummy ${ac_tool_prefix}cc; ac_word=$2
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3609 $as_echo_n "checking for $ac_word... " >&6; }
3610 if ${ac_cv_prog_CC+:} false; then :
3611 $as_echo_n "(cached) " >&6
3612 else
3613 if test -n "$CC"; then
3614 ac_cv_prog_CC="$CC" # Let the user override the test.
3615 else
3616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617 for as_dir in $PATH
3618 do
3619 IFS=$as_save_IFS
3620 test -z "$as_dir" && as_dir=.
3621 for ac_exec_ext in '' $ac_executable_extensions; do
3622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3623 ac_cv_prog_CC="${ac_tool_prefix}cc"
3624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3625 break 2
3626 fi
3627 done
3628 done
3629 IFS=$as_save_IFS
3630
3631 fi
3632 fi
3633 CC=$ac_cv_prog_CC
3634 if test -n "$CC"; then
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3636 $as_echo "$CC" >&6; }
3637 else
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3639 $as_echo "no" >&6; }
3640 fi
3641
3642
3643 fi
3644 fi
3645 if test -z "$CC"; then
3646 # Extract the first word of "cc", so it can be a program name with args.
3647 set dummy cc; ac_word=$2
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3649 $as_echo_n "checking for $ac_word... " >&6; }
3650 if ${ac_cv_prog_CC+:} false; then :
3651 $as_echo_n "(cached) " >&6
3652 else
3653 if test -n "$CC"; then
3654 ac_cv_prog_CC="$CC" # Let the user override the test.
3655 else
3656 ac_prog_rejected=no
3657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658 for as_dir in $PATH
3659 do
3660 IFS=$as_save_IFS
3661 test -z "$as_dir" && as_dir=.
3662 for ac_exec_ext in '' $ac_executable_extensions; do
3663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3664 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3665 ac_prog_rejected=yes
3666 continue
3667 fi
3668 ac_cv_prog_CC="cc"
3669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3670 break 2
3671 fi
3672 done
3673 done
3674 IFS=$as_save_IFS
3675
3676 if test $ac_prog_rejected = yes; then
3677 # We found a bogon in the path, so make sure we never use it.
3678 set dummy $ac_cv_prog_CC
3679 shift
3680 if test $# != 0; then
3681 # We chose a different compiler from the bogus one.
3682 # However, it has the same basename, so the bogon will be chosen
3683 # first if we set CC to just the basename; use the full file name.
3684 shift
3685 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3686 fi
3687 fi
3688 fi
3689 fi
3690 CC=$ac_cv_prog_CC
3691 if test -n "$CC"; then
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3693 $as_echo "$CC" >&6; }
3694 else
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3696 $as_echo "no" >&6; }
3697 fi
3698
3699
3700 fi
3701 if test -z "$CC"; then
3702 if test -n "$ac_tool_prefix"; then
3703 for ac_prog in cl.exe
3704 do
3705 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3706 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3708 $as_echo_n "checking for $ac_word... " >&6; }
3709 if ${ac_cv_prog_CC+:} false; then :
3710 $as_echo_n "(cached) " >&6
3711 else
3712 if test -n "$CC"; then
3713 ac_cv_prog_CC="$CC" # Let the user override the test.
3714 else
3715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3716 for as_dir in $PATH
3717 do
3718 IFS=$as_save_IFS
3719 test -z "$as_dir" && as_dir=.
3720 for ac_exec_ext in '' $ac_executable_extensions; do
3721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3722 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3724 break 2
3725 fi
3726 done
3727 done
3728 IFS=$as_save_IFS
3729
3730 fi
3731 fi
3732 CC=$ac_cv_prog_CC
3733 if test -n "$CC"; then
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3735 $as_echo "$CC" >&6; }
3736 else
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3738 $as_echo "no" >&6; }
3739 fi
3740
3741
3742 test -n "$CC" && break
3743 done
3744 fi
3745 if test -z "$CC"; then
3746 ac_ct_CC=$CC
3747 for ac_prog in cl.exe
3748 do
3749 # Extract the first word of "$ac_prog", so it can be a program name with args.
3750 set dummy $ac_prog; ac_word=$2
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3752 $as_echo_n "checking for $ac_word... " >&6; }
3753 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3754 $as_echo_n "(cached) " >&6
3755 else
3756 if test -n "$ac_ct_CC"; then
3757 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3758 else
3759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760 for as_dir in $PATH
3761 do
3762 IFS=$as_save_IFS
3763 test -z "$as_dir" && as_dir=.
3764 for ac_exec_ext in '' $ac_executable_extensions; do
3765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3766 ac_cv_prog_ac_ct_CC="$ac_prog"
3767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3768 break 2
3769 fi
3770 done
3771 done
3772 IFS=$as_save_IFS
3773
3774 fi
3775 fi
3776 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3777 if test -n "$ac_ct_CC"; then
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3779 $as_echo "$ac_ct_CC" >&6; }
3780 else
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3782 $as_echo "no" >&6; }
3783 fi
3784
3785
3786 test -n "$ac_ct_CC" && break
3787 done
3788
3789 if test "x$ac_ct_CC" = x; then
3790 CC=""
3791 else
3792 case $cross_compiling:$ac_tool_warned in
3793 yes:)
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3796 ac_tool_warned=yes ;;
3797 esac
3798 CC=$ac_ct_CC
3799 fi
3800 fi
3801
3802 fi
3803
3804
3805 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3807 as_fn_error $? "no acceptable C compiler found in \$PATH
3808 See \`config.log' for more details" "$LINENO" 5; }
3809
3810 # Provide some information about the compiler.
3811 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3812 set X $ac_compile
3813 ac_compiler=$2
3814 for ac_option in --version -v -V -qversion; do
3815 { { ac_try="$ac_compiler $ac_option >&5"
3816 case "(($ac_try" in
3817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3818 *) ac_try_echo=$ac_try;;
3819 esac
3820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3821 $as_echo "$ac_try_echo"; } >&5
3822 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3823 ac_status=$?
3824 if test -s conftest.err; then
3825 sed '10a\
3826 ... rest of stderr output deleted ...
3827 10q' conftest.err >conftest.er1
3828 cat conftest.er1 >&5
3829 fi
3830 rm -f conftest.er1 conftest.err
3831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3832 test $ac_status = 0; }
3833 done
3834
3835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3837
3838 int
3839 main ()
3840 {
3841
3842 ;
3843 return 0;
3844 }
3845 _ACEOF
3846 ac_clean_files_save=$ac_clean_files
3847 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3848 # Try to create an executable without -o first, disregard a.out.
3849 # It will help us diagnose broken compilers, and finding out an intuition
3850 # of exeext.
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3852 $as_echo_n "checking whether the C compiler works... " >&6; }
3853 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3854
3855 # The possible output files:
3856 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3857
3858 ac_rmfiles=
3859 for ac_file in $ac_files
3860 do
3861 case $ac_file in
3862 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3863 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3864 esac
3865 done
3866 rm -f $ac_rmfiles
3867
3868 if { { ac_try="$ac_link_default"
3869 case "(($ac_try" in
3870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3871 *) ac_try_echo=$ac_try;;
3872 esac
3873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3874 $as_echo "$ac_try_echo"; } >&5
3875 (eval "$ac_link_default") 2>&5
3876 ac_status=$?
3877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3878 test $ac_status = 0; }; then :
3879 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3880 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3881 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3882 # so that the user can short-circuit this test for compilers unknown to
3883 # Autoconf.
3884 for ac_file in $ac_files ''
3885 do
3886 test -f "$ac_file" || continue
3887 case $ac_file in
3888 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3889 ;;
3890 [ab].out )
3891 # We found the default executable, but exeext='' is most
3892 # certainly right.
3893 break;;
3894 *.* )
3895 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3896 then :; else
3897 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3898 fi
3899 # We set ac_cv_exeext here because the later test for it is not
3900 # safe: cross compilers may not add the suffix if given an `-o'
3901 # argument, so we may need to know it at that point already.
3902 # Even if this section looks crufty: it has the advantage of
3903 # actually working.
3904 break;;
3905 * )
3906 break;;
3907 esac
3908 done
3909 test "$ac_cv_exeext" = no && ac_cv_exeext=
3910
3911 else
3912 ac_file=''
3913 fi
3914 if test -z "$ac_file"; then :
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3916 $as_echo "no" >&6; }
3917 $as_echo "$as_me: failed program was:" >&5
3918 sed 's/^/| /' conftest.$ac_ext >&5
3919
3920 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3922 as_fn_error 77 "C compiler cannot create executables
3923 See \`config.log' for more details" "$LINENO" 5; }
3924 else
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3926 $as_echo "yes" >&6; }
3927 fi
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3929 $as_echo_n "checking for C compiler default output file name... " >&6; }
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3931 $as_echo "$ac_file" >&6; }
3932 ac_exeext=$ac_cv_exeext
3933
3934 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3935 ac_clean_files=$ac_clean_files_save
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3937 $as_echo_n "checking for suffix of executables... " >&6; }
3938 if { { ac_try="$ac_link"
3939 case "(($ac_try" in
3940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941 *) ac_try_echo=$ac_try;;
3942 esac
3943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3944 $as_echo "$ac_try_echo"; } >&5
3945 (eval "$ac_link") 2>&5
3946 ac_status=$?
3947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3948 test $ac_status = 0; }; then :
3949 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3950 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3951 # work properly (i.e., refer to `conftest.exe'), while it won't with
3952 # `rm'.
3953 for ac_file in conftest.exe conftest conftest.*; do
3954 test -f "$ac_file" || continue
3955 case $ac_file in
3956 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3957 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3958 break;;
3959 * ) break;;
3960 esac
3961 done
3962 else
3963 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3965 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3966 See \`config.log' for more details" "$LINENO" 5; }
3967 fi
3968 rm -f conftest conftest$ac_cv_exeext
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3970 $as_echo "$ac_cv_exeext" >&6; }
3971
3972 rm -f conftest.$ac_ext
3973 EXEEXT=$ac_cv_exeext
3974 ac_exeext=$EXEEXT
3975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3976 /* end confdefs.h. */
3977 #include <stdio.h>
3978 int
3979 main ()
3980 {
3981 FILE *f = fopen ("conftest.out", "w");
3982 return ferror (f) || fclose (f) != 0;
3983
3984 ;
3985 return 0;
3986 }
3987 _ACEOF
3988 ac_clean_files="$ac_clean_files conftest.out"
3989 # Check that the compiler produces executables we can run. If not, either
3990 # the compiler is broken, or we cross compile.
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3992 $as_echo_n "checking whether we are cross compiling... " >&6; }
3993 if test "$cross_compiling" != yes; then
3994 { { ac_try="$ac_link"
3995 case "(($ac_try" in
3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997 *) ac_try_echo=$ac_try;;
3998 esac
3999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4000 $as_echo "$ac_try_echo"; } >&5
4001 (eval "$ac_link") 2>&5
4002 ac_status=$?
4003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4004 test $ac_status = 0; }
4005 if { ac_try='./conftest$ac_cv_exeext'
4006 { { case "(($ac_try" in
4007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4008 *) ac_try_echo=$ac_try;;
4009 esac
4010 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4011 $as_echo "$ac_try_echo"; } >&5
4012 (eval "$ac_try") 2>&5
4013 ac_status=$?
4014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4015 test $ac_status = 0; }; }; then
4016 cross_compiling=no
4017 else
4018 if test "$cross_compiling" = maybe; then
4019 cross_compiling=yes
4020 else
4021 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4022 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4023 as_fn_error $? "cannot run C compiled programs.
4024 If you meant to cross compile, use \`--host'.
4025 See \`config.log' for more details" "$LINENO" 5; }
4026 fi
4027 fi
4028 fi
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4030 $as_echo "$cross_compiling" >&6; }
4031
4032 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4033 ac_clean_files=$ac_clean_files_save
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4035 $as_echo_n "checking for suffix of object files... " >&6; }
4036 if ${ac_cv_objext+:} false; then :
4037 $as_echo_n "(cached) " >&6
4038 else
4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040 /* end confdefs.h. */
4041
4042 int
4043 main ()
4044 {
4045
4046 ;
4047 return 0;
4048 }
4049 _ACEOF
4050 rm -f conftest.o conftest.obj
4051 if { { ac_try="$ac_compile"
4052 case "(($ac_try" in
4053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4054 *) ac_try_echo=$ac_try;;
4055 esac
4056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4057 $as_echo "$ac_try_echo"; } >&5
4058 (eval "$ac_compile") 2>&5
4059 ac_status=$?
4060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4061 test $ac_status = 0; }; then :
4062 for ac_file in conftest.o conftest.obj conftest.*; do
4063 test -f "$ac_file" || continue;
4064 case $ac_file in
4065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4066 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4067 break;;
4068 esac
4069 done
4070 else
4071 $as_echo "$as_me: failed program was:" >&5
4072 sed 's/^/| /' conftest.$ac_ext >&5
4073
4074 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4076 as_fn_error $? "cannot compute suffix of object files: cannot compile
4077 See \`config.log' for more details" "$LINENO" 5; }
4078 fi
4079 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4080 fi
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4082 $as_echo "$ac_cv_objext" >&6; }
4083 OBJEXT=$ac_cv_objext
4084 ac_objext=$OBJEXT
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4086 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4087 if ${ac_cv_c_compiler_gnu+:} false; then :
4088 $as_echo_n "(cached) " >&6
4089 else
4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091 /* end confdefs.h. */
4092
4093 int
4094 main ()
4095 {
4096 #ifndef __GNUC__
4097 choke me
4098 #endif
4099
4100 ;
4101 return 0;
4102 }
4103 _ACEOF
4104 if ac_fn_c_try_compile "$LINENO"; then :
4105 ac_compiler_gnu=yes
4106 else
4107 ac_compiler_gnu=no
4108 fi
4109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4110 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4111
4112 fi
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4114 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4115 if test $ac_compiler_gnu = yes; then
4116 GCC=yes
4117 else
4118 GCC=
4119 fi
4120 ac_test_CFLAGS=${CFLAGS+set}
4121 ac_save_CFLAGS=$CFLAGS
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4123 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4124 if ${ac_cv_prog_cc_g+:} false; then :
4125 $as_echo_n "(cached) " >&6
4126 else
4127 ac_save_c_werror_flag=$ac_c_werror_flag
4128 ac_c_werror_flag=yes
4129 ac_cv_prog_cc_g=no
4130 CFLAGS="-g"
4131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4132 /* end confdefs.h. */
4133
4134 int
4135 main ()
4136 {
4137
4138 ;
4139 return 0;
4140 }
4141 _ACEOF
4142 if ac_fn_c_try_compile "$LINENO"; then :
4143 ac_cv_prog_cc_g=yes
4144 else
4145 CFLAGS=""
4146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147 /* end confdefs.h. */
4148
4149 int
4150 main ()
4151 {
4152
4153 ;
4154 return 0;
4155 }
4156 _ACEOF
4157 if ac_fn_c_try_compile "$LINENO"; then :
4158
4159 else
4160 ac_c_werror_flag=$ac_save_c_werror_flag
4161 CFLAGS="-g"
4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h. */
4164
4165 int
4166 main ()
4167 {
4168
4169 ;
4170 return 0;
4171 }
4172 _ACEOF
4173 if ac_fn_c_try_compile "$LINENO"; then :
4174 ac_cv_prog_cc_g=yes
4175 fi
4176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4177 fi
4178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4179 fi
4180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4181 ac_c_werror_flag=$ac_save_c_werror_flag
4182 fi
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4184 $as_echo "$ac_cv_prog_cc_g" >&6; }
4185 if test "$ac_test_CFLAGS" = set; then
4186 CFLAGS=$ac_save_CFLAGS
4187 elif test $ac_cv_prog_cc_g = yes; then
4188 if test "$GCC" = yes; then
4189 CFLAGS="-g -O2"
4190 else
4191 CFLAGS="-g"
4192 fi
4193 else
4194 if test "$GCC" = yes; then
4195 CFLAGS="-O2"
4196 else
4197 CFLAGS=
4198 fi
4199 fi
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4201 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4202 if ${ac_cv_prog_cc_c89+:} false; then :
4203 $as_echo_n "(cached) " >&6
4204 else
4205 ac_cv_prog_cc_c89=no
4206 ac_save_CC=$CC
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4209 #include <stdarg.h>
4210 #include <stdio.h>
4211 struct stat;
4212 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4213 struct buf { int x; };
4214 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4215 static char *e (p, i)
4216 char **p;
4217 int i;
4218 {
4219 return p[i];
4220 }
4221 static char *f (char * (*g) (char **, int), char **p, ...)
4222 {
4223 char *s;
4224 va_list v;
4225 va_start (v,p);
4226 s = g (p, va_arg (v,int));
4227 va_end (v);
4228 return s;
4229 }
4230
4231 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4232 function prototypes and stuff, but not '\xHH' hex character constants.
4233 These don't provoke an error unfortunately, instead are silently treated
4234 as 'x'. The following induces an error, until -std is added to get
4235 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4236 array size at least. It's necessary to write '\x00'==0 to get something
4237 that's true only with -std. */
4238 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4239
4240 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4241 inside strings and character constants. */
4242 #define FOO(x) 'x'
4243 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4244
4245 int test (int i, double x);
4246 struct s1 {int (*f) (int a);};
4247 struct s2 {int (*f) (double a);};
4248 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4249 int argc;
4250 char **argv;
4251 int
4252 main ()
4253 {
4254 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4255 ;
4256 return 0;
4257 }
4258 _ACEOF
4259 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4260 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4261 do
4262 CC="$ac_save_CC $ac_arg"
4263 if ac_fn_c_try_compile "$LINENO"; then :
4264 ac_cv_prog_cc_c89=$ac_arg
4265 fi
4266 rm -f core conftest.err conftest.$ac_objext
4267 test "x$ac_cv_prog_cc_c89" != "xno" && break
4268 done
4269 rm -f conftest.$ac_ext
4270 CC=$ac_save_CC
4271
4272 fi
4273 # AC_CACHE_VAL
4274 case "x$ac_cv_prog_cc_c89" in
4275 x)
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4277 $as_echo "none needed" >&6; } ;;
4278 xno)
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4280 $as_echo "unsupported" >&6; } ;;
4281 *)
4282 CC="$CC $ac_cv_prog_cc_c89"
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4284 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4285 esac
4286 if test "x$ac_cv_prog_cc_c89" != xno; then :
4287
4288 fi
4289
4290 ac_ext=c
4291 ac_cpp='$CPP $CPPFLAGS'
4292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4295
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4297 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4298 if ${ac_cv_path_SED+:} false; then :
4299 $as_echo_n "(cached) " >&6
4300 else
4301 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4302 for ac_i in 1 2 3 4 5 6 7; do
4303 ac_script="$ac_script$as_nl$ac_script"
4304 done
4305 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4306 { ac_script=; unset ac_script;}
4307 if test -z "$SED"; then
4308 ac_path_SED_found=false
4309 # Loop through the user's path and test for each of PROGNAME-LIST
4310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311 for as_dir in $PATH
4312 do
4313 IFS=$as_save_IFS
4314 test -z "$as_dir" && as_dir=.
4315 for ac_prog in sed gsed; do
4316 for ac_exec_ext in '' $ac_executable_extensions; do
4317 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4318 as_fn_executable_p "$ac_path_SED" || continue
4319 # Check for GNU ac_path_SED and select it if it is found.
4320 # Check for GNU $ac_path_SED
4321 case `"$ac_path_SED" --version 2>&1` in
4322 *GNU*)
4323 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4324 *)
4325 ac_count=0
4326 $as_echo_n 0123456789 >"conftest.in"
4327 while :
4328 do
4329 cat "conftest.in" "conftest.in" >"conftest.tmp"
4330 mv "conftest.tmp" "conftest.in"
4331 cp "conftest.in" "conftest.nl"
4332 $as_echo '' >> "conftest.nl"
4333 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4334 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4335 as_fn_arith $ac_count + 1 && ac_count=$as_val
4336 if test $ac_count -gt ${ac_path_SED_max-0}; then
4337 # Best one so far, save it but keep looking for a better one
4338 ac_cv_path_SED="$ac_path_SED"
4339 ac_path_SED_max=$ac_count
4340 fi
4341 # 10*(2^10) chars as input seems more than enough
4342 test $ac_count -gt 10 && break
4343 done
4344 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4345 esac
4346
4347 $ac_path_SED_found && break 3
4348 done
4349 done
4350 done
4351 IFS=$as_save_IFS
4352 if test -z "$ac_cv_path_SED"; then
4353 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4354 fi
4355 else
4356 ac_cv_path_SED=$SED
4357 fi
4358
4359 fi
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4361 $as_echo "$ac_cv_path_SED" >&6; }
4362 SED="$ac_cv_path_SED"
4363 rm -f conftest.sed
4364
4365 test -z "$SED" && SED=sed
4366 Xsed="$SED -e 1s/^X//"
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4379 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4380 if ${ac_cv_path_GREP+:} false; then :
4381 $as_echo_n "(cached) " >&6
4382 else
4383 if test -z "$GREP"; then
4384 ac_path_GREP_found=false
4385 # Loop through the user's path and test for each of PROGNAME-LIST
4386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4388 do
4389 IFS=$as_save_IFS
4390 test -z "$as_dir" && as_dir=.
4391 for ac_prog in grep ggrep; do
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4394 as_fn_executable_p "$ac_path_GREP" || continue
4395 # Check for GNU ac_path_GREP and select it if it is found.
4396 # Check for GNU $ac_path_GREP
4397 case `"$ac_path_GREP" --version 2>&1` in
4398 *GNU*)
4399 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4400 *)
4401 ac_count=0
4402 $as_echo_n 0123456789 >"conftest.in"
4403 while :
4404 do
4405 cat "conftest.in" "conftest.in" >"conftest.tmp"
4406 mv "conftest.tmp" "conftest.in"
4407 cp "conftest.in" "conftest.nl"
4408 $as_echo 'GREP' >> "conftest.nl"
4409 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4410 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4411 as_fn_arith $ac_count + 1 && ac_count=$as_val
4412 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4413 # Best one so far, save it but keep looking for a better one
4414 ac_cv_path_GREP="$ac_path_GREP"
4415 ac_path_GREP_max=$ac_count
4416 fi
4417 # 10*(2^10) chars as input seems more than enough
4418 test $ac_count -gt 10 && break
4419 done
4420 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4421 esac
4422
4423 $ac_path_GREP_found && break 3
4424 done
4425 done
4426 done
4427 IFS=$as_save_IFS
4428 if test -z "$ac_cv_path_GREP"; then
4429 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4430 fi
4431 else
4432 ac_cv_path_GREP=$GREP
4433 fi
4434
4435 fi
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4437 $as_echo "$ac_cv_path_GREP" >&6; }
4438 GREP="$ac_cv_path_GREP"
4439
4440
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4442 $as_echo_n "checking for egrep... " >&6; }
4443 if ${ac_cv_path_EGREP+:} false; then :
4444 $as_echo_n "(cached) " >&6
4445 else
4446 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4447 then ac_cv_path_EGREP="$GREP -E"
4448 else
4449 if test -z "$EGREP"; then
4450 ac_path_EGREP_found=false
4451 # Loop through the user's path and test for each of PROGNAME-LIST
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4454 do
4455 IFS=$as_save_IFS
4456 test -z "$as_dir" && as_dir=.
4457 for ac_prog in egrep; do
4458 for ac_exec_ext in '' $ac_executable_extensions; do
4459 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4460 as_fn_executable_p "$ac_path_EGREP" || continue
4461 # Check for GNU ac_path_EGREP and select it if it is found.
4462 # Check for GNU $ac_path_EGREP
4463 case `"$ac_path_EGREP" --version 2>&1` in
4464 *GNU*)
4465 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4466 *)
4467 ac_count=0
4468 $as_echo_n 0123456789 >"conftest.in"
4469 while :
4470 do
4471 cat "conftest.in" "conftest.in" >"conftest.tmp"
4472 mv "conftest.tmp" "conftest.in"
4473 cp "conftest.in" "conftest.nl"
4474 $as_echo 'EGREP' >> "conftest.nl"
4475 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4476 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4477 as_fn_arith $ac_count + 1 && ac_count=$as_val
4478 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4479 # Best one so far, save it but keep looking for a better one
4480 ac_cv_path_EGREP="$ac_path_EGREP"
4481 ac_path_EGREP_max=$ac_count
4482 fi
4483 # 10*(2^10) chars as input seems more than enough
4484 test $ac_count -gt 10 && break
4485 done
4486 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4487 esac
4488
4489 $ac_path_EGREP_found && break 3
4490 done
4491 done
4492 done
4493 IFS=$as_save_IFS
4494 if test -z "$ac_cv_path_EGREP"; then
4495 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4496 fi
4497 else
4498 ac_cv_path_EGREP=$EGREP
4499 fi
4500
4501 fi
4502 fi
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4504 $as_echo "$ac_cv_path_EGREP" >&6; }
4505 EGREP="$ac_cv_path_EGREP"
4506
4507
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4509 $as_echo_n "checking for fgrep... " >&6; }
4510 if ${ac_cv_path_FGREP+:} false; then :
4511 $as_echo_n "(cached) " >&6
4512 else
4513 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4514 then ac_cv_path_FGREP="$GREP -F"
4515 else
4516 if test -z "$FGREP"; then
4517 ac_path_FGREP_found=false
4518 # Loop through the user's path and test for each of PROGNAME-LIST
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4521 do
4522 IFS=$as_save_IFS
4523 test -z "$as_dir" && as_dir=.
4524 for ac_prog in fgrep; do
4525 for ac_exec_ext in '' $ac_executable_extensions; do
4526 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4527 as_fn_executable_p "$ac_path_FGREP" || continue
4528 # Check for GNU ac_path_FGREP and select it if it is found.
4529 # Check for GNU $ac_path_FGREP
4530 case `"$ac_path_FGREP" --version 2>&1` in
4531 *GNU*)
4532 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4533 *)
4534 ac_count=0
4535 $as_echo_n 0123456789 >"conftest.in"
4536 while :
4537 do
4538 cat "conftest.in" "conftest.in" >"conftest.tmp"
4539 mv "conftest.tmp" "conftest.in"
4540 cp "conftest.in" "conftest.nl"
4541 $as_echo 'FGREP' >> "conftest.nl"
4542 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4543 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4544 as_fn_arith $ac_count + 1 && ac_count=$as_val
4545 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4546 # Best one so far, save it but keep looking for a better one
4547 ac_cv_path_FGREP="$ac_path_FGREP"
4548 ac_path_FGREP_max=$ac_count
4549 fi
4550 # 10*(2^10) chars as input seems more than enough
4551 test $ac_count -gt 10 && break
4552 done
4553 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4554 esac
4555
4556 $ac_path_FGREP_found && break 3
4557 done
4558 done
4559 done
4560 IFS=$as_save_IFS
4561 if test -z "$ac_cv_path_FGREP"; then
4562 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4563 fi
4564 else
4565 ac_cv_path_FGREP=$FGREP
4566 fi
4567
4568 fi
4569 fi
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4571 $as_echo "$ac_cv_path_FGREP" >&6; }
4572 FGREP="$ac_cv_path_FGREP"
4573
4574
4575 test -z "$GREP" && GREP=grep
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595 # Check whether --with-gnu-ld was given.
4596 if test "${with_gnu_ld+set}" = set; then :
4597 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4598 else
4599 with_gnu_ld=no
4600 fi
4601
4602 ac_prog=ld
4603 if test yes = "$GCC"; then
4604 # Check if gcc -print-prog-name=ld gives a path.
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4606 $as_echo_n "checking for ld used by $CC... " >&6; }
4607 case $host in
4608 *-*-mingw*)
4609 # gcc leaves a trailing carriage return, which upsets mingw
4610 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4611 *)
4612 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4613 esac
4614 case $ac_prog in
4615 # Accept absolute paths.
4616 [\\/]* | ?:[\\/]*)
4617 re_direlt='/[^/][^/]*/\.\./'
4618 # Canonicalize the pathname of ld
4619 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4620 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4621 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4622 done
4623 test -z "$LD" && LD=$ac_prog
4624 ;;
4625 "")
4626 # If it fails, then pretend we aren't using GCC.
4627 ac_prog=ld
4628 ;;
4629 *)
4630 # If it is relative, then search for the first ld in PATH.
4631 with_gnu_ld=unknown
4632 ;;
4633 esac
4634 elif test yes = "$with_gnu_ld"; then
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4636 $as_echo_n "checking for GNU ld... " >&6; }
4637 else
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4639 $as_echo_n "checking for non-GNU ld... " >&6; }
4640 fi
4641 if ${lt_cv_path_LD+:} false; then :
4642 $as_echo_n "(cached) " >&6
4643 else
4644 if test -z "$LD"; then
4645 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4646 for ac_dir in $PATH; do
4647 IFS=$lt_save_ifs
4648 test -z "$ac_dir" && ac_dir=.
4649 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4650 lt_cv_path_LD=$ac_dir/$ac_prog
4651 # Check to see if the program is GNU ld. I'd rather use --version,
4652 # but apparently some variants of GNU ld only accept -v.
4653 # Break only if it was the GNU/non-GNU ld that we prefer.
4654 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4655 *GNU* | *'with BFD'*)
4656 test no != "$with_gnu_ld" && break
4657 ;;
4658 *)
4659 test yes != "$with_gnu_ld" && break
4660 ;;
4661 esac
4662 fi
4663 done
4664 IFS=$lt_save_ifs
4665 else
4666 lt_cv_path_LD=$LD # Let the user override the test with a path.
4667 fi
4668 fi
4669
4670 LD=$lt_cv_path_LD
4671 if test -n "$LD"; then
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4673 $as_echo "$LD" >&6; }
4674 else
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 $as_echo "no" >&6; }
4677 fi
4678 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4680 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4681 if ${lt_cv_prog_gnu_ld+:} false; then :
4682 $as_echo_n "(cached) " >&6
4683 else
4684 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4685 case `$LD -v 2>&1 </dev/null` in
4686 *GNU* | *'with BFD'*)
4687 lt_cv_prog_gnu_ld=yes
4688 ;;
4689 *)
4690 lt_cv_prog_gnu_ld=no
4691 ;;
4692 esac
4693 fi
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4695 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4696 with_gnu_ld=$lt_cv_prog_gnu_ld
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4707 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4708 if ${lt_cv_path_NM+:} false; then :
4709 $as_echo_n "(cached) " >&6
4710 else
4711 if test -n "$NM"; then
4712 # Let the user override the test.
4713 lt_cv_path_NM=$NM
4714 else
4715 lt_nm_to_check=${ac_tool_prefix}nm
4716 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4717 lt_nm_to_check="$lt_nm_to_check nm"
4718 fi
4719 for lt_tmp_nm in $lt_nm_to_check; do
4720 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4721 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4722 IFS=$lt_save_ifs
4723 test -z "$ac_dir" && ac_dir=.
4724 tmp_nm=$ac_dir/$lt_tmp_nm
4725 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4726 # Check to see if the nm accepts a BSD-compat flag.
4727 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4728 # nm: unknown option "B" ignored
4729 # Tru64's nm complains that /dev/null is an invalid object file
4730 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4731 case $build_os in
4732 mingw*) lt_bad_file=conftest.nm/nofile ;;
4733 *) lt_bad_file=/dev/null ;;
4734 esac
4735 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4736 *$lt_bad_file* | *'Invalid file or object type'*)
4737 lt_cv_path_NM="$tmp_nm -B"
4738 break 2
4739 ;;
4740 *)
4741 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4742 */dev/null*)
4743 lt_cv_path_NM="$tmp_nm -p"
4744 break 2
4745 ;;
4746 *)
4747 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4748 continue # so that we can try to find one that supports BSD flags
4749 ;;
4750 esac
4751 ;;
4752 esac
4753 fi
4754 done
4755 IFS=$lt_save_ifs
4756 done
4757 : ${lt_cv_path_NM=no}
4758 fi
4759 fi
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4761 $as_echo "$lt_cv_path_NM" >&6; }
4762 if test no != "$lt_cv_path_NM"; then
4763 NM=$lt_cv_path_NM
4764 else
4765 # Didn't find any BSD compatible name lister, look for dumpbin.
4766 if test -n "$DUMPBIN"; then :
4767 # Let the user override the test.
4768 else
4769 if test -n "$ac_tool_prefix"; then
4770 for ac_prog in dumpbin "link -dump"
4771 do
4772 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4773 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4775 $as_echo_n "checking for $ac_word... " >&6; }
4776 if ${ac_cv_prog_DUMPBIN+:} false; then :
4777 $as_echo_n "(cached) " >&6
4778 else
4779 if test -n "$DUMPBIN"; then
4780 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4781 else
4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783 for as_dir in $PATH
4784 do
4785 IFS=$as_save_IFS
4786 test -z "$as_dir" && as_dir=.
4787 for ac_exec_ext in '' $ac_executable_extensions; do
4788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4789 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4791 break 2
4792 fi
4793 done
4794 done
4795 IFS=$as_save_IFS
4796
4797 fi
4798 fi
4799 DUMPBIN=$ac_cv_prog_DUMPBIN
4800 if test -n "$DUMPBIN"; then
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4802 $as_echo "$DUMPBIN" >&6; }
4803 else
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4805 $as_echo "no" >&6; }
4806 fi
4807
4808
4809 test -n "$DUMPBIN" && break
4810 done
4811 fi
4812 if test -z "$DUMPBIN"; then
4813 ac_ct_DUMPBIN=$DUMPBIN
4814 for ac_prog in dumpbin "link -dump"
4815 do
4816 # Extract the first word of "$ac_prog", so it can be a program name with args.
4817 set dummy $ac_prog; ac_word=$2
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4819 $as_echo_n "checking for $ac_word... " >&6; }
4820 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4821 $as_echo_n "(cached) " >&6
4822 else
4823 if test -n "$ac_ct_DUMPBIN"; then
4824 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4825 else
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 for as_dir in $PATH
4828 do
4829 IFS=$as_save_IFS
4830 test -z "$as_dir" && as_dir=.
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4833 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4835 break 2
4836 fi
4837 done
4838 done
4839 IFS=$as_save_IFS
4840
4841 fi
4842 fi
4843 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4844 if test -n "$ac_ct_DUMPBIN"; then
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4846 $as_echo "$ac_ct_DUMPBIN" >&6; }
4847 else
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4849 $as_echo "no" >&6; }
4850 fi
4851
4852
4853 test -n "$ac_ct_DUMPBIN" && break
4854 done
4855
4856 if test "x$ac_ct_DUMPBIN" = x; then
4857 DUMPBIN=":"
4858 else
4859 case $cross_compiling:$ac_tool_warned in
4860 yes:)
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4863 ac_tool_warned=yes ;;
4864 esac
4865 DUMPBIN=$ac_ct_DUMPBIN
4866 fi
4867 fi
4868
4869 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4870 *COFF*)
4871 DUMPBIN="$DUMPBIN -symbols -headers"
4872 ;;
4873 *)
4874 DUMPBIN=:
4875 ;;
4876 esac
4877 fi
4878
4879 if test : != "$DUMPBIN"; then
4880 NM=$DUMPBIN
4881 fi
4882 fi
4883 test -z "$NM" && NM=nm
4884
4885
4886
4887
4888
4889
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4891 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4892 if ${lt_cv_nm_interface+:} false; then :
4893 $as_echo_n "(cached) " >&6
4894 else
4895 lt_cv_nm_interface="BSD nm"
4896 echo "int some_variable = 0;" > conftest.$ac_ext
4897 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4898 (eval "$ac_compile" 2>conftest.err)
4899 cat conftest.err >&5
4900 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4901 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4902 cat conftest.err >&5
4903 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4904 cat conftest.out >&5
4905 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4906 lt_cv_nm_interface="MS dumpbin"
4907 fi
4908 rm -f conftest*
4909 fi
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4911 $as_echo "$lt_cv_nm_interface" >&6; }
4912
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4914 $as_echo_n "checking whether ln -s works... " >&6; }
4915 LN_S=$as_ln_s
4916 if test "$LN_S" = "ln -s"; then
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4918 $as_echo "yes" >&6; }
4919 else
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4921 $as_echo "no, using $LN_S" >&6; }
4922 fi
4923
4924 # find the maximum length of command line arguments
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4926 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4927 if ${lt_cv_sys_max_cmd_len+:} false; then :
4928 $as_echo_n "(cached) " >&6
4929 else
4930 i=0
4931 teststring=ABCD
4932
4933 case $build_os in
4934 msdosdjgpp*)
4935 # On DJGPP, this test can blow up pretty badly due to problems in libc
4936 # (any single argument exceeding 2000 bytes causes a buffer overrun
4937 # during glob expansion). Even if it were fixed, the result of this
4938 # check would be larger than it should be.
4939 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4940 ;;
4941
4942 gnu*)
4943 # Under GNU Hurd, this test is not required because there is
4944 # no limit to the length of command line arguments.
4945 # Libtool will interpret -1 as no limit whatsoever
4946 lt_cv_sys_max_cmd_len=-1;
4947 ;;
4948
4949 cygwin* | mingw* | cegcc*)
4950 # On Win9x/ME, this test blows up -- it succeeds, but takes
4951 # about 5 minutes as the teststring grows exponentially.
4952 # Worse, since 9x/ME are not pre-emptively multitasking,
4953 # you end up with a "frozen" computer, even though with patience
4954 # the test eventually succeeds (with a max line length of 256k).
4955 # Instead, let's just punt: use the minimum linelength reported by
4956 # all of the supported platforms: 8192 (on NT/2K/XP).
4957 lt_cv_sys_max_cmd_len=8192;
4958 ;;
4959
4960 mint*)
4961 # On MiNT this can take a long time and run out of memory.
4962 lt_cv_sys_max_cmd_len=8192;
4963 ;;
4964
4965 amigaos*)
4966 # On AmigaOS with pdksh, this test takes hours, literally.
4967 # So we just punt and use a minimum line length of 8192.
4968 lt_cv_sys_max_cmd_len=8192;
4969 ;;
4970
4971 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4972 # This has been around since 386BSD, at least. Likely further.
4973 if test -x /sbin/sysctl; then
4974 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4975 elif test -x /usr/sbin/sysctl; then
4976 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4977 else
4978 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4979 fi
4980 # And add a safety zone
4981 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4982 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4983 ;;
4984
4985 interix*)
4986 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4987 lt_cv_sys_max_cmd_len=196608
4988 ;;
4989
4990 os2*)
4991 # The test takes a long time on OS/2.
4992 lt_cv_sys_max_cmd_len=8192
4993 ;;
4994
4995 osf*)
4996 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4997 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4998 # nice to cause kernel panics so lets avoid the loop below.
4999 # First set a reasonable default.
5000 lt_cv_sys_max_cmd_len=16384
5001 #
5002 if test -x /sbin/sysconfig; then
5003 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5004 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5005 esac
5006 fi
5007 ;;
5008 sco3.2v5*)
5009 lt_cv_sys_max_cmd_len=102400
5010 ;;
5011 sysv5* | sco5v6* | sysv4.2uw2*)
5012 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5013 if test -n "$kargmax"; then
5014 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5015 else
5016 lt_cv_sys_max_cmd_len=32768
5017 fi
5018 ;;
5019 *)
5020 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5021 if test -n "$lt_cv_sys_max_cmd_len" && \
5022 test undefined != "$lt_cv_sys_max_cmd_len"; then
5023 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5024 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5025 else
5026 # Make teststring a little bigger before we do anything with it.
5027 # a 1K string should be a reasonable start.
5028 for i in 1 2 3 4 5 6 7 8; do
5029 teststring=$teststring$teststring
5030 done
5031 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5032 # If test is not a shell built-in, we'll probably end up computing a
5033 # maximum length that is only half of the actual maximum length, but
5034 # we can't tell.
5035 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5036 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5037 test 17 != "$i" # 1/2 MB should be enough
5038 do
5039 i=`expr $i + 1`
5040 teststring=$teststring$teststring
5041 done
5042 # Only check the string length outside the loop.
5043 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5044 teststring=
5045 # Add a significant safety factor because C++ compilers can tack on
5046 # massive amounts of additional arguments before passing them to the
5047 # linker. It appears as though 1/2 is a usable value.
5048 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5049 fi
5050 ;;
5051 esac
5052
5053 fi
5054
5055 if test -n "$lt_cv_sys_max_cmd_len"; then
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5057 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5058 else
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5060 $as_echo "none" >&6; }
5061 fi
5062 max_cmd_len=$lt_cv_sys_max_cmd_len
5063
5064
5065
5066
5067
5068
5069 : ${CP="cp -f"}
5070 : ${MV="mv -f"}
5071 : ${RM="rm -f"}
5072
5073 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5074 lt_unset=unset
5075 else
5076 lt_unset=false
5077 fi
5078
5079
5080
5081
5082
5083 # test EBCDIC or ASCII
5084 case `echo X|tr X '\101'` in
5085 A) # ASCII based system
5086 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5087 lt_SP2NL='tr \040 \012'
5088 lt_NL2SP='tr \015\012 \040\040'
5089 ;;
5090 *) # EBCDIC based system
5091 lt_SP2NL='tr \100 \n'
5092 lt_NL2SP='tr \r\n \100\100'
5093 ;;
5094 esac
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5105 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5106 if ${lt_cv_to_host_file_cmd+:} false; then :
5107 $as_echo_n "(cached) " >&6
5108 else
5109 case $host in
5110 *-*-mingw* )
5111 case $build in
5112 *-*-mingw* ) # actually msys
5113 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5114 ;;
5115 *-*-cygwin* )
5116 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5117 ;;
5118 * ) # otherwise, assume *nix
5119 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5120 ;;
5121 esac
5122 ;;
5123 *-*-cygwin* )
5124 case $build in
5125 *-*-mingw* ) # actually msys
5126 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5127 ;;
5128 *-*-cygwin* )
5129 lt_cv_to_host_file_cmd=func_convert_file_noop
5130 ;;
5131 * ) # otherwise, assume *nix
5132 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5133 ;;
5134 esac
5135 ;;
5136 * ) # unhandled hosts (and "normal" native builds)
5137 lt_cv_to_host_file_cmd=func_convert_file_noop
5138 ;;
5139 esac
5140
5141 fi
5142
5143 to_host_file_cmd=$lt_cv_to_host_file_cmd
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5145 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5146
5147
5148
5149
5150
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5152 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5153 if ${lt_cv_to_tool_file_cmd+:} false; then :
5154 $as_echo_n "(cached) " >&6
5155 else
5156 #assume ordinary cross tools, or native build.
5157 lt_cv_to_tool_file_cmd=func_convert_file_noop
5158 case $host in
5159 *-*-mingw* )
5160 case $build in
5161 *-*-mingw* ) # actually msys
5162 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5163 ;;
5164 esac
5165 ;;
5166 esac
5167
5168 fi
5169
5170 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5172 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5173
5174
5175
5176
5177
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5179 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5180 if ${lt_cv_ld_reload_flag+:} false; then :
5181 $as_echo_n "(cached) " >&6
5182 else
5183 lt_cv_ld_reload_flag='-r'
5184 fi
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5186 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5187 reload_flag=$lt_cv_ld_reload_flag
5188 case $reload_flag in
5189 "" | " "*) ;;
5190 *) reload_flag=" $reload_flag" ;;
5191 esac
5192 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5193 case $host_os in
5194 cygwin* | mingw* | pw32* | cegcc*)
5195 if test yes != "$GCC"; then
5196 reload_cmds=false
5197 fi
5198 ;;
5199 darwin*)
5200 if test yes = "$GCC"; then
5201 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5202 else
5203 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5204 fi
5205 ;;
5206 esac
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216 if test -n "$ac_tool_prefix"; then
5217 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5218 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5220 $as_echo_n "checking for $ac_word... " >&6; }
5221 if ${ac_cv_prog_OBJDUMP+:} false; then :
5222 $as_echo_n "(cached) " >&6
5223 else
5224 if test -n "$OBJDUMP"; then
5225 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5226 else
5227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 for as_dir in $PATH
5229 do
5230 IFS=$as_save_IFS
5231 test -z "$as_dir" && as_dir=.
5232 for ac_exec_ext in '' $ac_executable_extensions; do
5233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5234 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5236 break 2
5237 fi
5238 done
5239 done
5240 IFS=$as_save_IFS
5241
5242 fi
5243 fi
5244 OBJDUMP=$ac_cv_prog_OBJDUMP
5245 if test -n "$OBJDUMP"; then
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5247 $as_echo "$OBJDUMP" >&6; }
5248 else
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5250 $as_echo "no" >&6; }
5251 fi
5252
5253
5254 fi
5255 if test -z "$ac_cv_prog_OBJDUMP"; then
5256 ac_ct_OBJDUMP=$OBJDUMP
5257 # Extract the first word of "objdump", so it can be a program name with args.
5258 set dummy objdump; ac_word=$2
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5260 $as_echo_n "checking for $ac_word... " >&6; }
5261 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5262 $as_echo_n "(cached) " >&6
5263 else
5264 if test -n "$ac_ct_OBJDUMP"; then
5265 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5266 else
5267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5268 for as_dir in $PATH
5269 do
5270 IFS=$as_save_IFS
5271 test -z "$as_dir" && as_dir=.
5272 for ac_exec_ext in '' $ac_executable_extensions; do
5273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5274 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5276 break 2
5277 fi
5278 done
5279 done
5280 IFS=$as_save_IFS
5281
5282 fi
5283 fi
5284 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5285 if test -n "$ac_ct_OBJDUMP"; then
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5287 $as_echo "$ac_ct_OBJDUMP" >&6; }
5288 else
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5290 $as_echo "no" >&6; }
5291 fi
5292
5293 if test "x$ac_ct_OBJDUMP" = x; then
5294 OBJDUMP="false"
5295 else
5296 case $cross_compiling:$ac_tool_warned in
5297 yes:)
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5300 ac_tool_warned=yes ;;
5301 esac
5302 OBJDUMP=$ac_ct_OBJDUMP
5303 fi
5304 else
5305 OBJDUMP="$ac_cv_prog_OBJDUMP"
5306 fi
5307
5308 test -z "$OBJDUMP" && OBJDUMP=objdump
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5319 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5320 if ${lt_cv_deplibs_check_method+:} false; then :
5321 $as_echo_n "(cached) " >&6
5322 else
5323 lt_cv_file_magic_cmd='$MAGIC_CMD'
5324 lt_cv_file_magic_test_file=
5325 lt_cv_deplibs_check_method='unknown'
5326 # Need to set the preceding variable on all platforms that support
5327 # interlibrary dependencies.
5328 # 'none' -- dependencies not supported.
5329 # 'unknown' -- same as none, but documents that we really don't know.
5330 # 'pass_all' -- all dependencies passed with no checks.
5331 # 'test_compile' -- check by making test program.
5332 # 'file_magic [[regex]]' -- check by looking for files in library path
5333 # that responds to the $file_magic_cmd with a given extended regex.
5334 # If you have 'file' or equivalent on your system and you're not sure
5335 # whether 'pass_all' will *always* work, you probably want this one.
5336
5337 case $host_os in
5338 aix[4-9]*)
5339 lt_cv_deplibs_check_method=pass_all
5340 ;;
5341
5342 beos*)
5343 lt_cv_deplibs_check_method=pass_all
5344 ;;
5345
5346 bsdi[45]*)
5347 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5348 lt_cv_file_magic_cmd='/usr/bin/file -L'
5349 lt_cv_file_magic_test_file=/shlib/libc.so
5350 ;;
5351
5352 cygwin*)
5353 # func_win32_libid is a shell function defined in ltmain.sh
5354 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5355 lt_cv_file_magic_cmd='func_win32_libid'
5356 ;;
5357
5358 mingw* | pw32*)
5359 # Base MSYS/MinGW do not provide the 'file' command needed by
5360 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5361 # unless we find 'file', for example because we are cross-compiling.
5362 if ( file / ) >/dev/null 2>&1; then
5363 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5364 lt_cv_file_magic_cmd='func_win32_libid'
5365 else
5366 # Keep this pattern in sync with the one in func_win32_libid.
5367 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5368 lt_cv_file_magic_cmd='$OBJDUMP -f'
5369 fi
5370 ;;
5371
5372 cegcc*)
5373 # use the weaker test based on 'objdump'. See mingw*.
5374 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5375 lt_cv_file_magic_cmd='$OBJDUMP -f'
5376 ;;
5377
5378 darwin* | rhapsody*)
5379 lt_cv_deplibs_check_method=pass_all
5380 ;;
5381
5382 freebsd* | dragonfly*)
5383 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5384 case $host_cpu in
5385 i*86 )
5386 # Not sure whether the presence of OpenBSD here was a mistake.
5387 # Let's accept both of them until this is cleared up.
5388 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5389 lt_cv_file_magic_cmd=/usr/bin/file
5390 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5391 ;;
5392 esac
5393 else
5394 lt_cv_deplibs_check_method=pass_all
5395 fi
5396 ;;
5397
5398 haiku*)
5399 lt_cv_deplibs_check_method=pass_all
5400 ;;
5401
5402 hpux10.20* | hpux11*)
5403 lt_cv_file_magic_cmd=/usr/bin/file
5404 case $host_cpu in
5405 ia64*)
5406 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5407 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5408 ;;
5409 hppa*64*)
5410 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5411 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5412 ;;
5413 *)
5414 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5415 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5416 ;;
5417 esac
5418 ;;
5419
5420 interix[3-9]*)
5421 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5422 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5423 ;;
5424
5425 irix5* | irix6* | nonstopux*)
5426 case $LD in
5427 *-32|*"-32 ") libmagic=32-bit;;
5428 *-n32|*"-n32 ") libmagic=N32;;
5429 *-64|*"-64 ") libmagic=64-bit;;
5430 *) libmagic=never-match;;
5431 esac
5432 lt_cv_deplibs_check_method=pass_all
5433 ;;
5434
5435 # This must be glibc/ELF.
5436 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5437 lt_cv_deplibs_check_method=pass_all
5438 ;;
5439
5440 netbsd* | netbsdelf*-gnu)
5441 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5442 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5443 else
5444 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5445 fi
5446 ;;
5447
5448 newos6*)
5449 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5450 lt_cv_file_magic_cmd=/usr/bin/file
5451 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5452 ;;
5453
5454 *nto* | *qnx*)
5455 lt_cv_deplibs_check_method=pass_all
5456 ;;
5457
5458 openbsd* | bitrig*)
5459 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5460 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5461 else
5462 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5463 fi
5464 ;;
5465
5466 osf3* | osf4* | osf5*)
5467 lt_cv_deplibs_check_method=pass_all
5468 ;;
5469
5470 rdos*)
5471 lt_cv_deplibs_check_method=pass_all
5472 ;;
5473
5474 solaris*)
5475 lt_cv_deplibs_check_method=pass_all
5476 ;;
5477
5478 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5479 lt_cv_deplibs_check_method=pass_all
5480 ;;
5481
5482 sysv4 | sysv4.3*)
5483 case $host_vendor in
5484 motorola)
5485 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5486 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5487 ;;
5488 ncr)
5489 lt_cv_deplibs_check_method=pass_all
5490 ;;
5491 sequent)
5492 lt_cv_file_magic_cmd='/bin/file'
5493 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5494 ;;
5495 sni)
5496 lt_cv_file_magic_cmd='/bin/file'
5497 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5498 lt_cv_file_magic_test_file=/lib/libc.so
5499 ;;
5500 siemens)
5501 lt_cv_deplibs_check_method=pass_all
5502 ;;
5503 pc)
5504 lt_cv_deplibs_check_method=pass_all
5505 ;;
5506 esac
5507 ;;
5508
5509 tpf*)
5510 lt_cv_deplibs_check_method=pass_all
5511 ;;
5512 os2*)
5513 lt_cv_deplibs_check_method=pass_all
5514 ;;
5515 esac
5516
5517 fi
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5519 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5520
5521 file_magic_glob=
5522 want_nocaseglob=no
5523 if test "$build" = "$host"; then
5524 case $host_os in
5525 mingw* | pw32*)
5526 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5527 want_nocaseglob=yes
5528 else
5529 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5530 fi
5531 ;;
5532 esac
5533 fi
5534
5535 file_magic_cmd=$lt_cv_file_magic_cmd
5536 deplibs_check_method=$lt_cv_deplibs_check_method
5537 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560 if test -n "$ac_tool_prefix"; then
5561 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5562 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5564 $as_echo_n "checking for $ac_word... " >&6; }
5565 if ${ac_cv_prog_DLLTOOL+:} false; then :
5566 $as_echo_n "(cached) " >&6
5567 else
5568 if test -n "$DLLTOOL"; then
5569 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5570 else
5571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572 for as_dir in $PATH
5573 do
5574 IFS=$as_save_IFS
5575 test -z "$as_dir" && as_dir=.
5576 for ac_exec_ext in '' $ac_executable_extensions; do
5577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5578 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5580 break 2
5581 fi
5582 done
5583 done
5584 IFS=$as_save_IFS
5585
5586 fi
5587 fi
5588 DLLTOOL=$ac_cv_prog_DLLTOOL
5589 if test -n "$DLLTOOL"; then
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5591 $as_echo "$DLLTOOL" >&6; }
5592 else
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5594 $as_echo "no" >&6; }
5595 fi
5596
5597
5598 fi
5599 if test -z "$ac_cv_prog_DLLTOOL"; then
5600 ac_ct_DLLTOOL=$DLLTOOL
5601 # Extract the first word of "dlltool", so it can be a program name with args.
5602 set dummy dlltool; ac_word=$2
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5604 $as_echo_n "checking for $ac_word... " >&6; }
5605 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5606 $as_echo_n "(cached) " >&6
5607 else
5608 if test -n "$ac_ct_DLLTOOL"; then
5609 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5610 else
5611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612 for as_dir in $PATH
5613 do
5614 IFS=$as_save_IFS
5615 test -z "$as_dir" && as_dir=.
5616 for ac_exec_ext in '' $ac_executable_extensions; do
5617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5618 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5620 break 2
5621 fi
5622 done
5623 done
5624 IFS=$as_save_IFS
5625
5626 fi
5627 fi
5628 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5629 if test -n "$ac_ct_DLLTOOL"; then
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5631 $as_echo "$ac_ct_DLLTOOL" >&6; }
5632 else
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5634 $as_echo "no" >&6; }
5635 fi
5636
5637 if test "x$ac_ct_DLLTOOL" = x; then
5638 DLLTOOL="false"
5639 else
5640 case $cross_compiling:$ac_tool_warned in
5641 yes:)
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5644 ac_tool_warned=yes ;;
5645 esac
5646 DLLTOOL=$ac_ct_DLLTOOL
5647 fi
5648 else
5649 DLLTOOL="$ac_cv_prog_DLLTOOL"
5650 fi
5651
5652 test -z "$DLLTOOL" && DLLTOOL=dlltool
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5664 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5665 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5666 $as_echo_n "(cached) " >&6
5667 else
5668 lt_cv_sharedlib_from_linklib_cmd='unknown'
5669
5670 case $host_os in
5671 cygwin* | mingw* | pw32* | cegcc*)
5672 # two different shell functions defined in ltmain.sh;
5673 # decide which one to use based on capabilities of $DLLTOOL
5674 case `$DLLTOOL --help 2>&1` in
5675 *--identify-strict*)
5676 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5677 ;;
5678 *)
5679 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5680 ;;
5681 esac
5682 ;;
5683 *)
5684 # fallback: assume linklib IS sharedlib
5685 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5686 ;;
5687 esac
5688
5689 fi
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5691 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5692 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5693 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5694
5695
5696
5697
5698
5699
5700
5701
5702 if test -n "$ac_tool_prefix"; then
5703 for ac_prog in ar
5704 do
5705 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5706 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5708 $as_echo_n "checking for $ac_word... " >&6; }
5709 if ${ac_cv_prog_AR+:} false; then :
5710 $as_echo_n "(cached) " >&6
5711 else
5712 if test -n "$AR"; then
5713 ac_cv_prog_AR="$AR" # Let the user override the test.
5714 else
5715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5716 for as_dir in $PATH
5717 do
5718 IFS=$as_save_IFS
5719 test -z "$as_dir" && as_dir=.
5720 for ac_exec_ext in '' $ac_executable_extensions; do
5721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5722 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5724 break 2
5725 fi
5726 done
5727 done
5728 IFS=$as_save_IFS
5729
5730 fi
5731 fi
5732 AR=$ac_cv_prog_AR
5733 if test -n "$AR"; then
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5735 $as_echo "$AR" >&6; }
5736 else
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738 $as_echo "no" >&6; }
5739 fi
5740
5741
5742 test -n "$AR" && break
5743 done
5744 fi
5745 if test -z "$AR"; then
5746 ac_ct_AR=$AR
5747 for ac_prog in ar
5748 do
5749 # Extract the first word of "$ac_prog", so it can be a program name with args.
5750 set dummy $ac_prog; ac_word=$2
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5752 $as_echo_n "checking for $ac_word... " >&6; }
5753 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5754 $as_echo_n "(cached) " >&6
5755 else
5756 if test -n "$ac_ct_AR"; then
5757 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5758 else
5759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5760 for as_dir in $PATH
5761 do
5762 IFS=$as_save_IFS
5763 test -z "$as_dir" && as_dir=.
5764 for ac_exec_ext in '' $ac_executable_extensions; do
5765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5766 ac_cv_prog_ac_ct_AR="$ac_prog"
5767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5768 break 2
5769 fi
5770 done
5771 done
5772 IFS=$as_save_IFS
5773
5774 fi
5775 fi
5776 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5777 if test -n "$ac_ct_AR"; then
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5779 $as_echo "$ac_ct_AR" >&6; }
5780 else
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5782 $as_echo "no" >&6; }
5783 fi
5784
5785
5786 test -n "$ac_ct_AR" && break
5787 done
5788
5789 if test "x$ac_ct_AR" = x; then
5790 AR="false"
5791 else
5792 case $cross_compiling:$ac_tool_warned in
5793 yes:)
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5796 ac_tool_warned=yes ;;
5797 esac
5798 AR=$ac_ct_AR
5799 fi
5800 fi
5801
5802 : ${AR=ar}
5803 : ${AR_FLAGS=cru}
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5816 $as_echo_n "checking for archiver @FILE support... " >&6; }
5817 if ${lt_cv_ar_at_file+:} false; then :
5818 $as_echo_n "(cached) " >&6
5819 else
5820 lt_cv_ar_at_file=no
5821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5822 /* end confdefs.h. */
5823
5824 int
5825 main ()
5826 {
5827
5828 ;
5829 return 0;
5830 }
5831 _ACEOF
5832 if ac_fn_c_try_compile "$LINENO"; then :
5833 echo conftest.$ac_objext > conftest.lst
5834 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5836 (eval $lt_ar_try) 2>&5
5837 ac_status=$?
5838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5839 test $ac_status = 0; }
5840 if test 0 -eq "$ac_status"; then
5841 # Ensure the archiver fails upon bogus file names.
5842 rm -f conftest.$ac_objext libconftest.a
5843 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5844 (eval $lt_ar_try) 2>&5
5845 ac_status=$?
5846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5847 test $ac_status = 0; }
5848 if test 0 -ne "$ac_status"; then
5849 lt_cv_ar_at_file=@
5850 fi
5851 fi
5852 rm -f conftest.* libconftest.a
5853
5854 fi
5855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5856
5857 fi
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5859 $as_echo "$lt_cv_ar_at_file" >&6; }
5860
5861 if test no = "$lt_cv_ar_at_file"; then
5862 archiver_list_spec=
5863 else
5864 archiver_list_spec=$lt_cv_ar_at_file
5865 fi
5866
5867
5868
5869
5870
5871
5872
5873 if test -n "$ac_tool_prefix"; then
5874 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5875 set dummy ${ac_tool_prefix}strip; ac_word=$2
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5877 $as_echo_n "checking for $ac_word... " >&6; }
5878 if ${ac_cv_prog_STRIP+:} false; then :
5879 $as_echo_n "(cached) " >&6
5880 else
5881 if test -n "$STRIP"; then
5882 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5883 else
5884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 for as_dir in $PATH
5886 do
5887 IFS=$as_save_IFS
5888 test -z "$as_dir" && as_dir=.
5889 for ac_exec_ext in '' $ac_executable_extensions; do
5890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5891 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5893 break 2
5894 fi
5895 done
5896 done
5897 IFS=$as_save_IFS
5898
5899 fi
5900 fi
5901 STRIP=$ac_cv_prog_STRIP
5902 if test -n "$STRIP"; then
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5904 $as_echo "$STRIP" >&6; }
5905 else
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5907 $as_echo "no" >&6; }
5908 fi
5909
5910
5911 fi
5912 if test -z "$ac_cv_prog_STRIP"; then
5913 ac_ct_STRIP=$STRIP
5914 # Extract the first word of "strip", so it can be a program name with args.
5915 set dummy strip; ac_word=$2
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5917 $as_echo_n "checking for $ac_word... " >&6; }
5918 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5919 $as_echo_n "(cached) " >&6
5920 else
5921 if test -n "$ac_ct_STRIP"; then
5922 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5923 else
5924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925 for as_dir in $PATH
5926 do
5927 IFS=$as_save_IFS
5928 test -z "$as_dir" && as_dir=.
5929 for ac_exec_ext in '' $ac_executable_extensions; do
5930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5931 ac_cv_prog_ac_ct_STRIP="strip"
5932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5933 break 2
5934 fi
5935 done
5936 done
5937 IFS=$as_save_IFS
5938
5939 fi
5940 fi
5941 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5942 if test -n "$ac_ct_STRIP"; then
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5944 $as_echo "$ac_ct_STRIP" >&6; }
5945 else
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5947 $as_echo "no" >&6; }
5948 fi
5949
5950 if test "x$ac_ct_STRIP" = x; then
5951 STRIP=":"
5952 else
5953 case $cross_compiling:$ac_tool_warned in
5954 yes:)
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5957 ac_tool_warned=yes ;;
5958 esac
5959 STRIP=$ac_ct_STRIP
5960 fi
5961 else
5962 STRIP="$ac_cv_prog_STRIP"
5963 fi
5964
5965 test -z "$STRIP" && STRIP=:
5966
5967
5968
5969
5970
5971
5972 if test -n "$ac_tool_prefix"; then
5973 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5974 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5976 $as_echo_n "checking for $ac_word... " >&6; }
5977 if ${ac_cv_prog_RANLIB+:} false; then :
5978 $as_echo_n "(cached) " >&6
5979 else
5980 if test -n "$RANLIB"; then
5981 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5982 else
5983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984 for as_dir in $PATH
5985 do
5986 IFS=$as_save_IFS
5987 test -z "$as_dir" && as_dir=.
5988 for ac_exec_ext in '' $ac_executable_extensions; do
5989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5990 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5992 break 2
5993 fi
5994 done
5995 done
5996 IFS=$as_save_IFS
5997
5998 fi
5999 fi
6000 RANLIB=$ac_cv_prog_RANLIB
6001 if test -n "$RANLIB"; then
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6003 $as_echo "$RANLIB" >&6; }
6004 else
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6006 $as_echo "no" >&6; }
6007 fi
6008
6009
6010 fi
6011 if test -z "$ac_cv_prog_RANLIB"; then
6012 ac_ct_RANLIB=$RANLIB
6013 # Extract the first word of "ranlib", so it can be a program name with args.
6014 set dummy ranlib; ac_word=$2
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6016 $as_echo_n "checking for $ac_word... " >&6; }
6017 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6018 $as_echo_n "(cached) " >&6
6019 else
6020 if test -n "$ac_ct_RANLIB"; then
6021 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6022 else
6023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024 for as_dir in $PATH
6025 do
6026 IFS=$as_save_IFS
6027 test -z "$as_dir" && as_dir=.
6028 for ac_exec_ext in '' $ac_executable_extensions; do
6029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6030 ac_cv_prog_ac_ct_RANLIB="ranlib"
6031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6032 break 2
6033 fi
6034 done
6035 done
6036 IFS=$as_save_IFS
6037
6038 fi
6039 fi
6040 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6041 if test -n "$ac_ct_RANLIB"; then
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6043 $as_echo "$ac_ct_RANLIB" >&6; }
6044 else
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6046 $as_echo "no" >&6; }
6047 fi
6048
6049 if test "x$ac_ct_RANLIB" = x; then
6050 RANLIB=":"
6051 else
6052 case $cross_compiling:$ac_tool_warned in
6053 yes:)
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6056 ac_tool_warned=yes ;;
6057 esac
6058 RANLIB=$ac_ct_RANLIB
6059 fi
6060 else
6061 RANLIB="$ac_cv_prog_RANLIB"
6062 fi
6063
6064 test -z "$RANLIB" && RANLIB=:
6065
6066
6067
6068
6069
6070
6071 # Determine commands to create old-style static archives.
6072 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6073 old_postinstall_cmds='chmod 644 $oldlib'
6074 old_postuninstall_cmds=
6075
6076 if test -n "$RANLIB"; then
6077 case $host_os in
6078 bitrig* | openbsd*)
6079 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6080 ;;
6081 *)
6082 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6083 ;;
6084 esac
6085 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6086 fi
6087
6088 case $host_os in
6089 darwin*)
6090 lock_old_archive_extraction=yes ;;
6091 *)
6092 lock_old_archive_extraction=no ;;
6093 esac
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115 for ac_prog in gawk mawk nawk awk
6116 do
6117 # Extract the first word of "$ac_prog", so it can be a program name with args.
6118 set dummy $ac_prog; ac_word=$2
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6120 $as_echo_n "checking for $ac_word... " >&6; }
6121 if ${ac_cv_prog_AWK+:} false; then :
6122 $as_echo_n "(cached) " >&6
6123 else
6124 if test -n "$AWK"; then
6125 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6126 else
6127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6128 for as_dir in $PATH
6129 do
6130 IFS=$as_save_IFS
6131 test -z "$as_dir" && as_dir=.
6132 for ac_exec_ext in '' $ac_executable_extensions; do
6133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6134 ac_cv_prog_AWK="$ac_prog"
6135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6136 break 2
6137 fi
6138 done
6139 done
6140 IFS=$as_save_IFS
6141
6142 fi
6143 fi
6144 AWK=$ac_cv_prog_AWK
6145 if test -n "$AWK"; then
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6147 $as_echo "$AWK" >&6; }
6148 else
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6150 $as_echo "no" >&6; }
6151 fi
6152
6153
6154 test -n "$AWK" && break
6155 done
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175 # If no C compiler was specified, use CC.
6176 LTCC=${LTCC-"$CC"}
6177
6178 # If no C compiler flags were specified, use CFLAGS.
6179 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6180
6181 # Allow CC to be a program name with arguments.
6182 compiler=$CC
6183
6184
6185 # Check for command to grab the raw symbol name followed by C symbol from nm.
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6187 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6188 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6189 $as_echo_n "(cached) " >&6
6190 else
6191
6192 # These are sane defaults that work on at least a few old systems.
6193 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6194
6195 # Character class describing NM global symbol codes.
6196 symcode='[BCDEGRST]'
6197
6198 # Regexp to match symbols that can be accessed directly from C.
6199 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6200
6201 # Define system-specific variables.
6202 case $host_os in
6203 aix*)
6204 symcode='[BCDT]'
6205 ;;
6206 cygwin* | mingw* | pw32* | cegcc*)
6207 symcode='[ABCDGISTW]'
6208 ;;
6209 hpux*)
6210 if test ia64 = "$host_cpu"; then
6211 symcode='[ABCDEGRST]'
6212 fi
6213 ;;
6214 irix* | nonstopux*)
6215 symcode='[BCDEGRST]'
6216 ;;
6217 osf*)
6218 symcode='[BCDEGQRST]'
6219 ;;
6220 solaris*)
6221 symcode='[BDRT]'
6222 ;;
6223 sco3.2v5*)
6224 symcode='[DT]'
6225 ;;
6226 sysv4.2uw2*)
6227 symcode='[DT]'
6228 ;;
6229 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6230 symcode='[ABDT]'
6231 ;;
6232 sysv4)
6233 symcode='[DFNSTU]'
6234 ;;
6235 esac
6236
6237 # If we're using GNU nm, then use its standard symbol codes.
6238 case `$NM -V 2>&1` in
6239 *GNU* | *'with BFD'*)
6240 symcode='[ABCDGIRSTW]' ;;
6241 esac
6242
6243 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6244 # Gets list of data symbols to import.
6245 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6246 # Adjust the below global symbol transforms to fixup imported variables.
6247 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6248 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6249 lt_c_name_lib_hook="\
6250 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6251 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6252 else
6253 # Disable hooks by default.
6254 lt_cv_sys_global_symbol_to_import=
6255 lt_cdecl_hook=
6256 lt_c_name_hook=
6257 lt_c_name_lib_hook=
6258 fi
6259
6260 # Transform an extracted symbol line into a proper C declaration.
6261 # Some systems (esp. on ia64) link data and code symbols differently,
6262 # so use this general approach.
6263 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6264 $lt_cdecl_hook\
6265 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6266 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6267
6268 # Transform an extracted symbol line into symbol name and symbol address
6269 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6270 $lt_c_name_hook\
6271 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6272 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6273
6274 # Transform an extracted symbol line into symbol name with lib prefix and
6275 # symbol address.
6276 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6277 $lt_c_name_lib_hook\
6278 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6279 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6280 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6281
6282 # Handle CRLF in mingw tool chain
6283 opt_cr=
6284 case $build_os in
6285 mingw*)
6286 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6287 ;;
6288 esac
6289
6290 # Try without a prefix underscore, then with it.
6291 for ac_symprfx in "" "_"; do
6292
6293 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6294 symxfrm="\\1 $ac_symprfx\\2 \\2"
6295
6296 # Write the raw and C identifiers.
6297 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6298 # Fake it for dumpbin and say T for any non-static function,
6299 # D for any global variable and I for any imported variable.
6300 # Also find C++ and __fastcall symbols from MSVC++,
6301 # which start with @ or ?.
6302 lt_cv_sys_global_symbol_pipe="$AWK '"\
6303 " {last_section=section; section=\$ 3};"\
6304 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6305 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6306 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6307 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6308 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6309 " \$ 0!~/External *\|/{next};"\
6310 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6311 " {if(hide[section]) next};"\
6312 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6313 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6314 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6315 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6316 " ' prfx=^$ac_symprfx"
6317 else
6318 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6319 fi
6320 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6321
6322 # Check to see that the pipe works correctly.
6323 pipe_works=no
6324
6325 rm -f conftest*
6326 cat > conftest.$ac_ext <<_LT_EOF
6327 #ifdef __cplusplus
6328 extern "C" {
6329 #endif
6330 char nm_test_var;
6331 void nm_test_func(void);
6332 void nm_test_func(void){}
6333 #ifdef __cplusplus
6334 }
6335 #endif
6336 int main(){nm_test_var='a';nm_test_func();return(0);}
6337 _LT_EOF
6338
6339 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6340 (eval $ac_compile) 2>&5
6341 ac_status=$?
6342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6343 test $ac_status = 0; }; then
6344 # Now try to grab the symbols.
6345 nlist=conftest.nm
6346 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6347 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6348 ac_status=$?
6349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6350 test $ac_status = 0; } && test -s "$nlist"; then
6351 # Try sorting and uniquifying the output.
6352 if sort "$nlist" | uniq > "$nlist"T; then
6353 mv -f "$nlist"T "$nlist"
6354 else
6355 rm -f "$nlist"T
6356 fi
6357
6358 # Make sure that we snagged all the symbols we need.
6359 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6360 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6361 cat <<_LT_EOF > conftest.$ac_ext
6362 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6363 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6364 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6365 relocations are performed -- see ld's documentation on pseudo-relocs. */
6366 # define LT_DLSYM_CONST
6367 #elif defined __osf__
6368 /* This system does not cope well with relocations in const data. */
6369 # define LT_DLSYM_CONST
6370 #else
6371 # define LT_DLSYM_CONST const
6372 #endif
6373
6374 #ifdef __cplusplus
6375 extern "C" {
6376 #endif
6377
6378 _LT_EOF
6379 # Now generate the symbol file.
6380 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6381
6382 cat <<_LT_EOF >> conftest.$ac_ext
6383
6384 /* The mapping between symbol names and symbols. */
6385 LT_DLSYM_CONST struct {
6386 const char *name;
6387 void *address;
6388 }
6389 lt__PROGRAM__LTX_preloaded_symbols[] =
6390 {
6391 { "@PROGRAM@", (void *) 0 },
6392 _LT_EOF
6393 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6394 cat <<\_LT_EOF >> conftest.$ac_ext
6395 {0, (void *) 0}
6396 };
6397
6398 /* This works around a problem in FreeBSD linker */
6399 #ifdef FREEBSD_WORKAROUND
6400 static const void *lt_preloaded_setup() {
6401 return lt__PROGRAM__LTX_preloaded_symbols;
6402 }
6403 #endif
6404
6405 #ifdef __cplusplus
6406 }
6407 #endif
6408 _LT_EOF
6409 # Now try linking the two files.
6410 mv conftest.$ac_objext conftstm.$ac_objext
6411 lt_globsym_save_LIBS=$LIBS
6412 lt_globsym_save_CFLAGS=$CFLAGS
6413 LIBS=conftstm.$ac_objext
6414 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6415 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6416 (eval $ac_link) 2>&5
6417 ac_status=$?
6418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6419 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6420 pipe_works=yes
6421 fi
6422 LIBS=$lt_globsym_save_LIBS
6423 CFLAGS=$lt_globsym_save_CFLAGS
6424 else
6425 echo "cannot find nm_test_func in $nlist" >&5
6426 fi
6427 else
6428 echo "cannot find nm_test_var in $nlist" >&5
6429 fi
6430 else
6431 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6432 fi
6433 else
6434 echo "$progname: failed program was:" >&5
6435 cat conftest.$ac_ext >&5
6436 fi
6437 rm -rf conftest* conftst*
6438
6439 # Do not use the global_symbol_pipe unless it works.
6440 if test yes = "$pipe_works"; then
6441 break
6442 else
6443 lt_cv_sys_global_symbol_pipe=
6444 fi
6445 done
6446
6447 fi
6448
6449 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6450 lt_cv_sys_global_symbol_to_cdecl=
6451 fi
6452 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6454 $as_echo "failed" >&6; }
6455 else
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6457 $as_echo "ok" >&6; }
6458 fi
6459
6460 # Response file support.
6461 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6462 nm_file_list_spec='@'
6463 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6464 nm_file_list_spec='@'
6465 fi
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6504 $as_echo_n "checking for sysroot... " >&6; }
6505
6506 # Check whether --with-sysroot was given.
6507 if test "${with_sysroot+set}" = set; then :
6508 withval=$with_sysroot;
6509 else
6510 with_sysroot=no
6511 fi
6512
6513
6514 lt_sysroot=
6515 case $with_sysroot in #(
6516 yes)
6517 if test yes = "$GCC"; then
6518 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6519 fi
6520 ;; #(
6521 /*)
6522 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6523 ;; #(
6524 no|'')
6525 ;; #(
6526 *)
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6528 $as_echo "$with_sysroot" >&6; }
6529 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6530 ;;
6531 esac
6532
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6534 $as_echo "${lt_sysroot:-no}" >&6; }
6535
6536
6537
6538
6539
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6541 $as_echo_n "checking for a working dd... " >&6; }
6542 if ${ac_cv_path_lt_DD+:} false; then :
6543 $as_echo_n "(cached) " >&6
6544 else
6545 printf 0123456789abcdef0123456789abcdef >conftest.i
6546 cat conftest.i conftest.i >conftest2.i
6547 : ${lt_DD:=$DD}
6548 if test -z "$lt_DD"; then
6549 ac_path_lt_DD_found=false
6550 # Loop through the user's path and test for each of PROGNAME-LIST
6551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552 for as_dir in $PATH
6553 do
6554 IFS=$as_save_IFS
6555 test -z "$as_dir" && as_dir=.
6556 for ac_prog in dd; do
6557 for ac_exec_ext in '' $ac_executable_extensions; do
6558 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6559 as_fn_executable_p "$ac_path_lt_DD" || continue
6560 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6561 cmp -s conftest.i conftest.out \
6562 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6563 fi
6564 $ac_path_lt_DD_found && break 3
6565 done
6566 done
6567 done
6568 IFS=$as_save_IFS
6569 if test -z "$ac_cv_path_lt_DD"; then
6570 :
6571 fi
6572 else
6573 ac_cv_path_lt_DD=$lt_DD
6574 fi
6575
6576 rm -f conftest.i conftest2.i conftest.out
6577 fi
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6579 $as_echo "$ac_cv_path_lt_DD" >&6; }
6580
6581
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6583 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6584 if ${lt_cv_truncate_bin+:} false; then :
6585 $as_echo_n "(cached) " >&6
6586 else
6587 printf 0123456789abcdef0123456789abcdef >conftest.i
6588 cat conftest.i conftest.i >conftest2.i
6589 lt_cv_truncate_bin=
6590 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6591 cmp -s conftest.i conftest.out \
6592 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6593 fi
6594 rm -f conftest.i conftest2.i conftest.out
6595 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6596 fi
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6598 $as_echo "$lt_cv_truncate_bin" >&6; }
6599
6600
6601
6602
6603
6604
6605
6606 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6607 func_cc_basename ()
6608 {
6609 for cc_temp in $*""; do
6610 case $cc_temp in
6611 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6612 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6613 \-*) ;;
6614 *) break;;
6615 esac
6616 done
6617 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6618 }
6619
6620 # Check whether --enable-libtool-lock was given.
6621 if test "${enable_libtool_lock+set}" = set; then :
6622 enableval=$enable_libtool_lock;
6623 fi
6624
6625 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6626
6627 # Some flags need to be propagated to the compiler or linker for good
6628 # libtool support.
6629 case $host in
6630 ia64-*-hpux*)
6631 # Find out what ABI is being produced by ac_compile, and set mode
6632 # options accordingly.
6633 echo 'int i;' > conftest.$ac_ext
6634 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6635 (eval $ac_compile) 2>&5
6636 ac_status=$?
6637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6638 test $ac_status = 0; }; then
6639 case `/usr/bin/file conftest.$ac_objext` in
6640 *ELF-32*)
6641 HPUX_IA64_MODE=32
6642 ;;
6643 *ELF-64*)
6644 HPUX_IA64_MODE=64
6645 ;;
6646 esac
6647 fi
6648 rm -rf conftest*
6649 ;;
6650 *-*-irix6*)
6651 # Find out what ABI is being produced by ac_compile, and set linker
6652 # options accordingly.
6653 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6654 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6655 (eval $ac_compile) 2>&5
6656 ac_status=$?
6657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6658 test $ac_status = 0; }; then
6659 if test yes = "$lt_cv_prog_gnu_ld"; then
6660 case `/usr/bin/file conftest.$ac_objext` in
6661 *32-bit*)
6662 LD="${LD-ld} -melf32bsmip"
6663 ;;
6664 *N32*)
6665 LD="${LD-ld} -melf32bmipn32"
6666 ;;
6667 *64-bit*)
6668 LD="${LD-ld} -melf64bmip"
6669 ;;
6670 esac
6671 else
6672 case `/usr/bin/file conftest.$ac_objext` in
6673 *32-bit*)
6674 LD="${LD-ld} -32"
6675 ;;
6676 *N32*)
6677 LD="${LD-ld} -n32"
6678 ;;
6679 *64-bit*)
6680 LD="${LD-ld} -64"
6681 ;;
6682 esac
6683 fi
6684 fi
6685 rm -rf conftest*
6686 ;;
6687
6688 mips64*-*linux*)
6689 # Find out what ABI is being produced by ac_compile, and set linker
6690 # options accordingly.
6691 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6693 (eval $ac_compile) 2>&5
6694 ac_status=$?
6695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6696 test $ac_status = 0; }; then
6697 emul=elf
6698 case `/usr/bin/file conftest.$ac_objext` in
6699 *32-bit*)
6700 emul="${emul}32"
6701 ;;
6702 *64-bit*)
6703 emul="${emul}64"
6704 ;;
6705 esac
6706 case `/usr/bin/file conftest.$ac_objext` in
6707 *MSB*)
6708 emul="${emul}btsmip"
6709 ;;
6710 *LSB*)
6711 emul="${emul}ltsmip"
6712 ;;
6713 esac
6714 case `/usr/bin/file conftest.$ac_objext` in
6715 *N32*)
6716 emul="${emul}n32"
6717 ;;
6718 esac
6719 LD="${LD-ld} -m $emul"
6720 fi
6721 rm -rf conftest*
6722 ;;
6723
6724 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6725 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6726 # Find out what ABI is being produced by ac_compile, and set linker
6727 # options accordingly. Note that the listed cases only cover the
6728 # situations where additional linker options are needed (such as when
6729 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6730 # vice versa); the common cases where no linker options are needed do
6731 # not appear in the list.
6732 echo 'int i;' > conftest.$ac_ext
6733 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6734 (eval $ac_compile) 2>&5
6735 ac_status=$?
6736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6737 test $ac_status = 0; }; then
6738 case `/usr/bin/file conftest.o` in
6739 *32-bit*)
6740 case $host in
6741 x86_64-*kfreebsd*-gnu)
6742 LD="${LD-ld} -m elf_i386_fbsd"
6743 ;;
6744 x86_64-*linux*)
6745 case `/usr/bin/file conftest.o` in
6746 *x86-64*)
6747 LD="${LD-ld} -m elf32_x86_64"
6748 ;;
6749 *)
6750 LD="${LD-ld} -m elf_i386"
6751 ;;
6752 esac
6753 ;;
6754 powerpc64le-*linux*)
6755 LD="${LD-ld} -m elf32lppclinux"
6756 ;;
6757 powerpc64-*linux*)
6758 LD="${LD-ld} -m elf32ppclinux"
6759 ;;
6760 s390x-*linux*)
6761 LD="${LD-ld} -m elf_s390"
6762 ;;
6763 sparc64-*linux*)
6764 LD="${LD-ld} -m elf32_sparc"
6765 ;;
6766 esac
6767 ;;
6768 *64-bit*)
6769 case $host in
6770 x86_64-*kfreebsd*-gnu)
6771 LD="${LD-ld} -m elf_x86_64_fbsd"
6772 ;;
6773 x86_64-*linux*)
6774 LD="${LD-ld} -m elf_x86_64"
6775 ;;
6776 powerpcle-*linux*)
6777 LD="${LD-ld} -m elf64lppc"
6778 ;;
6779 powerpc-*linux*)
6780 LD="${LD-ld} -m elf64ppc"
6781 ;;
6782 s390*-*linux*|s390*-*tpf*)
6783 LD="${LD-ld} -m elf64_s390"
6784 ;;
6785 sparc*-*linux*)
6786 LD="${LD-ld} -m elf64_sparc"
6787 ;;
6788 esac
6789 ;;
6790 esac
6791 fi
6792 rm -rf conftest*
6793 ;;
6794
6795 *-*-sco3.2v5*)
6796 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6797 SAVE_CFLAGS=$CFLAGS
6798 CFLAGS="$CFLAGS -belf"
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6800 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6801 if ${lt_cv_cc_needs_belf+:} false; then :
6802 $as_echo_n "(cached) " >&6
6803 else
6804 ac_ext=c
6805 ac_cpp='$CPP $CPPFLAGS'
6806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6809
6810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811 /* end confdefs.h. */
6812
6813 int
6814 main ()
6815 {
6816
6817 ;
6818 return 0;
6819 }
6820 _ACEOF
6821 if ac_fn_c_try_link "$LINENO"; then :
6822 lt_cv_cc_needs_belf=yes
6823 else
6824 lt_cv_cc_needs_belf=no
6825 fi
6826 rm -f core conftest.err conftest.$ac_objext \
6827 conftest$ac_exeext conftest.$ac_ext
6828 ac_ext=c
6829 ac_cpp='$CPP $CPPFLAGS'
6830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6833
6834 fi
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6836 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6837 if test yes != "$lt_cv_cc_needs_belf"; then
6838 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6839 CFLAGS=$SAVE_CFLAGS
6840 fi
6841 ;;
6842 *-*solaris*)
6843 # Find out what ABI is being produced by ac_compile, and set linker
6844 # options accordingly.
6845 echo 'int i;' > conftest.$ac_ext
6846 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6847 (eval $ac_compile) 2>&5
6848 ac_status=$?
6849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6850 test $ac_status = 0; }; then
6851 case `/usr/bin/file conftest.o` in
6852 *64-bit*)
6853 case $lt_cv_prog_gnu_ld in
6854 yes*)
6855 case $host in
6856 i?86-*-solaris*|x86_64-*-solaris*)
6857 LD="${LD-ld} -m elf_x86_64"
6858 ;;
6859 sparc*-*-solaris*)
6860 LD="${LD-ld} -m elf64_sparc"
6861 ;;
6862 esac
6863 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6864 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6865 LD=${LD-ld}_sol2
6866 fi
6867 ;;
6868 *)
6869 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6870 LD="${LD-ld} -64"
6871 fi
6872 ;;
6873 esac
6874 ;;
6875 esac
6876 fi
6877 rm -rf conftest*
6878 ;;
6879 esac
6880
6881 need_locks=$enable_libtool_lock
6882
6883 if test -n "$ac_tool_prefix"; then
6884 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6885 set dummy ${ac_tool_prefix}mt; ac_word=$2
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6887 $as_echo_n "checking for $ac_word... " >&6; }
6888 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6889 $as_echo_n "(cached) " >&6
6890 else
6891 if test -n "$MANIFEST_TOOL"; then
6892 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6893 else
6894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895 for as_dir in $PATH
6896 do
6897 IFS=$as_save_IFS
6898 test -z "$as_dir" && as_dir=.
6899 for ac_exec_ext in '' $ac_executable_extensions; do
6900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6901 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 break 2
6904 fi
6905 done
6906 done
6907 IFS=$as_save_IFS
6908
6909 fi
6910 fi
6911 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6912 if test -n "$MANIFEST_TOOL"; then
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6914 $as_echo "$MANIFEST_TOOL" >&6; }
6915 else
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6917 $as_echo "no" >&6; }
6918 fi
6919
6920
6921 fi
6922 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6923 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6924 # Extract the first word of "mt", so it can be a program name with args.
6925 set dummy mt; ac_word=$2
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6927 $as_echo_n "checking for $ac_word... " >&6; }
6928 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6929 $as_echo_n "(cached) " >&6
6930 else
6931 if test -n "$ac_ct_MANIFEST_TOOL"; then
6932 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6933 else
6934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 for as_dir in $PATH
6936 do
6937 IFS=$as_save_IFS
6938 test -z "$as_dir" && as_dir=.
6939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6941 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6943 break 2
6944 fi
6945 done
6946 done
6947 IFS=$as_save_IFS
6948
6949 fi
6950 fi
6951 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6952 if test -n "$ac_ct_MANIFEST_TOOL"; then
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6954 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6955 else
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6957 $as_echo "no" >&6; }
6958 fi
6959
6960 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6961 MANIFEST_TOOL=":"
6962 else
6963 case $cross_compiling:$ac_tool_warned in
6964 yes:)
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6967 ac_tool_warned=yes ;;
6968 esac
6969 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6970 fi
6971 else
6972 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6973 fi
6974
6975 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6977 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6978 if ${lt_cv_path_mainfest_tool+:} false; then :
6979 $as_echo_n "(cached) " >&6
6980 else
6981 lt_cv_path_mainfest_tool=no
6982 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6983 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6984 cat conftest.err >&5
6985 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6986 lt_cv_path_mainfest_tool=yes
6987 fi
6988 rm -f conftest*
6989 fi
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6991 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6992 if test yes != "$lt_cv_path_mainfest_tool"; then
6993 MANIFEST_TOOL=:
6994 fi
6995
6996
6997
6998
6999
7000
7001 case $host_os in
7002 rhapsody* | darwin*)
7003 if test -n "$ac_tool_prefix"; then
7004 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7005 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7007 $as_echo_n "checking for $ac_word... " >&6; }
7008 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7009 $as_echo_n "(cached) " >&6
7010 else
7011 if test -n "$DSYMUTIL"; then
7012 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7013 else
7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 for as_dir in $PATH
7016 do
7017 IFS=$as_save_IFS
7018 test -z "$as_dir" && as_dir=.
7019 for ac_exec_ext in '' $ac_executable_extensions; do
7020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7021 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7023 break 2
7024 fi
7025 done
7026 done
7027 IFS=$as_save_IFS
7028
7029 fi
7030 fi
7031 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7032 if test -n "$DSYMUTIL"; then
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7034 $as_echo "$DSYMUTIL" >&6; }
7035 else
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7037 $as_echo "no" >&6; }
7038 fi
7039
7040
7041 fi
7042 if test -z "$ac_cv_prog_DSYMUTIL"; then
7043 ac_ct_DSYMUTIL=$DSYMUTIL
7044 # Extract the first word of "dsymutil", so it can be a program name with args.
7045 set dummy dsymutil; ac_word=$2
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7047 $as_echo_n "checking for $ac_word... " >&6; }
7048 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7049 $as_echo_n "(cached) " >&6
7050 else
7051 if test -n "$ac_ct_DSYMUTIL"; then
7052 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7053 else
7054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055 for as_dir in $PATH
7056 do
7057 IFS=$as_save_IFS
7058 test -z "$as_dir" && as_dir=.
7059 for ac_exec_ext in '' $ac_executable_extensions; do
7060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7061 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7063 break 2
7064 fi
7065 done
7066 done
7067 IFS=$as_save_IFS
7068
7069 fi
7070 fi
7071 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7072 if test -n "$ac_ct_DSYMUTIL"; then
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7074 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7075 else
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7077 $as_echo "no" >&6; }
7078 fi
7079
7080 if test "x$ac_ct_DSYMUTIL" = x; then
7081 DSYMUTIL=":"
7082 else
7083 case $cross_compiling:$ac_tool_warned in
7084 yes:)
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7087 ac_tool_warned=yes ;;
7088 esac
7089 DSYMUTIL=$ac_ct_DSYMUTIL
7090 fi
7091 else
7092 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7093 fi
7094
7095 if test -n "$ac_tool_prefix"; then
7096 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7097 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7099 $as_echo_n "checking for $ac_word... " >&6; }
7100 if ${ac_cv_prog_NMEDIT+:} false; then :
7101 $as_echo_n "(cached) " >&6
7102 else
7103 if test -n "$NMEDIT"; then
7104 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7105 else
7106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107 for as_dir in $PATH
7108 do
7109 IFS=$as_save_IFS
7110 test -z "$as_dir" && as_dir=.
7111 for ac_exec_ext in '' $ac_executable_extensions; do
7112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7113 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7115 break 2
7116 fi
7117 done
7118 done
7119 IFS=$as_save_IFS
7120
7121 fi
7122 fi
7123 NMEDIT=$ac_cv_prog_NMEDIT
7124 if test -n "$NMEDIT"; then
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7126 $as_echo "$NMEDIT" >&6; }
7127 else
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7129 $as_echo "no" >&6; }
7130 fi
7131
7132
7133 fi
7134 if test -z "$ac_cv_prog_NMEDIT"; then
7135 ac_ct_NMEDIT=$NMEDIT
7136 # Extract the first word of "nmedit", so it can be a program name with args.
7137 set dummy nmedit; ac_word=$2
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7139 $as_echo_n "checking for $ac_word... " >&6; }
7140 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7141 $as_echo_n "(cached) " >&6
7142 else
7143 if test -n "$ac_ct_NMEDIT"; then
7144 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7145 else
7146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147 for as_dir in $PATH
7148 do
7149 IFS=$as_save_IFS
7150 test -z "$as_dir" && as_dir=.
7151 for ac_exec_ext in '' $ac_executable_extensions; do
7152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7153 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7155 break 2
7156 fi
7157 done
7158 done
7159 IFS=$as_save_IFS
7160
7161 fi
7162 fi
7163 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7164 if test -n "$ac_ct_NMEDIT"; then
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7166 $as_echo "$ac_ct_NMEDIT" >&6; }
7167 else
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7169 $as_echo "no" >&6; }
7170 fi
7171
7172 if test "x$ac_ct_NMEDIT" = x; then
7173 NMEDIT=":"
7174 else
7175 case $cross_compiling:$ac_tool_warned in
7176 yes:)
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7178 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7179 ac_tool_warned=yes ;;
7180 esac
7181 NMEDIT=$ac_ct_NMEDIT
7182 fi
7183 else
7184 NMEDIT="$ac_cv_prog_NMEDIT"
7185 fi
7186
7187 if test -n "$ac_tool_prefix"; then
7188 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.