Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for fcml 1.3.0.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell [email protected] and
279 $0: [email protected] about your system,
280 $0: including any error possibly output before this
281 $0: message. Then install a modern shell, or manually run
282 $0: the script under such a shell if you do have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312 return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320 set +e
321 as_fn_set_status $1
322 exit $1
323 } # as_fn_exit
324 # as_fn_nop
325 # ---------
326 # Do nothing but, unlike ":", preserve the value of $?.
327 as_fn_nop ()
328 {
329 return $?
330 }
331 as_nop=as_fn_nop
332
333 # as_fn_mkdir_p
334 # -------------
335 # Create "$as_dir" as a directory, including parents if necessary.
336 as_fn_mkdir_p ()
337 {
338
339 case $as_dir in #(
340 -*) as_dir=./$as_dir;;
341 esac
342 test -d "$as_dir" || eval $as_mkdir_p || {
343 as_dirs=
344 while :; do
345 case $as_dir in #(
346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347 *) as_qdir=$as_dir;;
348 esac
349 as_dirs="'$as_qdir' $as_dirs"
350 as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352 X"$as_dir" : 'X\(//\)[^/]' \| \
353 X"$as_dir" : 'X\(//\)$' \| \
354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)[^/].*/{
361 s//\1/
362 q
363 }
364 /^X\(\/\/\)$/{
365 s//\1/
366 q
367 }
368 /^X\(\/\).*/{
369 s//\1/
370 q
371 }
372 s/.*/./; q'`
373 test -d "$as_dir" && break
374 done
375 test -z "$as_dirs" || eval "mkdir $as_dirs"
376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379 } # as_fn_mkdir_p
380
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
385 {
386 test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
393 # implementations.
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395 then :
396 eval 'as_fn_append ()
397 {
398 eval $1+=\$2
399 }'
400 else $as_nop
401 as_fn_append ()
402 {
403 eval $1=\$$1\$2
404 }
405 fi # as_fn_append
406
407 # as_fn_arith ARG...
408 # ------------------
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413 then :
414 eval 'as_fn_arith ()
415 {
416 as_val=$(( $* ))
417 }'
418 else $as_nop
419 as_fn_arith ()
420 {
421 as_val=`expr "$@" || test $? -eq 1`
422 }
423 fi # as_fn_arith
424
425 # as_fn_nop
426 # ---------
427 # Do nothing but, unlike ":", preserve the value of $?.
428 as_fn_nop ()
429 {
430 return $?
431 }
432 as_nop=as_fn_nop
433
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
439 as_fn_error ()
440 {
441 as_status=$1; test $as_status -eq 0 && as_status=1
442 if test "$4"; then
443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445 fi
446 printf "%s\n" "$as_me: error: $2" >&2
447 as_fn_exit $as_status
448 } # as_fn_error
449
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451 test "X`expr 00001 : '.*\(...\)'`" = X001; then
452 as_expr=expr
453 else
454 as_expr=false
455 fi
456
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458 as_basename=basename
459 else
460 as_basename=false
461 fi
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464 as_dirname=dirname
465 else
466 as_dirname=false
467 fi
468
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471 X"$0" : 'X\(//\)$' \| \
472 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474 sed '/^.*\/\([^/][^/]*\)\/*$/{
475 s//\1/
476 q
477 }
478 /^X\/\(\/\/\)$/{
479 s//\1/
480 q
481 }
482 /^X\/\(\/\).*/{
483 s//\1/
484 q
485 }
486 s/.*/./; q'`
487
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496 as_lineno_1=$LINENO as_lineno_1a=$LINENO
497 as_lineno_2=$LINENO as_lineno_2a=$LINENO
498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
501 sed -n '
502 p
503 /[$]LINENO/=
504 ' <$as_myself |
505 sed '
506 s/[$]LINENO.*/&-/
507 t lineno
508 b
509 :lineno
510 N
511 :loop
512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513 t loop
514 s/-\n.*//
515 ' >$as_me.lineno &&
516 chmod +x "$as_me.lineno" ||
517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520 # already done that, so ensure we don't try to do so again and fall
521 # in an infinite loop. This has already happened in practice.
522 _as_can_reexec=no; export _as_can_reexec
523 # Don't try to exec as it changes $[0], causing all sort of problems
524 # (the dirname of $[0] is not the place where we might find the
525 # original and so on. Autoconf is especially sensitive to this).
526 . "./$as_me.lineno"
527 # Exit status is that of the last command.
528 exit
529 }
530
531
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
537 -n*)
538 case `echo 'xy\c'` in
539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
540 xy) ECHO_C='\c';;
541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
542 ECHO_T=' ';;
543 esac;;
544 *)
545 ECHO_N='-n';;
546 esac
547
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n. New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
553
554
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557 rm -f conf$$.dir/conf$$.file
558 else
559 rm -f conf$$.dir
560 mkdir conf$$.dir 2>/dev/null
561 fi
562 if (echo >conf$$.file) 2>/dev/null; then
563 if ln -s conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s='ln -s'
565 # ... but there are two gotchas:
566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568 # In both cases, we have to default to `cp -pR'.
569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570 as_ln_s='cp -pR'
571 elif ln conf$$.file conf$$ 2>/dev/null; then
572 as_ln_s=ln
573 else
574 as_ln_s='cp -pR'
575 fi
576 else
577 as_ln_s='cp -pR'
578 fi
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
581
582 if mkdir -p . 2>/dev/null; then
583 as_mkdir_p='mkdir -p "$as_dir"'
584 else
585 test -d ./-p && rmdir ./-p
586 as_mkdir_p=false
587 fi
588
589 as_test_x='test -x'
590 as_executable_p=as_fn_executable_p
591
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598 SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601 test -n "$DJDIR" || exec 7<&0 </dev/null
602 exec 6>&1
603
604 # Name of the host.
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609 #
610 # Initializations.
611 #
612 ac_default_prefix=/usr/local
613 ac_clean_files=
614 ac_config_libobj_dir=.
615 LIBOBJS=
616 cross_compiling=no
617 subdirs=
618 MFLAGS=
619 MAKEFLAGS=
620
621 # Identity of this package.
622 PACKAGE_NAME='fcml'
623 PACKAGE_TARNAME='fcml'
624 PACKAGE_VERSION='1.3.0'
625 PACKAGE_STRING='fcml 1.3.0'
626 PACKAGE_BUGREPORT='[email protected]'
627 PACKAGE_URL=''
628
629 # Factoring default headers for most tests.
630 ac_includes_default="\
631 #include <stddef.h>
632 #ifdef HAVE_STDIO_H
633 # include <stdio.h>
634 #endif
635 #ifdef HAVE_STDLIB_H
636 # include <stdlib.h>
637 #endif
638 #ifdef HAVE_STRING_H
639 # include <string.h>
640 #endif
641 #ifdef HAVE_INTTYPES_H
642 # include <inttypes.h>
643 #endif
644 #ifdef HAVE_STDINT_H
645 # include <stdint.h>
646 #endif
647 #ifdef HAVE_STRINGS_H
648 # include <strings.h>
649 #endif
650 #ifdef HAVE_SYS_TYPES_H
651 # include <sys/types.h>
652 #endif
653 #ifdef HAVE_SYS_STAT_H
654 # include <sys/stat.h>
655 #endif
656 #ifdef HAVE_UNISTD_H
657 # include <unistd.h>
658 #endif"
659
660 ac_header_c_list=
661 ac_unique_file="include/fcml_common.h"
662 ac_subst_vars='am__EXEEXT_FALSE
663 am__EXEEXT_TRUE
664 LTLIBOBJS
665 VISIBILITY_CFLAGS
666 FCML_IMPORT_LIB
667 HAVE_DOXYGEN_FALSE
668 HAVE_DOXYGEN_TRUE
669 ENABLE_INTERNAL_TESTS_FALSE
670 ENABLE_INTERNAL_TESTS_TRUE
671 CPP_WRAPPER_FALSE
672 CPP_WRAPPER_TRUE
673 DOXYGEN
674 LIBOBJS
675 ALLOCA
676 YFLAGS
677 YACC
678 LEXLIB
679 LEX_OUTPUT_ROOT
680 LEX
681 CPP
682 CXXCPP
683 am__fastdepCXX_FALSE
684 am__fastdepCXX_TRUE
685 CXXDEPMODE
686 ac_ct_CXX
687 CXXFLAGS
688 CXX
689 LT_SYS_LIBRARY_PATH
690 OTOOL64
691 OTOOL
692 LIPO
693 NMEDIT
694 DSYMUTIL
695 MANIFEST_TOOL
696 RANLIB
697 ac_ct_AR
698 AR
699 DLLTOOL
700 OBJDUMP
701 LN_S
702 NM
703 ac_ct_DUMPBIN
704 DUMPBIN
705 LD
706 FGREP
707 EGREP
708 GREP
709 SED
710 am__fastdepCC_FALSE
711 am__fastdepCC_TRUE
712 CCDEPMODE
713 am__nodep
714 AMDEPBACKSLASH
715 AMDEP_FALSE
716 AMDEP_TRUE
717 am__include
718 DEPDIR
719 OBJEXT
720 EXEEXT
721 ac_ct_CC
722 CPPFLAGS
723 LDFLAGS
724 CFLAGS
725 CC
726 host_os
727 host_vendor
728 host_cpu
729 host
730 build_os
731 build_vendor
732 build_cpu
733 build
734 LIBTOOL
735 AM_BACKSLASH
736 AM_DEFAULT_VERBOSITY
737 AM_DEFAULT_V
738 AM_V
739 CSCOPE
740 ETAGS
741 CTAGS
742 am__untar
743 am__tar
744 AMTAR
745 am__leading_dot
746 SET_MAKE
747 AWK
748 mkdir_p
749 MKDIR_P
750 INSTALL_STRIP_PROGRAM
751 STRIP
752 install_sh
753 MAKEINFO
754 AUTOHEADER
755 AUTOMAKE
756 AUTOCONF
757 ACLOCAL
758 VERSION
759 PACKAGE
760 CYGPATH_W
761 am__isrc
762 INSTALL_DATA
763 INSTALL_SCRIPT
764 INSTALL_PROGRAM
765 target_alias
766 host_alias
767 build_alias
768 LIBS
769 ECHO_T
770 ECHO_N
771 ECHO_C
772 DEFS
773 mandir
774 localedir
775 libdir
776 psdir
777 pdfdir
778 dvidir
779 htmldir
780 infodir
781 docdir
782 oldincludedir
783 includedir
784 runstatedir
785 localstatedir
786 sharedstatedir
787 sysconfdir
788 datadir
789 datarootdir
790 libexecdir
791 sbindir
792 bindir
793 program_transform_name
794 prefix
795 exec_prefix
796 PACKAGE_URL
797 PACKAGE_BUGREPORT
798 PACKAGE_STRING
799 PACKAGE_VERSION
800 PACKAGE_TARNAME
801 PACKAGE_NAME
802 PATH_SEPARATOR
803 SHELL
804 am__quote'
805 ac_subst_files=''
806 ac_user_opts='
807 enable_option_checking
808 enable_silent_rules
809 enable_shared
810 enable_static
811 with_pic
812 enable_fast_install
813 with_aix_soname
814 enable_dependency_tracking
815 with_gnu_ld
816 with_sysroot
817 enable_libtool_lock
818 enable_debug
819 enable_cpp_wrapper
820 '
821 ac_precious_vars='build_alias
822 host_alias
823 target_alias
824 CC
825 CFLAGS
826 LDFLAGS
827 LIBS
828 CPPFLAGS
829 LT_SYS_LIBRARY_PATH
830 CXX
831 CXXFLAGS
832 CCC
833 CXXCPP
834 CPP
835 YACC
836 YFLAGS'
837
838
839 # Initialize some variables set by options.
840 ac_init_help=
841 ac_init_version=false
842 ac_unrecognized_opts=
843 ac_unrecognized_sep=
844 # The variables have the same names as the options, with
845 # dashes changed to underlines.
846 cache_file=/dev/null
847 exec_prefix=NONE
848 no_create=
849 no_recursion=
850 prefix=NONE
851 program_prefix=NONE
852 program_suffix=NONE
853 program_transform_name=s,x,x,
854 silent=
855 site=
856 srcdir=
857 verbose=
858 x_includes=NONE
859 x_libraries=NONE
860
861 # Installation directory options.
862 # These are left unexpanded so users can "make install exec_prefix=/foo"
863 # and all the variables that are supposed to be based on exec_prefix
864 # by default will actually change.
865 # Use braces instead of parens because sh, perl, etc. also accept them.
866 # (The list follows the same order as the GNU Coding Standards.)
867 bindir='${exec_prefix}/bin'
868 sbindir='${exec_prefix}/sbin'
869 libexecdir='${exec_prefix}/libexec'
870 datarootdir='${prefix}/share'
871 datadir='${datarootdir}'
872 sysconfdir='${prefix}/etc'
873 sharedstatedir='${prefix}/com'
874 localstatedir='${prefix}/var'
875 runstatedir='${localstatedir}/run'
876 includedir='${prefix}/include'
877 oldincludedir='/usr/include'
878 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
879 infodir='${datarootdir}/info'
880 htmldir='${docdir}'
881 dvidir='${docdir}'
882 pdfdir='${docdir}'
883 psdir='${docdir}'
884 libdir='${exec_prefix}/lib'
885 localedir='${datarootdir}/locale'
886 mandir='${datarootdir}/man'
887
888 ac_prev=
889 ac_dashdash=
890 for ac_option
891 do
892 # If the previous option needs an argument, assign it.
893 if test -n "$ac_prev"; then
894 eval $ac_prev=\$ac_option
895 ac_prev=
896 continue
897 fi
898
899 case $ac_option in
900 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
901 *=) ac_optarg= ;;
902 *) ac_optarg=yes ;;
903 esac
904
905 case $ac_dashdash$ac_option in
906 --)
907 ac_dashdash=yes ;;
908
909 -bindir | --bindir | --bindi | --bind | --bin | --bi)
910 ac_prev=bindir ;;
911 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
912 bindir=$ac_optarg ;;
913
914 -build | --build | --buil | --bui | --bu)
915 ac_prev=build_alias ;;
916 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
917 build_alias=$ac_optarg ;;
918
919 -cache-file | --cache-file | --cache-fil | --cache-fi \
920 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
921 ac_prev=cache_file ;;
922 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
923 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
924 cache_file=$ac_optarg ;;
925
926 --config-cache | -C)
927 cache_file=config.cache ;;
928
929 -datadir | --datadir | --datadi | --datad)
930 ac_prev=datadir ;;
931 -datadir=* | --datadir=* | --datadi=* | --datad=*)
932 datadir=$ac_optarg ;;
933
934 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
935 | --dataroo | --dataro | --datar)
936 ac_prev=datarootdir ;;
937 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
938 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
939 datarootdir=$ac_optarg ;;
940
941 -disable-* | --disable-*)
942 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945 as_fn_error $? "invalid feature name: \`$ac_useropt'"
946 ac_useropt_orig=$ac_useropt
947 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
948 case $ac_user_opts in
949 *"
950 "enable_$ac_useropt"
951 "*) ;;
952 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
953 ac_unrecognized_sep=', ';;
954 esac
955 eval enable_$ac_useropt=no ;;
956
957 -docdir | --docdir | --docdi | --doc | --do)
958 ac_prev=docdir ;;
959 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
960 docdir=$ac_optarg ;;
961
962 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
963 ac_prev=dvidir ;;
964 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
965 dvidir=$ac_optarg ;;
966
967 -enable-* | --enable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971 as_fn_error $? "invalid feature name: \`$ac_useropt'"
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
975 *"
976 "enable_$ac_useropt"
977 "*) ;;
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
980 esac
981 eval enable_$ac_useropt=\$ac_optarg ;;
982
983 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
984 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
985 | --exec | --exe | --ex)
986 ac_prev=exec_prefix ;;
987 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
988 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
989 | --exec=* | --exe=* | --ex=*)
990 exec_prefix=$ac_optarg ;;
991
992 -gas | --gas | --ga | --g)
993 # Obsolete; use --with-gas.
994 with_gas=yes ;;
995
996 -help | --help | --hel | --he | -h)
997 ac_init_help=long ;;
998 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
999 ac_init_help=recursive ;;
1000 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1001 ac_init_help=short ;;
1002
1003 -host | --host | --hos | --ho)
1004 ac_prev=host_alias ;;
1005 -host=* | --host=* | --hos=* | --ho=*)
1006 host_alias=$ac_optarg ;;
1007
1008 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1009 ac_prev=htmldir ;;
1010 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1011 | --ht=*)
1012 htmldir=$ac_optarg ;;
1013
1014 -includedir | --includedir | --includedi | --included | --include \
1015 | --includ | --inclu | --incl | --inc)
1016 ac_prev=includedir ;;
1017 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1018 | --includ=* | --inclu=* | --incl=* | --inc=*)
1019 includedir=$ac_optarg ;;
1020
1021 -infodir | --infodir | --infodi | --infod | --info | --inf)
1022 ac_prev=infodir ;;
1023 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1024 infodir=$ac_optarg ;;
1025
1026 -libdir | --libdir | --libdi | --libd)
1027 ac_prev=libdir ;;
1028 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1029 libdir=$ac_optarg ;;
1030
1031 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1032 | --libexe | --libex | --libe)
1033 ac_prev=libexecdir ;;
1034 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1035 | --libexe=* | --libex=* | --libe=*)
1036 libexecdir=$ac_optarg ;;
1037
1038 -localedir | --localedir | --localedi | --localed | --locale)
1039 ac_prev=localedir ;;
1040 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1041 localedir=$ac_optarg ;;
1042
1043 -localstatedir | --localstatedir | --localstatedi | --localstated \
1044 | --localstate | --localstat | --localsta | --localst | --locals)
1045 ac_prev=localstatedir ;;
1046 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1047 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1048 localstatedir=$ac_optarg ;;
1049
1050 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1051 ac_prev=mandir ;;
1052 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1053 mandir=$ac_optarg ;;
1054
1055 -nfp | --nfp | --nf)
1056 # Obsolete; use --without-fp.
1057 with_fp=no ;;
1058
1059 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1060 | --no-cr | --no-c | -n)
1061 no_create=yes ;;
1062
1063 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1064 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1065 no_recursion=yes ;;
1066
1067 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1068 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1069 | --oldin | --oldi | --old | --ol | --o)
1070 ac_prev=oldincludedir ;;
1071 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1072 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1073 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1074 oldincludedir=$ac_optarg ;;
1075
1076 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1077 ac_prev=prefix ;;
1078 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1079 prefix=$ac_optarg ;;
1080
1081 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1082 | --program-pre | --program-pr | --program-p)
1083 ac_prev=program_prefix ;;
1084 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1085 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1086 program_prefix=$ac_optarg ;;
1087
1088 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1089 | --program-suf | --program-su | --program-s)
1090 ac_prev=program_suffix ;;
1091 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1092 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1093 program_suffix=$ac_optarg ;;
1094
1095 -program-transform-name | --program-transform-name \
1096 | --program-transform-nam | --program-transform-na \
1097 | --program-transform-n | --program-transform- \
1098 | --program-transform | --program-transfor \
1099 | --program-transfo | --program-transf \
1100 | --program-trans | --program-tran \
1101 | --progr-tra | --program-tr | --program-t)
1102 ac_prev=program_transform_name ;;
1103 -program-transform-name=* | --program-transform-name=* \
1104 | --program-transform-nam=* | --program-transform-na=* \
1105 | --program-transform-n=* | --program-transform-=* \
1106 | --program-transform=* | --program-transfor=* \
1107 | --program-transfo=* | --program-transf=* \
1108 | --program-trans=* | --program-tran=* \
1109 | --progr-tra=* | --program-tr=* | --program-t=*)
1110 program_transform_name=$ac_optarg ;;
1111
1112 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1113 ac_prev=pdfdir ;;
1114 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1115 pdfdir=$ac_optarg ;;
1116
1117 -psdir | --psdir | --psdi | --psd | --ps)
1118 ac_prev=psdir ;;
1119 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1120 psdir=$ac_optarg ;;
1121
1122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123 | -silent | --silent | --silen | --sile | --sil)
1124 silent=yes ;;
1125
1126 -runstatedir | --runstatedir | --runstatedi | --runstated \
1127 | --runstate | --runstat | --runsta | --runst | --runs \
1128 | --run | --ru | --r)
1129 ac_prev=runstatedir ;;
1130 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1131 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1132 | --run=* | --ru=* | --r=*)
1133 runstatedir=$ac_optarg ;;
1134
1135 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1136 ac_prev=sbindir ;;
1137 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1138 | --sbi=* | --sb=*)
1139 sbindir=$ac_optarg ;;
1140
1141 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1142 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1143 | --sharedst | --shareds | --shared | --share | --shar \
1144 | --sha | --sh)
1145 ac_prev=sharedstatedir ;;
1146 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1147 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1148 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1149 | --sha=* | --sh=*)
1150 sharedstatedir=$ac_optarg ;;
1151
1152 -site | --site | --sit)
1153 ac_prev=site ;;
1154 -site=* | --site=* | --sit=*)
1155 site=$ac_optarg ;;
1156
1157 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1158 ac_prev=srcdir ;;
1159 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1160 srcdir=$ac_optarg ;;
1161
1162 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1163 | --syscon | --sysco | --sysc | --sys | --sy)
1164 ac_prev=sysconfdir ;;
1165 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1166 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1167 sysconfdir=$ac_optarg ;;
1168
1169 -target | --target | --targe | --targ | --tar | --ta | --t)
1170 ac_prev=target_alias ;;
1171 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1172 target_alias=$ac_optarg ;;
1173
1174 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1175 verbose=yes ;;
1176
1177 -version | --version | --versio | --versi | --vers | -V)
1178 ac_init_version=: ;;
1179
1180 -with-* | --with-*)
1181 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error $? "invalid package name: \`$ac_useropt'"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1188 *"
1189 "with_$ac_useropt"
1190 "*) ;;
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1193 esac
1194 eval with_$ac_useropt=\$ac_optarg ;;
1195
1196 -without-* | --without-*)
1197 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1198 # Reject names that are not valid shell variable names.
1199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200 as_fn_error $? "invalid package name: \`$ac_useropt'"
1201 ac_useropt_orig=$ac_useropt
1202 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1203 case $ac_user_opts in
1204 *"
1205 "with_$ac_useropt"
1206 "*) ;;
1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1208 ac_unrecognized_sep=', ';;
1209 esac
1210 eval with_$ac_useropt=no ;;
1211
1212 --x)
1213 # Obsolete; use --with-x.
1214 with_x=yes ;;
1215
1216 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1217 | --x-incl | --x-inc | --x-in | --x-i)
1218 ac_prev=x_includes ;;
1219 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1220 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1221 x_includes=$ac_optarg ;;
1222
1223 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1224 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1225 ac_prev=x_libraries ;;
1226 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1227 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1228 x_libraries=$ac_optarg ;;
1229
1230 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1231 Try \`$0 --help' for more information"
1232 ;;
1233
1234 *=*)
1235 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1236 # Reject names that are not valid shell variable names.
1237 case $ac_envvar in #(
1238 '' | [0-9]* | *[!_$as_cr_alnum]* )
1239 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1240 esac
1241 eval $ac_envvar=\$ac_optarg
1242 export $ac_envvar ;;
1243
1244 *)
1245 # FIXME: should be removed in autoconf 3.0.
1246 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1247 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1249 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1250 ;;
1251
1252 esac
1253 done
1254
1255 if test -n "$ac_prev"; then
1256 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1257 as_fn_error $? "missing argument to $ac_option"
1258 fi
1259
1260 if test -n "$ac_unrecognized_opts"; then
1261 case $enable_option_checking in
1262 no) ;;
1263 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1264 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1265 esac
1266 fi
1267
1268 # Check all directory arguments for consistency.
1269 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1270 datadir sysconfdir sharedstatedir localstatedir includedir \
1271 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1272 libdir localedir mandir runstatedir
1273 do
1274 eval ac_val=\$$ac_var
1275 # Remove trailing slashes.
1276 case $ac_val in
1277 */ )
1278 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1279 eval $ac_var=\$ac_val;;
1280 esac
1281 # Be sure to have absolute directory names.
1282 case $ac_val in
1283 [\\/$]* | ?:[\\/]* ) continue;;
1284 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1285 esac
1286 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1287 done
1288
1289 # There might be people who depend on the old broken behavior: `$host'
1290 # used to hold the argument of --host etc.
1291 # FIXME: To remove some day.
1292 build=$build_alias
1293 host=$host_alias
1294 target=$target_alias
1295
1296 # FIXME: To remove some day.
1297 if test "x$host_alias" != x; then
1298 if test "x$build_alias" = x; then
1299 cross_compiling=maybe
1300 elif test "x$build_alias" != "x$host_alias"; then
1301 cross_compiling=yes
1302 fi
1303 fi
1304
1305 ac_tool_prefix=
1306 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1307
1308 test "$silent" = yes && exec 6>/dev/null
1309
1310
1311 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1312 ac_ls_di=`ls -di .` &&
1313 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1314 as_fn_error $? "working directory cannot be determined"
1315 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1316 as_fn_error $? "pwd does not report name of working directory"
1317
1318
1319 # Find the source files, if location was not specified.
1320 if test -z "$srcdir"; then
1321 ac_srcdir_defaulted=yes
1322 # Try the directory containing this script, then the parent directory.
1323 ac_confdir=`$as_dirname -- "$as_myself" ||
1324 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1325 X"$as_myself" : 'X\(//\)[^/]' \| \
1326 X"$as_myself" : 'X\(//\)$' \| \
1327 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1328 printf "%s\n" X"$as_myself" |
1329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\/\)[^/].*/{
1334 s//\1/
1335 q
1336 }
1337 /^X\(\/\/\)$/{
1338 s//\1/
1339 q
1340 }
1341 /^X\(\/\).*/{
1342 s//\1/
1343 q
1344 }
1345 s/.*/./; q'`
1346 srcdir=$ac_confdir
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348 srcdir=..
1349 fi
1350 else
1351 ac_srcdir_defaulted=no
1352 fi
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1354 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1355 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1356 fi
1357 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1358 ac_abs_confdir=`(
1359 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1360 pwd)`
1361 # When building in place, set srcdir=.
1362 if test "$ac_abs_confdir" = "$ac_pwd"; then
1363 srcdir=.
1364 fi
1365 # Remove unnecessary trailing slashes from srcdir.
1366 # Double slashes in file names in object file debugging info
1367 # mess up M-x gdb in Emacs.
1368 case $srcdir in
1369 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1370 esac
1371 for ac_var in $ac_precious_vars; do
1372 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_env_${ac_var}_value=\$${ac_var}
1374 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1375 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1376 done
1377
1378 #
1379 # Report the --help message.
1380 #
1381 if test "$ac_init_help" = "long"; then
1382 # Omit some internal or obsolete options to make the list less imposing.
1383 # This message is too long to be a string in the A/UX 3.1 sh.
1384 cat <<_ACEOF
1385 \`configure' configures fcml 1.3.0 to adapt to many kinds of systems.
1386
1387 Usage: $0 [OPTION]... [VAR=VALUE]...
1388
1389 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1390 VAR=VALUE. See below for descriptions of some of the useful variables.
1391
1392 Defaults for the options are specified in brackets.
1393
1394 Configuration:
1395 -h, --help display this help and exit
1396 --help=short display options specific to this package
1397 --help=recursive display the short help of all the included packages
1398 -V, --version display version information and exit
1399 -q, --quiet, --silent do not print \`checking ...' messages
1400 --cache-file=FILE cache test results in FILE [disabled]
1401 -C, --config-cache alias for \`--cache-file=config.cache'
1402 -n, --no-create do not create output files
1403 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1404
1405 Installation directories:
1406 --prefix=PREFIX install architecture-independent files in PREFIX
1407 [$ac_default_prefix]
1408 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1409 [PREFIX]
1410
1411 By default, \`make install' will install all the files in
1412 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1413 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1414 for instance \`--prefix=\$HOME'.
1415
1416 For better control, use the options below.
1417
1418 Fine tuning of the installation directories:
1419 --bindir=DIR user executables [EPREFIX/bin]
1420 --sbindir=DIR system admin executables [EPREFIX/sbin]
1421 --libexecdir=DIR program executables [EPREFIX/libexec]
1422 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1423 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1424 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1425 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1426 --libdir=DIR object code libraries [EPREFIX/lib]
1427 --includedir=DIR C header files [PREFIX/include]
1428 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1429 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1430 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1431 --infodir=DIR info documentation [DATAROOTDIR/info]
1432 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1433 --mandir=DIR man documentation [DATAROOTDIR/man]
1434 --docdir=DIR documentation root [DATAROOTDIR/doc/fcml]
1435 --htmldir=DIR html documentation [DOCDIR]
1436 --dvidir=DIR dvi documentation [DOCDIR]
1437 --pdfdir=DIR pdf documentation [DOCDIR]
1438 --psdir=DIR ps documentation [DOCDIR]
1439 _ACEOF
1440
1441 cat <<\_ACEOF
1442
1443 Program names:
1444 --program-prefix=PREFIX prepend PREFIX to installed program names
1445 --program-suffix=SUFFIX append SUFFIX to installed program names
1446 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1447
1448 System types:
1449 --build=BUILD configure for building on BUILD [guessed]
1450 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1451 _ACEOF
1452 fi
1453
1454 if test -n "$ac_init_help"; then
1455 case $ac_init_help in
1456 short | recursive ) echo "Configuration of fcml 1.3.0:";;
1457 esac
1458 cat <<\_ACEOF
1459
1460 Optional Features:
1461 --disable-option-checking ignore unrecognized --enable/--with options
1462 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1463 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1464 --enable-silent-rules less verbose build output (undo: "make V=1")
1465 --disable-silent-rules verbose build output (undo: "make V=0")
1466 --enable-shared[=PKGS] build shared libraries [default=yes]
1467 --enable-static[=PKGS] build static libraries [default=yes]
1468 --enable-fast-install[=PKGS]
1469 optimize for fast installation [default=yes]
1470 --enable-dependency-tracking
1471 do not reject slow dependency extractors
1472 --disable-dependency-tracking
1473 speeds up one-time build
1474 --disable-libtool-lock avoid locking (might break parallel builds)
1475 --enable-debug enable debug code [default=no]
1476 --disable-cpp-wrapper disables c++ wrapper tests
1477
1478 Optional Packages:
1479 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1480 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1481 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1482 both]
1483 --with-aix-soname=aix|svr4|both
1484 shared library versioning (aka "SONAME") variant to
1485 provide on AIX, [default=aix].
1486 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1487 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1488 compiler's sysroot if not specified).
1489
1490 Some influential environment variables:
1491 CC C compiler command
1492 CFLAGS C compiler flags
1493 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1494 nonstandard directory <lib dir>
1495 LIBS libraries to pass to the linker, e.g. -l<library>
1496 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1497 you have headers in a nonstandard directory <include dir>
1498 LT_SYS_LIBRARY_PATH
1499 User-defined run-time library search path.
1500 CXX C++ compiler command
1501 CXXFLAGS C++ compiler flags
1502 CXXCPP C++ preprocessor
1503 CPP C preprocessor
1504 YACC The `Yet Another Compiler Compiler' implementation to use.
1505 Defaults to the first program found out of: `bison -y', `byacc',
1506 `yacc'.
1507 YFLAGS The list of arguments that will be passed by default to $YACC.
1508 This script will default YFLAGS to the empty string to avoid a
1509 default value of `-d' given by some make applications.
1510
1511 Use these variables to override the choices made by `configure' or to help
1512 it to find libraries and programs with nonstandard names/locations.
1513
1514 Report bugs to <[email protected]>.
1515 _ACEOF
1516 ac_status=$?
1517 fi
1518
1519 if test "$ac_init_help" = "recursive"; then
1520 # If there are subdirs, report their specific --help.
1521 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1522 test -d "$ac_dir" ||
1523 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1524 continue
1525 ac_builddir=.
1526
1527 case "$ac_dir" in
1528 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529 *)
1530 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1531 # A ".." for each directory in $ac_dir_suffix.
1532 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1533 case $ac_top_builddir_sub in
1534 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1536 esac ;;
1537 esac
1538 ac_abs_top_builddir=$ac_pwd
1539 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1540 # for backward compatibility:
1541 ac_top_builddir=$ac_top_build_prefix
1542
1543 case $srcdir in
1544 .) # We are building in place.
1545 ac_srcdir=.
1546 ac_top_srcdir=$ac_top_builddir_sub
1547 ac_abs_top_srcdir=$ac_pwd ;;
1548 [\\/]* | ?:[\\/]* ) # Absolute name.
1549 ac_srcdir=$srcdir$ac_dir_suffix;
1550 ac_top_srcdir=$srcdir
1551 ac_abs_top_srcdir=$srcdir ;;
1552 *) # Relative name.
1553 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1554 ac_top_srcdir=$ac_top_build_prefix$srcdir
1555 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1556 esac
1557 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1558
1559 cd "$ac_dir" || { ac_status=$?; continue; }
1560 # Check for configure.gnu first; this name is used for a wrapper for
1561 # Metaconfig's "Configure" on case-insensitive file systems.
1562 if test -f "$ac_srcdir/configure.gnu"; then
1563 echo &&
1564 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1565 elif test -f "$ac_srcdir/configure"; then
1566 echo &&
1567 $SHELL "$ac_srcdir/configure" --help=recursive
1568 else
1569 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1570 fi || ac_status=$?
1571 cd "$ac_pwd" || { ac_status=$?; break; }
1572 done
1573 fi
1574
1575 test -n "$ac_init_help" && exit $ac_status
1576 if $ac_init_version; then
1577 cat <<\_ACEOF
1578 fcml configure 1.3.0
1579 generated by GNU Autoconf 2.71
1580
1581 Copyright (C) 2021 Free Software Foundation, Inc.
1582 This configure script is free software; the Free Software Foundation
1583 gives unlimited permission to copy, distribute and modify it.
1584 _ACEOF
1585 exit
1586 fi
1587
1588 ## ------------------------ ##
1589 ## Autoconf initialization. ##
1590 ## ------------------------ ##
1591
1592 # ac_fn_c_try_compile LINENO
1593 # --------------------------
1594 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1595 ac_fn_c_try_compile ()
1596 {
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 rm -f conftest.$ac_objext conftest.beam
1599 if { { ac_try="$ac_compile"
1600 case "(($ac_try" in
1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602 *) ac_try_echo=$ac_try;;
1603 esac
1604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605 printf "%s\n" "$ac_try_echo"; } >&5
1606 (eval "$ac_compile") 2>conftest.err
1607 ac_status=$?
1608 if test -s conftest.err; then
1609 grep -v '^ *+' conftest.err >conftest.er1
1610 cat conftest.er1 >&5
1611 mv -f conftest.er1 conftest.err
1612 fi
1613 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614 test $ac_status = 0; } && {
1615 test -z "$ac_c_werror_flag" ||
1616 test ! -s conftest.err
1617 } && test -s conftest.$ac_objext
1618 then :
1619 ac_retval=0
1620 else $as_nop
1621 printf "%s\n" "$as_me: failed program was:" >&5
1622 sed 's/^/| /' conftest.$ac_ext >&5
1623
1624 ac_retval=1
1625 fi
1626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627 as_fn_set_status $ac_retval
1628
1629 } # ac_fn_c_try_compile
1630
1631 # ac_fn_c_try_link LINENO
1632 # -----------------------
1633 # Try to link conftest.$ac_ext, and return whether this succeeded.
1634 ac_fn_c_try_link ()
1635 {
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1638 if { { ac_try="$ac_link"
1639 case "(($ac_try" in
1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641 *) ac_try_echo=$ac_try;;
1642 esac
1643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644 printf "%s\n" "$ac_try_echo"; } >&5
1645 (eval "$ac_link") 2>conftest.err
1646 ac_status=$?
1647 if test -s conftest.err; then
1648 grep -v '^ *+' conftest.err >conftest.er1
1649 cat conftest.er1 >&5
1650 mv -f conftest.er1 conftest.err
1651 fi
1652 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653 test $ac_status = 0; } && {
1654 test -z "$ac_c_werror_flag" ||
1655 test ! -s conftest.err
1656 } && test -s conftest$ac_exeext && {
1657 test "$cross_compiling" = yes ||
1658 test -x conftest$ac_exeext
1659 }
1660 then :
1661 ac_retval=0
1662 else $as_nop
1663 printf "%s\n" "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1665
1666 ac_retval=1
1667 fi
1668 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1669 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1670 # interfere with the next link command; also delete a directory that is
1671 # left behind by Apple's compiler. We do this before executing the actions.
1672 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674 as_fn_set_status $ac_retval
1675
1676 } # ac_fn_c_try_link
1677
1678 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1679 # -------------------------------------------------------
1680 # Tests whether HEADER exists and can be compiled using the include files in
1681 # INCLUDES, setting the cache variable VAR accordingly.
1682 ac_fn_c_check_header_compile ()
1683 {
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1686 printf %s "checking for $2... " >&6; }
1687 if eval test \${$3+y}
1688 then :
1689 printf %s "(cached) " >&6
1690 else $as_nop
1691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1692 /* end confdefs.h. */
1693 $4
1694 #include <$2>
1695 _ACEOF
1696 if ac_fn_c_try_compile "$LINENO"
1697 then :
1698 eval "$3=yes"
1699 else $as_nop
1700 eval "$3=no"
1701 fi
1702 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1703 fi
1704 eval ac_res=\$$3
1705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1706 printf "%s\n" "$ac_res" >&6; }
1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708
1709 } # ac_fn_c_check_header_compile
1710
1711 # ac_fn_c_check_func LINENO FUNC VAR
1712 # ----------------------------------
1713 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1714 ac_fn_c_check_func ()
1715 {
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1718 printf %s "checking for $2... " >&6; }
1719 if eval test \${$3+y}
1720 then :
1721 printf %s "(cached) " >&6
1722 else $as_nop
1723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1724 /* end confdefs.h. */
1725 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1727 #define $2 innocuous_$2
1728
1729 /* System header to define __stub macros and hopefully few prototypes,
1730 which can conflict with char $2 (); below. */
1731
1732 #include <limits.h>
1733 #undef $2
1734
1735 /* Override any GCC internal prototype to avoid an error.
1736 Use char because int might match the return type of a GCC
1737 builtin and then its argument prototype would still apply. */
1738 #ifdef __cplusplus
1739 extern "C"
1740 #endif
1741 char $2 ();
1742 /* The GNU C library defines this for functions which it implements
1743 to always fail with ENOSYS. Some functions are actually named
1744 something starting with __ and the normal name is an alias. */
1745 #if defined __stub_$2 || defined __stub___$2
1746 choke me
1747 #endif
1748
1749 int
1750 main (void)
1751 {
1752 return $2 ();
1753 ;
1754 return 0;
1755 }
1756 _ACEOF
1757 if ac_fn_c_try_link "$LINENO"
1758 then :
1759 eval "$3=yes"
1760 else $as_nop
1761 eval "$3=no"
1762 fi
1763 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1764 conftest$ac_exeext conftest.$ac_ext
1765 fi
1766 eval ac_res=\$$3
1767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768 printf "%s\n" "$ac_res" >&6; }
1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770
1771 } # ac_fn_c_check_func
1772
1773 # ac_fn_cxx_try_compile LINENO
1774 # ----------------------------
1775 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1776 ac_fn_cxx_try_compile ()
1777 {
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 rm -f conftest.$ac_objext conftest.beam
1780 if { { ac_try="$ac_compile"
1781 case "(($ac_try" in
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1784 esac
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 printf "%s\n" "$ac_try_echo"; } >&5
1787 (eval "$ac_compile") 2>conftest.err
1788 ac_status=$?
1789 if test -s conftest.err; then
1790 grep -v '^ *+' conftest.err >conftest.er1
1791 cat conftest.er1 >&5
1792 mv -f conftest.er1 conftest.err
1793 fi
1794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795 test $ac_status = 0; } && {
1796 test -z "$ac_cxx_werror_flag" ||
1797 test ! -s conftest.err
1798 } && test -s conftest.$ac_objext
1799 then :
1800 ac_retval=0
1801 else $as_nop
1802 printf "%s\n" "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.$ac_ext >&5
1804
1805 ac_retval=1
1806 fi
1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808 as_fn_set_status $ac_retval
1809
1810 } # ac_fn_cxx_try_compile
1811
1812 # ac_fn_cxx_try_cpp LINENO
1813 # ------------------------
1814 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1815 ac_fn_cxx_try_cpp ()
1816 {
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 if { { ac_try="$ac_cpp conftest.$ac_ext"
1819 case "(($ac_try" in
1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1822 esac
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 printf "%s\n" "$ac_try_echo"; } >&5
1825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1826 ac_status=$?
1827 if test -s conftest.err; then
1828 grep -v '^ *+' conftest.err >conftest.er1
1829 cat conftest.er1 >&5
1830 mv -f conftest.er1 conftest.err
1831 fi
1832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } > conftest.i && {
1834 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1835 test ! -s conftest.err
1836 }
1837 then :
1838 ac_retval=0
1839 else $as_nop
1840 printf "%s\n" "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1842
1843 ac_retval=1
1844 fi
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846 as_fn_set_status $ac_retval
1847
1848 } # ac_fn_cxx_try_cpp
1849
1850 # ac_fn_cxx_try_link LINENO
1851 # -------------------------
1852 # Try to link conftest.$ac_ext, and return whether this succeeded.
1853 ac_fn_cxx_try_link ()
1854 {
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1857 if { { ac_try="$ac_link"
1858 case "(($ac_try" in
1859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860 *) ac_try_echo=$ac_try;;
1861 esac
1862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 printf "%s\n" "$ac_try_echo"; } >&5
1864 (eval "$ac_link") 2>conftest.err
1865 ac_status=$?
1866 if test -s conftest.err; then
1867 grep -v '^ *+' conftest.err >conftest.er1
1868 cat conftest.er1 >&5
1869 mv -f conftest.er1 conftest.err
1870 fi
1871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; } && {
1873 test -z "$ac_cxx_werror_flag" ||
1874 test ! -s conftest.err
1875 } && test -s conftest$ac_exeext && {
1876 test "$cross_compiling" = yes ||
1877 test -x conftest$ac_exeext
1878 }
1879 then :
1880 ac_retval=0
1881 else $as_nop
1882 printf "%s\n" "$as_me: failed program was:" >&5
1883 sed 's/^/| /' conftest.$ac_ext >&5
1884
1885 ac_retval=1
1886 fi
1887 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1888 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1889 # interfere with the next link command; also delete a directory that is
1890 # left behind by Apple's compiler. We do this before executing the actions.
1891 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893 as_fn_set_status $ac_retval
1894
1895 } # ac_fn_cxx_try_link
1896
1897 # ac_fn_c_try_cpp LINENO
1898 # ----------------------
1899 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1900 ac_fn_c_try_cpp ()
1901 {
1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903 if { { ac_try="$ac_cpp conftest.$ac_ext"
1904 case "(($ac_try" in
1905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1906 *) ac_try_echo=$ac_try;;
1907 esac
1908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1909 printf "%s\n" "$ac_try_echo"; } >&5
1910 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1911 ac_status=$?
1912 if test -s conftest.err; then
1913 grep -v '^ *+' conftest.err >conftest.er1
1914 cat conftest.er1 >&5
1915 mv -f conftest.er1 conftest.err
1916 fi
1917 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918 test $ac_status = 0; } > conftest.i && {
1919 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1920 test ! -s conftest.err
1921 }
1922 then :
1923 ac_retval=0
1924 else $as_nop
1925 printf "%s\n" "$as_me: failed program was:" >&5
1926 sed 's/^/| /' conftest.$ac_ext >&5
1927
1928 ac_retval=1
1929 fi
1930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931 as_fn_set_status $ac_retval
1932
1933 } # ac_fn_c_try_cpp
1934
1935 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1936 # -------------------------------------------
1937 # Tests whether TYPE exists after having included INCLUDES, setting cache
1938 # variable VAR accordingly.
1939 ac_fn_c_check_type ()
1940 {
1941 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1943 printf %s "checking for $2... " >&6; }
1944 if eval test \${$3+y}
1945 then :
1946 printf %s "(cached) " >&6
1947 else $as_nop
1948 eval "$3=no"
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1951 $4
1952 int
1953 main (void)
1954 {
1955 if (sizeof ($2))
1956 return 0;
1957 ;
1958 return 0;
1959 }
1960 _ACEOF
1961 if ac_fn_c_try_compile "$LINENO"
1962 then :
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1965 $4
1966 int
1967 main (void)
1968 {
1969 if (sizeof (($2)))
1970 return 0;
1971 ;
1972 return 0;
1973 }
1974 _ACEOF
1975 if ac_fn_c_try_compile "$LINENO"
1976 then :
1977
1978 else $as_nop
1979 eval "$3=yes"
1980 fi
1981 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1982 fi
1983 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1984 fi
1985 eval ac_res=\$$3
1986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987 printf "%s\n" "$ac_res" >&6; }
1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989
1990 } # ac_fn_c_check_type
1991
1992 # ac_fn_c_try_run LINENO
1993 # ----------------------
1994 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1995 # executables *can* be run.
1996 ac_fn_c_try_run ()
1997 {
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 if { { ac_try="$ac_link"
2000 case "(($ac_try" in
2001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2002 *) ac_try_echo=$ac_try;;
2003 esac
2004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2005 printf "%s\n" "$ac_try_echo"; } >&5
2006 (eval "$ac_link") 2>&5
2007 ac_status=$?
2008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2010 { { case "(($ac_try" in
2011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2012 *) ac_try_echo=$ac_try;;
2013 esac
2014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2015 printf "%s\n" "$ac_try_echo"; } >&5
2016 (eval "$ac_try") 2>&5
2017 ac_status=$?
2018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2019 test $ac_status = 0; }; }
2020 then :
2021 ac_retval=0
2022 else $as_nop
2023 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2024 printf "%s\n" "$as_me: failed program was:" >&5
2025 sed 's/^/| /' conftest.$ac_ext >&5
2026
2027 ac_retval=$ac_status
2028 fi
2029 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2031 as_fn_set_status $ac_retval
2032
2033 } # ac_fn_c_try_run
2034
2035 # ac_fn_c_find_intX_t LINENO BITS VAR
2036 # -----------------------------------
2037 # Finds a signed integer type with width BITS, setting cache variable VAR
2038 # accordingly.
2039 ac_fn_c_find_intX_t ()
2040 {
2041 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2043 printf %s "checking for int$2_t... " >&6; }
2044 if eval test \${$3+y}
2045 then :
2046 printf %s "(cached) " >&6
2047 else $as_nop
2048 eval "$3=no"
2049 # Order is important - never check a type that is potentially smaller
2050 # than half of the expected target width.
2051 for ac_type in int$2_t 'int' 'long int' \
2052 'long long int' 'short int' 'signed char'; do
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2055 $ac_includes_default
2056 enum { N = $2 / 2 - 1 };
2057 int
2058 main (void)
2059 {
2060 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2061 test_array [0] = 0;
2062 return test_array [0];
2063
2064 ;
2065 return 0;
2066 }
2067 _ACEOF
2068 if ac_fn_c_try_compile "$LINENO"
2069 then :
2070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071 /* end confdefs.h. */
2072 $ac_includes_default
2073 enum { N = $2 / 2 - 1 };
2074 int
2075 main (void)
2076 {
2077 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2078 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2079 test_array [0] = 0;
2080 return test_array [0];
2081
2082 ;
2083 return 0;
2084 }
2085 _ACEOF
2086 if ac_fn_c_try_compile "$LINENO"
2087 then :
2088
2089 else $as_nop
2090 case $ac_type in #(
2091 int$2_t) :
2092 eval "$3=yes" ;; #(
2093 *) :
2094 eval "$3=\$ac_type" ;;
2095 esac
2096 fi
2097 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2098 fi
2099 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2100 if eval test \"x\$"$3"\" = x"no"
2101 then :
2102
2103 else $as_nop
2104 break
2105 fi
2106 done
2107 fi
2108 eval ac_res=\$$3
2109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2110 printf "%s\n" "$ac_res" >&6; }
2111 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2112
2113 } # ac_fn_c_find_intX_t
2114
2115 # ac_fn_c_find_uintX_t LINENO BITS VAR
2116 # ------------------------------------
2117 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2118 # accordingly.
2119 ac_fn_c_find_uintX_t ()
2120 {
2121 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2123 printf %s "checking for uint$2_t... " >&6; }
2124 if eval test \${$3+y}
2125 then :
2126 printf %s "(cached) " >&6
2127 else $as_nop
2128 eval "$3=no"
2129 # Order is important - never check a type that is potentially smaller
2130 # than half of the expected target width.
2131 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2132 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h. */
2135 $ac_includes_default
2136 int
2137 main (void)
2138 {
2139 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2140 test_array [0] = 0;
2141 return test_array [0];
2142
2143 ;
2144 return 0;
2145 }
2146 _ACEOF
2147 if ac_fn_c_try_compile "$LINENO"
2148 then :
2149 case $ac_type in #(
2150 uint$2_t) :
2151 eval "$3=yes" ;; #(
2152 *) :
2153 eval "$3=\$ac_type" ;;
2154 esac
2155 fi
2156 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2157 if eval test \"x\$"$3"\" = x"no"
2158 then :
2159
2160 else $as_nop
2161 break
2162 fi
2163 done
2164 fi
2165 eval ac_res=\$$3
2166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2167 printf "%s\n" "$ac_res" >&6; }
2168 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2169
2170 } # ac_fn_c_find_uintX_t
2171 ac_configure_args_raw=
2172 for ac_arg
2173 do
2174 case $ac_arg in
2175 *\'*)
2176 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2177 esac
2178 as_fn_append ac_configure_args_raw " '$ac_arg'"
2179 done
2180
2181 case $ac_configure_args_raw in
2182 *$as_nl*)
2183 ac_safe_unquote= ;;
2184 *)
2185 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2186 ac_unsafe_a="$ac_unsafe_z#~"
2187 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2188 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2189 esac
2190
2191 cat >config.log <<_ACEOF
2192 This file contains any messages produced by compilers while
2193 running configure, to aid debugging if configure makes a mistake.
2194
2195 It was created by fcml $as_me 1.3.0, which was
2196 generated by GNU Autoconf 2.71. Invocation command line was
2197
2198 $ $0$ac_configure_args_raw
2199
2200 _ACEOF
2201 exec 5>>config.log
2202 {
2203 cat <<_ASUNAME
2204 ## --------- ##
2205 ## Platform. ##
2206 ## --------- ##
2207
2208 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2209 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2210 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2211 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2212 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2213
2214 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2215 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2216
2217 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2218 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2219 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2220 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2221 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2222 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2223 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2224
2225 _ASUNAME
2226
2227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228 for as_dir in $PATH
2229 do
2230 IFS=$as_save_IFS
2231 case $as_dir in #(((
2232 '') as_dir=./ ;;
2233 */) ;;
2234 *) as_dir=$as_dir/ ;;
2235 esac
2236 printf "%s\n" "PATH: $as_dir"
2237 done
2238 IFS=$as_save_IFS
2239
2240 } >&5
2241
2242 cat >&5 <<_ACEOF
2243
2244
2245 ## ----------- ##
2246 ## Core tests. ##
2247 ## ----------- ##
2248
2249 _ACEOF
2250
2251
2252 # Keep a trace of the command line.
2253 # Strip out --no-create and --no-recursion so they do not pile up.
2254 # Strip out --silent because we don't want to record it for future runs.
2255 # Also quote any args containing shell meta-characters.
2256 # Make two passes to allow for proper duplicate-argument suppression.
2257 ac_configure_args=
2258 ac_configure_args0=
2259 ac_configure_args1=
2260 ac_must_keep_next=false
2261 for ac_pass in 1 2
2262 do
2263 for ac_arg
2264 do
2265 case $ac_arg in
2266 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2267 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2268 | -silent | --silent | --silen | --sile | --sil)
2269 continue ;;
2270 *\'*)
2271 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2272 esac
2273 case $ac_pass in
2274 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2275 2)
2276 as_fn_append ac_configure_args1 " '$ac_arg'"
2277 if test $ac_must_keep_next = true; then
2278 ac_must_keep_next=false # Got value, back to normal.
2279 else
2280 case $ac_arg in
2281 *=* | --config-cache | -C | -disable-* | --disable-* \
2282 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2283 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2284 | -with-* | --with-* | -without-* | --without-* | --x)
2285 case "$ac_configure_args0 " in
2286 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2287 esac
2288 ;;
2289 -* ) ac_must_keep_next=true ;;
2290 esac
2291 fi
2292 as_fn_append ac_configure_args " '$ac_arg'"
2293 ;;
2294 esac
2295 done
2296 done
2297 { ac_configure_args0=; unset ac_configure_args0;}
2298 { ac_configure_args1=; unset ac_configure_args1;}
2299
2300 # When interrupted or exit'd, cleanup temporary files, and complete
2301 # config.log. We remove comments because anyway the quotes in there
2302 # would cause problems or look ugly.
2303 # WARNING: Use '\'' to represent an apostrophe within the trap.
2304 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2305 trap 'exit_status=$?
2306 # Sanitize IFS.
2307 IFS=" "" $as_nl"
2308 # Save into config.log some information that might help in debugging.
2309 {
2310 echo
2311
2312 printf "%s\n" "## ---------------- ##
2313 ## Cache variables. ##
2314 ## ---------------- ##"
2315 echo
2316 # The following way of writing the cache mishandles newlines in values,
2317 (
2318 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2319 eval ac_val=\$$ac_var
2320 case $ac_val in #(
2321 *${as_nl}*)
2322 case $ac_var in #(
2323 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2324 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2325 esac
2326 case $ac_var in #(
2327 _ | IFS | as_nl) ;; #(
2328 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2329 *) { eval $ac_var=; unset $ac_var;} ;;
2330 esac ;;
2331 esac
2332 done
2333 (set) 2>&1 |
2334 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2335 *${as_nl}ac_space=\ *)
2336 sed -n \
2337 "s/'\''/'\''\\\\'\'''\''/g;
2338 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2339 ;; #(
2340 *)
2341 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2342 ;;
2343 esac |
2344 sort
2345 )
2346 echo
2347
2348 printf "%s\n" "## ----------------- ##
2349 ## Output variables. ##
2350 ## ----------------- ##"
2351 echo
2352 for ac_var in $ac_subst_vars
2353 do
2354 eval ac_val=\$$ac_var
2355 case $ac_val in
2356 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2357 esac
2358 printf "%s\n" "$ac_var='\''$ac_val'\''"
2359 done | sort
2360 echo
2361
2362 if test -n "$ac_subst_files"; then
2363 printf "%s\n" "## ------------------- ##
2364 ## File substitutions. ##
2365 ## ------------------- ##"
2366 echo
2367 for ac_var in $ac_subst_files
2368 do
2369 eval ac_val=\$$ac_var
2370 case $ac_val in
2371 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2372 esac
2373 printf "%s\n" "$ac_var='\''$ac_val'\''"
2374 done | sort
2375 echo
2376 fi
2377
2378 if test -s confdefs.h; then
2379 printf "%s\n" "## ----------- ##
2380 ## confdefs.h. ##
2381 ## ----------- ##"
2382 echo
2383 cat confdefs.h
2384 echo
2385 fi
2386 test "$ac_signal" != 0 &&
2387 printf "%s\n" "$as_me: caught signal $ac_signal"
2388 printf "%s\n" "$as_me: exit $exit_status"
2389 } >&5
2390 rm -f core *.core core.conftest.* &&
2391 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2392 exit $exit_status
2393 ' 0
2394 for ac_signal in 1 2 13 15; do
2395 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2396 done
2397 ac_signal=0
2398
2399 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2400 rm -f -r conftest* confdefs.h
2401
2402 printf "%s\n" "/* confdefs.h */" > confdefs.h
2403
2404 # Predefined preprocessor variables.
2405
2406 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2407
2408 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2409
2410 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2411
2412 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2413
2414 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2415
2416 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2417
2418
2419 # Let the site file select an alternate cache file if it wants to.
2420 # Prefer an explicitly selected file to automatically selected ones.
2421 if test -n "$CONFIG_SITE"; then
2422 ac_site_files="$CONFIG_SITE"
2423 elif test "x$prefix" != xNONE; then
2424 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2425 else
2426 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2427 fi
2428
2429 for ac_site_file in $ac_site_files
2430 do
2431 case $ac_site_file in #(
2432 */*) :
2433 ;; #(
2434 *) :
2435 ac_site_file=./$ac_site_file ;;
2436 esac
2437 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2439 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2440 sed 's/^/| /' "$ac_site_file" >&5
2441 . "$ac_site_file" \
2442 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2443 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2444 as_fn_error $? "failed to load site script $ac_site_file
2445 See \`config.log' for more details" "$LINENO" 5; }
2446 fi
2447 done
2448
2449 if test -r "$cache_file"; then
2450 # Some versions of bash will fail to source /dev/null (special files
2451 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2452 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2454 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2455 case $cache_file in
2456 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2457 *) . "./$cache_file";;
2458 esac
2459 fi
2460 else
2461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2462 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2463 >$cache_file
2464 fi
2465
2466 # Test code for whether the C compiler supports C89 (global declarations)
2467 ac_c_conftest_c89_globals='
2468 /* Does the compiler advertise C89 conformance?
2469 Do not test the value of __STDC__, because some compilers set it to 0
2470 while being otherwise adequately conformant. */
2471 #if !defined __STDC__
2472 # error "Compiler does not advertise C89 conformance"
2473 #endif
2474
2475 #include <stddef.h>
2476 #include <stdarg.h>
2477 struct stat;
2478 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2479 struct buf { int x; };
2480 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2481 static char *e (p, i)
2482 char **p;
2483 int i;
2484 {
2485 return p[i];
2486 }
2487 static char *f (char * (*g) (char **, int), char **p, ...)
2488 {
2489 char *s;
2490 va_list v;
2491 va_start (v,p);
2492 s = g (p, va_arg (v,int));
2493 va_end (v);
2494 return s;
2495 }
2496
2497 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2498 function prototypes and stuff, but not \xHH hex character constants.
2499 These do not provoke an error unfortunately, instead are silently treated
2500 as an "x". The following induces an error, until -std is added to get
2501 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2502 array size at least. It is necessary to write \x00 == 0 to get something
2503 that is true only with -std. */
2504 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2505
2506 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2507 inside strings and character constants. */
2508 #define FOO(x) '\''x'\''
2509 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2510
2511 int test (int i, double x);
2512 struct s1 {int (*f) (int a);};
2513 struct s2 {int (*f) (double a);};
2514 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2515 int, int);'
2516
2517 # Test code for whether the C compiler supports C89 (body of main).
2518 ac_c_conftest_c89_main='
2519 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2520 '
2521
2522 # Test code for whether the C compiler supports C99 (global declarations)
2523 ac_c_conftest_c99_globals='
2524 // Does the compiler advertise C99 conformance?
2525 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2526 # error "Compiler does not advertise C99 conformance"
2527 #endif
2528
2529 #include <stdbool.h>
2530 extern int puts (const char *);
2531 extern int printf (const char *, ...);
2532 extern int dprintf (int, const char *, ...);
2533 extern void *malloc (size_t);
2534
2535 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2536 // dprintf is used instead of fprintf to avoid needing to declare
2537 // FILE and stderr.
2538 #define debug(...) dprintf (2, __VA_ARGS__)
2539 #define showlist(...) puts (#__VA_ARGS__)
2540 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2541 static void
2542 test_varargs_macros (void)
2543 {
2544 int x = 1234;
2545 int y = 5678;
2546 debug ("Flag");
2547 debug ("X = %d\n", x);
2548 showlist (The first, second, and third items.);
2549 report (x>y, "x is %d but y is %d", x, y);
2550 }
2551
2552 // Check long long types.
2553 #define BIG64 18446744073709551615ull
2554 #define BIG32 4294967295ul
2555 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2556 #if !BIG_OK
2557 #error "your preprocessor is broken"
2558 #endif
2559 #if BIG_OK
2560 #else
2561 #error "your preprocessor is broken"
2562 #endif
2563 static long long int bignum = -9223372036854775807LL;
2564 static unsigned long long int ubignum = BIG64;
2565
2566 struct incomplete_array
2567 {
2568 int datasize;
2569 double data[];
2570 };
2571
2572 struct named_init {
2573 int number;
2574 const wchar_t *name;
2575 double average;
2576 };
2577
2578 typedef const char *ccp;
2579
2580 static inline int
2581 test_restrict (ccp restrict text)
2582 {
2583 // See if C++-style comments work.
2584 // Iterate through items via the restricted pointer.
2585 // Also check for declarations in for loops.
2586 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2587 continue;
2588 return 0;
2589 }
2590
2591 // Check varargs and va_copy.
2592 static bool
2593 test_varargs (const char *format, ...)
2594 {
2595 va_list args;
2596 va_start (args, format);
2597 va_list args_copy;
2598 va_copy (args_copy, args);
2599
2600 const char *str = "";
2601 int number = 0;
2602 float fnumber = 0;
2603
2604 while (*format)
2605 {
2606 switch (*format++)
2607 {
2608 case '\''s'\'': // string
2609 str = va_arg (args_copy, const char *);
2610 break;
2611 case '\''d'\'': // int
2612 number = va_arg (args_copy, int);
2613 break;
2614 case '\''f'\'': // float
2615 fnumber = va_arg (args_copy, double);
2616 break;
2617 default:
2618 break;
2619 }
2620 }
2621 va_end (args_copy);
2622 va_end (args);
2623
2624 return *str && number && fnumber;
2625 }
2626 '
2627
2628 # Test code for whether the C compiler supports C99 (body of main).
2629 ac_c_conftest_c99_main='
2630 // Check bool.
2631 _Bool success = false;
2632 success |= (argc != 0);
2633
2634 // Check restrict.
2635 if (test_restrict ("String literal") == 0)
2636 success = true;
2637 char *restrict newvar = "Another string";
2638
2639 // Check varargs.
2640 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2641 test_varargs_macros ();
2642
2643 // Check flexible array members.
2644 struct incomplete_array *ia =
2645 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2646 ia->datasize = 10;
2647 for (int i = 0; i < ia->datasize; ++i)
2648 ia->data[i] = i * 1.234;
2649
2650 // Check named initializers.
2651 struct named_init ni = {
2652 .number = 34,
2653 .name = L"Test wide string",
2654 .average = 543.34343,
2655 };
2656
2657 ni.number = 58;
2658
2659 int dynamic_array[ni.number];
2660 dynamic_array[0] = argv[0][0];
2661 dynamic_array[ni.number - 1] = 543;
2662
2663 // work around unused variable warnings
2664 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2665 || dynamic_array[ni.number - 1] != 543);
2666 '
2667
2668 # Test code for whether the C compiler supports C11 (global declarations)
2669 ac_c_conftest_c11_globals='
2670 // Does the compiler advertise C11 conformance?
2671 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2672 # error "Compiler does not advertise C11 conformance"
2673 #endif
2674
2675 // Check _Alignas.
2676 char _Alignas (double) aligned_as_double;
2677 char _Alignas (0) no_special_alignment;
2678 extern char aligned_as_int;
2679 char _Alignas (0) _Alignas (int) aligned_as_int;
2680
2681 // Check _Alignof.
2682 enum
2683 {
2684 int_alignment = _Alignof (int),
2685 int_array_alignment = _Alignof (int[100]),
2686 char_alignment = _Alignof (char)
2687 };
2688 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2689
2690 // Check _Noreturn.
2691 int _Noreturn does_not_return (void) { for (;;) continue; }
2692
2693 // Check _Static_assert.
2694 struct test_static_assert
2695 {
2696 int x;
2697 _Static_assert (sizeof (int) <= sizeof (long int),
2698 "_Static_assert does not work in struct");
2699 long int y;
2700 };
2701
2702 // Check UTF-8 literals.
2703 #define u8 syntax error!
2704 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2705
2706 // Check duplicate typedefs.
2707 typedef long *long_ptr;
2708 typedef long int *long_ptr;
2709 typedef long_ptr long_ptr;
2710
2711 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2712 struct anonymous
2713 {
2714 union {
2715 struct { int i; int j; };
2716 struct { int k; long int l; } w;
2717 };
2718 int m;
2719 } v1;
2720 '
2721
2722 # Test code for whether the C compiler supports C11 (body of main).
2723 ac_c_conftest_c11_main='
2724 _Static_assert ((offsetof (struct anonymous, i)
2725 == offsetof (struct anonymous, w.k)),
2726 "Anonymous union alignment botch");
2727 v1.i = 2;
2728 v1.w.k = 5;
2729 ok |= v1.i != 5;
2730 '
2731
2732 # Test code for whether the C compiler supports C11 (complete).
2733 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2734 ${ac_c_conftest_c99_globals}
2735 ${ac_c_conftest_c11_globals}
2736
2737 int
2738 main (int argc, char **argv)
2739 {
2740 int ok = 0;
2741 ${ac_c_conftest_c89_main}
2742 ${ac_c_conftest_c99_main}
2743 ${ac_c_conftest_c11_main}
2744 return ok;
2745 }
2746 "
2747
2748 # Test code for whether the C compiler supports C99 (complete).
2749 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2750 ${ac_c_conftest_c99_globals}
2751
2752 int
2753 main (int argc, char **argv)
2754 {
2755 int ok = 0;
2756 ${ac_c_conftest_c89_main}
2757 ${ac_c_conftest_c99_main}
2758 return ok;
2759 }
2760 "
2761
2762 # Test code for whether the C compiler supports C89 (complete).
2763 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2764
2765 int
2766 main (int argc, char **argv)
2767 {
2768 int ok = 0;
2769 ${ac_c_conftest_c89_main}
2770 return ok;
2771 }
2772 "
2773
2774 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2775 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2776 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2777 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2778 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2779 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2780 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2781 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2782 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2783 # Test code for whether the C++ compiler supports C++98 (global declarations)
2784 ac_cxx_conftest_cxx98_globals='
2785 // Does the compiler advertise C++98 conformance?
2786 #if !defined __cplusplus || __cplusplus < 199711L
2787 # error "Compiler does not advertise C++98 conformance"
2788 #endif
2789
2790 // These inclusions are to reject old compilers that
2791 // lack the unsuffixed header files.
2792 #include <cstdlib>
2793 #include <exception>
2794
2795 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2796 extern void assert (int);
2797 namespace std {
2798 extern int strcmp (const char *, const char *);
2799 }
2800
2801 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2802 using std::exception;
2803 using std::strcmp;
2804
2805 namespace {
2806
2807 void test_exception_syntax()
2808 {
2809 try {
2810 throw "test";
2811 } catch (const char *s) {
2812 // Extra parentheses suppress a warning when building autoconf itself,
2813 // due to lint rules shared with more typical C programs.
2814 assert (!(strcmp) (s, "test"));
2815 }
2816 }
2817
2818 template <typename T> struct test_template
2819 {
2820 T const val;
2821 explicit test_template(T t) : val(t) {}
2822 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2823 };
2824
2825 } // anonymous namespace
2826 '
2827
2828 # Test code for whether the C++ compiler supports C++98 (body of main)
2829 ac_cxx_conftest_cxx98_main='
2830 assert (argc);
2831 assert (! argv[0]);
2832 {
2833 test_exception_syntax ();
2834 test_template<double> tt (2.0);
2835 assert (tt.add (4) == 6.0);
2836 assert (true && !false);
2837 }
2838 '
2839
2840 # Test code for whether the C++ compiler supports C++11 (global declarations)
2841 ac_cxx_conftest_cxx11_globals='
2842 // Does the compiler advertise C++ 2011 conformance?
2843 #if !defined __cplusplus || __cplusplus < 201103L
2844 # error "Compiler does not advertise C++11 conformance"
2845 #endif
2846
2847 namespace cxx11test
2848 {
2849 constexpr int get_val() { return 20; }
2850
2851 struct testinit
2852 {
2853 int i;
2854 double d;
2855 };
2856
2857 class delegate
2858 {
2859 public:
2860 delegate(int n) : n(n) {}
2861 delegate(): delegate(2354) {}
2862
2863 virtual int getval() { return this->n; };
2864 protected:
2865 int n;
2866 };
2867
2868 class overridden : public delegate
2869 {
2870 public:
2871 overridden(int n): delegate(n) {}
2872 virtual int getval() override final { return this->n * 2; }
2873 };
2874
2875 class nocopy
2876 {
2877 public:
2878 nocopy(int i): i(i) {}
2879 nocopy() = default;
2880 nocopy(const nocopy&) = delete;
2881 nocopy & operator=(const nocopy&) = delete;
2882 private:
2883 int i;
2884 };
2885
2886 // for testing lambda expressions
2887 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2888 {
2889 return f(v);
2890 }
2891
2892 // for testing variadic templates and trailing return types
2893 template <typename V> auto sum(V first) -> V
2894 {
2895 return first;
2896 }
2897 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2898 {
2899 return first + sum(rest...);
2900 }
2901 }
2902 '
2903
2904 # Test code for whether the C++ compiler supports C++11 (body of main)
2905 ac_cxx_conftest_cxx11_main='
2906 {
2907 // Test auto and decltype
2908 auto a1 = 6538;
2909 auto a2 = 48573953.4;
2910 auto a3 = "String literal";
2911
2912 int total = 0;
2913 for (auto i = a3; *i; ++i) { total += *i; }
2914
2915 decltype(a2) a4 = 34895.034;
2916 }
2917 {
2918 // Test constexpr
2919 short sa[cxx11test::get_val()] = { 0 };
2920 }
2921 {
2922 // Test initializer lists
2923 cxx11test::testinit il = { 4323, 435234.23544 };
2924 }
2925 {
2926 // Test range-based for
2927 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2928 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2929 for (auto &x : array) { x += 23; }
2930 }
2931 {
2932 // Test lambda expressions
2933 using cxx11test::eval;
2934 assert (eval ([](int x) { return x*2; }, 21) == 42);
2935 double d = 2.0;
2936 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2937 assert (d == 5.0);
2938 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2939 assert (d == 5.0);
2940 }
2941 {
2942 // Test use of variadic templates
2943 using cxx11test::sum;
2944 auto a = sum(1);
2945 auto b = sum(1, 2);
2946 auto c = sum(1.0, 2.0, 3.0);
2947 }
2948 {
2949 // Test constructor delegation
2950 cxx11test::delegate d1;
2951 cxx11test::delegate d2();
2952 cxx11test::delegate d3(45);
2953 }
2954 {
2955 // Test override and final
2956 cxx11test::overridden o1(55464);
2957 }
2958 {
2959 // Test nullptr
2960 char *c = nullptr;
2961 }
2962 {
2963 // Test template brackets
2964 test_template<::test_template<int>> v(test_template<int>(12));
2965 }
2966 {
2967 // Unicode literals
2968 char const *utf8 = u8"UTF-8 string \u2500";
2969 char16_t const *utf16 = u"UTF-8 string \u2500";
2970 char32_t const *utf32 = U"UTF-32 string \u2500";
2971 }
2972 '
2973
2974 # Test code for whether the C compiler supports C++11 (complete).
2975 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2976 ${ac_cxx_conftest_cxx11_globals}
2977
2978 int
2979 main (int argc, char **argv)
2980 {
2981 int ok = 0;
2982 ${ac_cxx_conftest_cxx98_main}
2983 ${ac_cxx_conftest_cxx11_main}
2984 return ok;
2985 }
2986 "
2987
2988 # Test code for whether the C compiler supports C++98 (complete).
2989 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2990 int
2991 main (int argc, char **argv)
2992 {
2993 int ok = 0;
2994 ${ac_cxx_conftest_cxx98_main}
2995 return ok;
2996 }
2997 "
2998
2999
3000 # Auxiliary files required by this configure script.
3001 ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
3002
3003 # Locations in which to look for auxiliary files.
3004 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3005
3006 # Search for a directory containing all of the required auxiliary files,
3007 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3008 # If we don't find one directory that contains all the files we need,
3009 # we report the set of missing files from the *first* directory in
3010 # $ac_aux_dir_candidates and give up.
3011 ac_missing_aux_files=""
3012 ac_first_candidate=:
3013 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015 as_found=false
3016 for as_dir in $ac_aux_dir_candidates
3017 do
3018 IFS=$as_save_IFS
3019 case $as_dir in #(((
3020 '') as_dir=./ ;;
3021 */) ;;
3022 *) as_dir=$as_dir/ ;;
3023 esac
3024 as_found=:
3025
3026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3027 ac_aux_dir_found=yes
3028 ac_install_sh=
3029 for ac_aux in $ac_aux_files
3030 do
3031 # As a special case, if "install-sh" is required, that requirement
3032 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3033 # and $ac_install_sh is set appropriately for whichever one is found.
3034 if test x"$ac_aux" = x"install-sh"
3035 then
3036 if test -f "${as_dir}install-sh"; then
3037 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3038 ac_install_sh="${as_dir}install-sh -c"
3039 elif test -f "${as_dir}install.sh"; then
3040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3041 ac_install_sh="${as_dir}install.sh -c"
3042 elif test -f "${as_dir}shtool"; then
3043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3044 ac_install_sh="${as_dir}shtool install -c"
3045 else
3046 ac_aux_dir_found=no
3047 if $ac_first_candidate; then
3048 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3049 else
3050 break
3051 fi
3052 fi
3053 else
3054 if test -f "${as_dir}${ac_aux}"; then
3055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3056 else
3057 ac_aux_dir_found=no
3058 if $ac_first_candidate; then
3059 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3060 else
3061 break
3062 fi
3063 fi
3064 fi
3065 done
3066 if test "$ac_aux_dir_found" = yes; then
3067 ac_aux_dir="$as_dir"
3068 break
3069 fi
3070 ac_first_candidate=false
3071
3072 as_found=false
3073 done
3074 IFS=$as_save_IFS
3075 if $as_found
3076 then :
3077
3078 else $as_nop
3079 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3080 fi
3081
3082
3083 # These three variables are undocumented and unsupported,
3084 # and are intended to be withdrawn in a future Autoconf release.
3085 # They can cause serious problems if a builder's source tree is in a directory
3086 # whose full name contains unusual characters.
3087 if test -f "${ac_aux_dir}config.guess"; then
3088 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3089 fi
3090 if test -f "${ac_aux_dir}config.sub"; then
3091 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3092 fi
3093 if test -f "$ac_aux_dir/configure"; then
3094 ac_configure="$SHELL ${ac_aux_dir}configure"
3095 fi
3096
3097 # Check that the precious variables saved in the cache have kept the same
3098 # value.
3099 ac_cache_corrupted=false
3100 for ac_var in $ac_precious_vars; do
3101 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3102 eval ac_new_set=\$ac_env_${ac_var}_set
3103 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3104 eval ac_new_val=\$ac_env_${ac_var}_value
3105 case $ac_old_set,$ac_new_set in
3106 set,)
3107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3108 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3109 ac_cache_corrupted=: ;;
3110 ,set)
3111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3112 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3113 ac_cache_corrupted=: ;;
3114 ,);;
3115 *)
3116 if test "x$ac_old_val" != "x$ac_new_val"; then
3117 # differences in whitespace do not lead to failure.
3118 ac_old_val_w=`echo x $ac_old_val`
3119 ac_new_val_w=`echo x $ac_new_val`
3120 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3122 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3123 ac_cache_corrupted=:
3124 else
3125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3126 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3127 eval $ac_var=\$ac_old_val
3128 fi
3129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3130 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3132 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3133 fi;;
3134 esac
3135 # Pass precious variables to config.status.
3136 if test "$ac_new_set" = set; then
3137 case $ac_new_val in
3138 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3139 *) ac_arg=$ac_var=$ac_new_val ;;
3140 esac
3141 case " $ac_configure_args " in
3142 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3143 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3144 esac
3145 fi
3146 done
3147 if $ac_cache_corrupted; then
3148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3149 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3151 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3152 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3153 and start over" "$LINENO" 5
3154 fi
3155 ## -------------------- ##
3156 ## Main body of script. ##
3157 ## -------------------- ##
3158
3159 ac_ext=c
3160 ac_cpp='$CPP $CPPFLAGS'
3161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3164
3165
3166 am__api_version='1.16'
3167
3168
3169
3170 # Find a good install program. We prefer a C program (faster),
3171 # so one script is as good as another. But avoid the broken or
3172 # incompatible versions:
3173 # SysV /etc/install, /usr/sbin/install
3174 # SunOS /usr/etc/install
3175 # IRIX /sbin/install
3176 # AIX /bin/install
3177 # AmigaOS /C/install, which installs bootblocks on floppy discs
3178 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3179 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3180 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3181 # OS/2's system install, which has a completely different semantic
3182 # ./install, which can be erroneously created by make from ./install.sh.
3183 # Reject install programs that cannot install multiple files.
3184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3185 printf %s "checking for a BSD-compatible install... " >&6; }
3186 if test -z "$INSTALL"; then
3187 if test ${ac_cv_path_install+y}
3188 then :
3189 printf %s "(cached) " >&6
3190 else $as_nop
3191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192 for as_dir in $PATH
3193 do
3194 IFS=$as_save_IFS
3195 case $as_dir in #(((
3196 '') as_dir=./ ;;
3197 */) ;;
3198 *) as_dir=$as_dir/ ;;
3199 esac
3200 # Account for fact that we put trailing slashes in our PATH walk.
3201 case $as_dir in #((
3202 ./ | /[cC]/* | \
3203 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3204 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3205 /usr/ucb/* ) ;;
3206 *)
3207 # OSF1 and SCO ODT 3.0 have their own names for install.
3208 # Don't use installbsd from OSF since it installs stuff as root
3209 # by default.
3210 for ac_prog in ginstall scoinst install; do
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3213 if test $ac_prog = install &&
3214 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3215 # AIX install. It has an incompatible calling convention.
3216 :
3217 elif test $ac_prog = install &&
3218 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3219 # program-specific install script used by HP pwplus--don't use.
3220 :
3221 else
3222 rm -rf conftest.one conftest.two conftest.dir
3223 echo one > conftest.one
3224 echo two > conftest.two
3225 mkdir conftest.dir
3226 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3227 test -s conftest.one && test -s conftest.two &&
3228 test -s conftest.dir/conftest.one &&
3229 test -s conftest.dir/conftest.two
3230 then
3231 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3232 break 3
3233 fi
3234 fi
3235 fi
3236 done
3237 done
3238 ;;
3239 esac
3240
3241 done
3242 IFS=$as_save_IFS
3243
3244 rm -rf conftest.one conftest.two conftest.dir
3245
3246 fi
3247 if test ${ac_cv_path_install+y}; then
3248 INSTALL=$ac_cv_path_install
3249 else
3250 # As a last resort, use the slow shell script. Don't cache a
3251 # value for INSTALL within a source directory, because that will
3252 # break other packages using the cache if that directory is
3253 # removed, or if the value is a relative name.
3254 INSTALL=$ac_install_sh
3255 fi
3256 fi
3257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3258 printf "%s\n" "$INSTALL" >&6; }
3259
3260 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3261 # It thinks the first close brace ends the variable substitution.
3262 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3263
3264 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3265
3266 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3267
3268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3269 printf %s "checking whether build environment is sane... " >&6; }
3270 # Reject unsafe characters in $srcdir or the absolute working directory
3271 # name. Accept space and tab only in the latter.
3272 am_lf='
3273 '
3274 case `pwd` in
3275 *[\\\"\#\$\&\'\`$am_lf]*)
3276 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3277 esac
3278 case $srcdir in
3279 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3280 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3281 esac
3282
3283 # Do 'set' in a subshell so we don't clobber the current shell's
3284 # arguments. Must try -L first in case configure is actually a
3285 # symlink; some systems play weird games with the mod time of symlinks
3286 # (eg FreeBSD returns the mod time of the symlink's containing
3287 # directory).
3288 if (
3289 am_has_slept=no
3290 for am_try in 1 2; do
3291 echo "timestamp, slept: $am_has_slept" > conftest.file
3292 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3293 if test "$*" = "X"; then
3294 # -L didn't work.
3295 set X `ls -t "$srcdir/configure" conftest.file`
3296 fi
3297 if test "$*" != "X $srcdir/configure conftest.file" \
3298 && test "$*" != "X conftest.file $srcdir/configure"; then
3299
3300 # If neither matched, then we have a broken ls. This can happen
3301 # if, for instance, CONFIG_SHELL is bash and it inherits a
3302 # broken ls alias from the environment. This has actually
3303 # happened. Such a system could not be considered "sane".
3304 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3305 alias in your environment" "$LINENO" 5
3306 fi
3307 if test "$2" = conftest.file || test $am_try -eq 2; then
3308 break
3309 fi
3310 # Just in case.
3311 sleep 1
3312 am_has_slept=yes
3313 done
3314 test "$2" = conftest.file
3315 )
3316 then
3317 # Ok.
3318 :
3319 else
3320 as_fn_error $? "newly created file is older than distributed files!
3321 Check your system clock" "$LINENO" 5
3322 fi
3323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3324 printf "%s\n" "yes" >&6; }
3325 # If we didn't sleep, we still need to ensure time stamps of config.status and
3326 # generated files are strictly newer.
3327 am_sleep_pid=
3328 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3329 ( sleep 1 ) &
3330 am_sleep_pid=$!
3331 fi
3332
3333 rm -f conftest.file
3334
3335 test "$program_prefix" != NONE &&
3336 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3337 # Use a double $ so make ignores it.
3338 test "$program_suffix" != NONE &&
3339 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3340 # Double any \ or $.
3341 # By default was `s,x,x', remove it if useless.
3342 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3343 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3344
3345
3346 # Expand $ac_aux_dir to an absolute path.
3347 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3348
3349
3350 if test x"${MISSING+set}" != xset; then
3351 MISSING="\${SHELL} '$am_aux_dir/missing'"
3352 fi
3353 # Use eval to expand $SHELL
3354 if eval "$MISSING --is-lightweight"; then
3355 am_missing_run="$MISSING "
3356 else
3357 am_missing_run=
3358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3359 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3360 fi
3361
3362 if test x"${install_sh+set}" != xset; then
3363 case $am_aux_dir in
3364 *\ * | *\ *)
3365 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3366 *)
3367 install_sh="\${SHELL} $am_aux_dir/install-sh"
3368 esac
3369 fi
3370
3371 # Installed binaries are usually stripped using 'strip' when the user
3372 # run "make install-strip". However 'strip' might not be the right
3373 # tool to use in cross-compilation environments, therefore Automake
3374 # will honor the 'STRIP' environment variable to overrule this program.
3375 if test "$cross_compiling" != no; then
3376 if test -n "$ac_tool_prefix"; then
3377 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3378 set dummy ${ac_tool_prefix}strip; ac_word=$2
3379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3380 printf %s "checking for $ac_word... " >&6; }
3381 if test ${ac_cv_prog_STRIP+y}
3382 then :
3383 printf %s "(cached) " >&6
3384 else $as_nop
3385 if test -n "$STRIP"; then
3386 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3387 else
3388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389 for as_dir in $PATH
3390 do
3391 IFS=$as_save_IFS
3392 case $as_dir in #(((
3393 '') as_dir=./ ;;
3394 */) ;;
3395 *) as_dir=$as_dir/ ;;
3396 esac
3397 for ac_exec_ext in '' $ac_executable_extensions; do
3398 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3399 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3400 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3401 break 2
3402 fi
3403 done
3404 done
3405 IFS=$as_save_IFS
3406
3407 fi
3408 fi
3409 STRIP=$ac_cv_prog_STRIP
3410 if test -n "$STRIP"; then
3411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3412 printf "%s\n" "$STRIP" >&6; }
3413 else
3414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3415 printf "%s\n" "no" >&6; }
3416 fi
3417
3418
3419 fi
3420 if test -z "$ac_cv_prog_STRIP"; then
3421 ac_ct_STRIP=$STRIP
3422 # Extract the first word of "strip", so it can be a program name with args.
3423 set dummy strip; ac_word=$2
3424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3425 printf %s "checking for $ac_word... " >&6; }
3426 if test ${ac_cv_prog_ac_ct_STRIP+y}
3427 then :
3428 printf %s "(cached) " >&6
3429 else $as_nop
3430 if test -n "$ac_ct_STRIP"; then
3431 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3432 else
3433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434 for as_dir in $PATH
3435 do
3436 IFS=$as_save_IFS
3437 case $as_dir in #(((
3438 '') as_dir=./ ;;
3439 */) ;;
3440 *) as_dir=$as_dir/ ;;
3441 esac
3442 for ac_exec_ext in '' $ac_executable_extensions; do
3443 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3444 ac_cv_prog_ac_ct_STRIP="strip"
3445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3446 break 2
3447 fi
3448 done
3449 done
3450 IFS=$as_save_IFS
3451
3452 fi
3453 fi
3454 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3455 if test -n "$ac_ct_STRIP"; then
3456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3457 printf "%s\n" "$ac_ct_STRIP" >&6; }
3458 else
3459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3460 printf "%s\n" "no" >&6; }
3461 fi
3462
3463 if test "x$ac_ct_STRIP" = x; then
3464 STRIP=":"
3465 else
3466 case $cross_compiling:$ac_tool_warned in
3467 yes:)
3468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3469 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3470 ac_tool_warned=yes ;;
3471 esac
3472 STRIP=$ac_ct_STRIP
3473 fi
3474 else
3475 STRIP="$ac_cv_prog_STRIP"
3476 fi
3477
3478 fi
3479 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3480
3481
3482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3483 printf %s "checking for a race-free mkdir -p... " >&6; }
3484 if test -z "$MKDIR_P"; then
3485 if test ${ac_cv_path_mkdir+y}
3486 then :
3487 printf %s "(cached) " >&6
3488 else $as_nop
3489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3491 do
3492 IFS=$as_save_IFS
3493 case $as_dir in #(((
3494 '') as_dir=./ ;;
3495 */) ;;
3496 *) as_dir=$as_dir/ ;;
3497 esac
3498 for ac_prog in mkdir gmkdir; do
3499 for ac_exec_ext in '' $ac_executable_extensions; do
3500 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3501 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3502 'mkdir ('*'coreutils) '* | \
3503 'BusyBox '* | \
3504 'mkdir (fileutils) '4.1*)
3505 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3506 break 3;;
3507 esac
3508 done
3509 done
3510 done
3511 IFS=$as_save_IFS
3512
3513 fi
3514
3515 test -d ./--version && rmdir ./--version
3516 if test ${ac_cv_path_mkdir+y}; then
3517 MKDIR_P="$ac_cv_path_mkdir -p"
3518 else
3519 # As a last resort, use the slow shell script. Don't cache a
3520 # value for MKDIR_P within a source directory, because that will
3521 # break other packages using the cache if that directory is
3522 # removed, or if the value is a relative name.
3523 MKDIR_P="$ac_install_sh -d"
3524 fi
3525 fi
3526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3527 printf "%s\n" "$MKDIR_P" >&6; }
3528
3529 for ac_prog in gawk mawk nawk awk
3530 do
3531 # Extract the first word of "$ac_prog", so it can be a program name with args.
3532 set dummy $ac_prog; ac_word=$2
3533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3534 printf %s "checking for $ac_word... " >&6; }
3535 if test ${ac_cv_prog_AWK+y}
3536 then :
3537 printf %s "(cached) " >&6
3538 else $as_nop
3539 if test -n "$AWK"; then
3540 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3541 else
3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543 for as_dir in $PATH
3544 do
3545 IFS=$as_save_IFS
3546 case $as_dir in #(((
3547 '') as_dir=./ ;;
3548 */) ;;
3549 *) as_dir=$as_dir/ ;;
3550 esac
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3553 ac_cv_prog_AWK="$ac_prog"
3554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3555 break 2
3556 fi
3557 done
3558 done
3559 IFS=$as_save_IFS
3560
3561 fi
3562 fi
3563 AWK=$ac_cv_prog_AWK
3564 if test -n "$AWK"; then
3565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3566 printf "%s\n" "$AWK" >&6; }
3567 else
3568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3569 printf "%s\n" "no" >&6; }
3570 fi
3571
3572
3573 test -n "$AWK" && break
3574 done
3575
3576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3577 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3578 set x ${MAKE-make}
3579 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3580 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3581 then :
3582 printf %s "(cached) " >&6
3583 else $as_nop
3584 cat >conftest.make <<\_ACEOF
3585 SHELL = /bin/sh
3586 all:
3587 @echo '@@@%%%=$(MAKE)=@@@%%%'
3588 _ACEOF
3589 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3590 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3591 *@@@%%%=?*=@@@%%%*)
3592 eval ac_cv_prog_make_${ac_make}_set=yes;;
3593 *)
3594 eval ac_cv_prog_make_${ac_make}_set=no;;
3595 esac
3596 rm -f conftest.make
3597 fi
3598 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3600 printf "%s\n" "yes" >&6; }
3601 SET_MAKE=
3602 else
3603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3604 printf "%s\n" "no" >&6; }
3605 SET_MAKE="MAKE=${MAKE-make}"
3606 fi
3607
3608 rm -rf .tst 2>/dev/null
3609 mkdir .tst 2>/dev/null
3610 if test -d .tst; then
3611 am__leading_dot=.
3612 else
3613 am__leading_dot=_
3614 fi
3615 rmdir .tst 2>/dev/null
3616
3617 # Check whether --enable-silent-rules was given.
3618 if test ${enable_silent_rules+y}
3619 then :
3620 enableval=$enable_silent_rules;
3621 fi
3622
3623 case $enable_silent_rules in # (((
3624 yes) AM_DEFAULT_VERBOSITY=0;;
3625 no) AM_DEFAULT_VERBOSITY=1;;
3626 *) AM_DEFAULT_VERBOSITY=1;;
3627 esac
3628 am_make=${MAKE-make}
3629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3630 printf %s "checking whether $am_make supports nested variables... " >&6; }
3631 if test ${am_cv_make_support_nested_variables+y}
3632 then :
3633 printf %s "(cached) " >&6
3634 else $as_nop
3635 if printf "%s\n" 'TRUE=$(BAR$(V))
3636 BAR0=false
3637 BAR1=true
3638 V=1
3639 am__doit:
3640 @$(TRUE)
3641 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3642 am_cv_make_support_nested_variables=yes
3643 else
3644 am_cv_make_support_nested_variables=no
3645 fi
3646 fi
3647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3648 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3649 if test $am_cv_make_support_nested_variables = yes; then
3650 AM_V='$(V)'
3651 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3652 else
3653 AM_V=$AM_DEFAULT_VERBOSITY
3654 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3655 fi
3656 AM_BACKSLASH='\'
3657
3658 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3659 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3660 # is not polluted with repeated "-I."
3661 am__isrc=' -I$(srcdir)'
3662 # test to see if srcdir already configured
3663 if test -f $srcdir/config.status; then
3664 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3665 fi
3666 fi
3667
3668 # test whether we have cygpath
3669 if test -z "$CYGPATH_W"; then
3670 if (cygpath --version) >/dev/null 2>/dev/null; then
3671 CYGPATH_W='cygpath -w'
3672 else
3673 CYGPATH_W=echo
3674 fi
3675 fi
3676
3677
3678 # Define the identity of the package.
3679 PACKAGE='fcml'
3680 VERSION='1.3.0'
3681
3682
3683 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3684
3685
3686 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3687
3688 # Some tools Automake needs.
3689
3690 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3691
3692
3693 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3694
3695
3696 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3697
3698
3699 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3700
3701
3702 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3703
3704 # For better backward compatibility. To be removed once Automake 1.9.x
3705 # dies out for good. For more background, see:
3706 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3707 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3708 mkdir_p='$(MKDIR_P)'
3709
3710 # We need awk for the "check" target (and possibly the TAP driver). The
3711 # system "awk" is bad on some platforms.
3712 # Always define AMTAR for backward compatibility. Yes, it's still used
3713 # in the wild :-( We should find a proper way to deprecate it ...
3714 AMTAR='$${TAR-tar}'
3715
3716
3717 # We'll loop over all known methods to create a tar archive until one works.
3718 _am_tools='gnutar pax cpio none'
3719
3720 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3721
3722
3723
3724
3725
3726 # Variables for tags utilities; see am/tags.am
3727 if test -z "$CTAGS"; then
3728 CTAGS=ctags
3729 fi
3730
3731 if test -z "$ETAGS"; then
3732 ETAGS=etags
3733 fi
3734
3735 if test -z "$CSCOPE"; then
3736 CSCOPE=cscope
3737 fi
3738
3739
3740
3741 # POSIX will say in a future version that running "rm -f" with no argument
3742 # is OK; and we want to be able to make that assumption in our Makefile
3743 # recipes. So use an aggressive probe to check that the usage we want is
3744 # actually supported "in the wild" to an acceptable degree.
3745 # See automake bug#10828.
3746 # To make any issue more visible, cause the running configure to be aborted
3747 # by default if the 'rm' program in use doesn't match our expectations; the
3748 # user can still override this though.
3749 if rm -f && rm -fr && rm -rf; then : OK; else
3750 cat >&2 <<'END'
3751 Oops!
3752
3753 Your 'rm' program seems unable to run without file operands specified
3754 on the command line, even when the '-f' option is present. This is contrary
3755 to the behaviour of most rm programs out there, and not conforming with
3756 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3757
3758 Please tell [email protected] about your system, including the value
3759 of your $PATH and any error possibly output before this message. This
3760 can help us improve future automake versions.
3761
3762 END
3763 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3764 echo 'Configuration will proceed anyway, since you have set the' >&2
3765 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3766 echo >&2
3767 else
3768 cat >&2 <<'END'
3769 Aborting the configuration process, to ensure you take notice of the issue.
3770
3771 You can download and install GNU coreutils to get an 'rm' implementation
3772 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3773
3774 If you want to complete the configuration process using your problematic
3775 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3776 to "yes", and re-run configure.
3777
3778 END
3779 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3780 fi
3781 fi
3782
3783
3784 case `pwd` in
3785 *\ * | *\ *)
3786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3787 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3788 esac
3789
3790
3791
3792 macro_version='2.4.6'
3793 macro_revision='2.4.6'
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808 ltmain=$ac_aux_dir/ltmain.sh
3809
3810
3811
3812 # Make sure we can run config.sub.
3813 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3814 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3815
3816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3817 printf %s "checking build system type... " >&6; }
3818 if test ${ac_cv_build+y}
3819 then :
3820 printf %s "(cached) " >&6
3821 else $as_nop
3822 ac_build_alias=$build_alias
3823 test "x$ac_build_alias" = x &&
3824 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3825 test "x$ac_build_alias" = x &&
3826 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3827 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3828 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3829
3830 fi
3831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3832 printf "%s\n" "$ac_cv_build" >&6; }
3833 case $ac_cv_build in
3834 *-*-*) ;;
3835 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3836 esac
3837 build=$ac_cv_build
3838 ac_save_IFS=$IFS; IFS='-'
3839 set x $ac_cv_build
3840 shift
3841 build_cpu=$1
3842 build_vendor=$2
3843 shift; shift
3844 # Remember, the first character of IFS is used to create $*,
3845 # except with old shells:
3846 build_os=$*
3847 IFS=$ac_save_IFS
3848 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3849
3850
3851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3852 printf %s "checking host system type... " >&6; }
3853 if test ${ac_cv_host+y}
3854 then :
3855 printf %s "(cached) " >&6
3856 else $as_nop
3857 if test "x$host_alias" = x; then
3858 ac_cv_host=$ac_cv_build
3859 else
3860 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3861 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3862 fi
3863
3864 fi
3865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3866 printf "%s\n" "$ac_cv_host" >&6; }
3867 case $ac_cv_host in
3868 *-*-*) ;;
3869 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3870 esac
3871 host=$ac_cv_host
3872 ac_save_IFS=$IFS; IFS='-'
3873 set x $ac_cv_host
3874 shift
3875 host_cpu=$1
3876 host_vendor=$2
3877 shift; shift
3878 # Remember, the first character of IFS is used to create $*,
3879 # except with old shells:
3880 host_os=$*
3881 IFS=$ac_save_IFS
3882 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3883
3884
3885 # Backslashify metacharacters that are still active within
3886 # double-quoted strings.
3887 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3888
3889 # Same as above, but do not quote variable references.
3890 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3891
3892 # Sed substitution to delay expansion of an escaped shell variable in a
3893 # double_quote_subst'ed string.
3894 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3895
3896 # Sed substitution to delay expansion of an escaped single quote.
3897 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3898
3899 # Sed substitution to avoid accidental globbing in evaled expressions
3900 no_glob_subst='s/\*/\\\*/g'
3901
3902 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3903 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3904 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3905
3906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3907 printf %s "checking how to print strings... " >&6; }
3908 # Test print first, because it will be a builtin if present.
3909 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3910 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3911 ECHO='print -r --'
3912 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3913 ECHO='printf %s\n'
3914 else
3915 # Use this function as a fallback that always works.
3916 func_fallback_echo ()
3917 {
3918 eval 'cat <<_LTECHO_EOF
3919 $1
3920 _LTECHO_EOF'
3921 }
3922 ECHO='func_fallback_echo'
3923 fi
3924
3925 # func_echo_all arg...
3926 # Invoke $ECHO with all args, space-separated.
3927 func_echo_all ()
3928 {
3929 $ECHO ""
3930 }
3931
3932 case $ECHO in
3933 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3934 printf "%s\n" "printf" >&6; } ;;
3935 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3936 printf "%s\n" "print -r" >&6; } ;;
3937 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3938 printf "%s\n" "cat" >&6; } ;;
3939 esac
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963 DEPDIR="${am__leading_dot}deps"
3964
3965 ac_config_commands="$ac_config_commands depfiles"
3966
3967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3968 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3969 cat > confinc.mk << 'END'
3970 am__doit:
3971 @echo this is the am__doit target >confinc.out
3972 .PHONY: am__doit
3973 END
3974 am__include="#"
3975 am__quote=
3976 # BSD make does it like this.
3977 echo '.include "confinc.mk" # ignored' > confmf.BSD
3978 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3979 echo 'include confinc.mk # ignored' > confmf.GNU
3980 _am_result=no
3981 for s in GNU BSD; do
3982 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3983 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3984 ac_status=$?
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); }
3987 case $?:`cat confinc.out 2>/dev/null` in #(
3988 '0:this is the am__doit target') :
3989 case $s in #(
3990 BSD) :
3991 am__include='.include' am__quote='"' ;; #(
3992 *) :
3993 am__include='include' am__quote='' ;;
3994 esac ;; #(
3995 *) :
3996 ;;
3997 esac
3998 if test "$am__include" != "#"; then
3999 _am_result="yes ($s style)"
4000 break
4001 fi
4002 done
4003 rm -f confinc.* confmf.*
4004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4005 printf "%s\n" "${_am_result}" >&6; }
4006
4007 # Check whether --enable-dependency-tracking was given.
4008 if test ${enable_dependency_tracking+y}
4009 then :
4010 enableval=$enable_dependency_tracking;
4011 fi
4012
4013 if test "x$enable_dependency_tracking" != xno; then
4014 am_depcomp="$ac_aux_dir/depcomp"
4015 AMDEPBACKSLASH='\'
4016 am__nodep='_no'
4017 fi
4018 if test "x$enable_dependency_tracking" != xno; then
4019 AMDEP_TRUE=
4020 AMDEP_FALSE='#'
4021 else
4022 AMDEP_TRUE='#'
4023 AMDEP_FALSE=
4024 fi
4025
4026
4027 ac_ext=c
4028 ac_cpp='$CPP $CPPFLAGS'
4029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4032 if test -n "$ac_tool_prefix"; then
4033 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4034 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4036 printf %s "checking for $ac_word... " >&6; }
4037 if test ${ac_cv_prog_CC+y}
4038 then :
4039 printf %s "(cached) " >&6
4040 else $as_nop
4041 if test -n "$CC"; then
4042 ac_cv_prog_CC="$CC" # Let the user override the test.
4043 else
4044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045 for as_dir in $PATH
4046 do
4047 IFS=$as_save_IFS
4048 case $as_dir in #(((
4049 '') as_dir=./ ;;
4050 */) ;;
4051 *) as_dir=$as_dir/ ;;
4052 esac
4053 for ac_exec_ext in '' $ac_executable_extensions; do
4054 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4055 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4056 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4057 break 2
4058 fi
4059 done
4060 done
4061 IFS=$as_save_IFS
4062
4063 fi
4064 fi
4065 CC=$ac_cv_prog_CC
4066 if test -n "$CC"; then
4067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4068 printf "%s\n" "$CC" >&6; }
4069 else
4070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4071 printf "%s\n" "no" >&6; }
4072 fi
4073
4074
4075 fi
4076 if test -z "$ac_cv_prog_CC"; then
4077 ac_ct_CC=$CC
4078 # Extract the first word of "gcc", so it can be a program name with args.
4079 set dummy gcc; ac_word=$2
4080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4081 printf %s "checking for $ac_word... " >&6; }
4082 if test ${ac_cv_prog_ac_ct_CC+y}
4083 then :
4084 printf %s "(cached) " >&6
4085 else $as_nop
4086 if test -n "$ac_ct_CC"; then
4087 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4088 else
4089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090 for as_dir in $PATH
4091 do
4092 IFS=$as_save_IFS
4093 case $as_dir in #(((
4094 '') as_dir=./ ;;
4095 */) ;;
4096 *) as_dir=$as_dir/ ;;
4097 esac
4098 for ac_exec_ext in '' $ac_executable_extensions; do
4099 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4100 ac_cv_prog_ac_ct_CC="gcc"
4101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4102 break 2
4103 fi
4104 done
4105 done
4106 IFS=$as_save_IFS
4107
4108 fi
4109 fi
4110 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4111 if test -n "$ac_ct_CC"; then
4112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4113 printf "%s\n" "$ac_ct_CC" >&6; }
4114 else
4115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4116 printf "%s\n" "no" >&6; }
4117 fi
4118
4119 if test "x$ac_ct_CC" = x; then
4120 CC=""
4121 else
4122 case $cross_compiling:$ac_tool_warned in
4123 yes:)
4124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4125 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4126 ac_tool_warned=yes ;;
4127 esac
4128 CC=$ac_ct_CC
4129 fi
4130 else
4131 CC="$ac_cv_prog_CC"
4132 fi
4133
4134 if test -z "$CC"; then
4135 if test -n "$ac_tool_prefix"; then
4136 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4137 set dummy ${ac_tool_prefix}cc; ac_word=$2
4138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4139 printf %s "checking for $ac_word... " >&6; }
4140 if test ${ac_cv_prog_CC+y}
4141 then :
4142 printf %s "(cached) " >&6
4143 else $as_nop
4144 if test -n "$CC"; then
4145 ac_cv_prog_CC="$CC" # Let the user override the test.
4146 else
4147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148 for as_dir in $PATH
4149 do
4150 IFS=$as_save_IFS
4151 case $as_dir in #(((
4152 '') as_dir=./ ;;
4153 */) ;;
4154 *) as_dir=$as_dir/ ;;
4155 esac
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4158 ac_cv_prog_CC="${ac_tool_prefix}cc"
4159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4160 break 2
4161 fi
4162 done
4163 done
4164 IFS=$as_save_IFS
4165
4166 fi
4167 fi
4168 CC=$ac_cv_prog_CC
4169 if test -n "$CC"; then
4170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4171 printf "%s\n" "$CC" >&6; }
4172 else
4173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4174 printf "%s\n" "no" >&6; }
4175 fi
4176
4177
4178 fi
4179 fi
4180 if test -z "$CC"; then
4181 # Extract the first word of "cc", so it can be a program name with args.
4182 set dummy cc; ac_word=$2
4183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4184 printf %s "checking for $ac_word... " >&6; }
4185 if test ${ac_cv_prog_CC+y}
4186 then :
4187 printf %s "(cached) " >&6
4188 else $as_nop
4189 if test -n "$CC"; then
4190 ac_cv_prog_CC="$CC" # Let the user override the test.
4191 else
4192 ac_prog_rejected=no
4193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194 for as_dir in $PATH
4195 do
4196 IFS=$as_save_IFS
4197 case $as_dir in #(((
4198 '') as_dir=./ ;;
4199 */) ;;
4200 *) as_dir=$as_dir/ ;;
4201 esac
4202 for ac_exec_ext in '' $ac_executable_extensions; do
4203 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4204 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4205 ac_prog_rejected=yes
4206 continue
4207 fi
4208 ac_cv_prog_CC="cc"
4209 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4210 break 2
4211 fi
4212 done
4213 done
4214 IFS=$as_save_IFS
4215
4216 if test $ac_prog_rejected = yes; then
4217 # We found a bogon in the path, so make sure we never use it.
4218 set dummy $ac_cv_prog_CC
4219 shift
4220 if test $# != 0; then
4221 # We chose a different compiler from the bogus one.
4222 # However, it has the same basename, so the bogon will be chosen
4223 # first if we set CC to just the basename; use the full file name.
4224 shift
4225 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4226 fi
4227 fi
4228 fi
4229 fi
4230 CC=$ac_cv_prog_CC
4231 if test -n "$CC"; then
4232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4233 printf "%s\n" "$CC" >&6; }
4234 else
4235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4236 printf "%s\n" "no" >&6; }
4237 fi
4238
4239
4240 fi
4241 if test -z "$CC"; then
4242 if test -n "$ac_tool_prefix"; then
4243 for ac_prog in cl.exe
4244 do
4245 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4246 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4248 printf %s "checking for $ac_word... " >&6; }
4249 if test ${ac_cv_prog_CC+y}
4250 then :
4251 printf %s "(cached) " >&6
4252 else $as_nop
4253 if test -n "$CC"; then
4254 ac_cv_prog_CC="$CC" # Let the user override the test.
4255 else
4256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257 for as_dir in $PATH
4258 do
4259 IFS=$as_save_IFS
4260 case $as_dir in #(((
4261 '') as_dir=./ ;;
4262 */) ;;
4263 *) as_dir=$as_dir/ ;;
4264 esac
4265 for ac_exec_ext in '' $ac_executable_extensions; do
4266 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4267 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4269 break 2
4270 fi
4271 done
4272 done
4273 IFS=$as_save_IFS
4274
4275 fi
4276 fi
4277 CC=$ac_cv_prog_CC
4278 if test -n "$CC"; then
4279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4280 printf "%s\n" "$CC" >&6; }
4281 else
4282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4283 printf "%s\n" "no" >&6; }
4284 fi
4285
4286
4287 test -n "$CC" && break
4288 done
4289 fi
4290 if test -z "$CC"; then
4291 ac_ct_CC=$CC
4292 for ac_prog in cl.exe
4293 do
4294 # Extract the first word of "$ac_prog", so it can be a program name with args.
4295 set dummy $ac_prog; ac_word=$2
4296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4297 printf %s "checking for $ac_word... " >&6; }
4298 if test ${ac_cv_prog_ac_ct_CC+y}
4299 then :
4300 printf %s "(cached) " >&6
4301 else $as_nop
4302 if test -n "$ac_ct_CC"; then
4303 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4304 else
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306 for as_dir in $PATH
4307 do
4308 IFS=$as_save_IFS
4309 case $as_dir in #(((
4310 '') as_dir=./ ;;
4311 */) ;;
4312 *) as_dir=$as_dir/ ;;
4313 esac
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4316 ac_cv_prog_ac_ct_CC="$ac_prog"
4317 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4318 break 2
4319 fi
4320 done
4321 done
4322 IFS=$as_save_IFS
4323
4324 fi
4325 fi
4326 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4327 if test -n "$ac_ct_CC"; then
4328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4329 printf "%s\n" "$ac_ct_CC" >&6; }
4330 else
4331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4332 printf "%s\n" "no" >&6; }
4333 fi
4334
4335
4336 test -n "$ac_ct_CC" && break
4337 done
4338
4339 if test "x$ac_ct_CC" = x; then
4340 CC=""
4341 else
4342 case $cross_compiling:$ac_tool_warned in
4343 yes:)
4344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4345 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4346 ac_tool_warned=yes ;;
4347 esac
4348 CC=$ac_ct_CC
4349 fi
4350 fi
4351
4352 fi
4353 if test -z "$CC"; then
4354 if test -n "$ac_tool_prefix"; then
4355 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4356 set dummy ${ac_tool_prefix}clang; ac_word=$2
4357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4358 printf %s "checking for $ac_word... " >&6; }
4359 if test ${ac_cv_prog_CC+y}
4360 then :
4361 printf %s "(cached) " >&6
4362 else $as_nop
4363 if test -n "$CC"; then
4364 ac_cv_prog_CC="$CC" # Let the user override the test.
4365 else
4366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367 for as_dir in $PATH
4368 do
4369 IFS=$as_save_IFS
4370 case $as_dir in #(((
4371 '') as_dir=./ ;;
4372 */) ;;
4373 *) as_dir=$as_dir/ ;;
4374 esac
4375 for ac_exec_ext in '' $ac_executable_extensions; do
4376 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4377 ac_cv_prog_CC="${ac_tool_prefix}clang"
4378 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4379 break 2
4380 fi
4381 done
4382 done
4383 IFS=$as_save_IFS
4384
4385 fi
4386 fi
4387 CC=$ac_cv_prog_CC
4388 if test -n "$CC"; then
4389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4390 printf "%s\n" "$CC" >&6; }
4391 else
4392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4393 printf "%s\n" "no" >&6; }
4394 fi
4395
4396
4397 fi
4398 if test -z "$ac_cv_prog_CC"; then
4399 ac_ct_CC=$CC
4400 # Extract the first word of "clang", so it can be a program name with args.
4401 set dummy clang; ac_word=$2
4402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4403 printf %s "checking for $ac_word... " >&6; }
4404 if test ${ac_cv_prog_ac_ct_CC+y}
4405 then :
4406 printf %s "(cached) " >&6
4407 else $as_nop
4408 if test -n "$ac_ct_CC"; then
4409 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4410 else
4411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 for as_dir in $PATH
4413 do
4414 IFS=$as_save_IFS
4415 case $as_dir in #(((
4416 '') as_dir=./ ;;
4417 */) ;;
4418 *) as_dir=$as_dir/ ;;
4419 esac
4420 for ac_exec_ext in '' $ac_executable_extensions; do
4421 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4422 ac_cv_prog_ac_ct_CC="clang"
4423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4424 break 2
4425 fi
4426 done
4427 done
4428 IFS=$as_save_IFS
4429
4430 fi
4431 fi
4432 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4433 if test -n "$ac_ct_CC"; then
4434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4435 printf "%s\n" "$ac_ct_CC" >&6; }
4436 else
4437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4438 printf "%s\n" "no" >&6; }
4439 fi
4440
4441 if test "x$ac_ct_CC" = x; then
4442 CC=""
4443 else
4444 case $cross_compiling:$ac_tool_warned in
4445 yes:)
4446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4447 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4448 ac_tool_warned=yes ;;
4449 esac
4450 CC=$ac_ct_CC
4451 fi
4452 else
4453 CC="$ac_cv_prog_CC"
4454 fi
4455
4456 fi
4457
4458
4459 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4460 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4461 as_fn_error $? "no acceptable C compiler found in \$PATH
4462 See \`config.log' for more details" "$LINENO" 5; }
4463
4464 # Provide some information about the compiler.
4465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4466 set X $ac_compile
4467 ac_compiler=$2
4468 for ac_option in --version -v -V -qversion -version; do
4469 { { ac_try="$ac_compiler $ac_option >&5"
4470 case "(($ac_try" in
4471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472 *) ac_try_echo=$ac_try;;
4473 esac
4474 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4475 printf "%s\n" "$ac_try_echo"; } >&5
4476 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4477 ac_status=$?
4478 if test -s conftest.err; then
4479 sed '10a\
4480 ... rest of stderr output deleted ...
4481 10q' conftest.err >conftest.er1
4482 cat conftest.er1 >&5
4483 fi
4484 rm -f conftest.er1 conftest.err
4485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4486 test $ac_status = 0; }
4487 done
4488
4489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4490 /* end confdefs.h. */
4491
4492 int
4493 main (void)
4494 {
4495
4496 ;
4497 return 0;
4498 }
4499 _ACEOF
4500 ac_clean_files_save=$ac_clean_files
4501 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4502 # Try to create an executable without -o first, disregard a.out.
4503 # It will help us diagnose broken compilers, and finding out an intuition
4504 # of exeext.
4505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4506 printf %s "checking whether the C compiler works... " >&6; }
4507 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4508
4509 # The possible output files:
4510 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4511
4512 ac_rmfiles=
4513 for ac_file in $ac_files
4514 do
4515 case $ac_file in
4516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4517 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4518 esac
4519 done
4520 rm -f $ac_rmfiles
4521
4522 if { { ac_try="$ac_link_default"
4523 case "(($ac_try" in
4524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4525 *) ac_try_echo=$ac_try;;
4526 esac
4527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4528 printf "%s\n" "$ac_try_echo"; } >&5
4529 (eval "$ac_link_default") 2>&5
4530 ac_status=$?
4531 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4532 test $ac_status = 0; }
4533 then :
4534 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4535 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4536 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4537 # so that the user can short-circuit this test for compilers unknown to
4538 # Autoconf.
4539 for ac_file in $ac_files ''
4540 do
4541 test -f "$ac_file" || continue
4542 case $ac_file in
4543 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4544 ;;
4545 [ab].out )
4546 # We found the default executable, but exeext='' is most
4547 # certainly right.
4548 break;;
4549 *.* )
4550 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4551 then :; else
4552 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4553 fi
4554 # We set ac_cv_exeext here because the later test for it is not
4555 # safe: cross compilers may not add the suffix if given an `-o'
4556 # argument, so we may need to know it at that point already.
4557 # Even if this section looks crufty: it has the advantage of
4558 # actually working.
4559 break;;
4560 * )
4561 break;;
4562 esac
4563 done
4564 test "$ac_cv_exeext" = no && ac_cv_exeext=
4565
4566 else $as_nop
4567 ac_file=''
4568 fi
4569 if test -z "$ac_file"
4570 then :
4571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4572 printf "%s\n" "no" >&6; }
4573 printf "%s\n" "$as_me: failed program was:" >&5
4574 sed 's/^/| /' conftest.$ac_ext >&5
4575
4576 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4577 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4578 as_fn_error 77 "C compiler cannot create executables
4579 See \`config.log' for more details" "$LINENO" 5; }
4580 else $as_nop
4581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4582 printf "%s\n" "yes" >&6; }
4583 fi
4584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4585 printf %s "checking for C compiler default output file name... " >&6; }
4586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4587 printf "%s\n" "$ac_file" >&6; }
4588 ac_exeext=$ac_cv_exeext
4589
4590 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4591 ac_clean_files=$ac_clean_files_save
4592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4593 printf %s "checking for suffix of executables... " >&6; }
4594 if { { ac_try="$ac_link"
4595 case "(($ac_try" in
4596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4597 *) ac_try_echo=$ac_try;;
4598 esac
4599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4600 printf "%s\n" "$ac_try_echo"; } >&5
4601 (eval "$ac_link") 2>&5
4602 ac_status=$?
4603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4604 test $ac_status = 0; }
4605 then :
4606 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4607 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4608 # work properly (i.e., refer to `conftest.exe'), while it won't with
4609 # `rm'.
4610 for ac_file in conftest.exe conftest conftest.*; do
4611 test -f "$ac_file" || continue
4612 case $ac_file in
4613 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4614 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4615 break;;
4616 * ) break;;
4617 esac
4618 done
4619 else $as_nop
4620 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4621 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4622 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4623 See \`config.log' for more details" "$LINENO" 5; }
4624 fi
4625 rm -f conftest conftest$ac_cv_exeext
4626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4627 printf "%s\n" "$ac_cv_exeext" >&6; }
4628
4629 rm -f conftest.$ac_ext
4630 EXEEXT=$ac_cv_exeext
4631 ac_exeext=$EXEEXT
4632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4633 /* end confdefs.h. */
4634 #include <stdio.h>
4635 int
4636 main (void)
4637 {
4638 FILE *f = fopen ("conftest.out", "w");
4639 return ferror (f) || fclose (f) != 0;
4640
4641 ;
4642 return 0;
4643 }
4644 _ACEOF
4645 ac_clean_files="$ac_clean_files conftest.out"
4646 # Check that the compiler produces executables we can run. If not, either
4647 # the compiler is broken, or we cross compile.
4648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4649 printf %s "checking whether we are cross compiling... " >&6; }
4650 if test "$cross_compiling" != yes; then
4651 { { ac_try="$ac_link"
4652 case "(($ac_try" in
4653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4654 *) ac_try_echo=$ac_try;;
4655 esac
4656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4657 printf "%s\n" "$ac_try_echo"; } >&5
4658 (eval "$ac_link") 2>&5
4659 ac_status=$?
4660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4661 test $ac_status = 0; }
4662 if { ac_try='./conftest$ac_cv_exeext'
4663 { { case "(($ac_try" in
4664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4665 *) ac_try_echo=$ac_try;;
4666 esac
4667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4668 printf "%s\n" "$ac_try_echo"; } >&5
4669 (eval "$ac_try") 2>&5
4670 ac_status=$?
4671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4672 test $ac_status = 0; }; }; then
4673 cross_compiling=no
4674 else
4675 if test "$cross_compiling" = maybe; then
4676 cross_compiling=yes
4677 else
4678 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4679 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4680 as_fn_error 77 "cannot run C compiled programs.
4681 If you meant to cross compile, use \`--host'.
4682 See \`config.log' for more details" "$LINENO" 5; }
4683 fi
4684 fi
4685 fi
4686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4687 printf "%s\n" "$cross_compiling" >&6; }
4688
4689 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4690 ac_clean_files=$ac_clean_files_save
4691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4692 printf %s "checking for suffix of object files... " >&6; }
4693 if test ${ac_cv_objext+y}
4694 then :
4695 printf %s "(cached) " >&6
4696 else $as_nop
4697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4698 /* end confdefs.h. */
4699
4700 int
4701 main (void)
4702 {
4703
4704 ;
4705 return 0;
4706 }
4707 _ACEOF
4708 rm -f conftest.o conftest.obj
4709 if { { ac_try="$ac_compile"
4710 case "(($ac_try" in
4711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4712 *) ac_try_echo=$ac_try;;
4713 esac
4714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4715 printf "%s\n" "$ac_try_echo"; } >&5
4716 (eval "$ac_compile") 2>&5
4717 ac_status=$?
4718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4719 test $ac_status = 0; }
4720 then :
4721 for ac_file in conftest.o conftest.obj conftest.*; do
4722 test -f "$ac_file" || continue;
4723 case $ac_file in
4724 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4725 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4726 break;;
4727 esac
4728 done
4729 else $as_nop
4730 printf "%s\n" "$as_me: failed program was:" >&5
4731 sed 's/^/| /' conftest.$ac_ext >&5
4732
4733 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4734 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4735 as_fn_error $? "cannot compute suffix of object files: cannot compile
4736 See \`config.log' for more details" "$LINENO" 5; }
4737 fi
4738 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4739 fi
4740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4741 printf "%s\n" "$ac_cv_objext" >&6; }
4742 OBJEXT=$ac_cv_objext
4743 ac_objext=$OBJEXT
4744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4745 printf %s "checking whether the compiler supports GNU C... " >&6; }
4746 if test ${ac_cv_c_compiler_gnu+y}
4747 then :
4748 printf %s "(cached) " >&6
4749 else $as_nop
4750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4751 /* end confdefs.h. */
4752
4753 int
4754 main (void)
4755 {
4756 #ifndef __GNUC__
4757 choke me
4758 #endif
4759
4760 ;
4761 return 0;
4762 }
4763 _ACEOF
4764 if ac_fn_c_try_compile "$LINENO"
4765 then :
4766 ac_compiler_gnu=yes
4767 else $as_nop
4768 ac_compiler_gnu=no
4769 fi
4770 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4771 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4772
4773 fi
4774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4775 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4777
4778 if test $ac_compiler_gnu = yes; then
4779 GCC=yes
4780 else
4781 GCC=
4782 fi
4783 ac_test_CFLAGS=${CFLAGS+y}
4784 ac_save_CFLAGS=$CFLAGS
4785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4786 printf %s "checking whether $CC accepts -g... " >&6; }
4787 if test ${ac_cv_prog_cc_g+y}
4788 then :
4789 printf %s "(cached) " >&6
4790 else $as_nop
4791 ac_save_c_werror_flag=$ac_c_werror_flag
4792 ac_c_werror_flag=yes
4793 ac_cv_prog_cc_g=no
4794 CFLAGS="-g"
4795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796 /* end confdefs.h. */
4797
4798 int
4799 main (void)
4800 {
4801
4802 ;
4803 return 0;
4804 }
4805 _ACEOF
4806 if ac_fn_c_try_compile "$LINENO"
4807 then :
4808 ac_cv_prog_cc_g=yes
4809 else $as_nop
4810 CFLAGS=""
4811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4812 /* end confdefs.h. */
4813
4814 int
4815 main (void)
4816 {
4817
4818 ;
4819 return 0;
4820 }
4821 _ACEOF
4822 if ac_fn_c_try_compile "$LINENO"
4823 then :
4824
4825 else $as_nop
4826 ac_c_werror_flag=$ac_save_c_werror_flag
4827 CFLAGS="-g"
4828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4829 /* end confdefs.h. */
4830
4831 int
4832 main (void)
4833 {
4834
4835 ;
4836 return 0;
4837 }
4838 _ACEOF
4839 if ac_fn_c_try_compile "$LINENO"
4840 then :
4841 ac_cv_prog_cc_g=yes
4842 fi
4843 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4844 fi
4845 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4846 fi
4847 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4848 ac_c_werror_flag=$ac_save_c_werror_flag
4849 fi
4850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4851 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4852 if test $ac_test_CFLAGS; then
4853 CFLAGS=$ac_save_CFLAGS
4854 elif test $ac_cv_prog_cc_g = yes; then
4855 if test "$GCC" = yes; then
4856 CFLAGS="-g -O2"
4857 else
4858 CFLAGS="-g"
4859 fi
4860 else
4861 if test "$GCC" = yes; then
4862 CFLAGS="-O2"
4863 else
4864 CFLAGS=
4865 fi
4866 fi
4867 ac_prog_cc_stdc=no
4868 if test x$ac_prog_cc_stdc = xno
4869 then :
4870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4871 printf %s "checking for $CC option to enable C11 features... " >&6; }
4872 if test ${ac_cv_prog_cc_c11+y}
4873 then :
4874 printf %s "(cached) " >&6
4875 else $as_nop
4876 ac_cv_prog_cc_c11=no
4877 ac_save_CC=$CC
4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h. */
4880 $ac_c_conftest_c11_program
4881 _ACEOF
4882 for ac_arg in '' -std=gnu11
4883 do
4884 CC="$ac_save_CC $ac_arg"
4885 if ac_fn_c_try_compile "$LINENO"
4886 then :
4887 ac_cv_prog_cc_c11=$ac_arg
4888 fi
4889 rm -f core conftest.err conftest.$ac_objext conftest.beam
4890 test "x$ac_cv_prog_cc_c11" != "xno" && break
4891 done
4892 rm -f conftest.$ac_ext
4893 CC=$ac_save_CC
4894 fi
4895
4896 if test "x$ac_cv_prog_cc_c11" = xno
4897 then :
4898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4899 printf "%s\n" "unsupported" >&6; }
4900 else $as_nop
4901 if test "x$ac_cv_prog_cc_c11" = x
4902 then :
4903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4904 printf "%s\n" "none needed" >&6; }
4905 else $as_nop
4906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4907 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4908 CC="$CC $ac_cv_prog_cc_c11"
4909 fi
4910 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4911 ac_prog_cc_stdc=c11
4912 fi
4913 fi
4914 if test x$ac_prog_cc_stdc = xno
4915 then :
4916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4917 printf %s "checking for $CC option to enable C99 features... " >&6; }
4918 if test ${ac_cv_prog_cc_c99+y}
4919 then :
4920 printf %s "(cached) " >&6
4921 else $as_nop
4922 ac_cv_prog_cc_c99=no
4923 ac_save_CC=$CC
4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h. */
4926 $ac_c_conftest_c99_program
4927 _ACEOF
4928 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4929 do
4930 CC="$ac_save_CC $ac_arg"
4931 if ac_fn_c_try_compile "$LINENO"
4932 then :
4933 ac_cv_prog_cc_c99=$ac_arg
4934 fi
4935 rm -f core conftest.err conftest.$ac_objext conftest.beam
4936 test "x$ac_cv_prog_cc_c99" != "xno" && break
4937 done
4938 rm -f conftest.$ac_ext
4939 CC=$ac_save_CC
4940 fi
4941
4942 if test "x$ac_cv_prog_cc_c99" = xno
4943 then :
4944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4945 printf "%s\n" "unsupported" >&6; }
4946 else $as_nop
4947 if test "x$ac_cv_prog_cc_c99" = x
4948 then :
4949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4950 printf "%s\n" "none needed" >&6; }
4951 else $as_nop
4952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4953 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4954 CC="$CC $ac_cv_prog_cc_c99"
4955 fi
4956 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4957 ac_prog_cc_stdc=c99
4958 fi
4959 fi
4960 if test x$ac_prog_cc_stdc = xno
4961 then :
4962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4963 printf %s "checking for $CC option to enable C89 features... " >&6; }
4964 if test ${ac_cv_prog_cc_c89+y}
4965 then :
4966 printf %s "(cached) " >&6
4967 else $as_nop
4968 ac_cv_prog_cc_c89=no
4969 ac_save_CC=$CC
4970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4971 /* end confdefs.h. */
4972 $ac_c_conftest_c89_program
4973 _ACEOF
4974 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4975 do
4976 CC="$ac_save_CC $ac_arg"
4977 if ac_fn_c_try_compile "$LINENO"
4978 then :
4979 ac_cv_prog_cc_c89=$ac_arg
4980 fi
4981 rm -f core conftest.err conftest.$ac_objext conftest.beam
4982 test "x$ac_cv_prog_cc_c89" != "xno" && break
4983 done
4984 rm -f conftest.$ac_ext
4985 CC=$ac_save_CC
4986 fi
4987
4988 if test "x$ac_cv_prog_cc_c89" = xno
4989 then :
4990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4991 printf "%s\n" "unsupported" >&6; }
4992 else $as_nop
4993 if test "x$ac_cv_prog_cc_c89" = x
4994 then :
4995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4996 printf "%s\n" "none needed" >&6; }
4997 else $as_nop
4998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4999 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5000 CC="$CC $ac_cv_prog_cc_c89"
5001 fi
5002 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5003 ac_prog_cc_stdc=c89
5004 fi
5005 fi
5006
5007 ac_ext=c
5008 ac_cpp='$CPP $CPPFLAGS'
5009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5012
5013
5014 ac_ext=c
5015 ac_cpp='$CPP $CPPFLAGS'
5016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5020 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5021 if test ${am_cv_prog_cc_c_o+y}
5022 then :
5023 printf %s "(cached) " >&6
5024 else $as_nop
5025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5026 /* end confdefs.h. */
5027
5028 int
5029 main (void)
5030 {
5031
5032 ;
5033 return 0;
5034 }
5035 _ACEOF
5036 # Make sure it works both with $CC and with simple cc.
5037 # Following AC_PROG_CC_C_O, we do the test twice because some
5038 # compilers refuse to overwrite an existing .o file with -o,
5039 # though they will create one.
5040 am_cv_prog_cc_c_o=yes
5041 for am_i in 1 2; do
5042 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5043 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5044 ac_status=$?
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); } \
5047 && test -f conftest2.$ac_objext; then
5048 : OK
5049 else
5050 am_cv_prog_cc_c_o=no
5051 break
5052 fi
5053 done
5054 rm -f core conftest*
5055 unset am_i
5056 fi
5057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5058 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5059 if test "$am_cv_prog_cc_c_o" != yes; then
5060 # Losing compiler, so override with the script.
5061 # FIXME: It is wrong to rewrite CC.
5062 # But if we don't then we get into trouble of one sort or another.
5063 # A longer-term fix would be to have automake use am__CC in this case,
5064 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5065 CC="$am_aux_dir/compile $CC"
5066 fi
5067 ac_ext=c
5068 ac_cpp='$CPP $CPPFLAGS'
5069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5072
5073
5074 depcc="$CC" am_compiler_list=
5075
5076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5077 printf %s "checking dependency style of $depcc... " >&6; }
5078 if test ${am_cv_CC_dependencies_compiler_type+y}
5079 then :
5080 printf %s "(cached) " >&6
5081 else $as_nop
5082 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5083 # We make a subdir and do the tests there. Otherwise we can end up
5084 # making bogus files that we don't know about and never remove. For
5085 # instance it was reported that on HP-UX the gcc test will end up
5086 # making a dummy file named 'D' -- because '-MD' means "put the output
5087 # in D".
5088 rm -rf conftest.dir
5089 mkdir conftest.dir
5090 # Copy depcomp to subdir because otherwise we won't find it if we're
5091 # using a relative directory.
5092 cp "$am_depcomp" conftest.dir
5093 cd conftest.dir
5094 # We will build objects and dependencies in a subdirectory because
5095 # it helps to detect inapplicable dependency modes. For instance
5096 # both Tru64's cc and ICC support -MD to output dependencies as a
5097 # side effect of compilation, but ICC will put the dependencies in
5098 # the current directory while Tru64 will put them in the object
5099 # directory.
5100 mkdir sub
5101
5102 am_cv_CC_dependencies_compiler_type=none
5103 if test "$am_compiler_list" = ""; then
5104 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5105 fi
5106 am__universal=false
5107 case " $depcc " in #(
5108 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5109 esac
5110
5111 for depmode in $am_compiler_list; do
5112 # Setup a source with many dependencies, because some compilers
5113 # like to wrap large dependency lists on column 80 (with \), and
5114 # we should not choose a depcomp mode which is confused by this.
5115 #
5116 # We need to recreate these files for each test, as the compiler may
5117 # overwrite some of them when testing with obscure command lines.
5118 # This happens at least with the AIX C compiler.
5119 : > sub/conftest.c
5120 for i in 1 2 3 4 5 6; do
5121 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5122 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5123 # Solaris 10 /bin/sh.
5124 echo '/* dummy */' > sub/conftst$i.h
5125 done
5126 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5127
5128 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5129 # mode. It turns out that the SunPro C++ compiler does not properly
5130 # handle '-M -o', and we need to detect this. Also, some Intel
5131 # versions had trouble with output in subdirs.
5132 am__obj=sub/conftest.${OBJEXT-o}
5133 am__minus_obj="-o $am__obj"
5134 case $depmode in
5135 gcc)
5136 # This depmode causes a compiler race in universal mode.
5137 test "$am__universal" = false || continue
5138 ;;
5139 nosideeffect)
5140 # After this tag, mechanisms are not by side-effect, so they'll
5141 # only be used when explicitly requested.
5142 if test "x$enable_dependency_tracking" = xyes; then
5143 continue
5144 else
5145 break
5146 fi
5147 ;;
5148 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5149 # This compiler won't grok '-c -o', but also, the minuso test has
5150 # not run yet. These depmodes are late enough in the game, and
5151 # so weak that their functioning should not be impacted.
5152 am__obj=conftest.${OBJEXT-o}
5153 am__minus_obj=
5154 ;;
5155 none) break ;;
5156 esac
5157 if depmode=$depmode \
5158 source=sub/conftest.c object=$am__obj \
5159 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5160 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5161 >/dev/null 2>conftest.err &&
5162 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5163 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5164 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5165 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5166 # icc doesn't choke on unknown options, it will just issue warnings
5167 # or remarks (even with -Werror). So we grep stderr for any message
5168 # that says an option was ignored or not supported.
5169 # When given -MP, icc 7.0 and 7.1 complain thusly:
5170 # icc: Command line warning: ignoring option '-M'; no argument required
5171 # The diagnosis changed in icc 8.0:
5172 # icc: Command line remark: option '-MP' not supported
5173 if (grep 'ignoring option' conftest.err ||
5174 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5175 am_cv_CC_dependencies_compiler_type=$depmode
5176 break
5177 fi
5178 fi
5179 done
5180
5181 cd ..
5182 rm -rf conftest.dir
5183 else
5184 am_cv_CC_dependencies_compiler_type=none
5185 fi
5186
5187 fi
5188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5189 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5190 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5191
5192 if
5193 test "x$enable_dependency_tracking" != xno \
5194 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5195 am__fastdepCC_TRUE=
5196 am__fastdepCC_FALSE='#'
5197 else
5198 am__fastdepCC_TRUE='#'
5199 am__fastdepCC_FALSE=
5200 fi
5201
5202
5203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5204 printf %s "checking for a sed that does not truncate output... " >&6; }
5205 if test ${ac_cv_path_SED+y}
5206 then :
5207 printf %s "(cached) " >&6
5208 else $as_nop
5209 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5210 for ac_i in 1 2 3 4 5 6 7; do
5211 ac_script="$ac_script$as_nl$ac_script"
5212 done
5213 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5214 { ac_script=; unset ac_script;}
5215 if test -z "$SED"; then
5216 ac_path_SED_found=false
5217 # Loop through the user's path and test for each of PROGNAME-LIST
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219 for as_dir in $PATH
5220 do
5221 IFS=$as_save_IFS
5222 case $as_dir in #(((
5223 '') as_dir=./ ;;
5224 */) ;;
5225 *) as_dir=$as_dir/ ;;
5226 esac
5227 for ac_prog in sed gsed
5228 do
5229 for ac_exec_ext in '' $ac_executable_extensions; do
5230 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5231 as_fn_executable_p "$ac_path_SED" || continue
5232 # Check for GNU ac_path_SED and select it if it is found.
5233 # Check for GNU $ac_path_SED
5234 case `"$ac_path_SED" --version 2>&1` in
5235 *GNU*)
5236 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5237 *)
5238 ac_count=0
5239 printf %s 0123456789 >"conftest.in"
5240 while :
5241 do
5242 cat "conftest.in" "conftest.in" >"conftest.tmp"
5243 mv "conftest.tmp" "conftest.in"
5244 cp "conftest.in" "conftest.nl"
5245 printf "%s\n" '' >> "conftest.nl"
5246 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5247 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5248 as_fn_arith $ac_count + 1 && ac_count=$as_val
5249 if test $ac_count -gt ${ac_path_SED_max-0}; then
5250 # Best one so far, save it but keep looking for a better one
5251 ac_cv_path_SED="$ac_path_SED"
5252 ac_path_SED_max=$ac_count
5253 fi
5254 # 10*(2^10) chars as input seems more than enough
5255 test $ac_count -gt 10 && break
5256 done
5257 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5258 esac
5259
5260 $ac_path_SED_found && break 3
5261 done
5262 done
5263 done
5264 IFS=$as_save_IFS
5265 if test -z "$ac_cv_path_SED"; then
5266 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5267 fi
5268 else
5269 ac_cv_path_SED=$SED
5270 fi
5271
5272 fi
5273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5274 printf "%s\n" "$ac_cv_path_SED" >&6; }
5275 SED="$ac_cv_path_SED"
5276 rm -f conftest.sed
5277
5278 test -z "$SED" && SED=sed
5279 Xsed="$SED -e 1s/^X//"
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5292 printf %s "checking for grep that handles long lines and -e... " >&6; }
5293 if test ${ac_cv_path_GREP+y}
5294 then :
5295 printf %s "(cached) " >&6
5296 else $as_nop
5297 if test -z "$GREP"; then
5298 ac_path_GREP_found=false
5299 # Loop through the user's path and test for each of PROGNAME-LIST
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5302 do
5303 IFS=$as_save_IFS
5304 case $as_dir in #(((
5305 '') as_dir=./ ;;
5306 */) ;;
5307 *) as_dir=$as_dir/ ;;
5308 esac
5309 for ac_prog in grep ggrep
5310 do
5311 for ac_exec_ext in '' $ac_executable_extensions; do
5312 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5313 as_fn_executable_p "$ac_path_GREP" || continue
5314 # Check for GNU ac_path_GREP and select it if it is found.
5315 # Check for GNU $ac_path_GREP
5316 case `"$ac_path_GREP" --version 2>&1` in
5317 *GNU*)
5318 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5319 *)
5320 ac_count=0
5321 printf %s 0123456789 >"conftest.in"
5322 while :
5323 do
5324 cat "conftest.in" "conftest.in" >"conftest.tmp"
5325 mv "conftest.tmp" "conftest.in"
5326 cp "conftest.in" "conftest.nl"
5327 printf "%s\n" 'GREP' >> "conftest.nl"
5328 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5329 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5330 as_fn_arith $ac_count + 1 && ac_count=$as_val
5331 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5332 # Best one so far, save it but keep looking for a better one
5333 ac_cv_path_GREP="$ac_path_GREP"
5334 ac_path_GREP_max=$ac_count
5335 fi
5336 # 10*(2^10) chars as input seems more than enough
5337 test $ac_count -gt 10 && break
5338 done
5339 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5340 esac
5341
5342 $ac_path_GREP_found && break 3
5343 done
5344 done
5345 done
5346 IFS=$as_save_IFS
5347 if test -z "$ac_cv_path_GREP"; then
5348 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5349 fi
5350 else
5351 ac_cv_path_GREP=$GREP
5352 fi
5353
5354 fi
5355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5356 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5357 GREP="$ac_cv_path_GREP"
5358
5359
5360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5361 printf %s "checking for egrep... " >&6; }
5362 if test ${ac_cv_path_EGREP+y}
5363 then :
5364 printf %s "(cached) " >&6
5365 else $as_nop
5366 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5367 then ac_cv_path_EGREP="$GREP -E"
5368 else
5369 if test -z "$EGREP"; then
5370 ac_path_EGREP_found=false
5371 # Loop through the user's path and test for each of PROGNAME-LIST
5372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5374 do
5375 IFS=$as_save_IFS
5376 case $as_dir in #(((
5377 '') as_dir=./ ;;
5378 */) ;;
5379 *) as_dir=$as_dir/ ;;
5380 esac
5381 for ac_prog in egrep
5382 do
5383 for ac_exec_ext in '' $ac_executable_extensions; do
5384 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5385 as_fn_executable_p "$ac_path_EGREP" || continue
5386 # Check for GNU ac_path_EGREP and select it if it is found.
5387 # Check for GNU $ac_path_EGREP
5388 case `"$ac_path_EGREP" --version 2>&1` in
5389 *GNU*)
5390 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5391 *)
5392 ac_count=0
5393 printf %s 0123456789 >"conftest.in"
5394 while :
5395 do
5396 cat "conftest.in" "conftest.in" >"conftest.tmp"
5397 mv "conftest.tmp" "conftest.in"
5398 cp "conftest.in" "conftest.nl"
5399 printf "%s\n" 'EGREP' >> "conftest.nl"
5400 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5401 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5402 as_fn_arith $ac_count + 1 && ac_count=$as_val
5403 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5404 # Best one so far, save it but keep looking for a better one
5405 ac_cv_path_EGREP="$ac_path_EGREP"
5406 ac_path_EGREP_max=$ac_count
5407 fi
5408 # 10*(2^10) chars as input seems more than enough
5409 test $ac_count -gt 10 && break
5410 done
5411 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5412 esac
5413
5414 $ac_path_EGREP_found && break 3
5415 done
5416 done
5417 done
5418 IFS=$as_save_IFS
5419 if test -z "$ac_cv_path_EGREP"; then
5420 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5421 fi
5422 else
5423 ac_cv_path_EGREP=$EGREP
5424 fi
5425
5426 fi
5427 fi
5428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5429 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5430 EGREP="$ac_cv_path_EGREP"
5431
5432
5433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5434 printf %s "checking for fgrep... " >&6; }
5435 if test ${ac_cv_path_FGREP+y}
5436 then :
5437 printf %s "(cached) " >&6
5438 else $as_nop
5439 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5440 then ac_cv_path_FGREP="$GREP -F"
5441 else
5442 if test -z "$FGREP"; then
5443 ac_path_FGREP_found=false
5444 # Loop through the user's path and test for each of PROGNAME-LIST
5445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5447 do
5448 IFS=$as_save_IFS
5449 case $as_dir in #(((
5450 '') as_dir=./ ;;
5451 */) ;;
5452 *) as_dir=$as_dir/ ;;
5453 esac
5454 for ac_prog in fgrep
5455 do
5456 for ac_exec_ext in '' $ac_executable_extensions; do
5457 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5458 as_fn_executable_p "$ac_path_FGREP" || continue
5459 # Check for GNU ac_path_FGREP and select it if it is found.
5460 # Check for GNU $ac_path_FGREP
5461 case `"$ac_path_FGREP" --version 2>&1` in
5462 *GNU*)
5463 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5464 *)
5465 ac_count=0
5466 printf %s 0123456789 >"conftest.in"
5467 while :
5468 do
5469 cat "conftest.in" "conftest.in" >"conftest.tmp"
5470 mv "conftest.tmp" "conftest.in"
5471 cp "conftest.in" "conftest.nl"
5472 printf "%s\n" 'FGREP' >> "conftest.nl"
5473 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5474 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5475 as_fn_arith $ac_count + 1 && ac_count=$as_val
5476 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5477 # Best one so far, save it but keep looking for a better one
5478 ac_cv_path_FGREP="$ac_path_FGREP"
5479 ac_path_FGREP_max=$ac_count
5480 fi
5481 # 10*(2^10) chars as input seems more than enough
5482 test $ac_count -gt 10 && break
5483 done
5484 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5485 esac
5486
5487 $ac_path_FGREP_found && break 3
5488 done
5489 done
5490 done
5491 IFS=$as_save_IFS
5492 if test -z "$ac_cv_path_FGREP"; then
5493 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5494 fi
5495 else
5496 ac_cv_path_FGREP=$FGREP
5497 fi
5498
5499 fi
5500 fi
5501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5502 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5503 FGREP="$ac_cv_path_FGREP"
5504
5505
5506 test -z "$GREP" && GREP=grep
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526 # Check whether --with-gnu-ld was given.
5527 if test ${with_gnu_ld+y}
5528 then :
5529 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5530 else $as_nop
5531 with_gnu_ld=no
5532 fi
5533
5534 ac_prog=ld
5535 if test yes = "$GCC"; then
5536 # Check if gcc -print-prog-name=ld gives a path.
5537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5538 printf %s "checking for ld used by $CC... " >&6; }
5539 case $host in
5540 *-*-mingw*)
5541 # gcc leaves a trailing carriage return, which upsets mingw
5542 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5543 *)
5544 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5545 esac
5546 case $ac_prog in
5547 # Accept absolute paths.
5548 [\\/]* | ?:[\\/]*)
5549 re_direlt='/[^/][^/]*/\.\./'
5550 # Canonicalize the pathname of ld
5551 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5552 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5553 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5554 done
5555 test -z "$LD" && LD=$ac_prog
5556 ;;
5557 "")
5558 # If it fails, then pretend we aren't using GCC.
5559 ac_prog=ld
5560 ;;
5561 *)
5562 # If it is relative, then search for the first ld in PATH.
5563 with_gnu_ld=unknown
5564 ;;
5565 esac
5566 elif test yes = "$with_gnu_ld"; then
5567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5568 printf %s "checking for GNU ld... " >&6; }
5569 else
5570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5571 printf %s "checking for non-GNU ld... " >&6; }
5572 fi
5573 if test ${lt_cv_path_LD+y}
5574 then :
5575 printf %s "(cached) " >&6
5576 else $as_nop
5577 if test -z "$LD"; then
5578 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5579 for ac_dir in $PATH; do
5580 IFS=$lt_save_ifs
5581 test -z "$ac_dir" && ac_dir=.
5582 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5583 lt_cv_path_LD=$ac_dir/$ac_prog
5584 # Check to see if the program is GNU ld. I'd rather use --version,
5585 # but apparently some variants of GNU ld only accept -v.
5586 # Break only if it was the GNU/non-GNU ld that we prefer.
5587 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5588 *GNU* | *'with BFD'*)
5589 test no != "$with_gnu_ld" && break
5590 ;;
5591 *)
5592 test yes != "$with_gnu_ld" && break
5593 ;;
5594 esac
5595 fi
5596 done
5597 IFS=$lt_save_ifs
5598 else
5599 lt_cv_path_LD=$LD # Let the user override the test with a path.
5600 fi
5601 fi
5602
5603 LD=$lt_cv_path_LD
5604 if test -n "$LD"; then
5605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5606 printf "%s\n" "$LD" >&6; }
5607 else
5608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5609 printf "%s\n" "no" >&6; }
5610 fi
5611 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5613 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5614 if test ${lt_cv_prog_gnu_ld+y}
5615 then :
5616 printf %s "(cached) " >&6
5617 else $as_nop
5618 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5619 case `$LD -v 2>&1 </dev/null` in
5620 *GNU* | *'with BFD'*)
5621 lt_cv_prog_gnu_ld=yes
5622 ;;
5623 *)
5624 lt_cv_prog_gnu_ld=no
5625 ;;
5626 esac
5627 fi
5628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5629 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5630 with_gnu_ld=$lt_cv_prog_gnu_ld
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5641 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5642 if test ${lt_cv_path_NM+y}
5643 then :
5644 printf %s "(cached) " >&6
5645 else $as_nop
5646 if test -n "$NM"; then
5647 # Let the user override the test.
5648 lt_cv_path_NM=$NM
5649 else
5650 lt_nm_to_check=${ac_tool_prefix}nm
5651 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5652 lt_nm_to_check="$lt_nm_to_check nm"
5653 fi
5654 for lt_tmp_nm in $lt_nm_to_check; do
5655 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5656 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5657 IFS=$lt_save_ifs
5658 test -z "$ac_dir" && ac_dir=.
5659 tmp_nm=$ac_dir/$lt_tmp_nm
5660 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5661 # Check to see if the nm accepts a BSD-compat flag.
5662 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5663 # nm: unknown option "B" ignored
5664 # Tru64's nm complains that /dev/null is an invalid object file
5665 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5666 case $build_os in
5667 mingw*) lt_bad_file=conftest.nm/nofile ;;
5668 *) lt_bad_file=/dev/null ;;
5669 esac
5670 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5671 *$lt_bad_file* | *'Invalid file or object type'*)
5672 lt_cv_path_NM="$tmp_nm -B"
5673 break 2
5674 ;;
5675 *)
5676 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5677 */dev/null*)
5678 lt_cv_path_NM="$tmp_nm -p"
5679 break 2
5680 ;;
5681 *)
5682 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5683 continue # so that we can try to find one that supports BSD flags
5684 ;;
5685 esac
5686 ;;
5687 esac
5688 fi
5689 done
5690 IFS=$lt_save_ifs
5691 done
5692 : ${lt_cv_path_NM=no}
5693 fi
5694 fi
5695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5696 printf "%s\n" "$lt_cv_path_NM" >&6; }
5697 if test no != "$lt_cv_path_NM"; then
5698 NM=$lt_cv_path_NM
5699 else
5700 # Didn't find any BSD compatible name lister, look for dumpbin.
5701 if test -n "$DUMPBIN"; then :
5702 # Let the user override the test.
5703 else
5704 if test -n "$ac_tool_prefix"; then
5705 for ac_prog in dumpbin "link -dump"
5706 do
5707 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5708 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5710 printf %s "checking for $ac_word... " >&6; }
5711 if test ${ac_cv_prog_DUMPBIN+y}
5712 then :
5713 printf %s "(cached) " >&6
5714 else $as_nop
5715 if test -n "$DUMPBIN"; then
5716 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5717 else
5718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5719 for as_dir in $PATH
5720 do
5721 IFS=$as_save_IFS
5722 case $as_dir in #(((
5723 '') as_dir=./ ;;
5724 */) ;;
5725 *) as_dir=$as_dir/ ;;
5726 esac
5727 for ac_exec_ext in '' $ac_executable_extensions; do
5728 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5729 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5731 break 2
5732 fi
5733 done
5734 done
5735 IFS=$as_save_IFS
5736
5737 fi
5738 fi
5739 DUMPBIN=$ac_cv_prog_DUMPBIN
5740 if test -n "$DUMPBIN"; then
5741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5742 printf "%s\n" "$DUMPBIN" >&6; }
5743 else
5744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5745 printf "%s\n" "no" >&6; }
5746 fi
5747
5748
5749 test -n "$DUMPBIN" && break
5750 done
5751 fi
5752 if test -z "$DUMPBIN"; then
5753 ac_ct_DUMPBIN=$DUMPBIN
5754 for ac_prog in dumpbin "link -dump"
5755 do
5756 # Extract the first word of "$ac_prog", so it can be a program name with args.
5757 set dummy $ac_prog; ac_word=$2
5758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5759 printf %s "checking for $ac_word... " >&6; }
5760 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5761 then :
5762 printf %s "(cached) " >&6
5763 else $as_nop
5764 if test -n "$ac_ct_DUMPBIN"; then
5765 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5766 else
5767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768 for as_dir in $PATH
5769 do
5770 IFS=$as_save_IFS
5771 case $as_dir in #(((
5772 '') as_dir=./ ;;
5773 */) ;;
5774 *) as_dir=$as_dir/ ;;
5775 esac
5776 for ac_exec_ext in '' $ac_executable_extensions; do
5777 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5778 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5779 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5780 break 2
5781 fi
5782 done
5783 done
5784 IFS=$as_save_IFS
5785
5786 fi
5787 fi
5788 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5789 if test -n "$ac_ct_DUMPBIN"; then
5790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5791 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5792 else
5793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5794 printf "%s\n" "no" >&6; }
5795 fi
5796
5797
5798 test -n "$ac_ct_DUMPBIN" && break
5799 done
5800
5801 if test "x$ac_ct_DUMPBIN" = x; then
5802 DUMPBIN=":"
5803 else
5804 case $cross_compiling:$ac_tool_warned in
5805 yes:)
5806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5807 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5808 ac_tool_warned=yes ;;
5809 esac
5810 DUMPBIN=$ac_ct_DUMPBIN
5811 fi
5812 fi
5813
5814 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5815 *COFF*)
5816 DUMPBIN="$DUMPBIN -symbols -headers"
5817 ;;
5818 *)
5819 DUMPBIN=:
5820 ;;
5821 esac
5822 fi
5823
5824 if test : != "$DUMPBIN"; then
5825 NM=$DUMPBIN
5826 fi
5827 fi
5828 test -z "$NM" && NM=nm
5829
5830
5831
5832
5833
5834
5835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5836 printf %s "checking the name lister ($NM) interface... " >&6; }
5837 if test ${lt_cv_nm_interface+y}
5838 then :
5839 printf %s "(cached) " >&6
5840 else $as_nop
5841 lt_cv_nm_interface="BSD nm"
5842 echo "int some_variable = 0;" > conftest.$ac_ext
5843 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5844 (eval "$ac_compile" 2>conftest.err)
5845 cat conftest.err >&5
5846 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5847 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5848 cat conftest.err >&5
5849 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5850 cat conftest.out >&5
5851 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5852 lt_cv_nm_interface="MS dumpbin"
5853 fi
5854 rm -f conftest*
5855 fi
5856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5857 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5858
5859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5860 printf %s "checking whether ln -s works... " >&6; }
5861 LN_S=$as_ln_s
5862 if test "$LN_S" = "ln -s"; then
5863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5864 printf "%s\n" "yes" >&6; }
5865 else
5866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5867 printf "%s\n" "no, using $LN_S" >&6; }
5868 fi
5869
5870 # find the maximum length of command line arguments
5871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5872 printf %s "checking the maximum length of command line arguments... " >&6; }
5873 if test ${lt_cv_sys_max_cmd_len+y}
5874 then :
5875 printf %s "(cached) " >&6
5876 else $as_nop
5877 i=0
5878 teststring=ABCD
5879
5880 case $build_os in
5881 msdosdjgpp*)
5882 # On DJGPP, this test can blow up pretty badly due to problems in libc
5883 # (any single argument exceeding 2000 bytes causes a buffer overrun
5884 # during glob expansion). Even if it were fixed, the result of this
5885 # check would be larger than it should be.
5886 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5887 ;;
5888
5889 gnu*)
5890 # Under GNU Hurd, this test is not required because there is
5891 # no limit to the length of command line arguments.
5892 # Libtool will interpret -1 as no limit whatsoever
5893 lt_cv_sys_max_cmd_len=-1;
5894 ;;
5895
5896 cygwin* | mingw* | cegcc*)
5897 # On Win9x/ME, this test blows up -- it succeeds, but takes
5898 # about 5 minutes as the teststring grows exponentially.
5899 # Worse, since 9x/ME are not pre-emptively multitasking,
5900 # you end up with a "frozen" computer, even though with patience
5901 # the test eventually succeeds (with a max line length of 256k).
5902 # Instead, let's just punt: use the minimum linelength reported by
5903 # all of the supported platforms: 8192 (on NT/2K/XP).
5904 lt_cv_sys_max_cmd_len=8192;
5905 ;;
5906
5907 mint*)
5908 # On MiNT this can take a long time and run out of memory.
5909 lt_cv_sys_max_cmd_len=8192;
5910 ;;
5911
5912 amigaos*)
5913 # On AmigaOS with pdksh, this test takes hours, literally.
5914 # So we just punt and use a minimum line length of 8192.
5915 lt_cv_sys_max_cmd_len=8192;
5916 ;;
5917
5918 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5919 # This has been around since 386BSD, at least. Likely further.
5920 if test -x /sbin/sysctl; then
5921 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5922 elif test -x /usr/sbin/sysctl; then
5923 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5924 else
5925 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5926 fi
5927 # And add a safety zone
5928 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5929 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5930 ;;
5931
5932 interix*)
5933 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5934 lt_cv_sys_max_cmd_len=196608
5935 ;;
5936
5937 os2*)
5938 # The test takes a long time on OS/2.
5939 lt_cv_sys_max_cmd_len=8192
5940 ;;
5941
5942 osf*)
5943 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5944 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5945 # nice to cause kernel panics so lets avoid the loop below.
5946 # First set a reasonable default.
5947 lt_cv_sys_max_cmd_len=16384
5948 #
5949 if test -x /sbin/sysconfig; then
5950 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5951 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5952 esac
5953 fi
5954 ;;
5955 sco3.2v5*)
5956 lt_cv_sys_max_cmd_len=102400
5957 ;;
5958 sysv5* | sco5v6* | sysv4.2uw2*)
5959 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5960 if test -n "$kargmax"; then
5961 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5962 else
5963 lt_cv_sys_max_cmd_len=32768
5964 fi
5965 ;;
5966 *)
5967 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5968 if test -n "$lt_cv_sys_max_cmd_len" && \
5969 test undefined != "$lt_cv_sys_max_cmd_len"; then
5970 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5971 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5972 else
5973 # Make teststring a little bigger before we do anything with it.
5974 # a 1K string should be a reasonable start.
5975 for i in 1 2 3 4 5 6 7 8; do
5976 teststring=$teststring$teststring
5977 done
5978 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5979 # If test is not a shell built-in, we'll probably end up computing a
5980 # maximum length that is only half of the actual maximum length, but
5981 # we can't tell.
5982 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5983 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5984 test 17 != "$i" # 1/2 MB should be enough
5985 do
5986 i=`expr $i + 1`
5987 teststring=$teststring$teststring
5988 done
5989 # Only check the string length outside the loop.
5990 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5991 teststring=
5992 # Add a significant safety factor because C++ compilers can tack on
5993 # massive amounts of additional arguments before passing them to the
5994 # linker. It appears as though 1/2 is a usable value.
5995 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5996 fi
5997 ;;
5998 esac
5999
6000 fi
6001
6002 if test -n "$lt_cv_sys_max_cmd_len"; then
6003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6004 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6005 else
6006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6007 printf "%s\n" "none" >&6; }
6008 fi
6009 max_cmd_len=$lt_cv_sys_max_cmd_len
6010
6011
6012
6013
6014
6015
6016 : ${CP="cp -f"}
6017 : ${MV="mv -f"}
6018 : ${RM="rm -f"}
6019
6020 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6021 lt_unset=unset
6022 else
6023 lt_unset=false
6024 fi
6025
6026
6027
6028
6029
6030 # test EBCDIC or ASCII
6031 case `echo X|tr X '\101'` in
6032 A) # ASCII based system
6033 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6034 lt_SP2NL='tr \040 \012'
6035 lt_NL2SP='tr \015\012 \040\040'
6036 ;;
6037 *) # EBCDIC based system
6038 lt_SP2NL='tr \100 \n'
6039 lt_NL2SP='tr \r\n \100\100'
6040 ;;
6041 esac
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6052 printf %s "checking how to convert $build file names to $host format... " >&6; }
6053 if test ${lt_cv_to_host_file_cmd+y}
6054 then :
6055 printf %s "(cached) " >&6
6056 else $as_nop
6057 case $host in
6058 *-*-mingw* )
6059 case $build in
6060 *-*-mingw* ) # actually msys
6061 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6062 ;;
6063 *-*-cygwin* )
6064 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6065 ;;
6066 * ) # otherwise, assume *nix
6067 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6068 ;;
6069 esac
6070 ;;
6071 *-*-cygwin* )
6072 case $build in
6073 *-*-mingw* ) # actually msys
6074 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6075 ;;
6076 *-*-cygwin* )
6077 lt_cv_to_host_file_cmd=func_convert_file_noop
6078 ;;
6079 * ) # otherwise, assume *nix
6080 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6081 ;;
6082 esac
6083 ;;
6084 * ) # unhandled hosts (and "normal" native builds)
6085 lt_cv_to_host_file_cmd=func_convert_file_noop
6086 ;;
6087 esac
6088
6089 fi
6090
6091 to_host_file_cmd=$lt_cv_to_host_file_cmd
6092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6093 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6094
6095
6096
6097
6098
6099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6100 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6101 if test ${lt_cv_to_tool_file_cmd+y}
6102 then :
6103 printf %s "(cached) " >&6
6104 else $as_nop
6105 #assume ordinary cross tools, or native build.
6106 lt_cv_to_tool_file_cmd=func_convert_file_noop
6107 case $host in
6108 *-*-mingw* )
6109 case $build in
6110 *-*-mingw* ) # actually msys
6111 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6112 ;;
6113 esac
6114 ;;
6115 esac
6116
6117 fi
6118
6119 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6121 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6122
6123
6124
6125
6126
6127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6128 printf %s "checking for $LD option to reload object files... " >&6; }
6129 if test ${lt_cv_ld_reload_flag+y}
6130 then :
6131 printf %s "(cached) " >&6
6132 else $as_nop
6133 lt_cv_ld_reload_flag='-r'
6134 fi
6135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6136 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6137 reload_flag=$lt_cv_ld_reload_flag
6138 case $reload_flag in
6139 "" | " "*) ;;
6140 *) reload_flag=" $reload_flag" ;;
6141 esac
6142 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6143 case $host_os in
6144 cygwin* | mingw* | pw32* | cegcc*)
6145 if test yes != "$GCC"; then
6146 reload_cmds=false
6147 fi
6148 ;;
6149 darwin*)
6150 if test yes = "$GCC"; then
6151 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6152 else
6153 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6154 fi
6155 ;;
6156 esac
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166 if test -n "$ac_tool_prefix"; then
6167 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6168 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6170 printf %s "checking for $ac_word... " >&6; }
6171 if test ${ac_cv_prog_OBJDUMP+y}
6172 then :
6173 printf %s "(cached) " >&6
6174 else $as_nop
6175 if test -n "$OBJDUMP"; then
6176 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6177 else
6178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179 for as_dir in $PATH
6180 do
6181 IFS=$as_save_IFS
6182 case $as_dir in #(((
6183 '') as_dir=./ ;;
6184 */) ;;
6185 *) as_dir=$as_dir/ ;;
6186 esac
6187 for ac_exec_ext in '' $ac_executable_extensions; do
6188 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6189 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6190 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6191 break 2
6192 fi
6193 done
6194 done
6195 IFS=$as_save_IFS
6196
6197 fi
6198 fi
6199 OBJDUMP=$ac_cv_prog_OBJDUMP
6200 if test -n "$OBJDUMP"; then
6201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6202 printf "%s\n" "$OBJDUMP" >&6; }
6203 else
6204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6205 printf "%s\n" "no" >&6; }
6206 fi
6207
6208
6209 fi
6210 if test -z "$ac_cv_prog_OBJDUMP"; then
6211 ac_ct_OBJDUMP=$OBJDUMP
6212 # Extract the first word of "objdump", so it can be a program name with args.
6213 set dummy objdump; ac_word=$2
6214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6215 printf %s "checking for $ac_word... " >&6; }
6216 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6217 then :
6218 printf %s "(cached) " >&6
6219 else $as_nop
6220 if test -n "$ac_ct_OBJDUMP"; then
6221 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6222 else
6223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224 for as_dir in $PATH
6225 do
6226 IFS=$as_save_IFS
6227 case $as_dir in #(((
6228 '') as_dir=./ ;;
6229 */) ;;
6230 *) as_dir=$as_dir/ ;;
6231 esac
6232 for ac_exec_ext in '' $ac_executable_extensions; do
6233 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6234 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6235 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6236 break 2
6237 fi
6238 done
6239 done
6240 IFS=$as_save_IFS
6241
6242 fi
6243 fi
6244 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6245 if test -n "$ac_ct_OBJDUMP"; then
6246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6247 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6248 else
6249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6250 printf "%s\n" "no" >&6; }
6251 fi
6252
6253 if test "x$ac_ct_OBJDUMP" = x; then
6254 OBJDUMP="false"
6255 else
6256 case $cross_compiling:$ac_tool_warned in
6257 yes:)
6258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6259 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6260 ac_tool_warned=yes ;;
6261 esac
6262 OBJDUMP=$ac_ct_OBJDUMP
6263 fi
6264 else
6265 OBJDUMP="$ac_cv_prog_OBJDUMP"
6266 fi
6267
6268 test -z "$OBJDUMP" && OBJDUMP=objdump
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6279 printf %s "checking how to recognize dependent libraries... " >&6; }
6280 if test ${lt_cv_deplibs_check_method+y}
6281 then :
6282 printf %s "(cached) " >&6
6283 else $as_nop
6284 lt_cv_file_magic_cmd='$MAGIC_CMD'
6285 lt_cv_file_magic_test_file=
6286 lt_cv_deplibs_check_method='unknown'
6287 # Need to set the preceding variable on all platforms that support
6288 # interlibrary dependencies.
6289 # 'none' -- dependencies not supported.
6290 # 'unknown' -- same as none, but documents that we really don't know.
6291 # 'pass_all' -- all dependencies passed with no checks.
6292 # 'test_compile' -- check by making test program.
6293 # 'file_magic [[regex]]' -- check by looking for files in library path
6294 # that responds to the $file_magic_cmd with a given extended regex.
6295 # If you have 'file' or equivalent on your system and you're not sure
6296 # whether 'pass_all' will *always* work, you probably want this one.
6297
6298 case $host_os in
6299 aix[4-9]*)
6300 lt_cv_deplibs_check_method=pass_all
6301 ;;
6302
6303 beos*)
6304 lt_cv_deplibs_check_method=pass_all
6305 ;;
6306
6307 bsdi[45]*)
6308 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6309 lt_cv_file_magic_cmd='/usr/bin/file -L'
6310 lt_cv_file_magic_test_file=/shlib/libc.so
6311 ;;
6312
6313 cygwin*)
6314 # func_win32_libid is a shell function defined in ltmain.sh
6315 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6316 lt_cv_file_magic_cmd='func_win32_libid'
6317 ;;
6318
6319 mingw* | pw32*)
6320 # Base MSYS/MinGW do not provide the 'file' command needed by
6321 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6322 # unless we find 'file', for example because we are cross-compiling.
6323 if ( file / ) >/dev/null 2>&1; then
6324 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6325 lt_cv_file_magic_cmd='func_win32_libid'
6326 else
6327 # Keep this pattern in sync with the one in func_win32_libid.
6328 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6329 lt_cv_file_magic_cmd='$OBJDUMP -f'
6330 fi
6331 ;;
6332
6333 cegcc*)
6334 # use the weaker test based on 'objdump'. See mingw*.
6335 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6336 lt_cv_file_magic_cmd='$OBJDUMP -f'
6337 ;;
6338
6339 darwin* | rhapsody*)
6340 lt_cv_deplibs_check_method=pass_all
6341 ;;
6342
6343 freebsd* | dragonfly*)
6344 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6345 case $host_cpu in
6346 i*86 )
6347 # Not sure whether the presence of OpenBSD here was a mistake.
6348 # Let's accept both of them until this is cleared up.
6349 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6350 lt_cv_file_magic_cmd=/usr/bin/file
6351 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6352 ;;
6353 esac
6354 else
6355 lt_cv_deplibs_check_method=pass_all
6356 fi
6357 ;;
6358
6359 haiku*)
6360 lt_cv_deplibs_check_method=pass_all
6361 ;;
6362
6363 hpux10.20* | hpux11*)
6364 lt_cv_file_magic_cmd=/usr/bin/file
6365 case $host_cpu in
6366 ia64*)
6367 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6368 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6369 ;;
6370 hppa*64*)
6371 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]'
6372 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6373 ;;
6374 *)
6375 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6376 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6377 ;;
6378 esac
6379 ;;
6380
6381 interix[3-9]*)
6382 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6383 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6384 ;;
6385
6386 irix5* | irix6* | nonstopux*)
6387 case $LD in
6388 *-32|*"-32 ") libmagic=32-bit;;
6389 *-n32|*"-n32 ") libmagic=N32;;
6390 *-64|*"-64 ") libmagic=64-bit;;
6391 *) libmagic=never-match;;
6392 esac
6393 lt_cv_deplibs_check_method=pass_all
6394 ;;
6395
6396 # This must be glibc/ELF.
6397 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6398 lt_cv_deplibs_check_method=pass_all
6399 ;;
6400
6401 netbsd* | netbsdelf*-gnu)
6402 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6403 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6404 else
6405 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6406 fi
6407 ;;
6408
6409 newos6*)
6410 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6411 lt_cv_file_magic_cmd=/usr/bin/file
6412 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6413 ;;
6414
6415 *nto* | *qnx*)
6416 lt_cv_deplibs_check_method=pass_all
6417 ;;
6418
6419 openbsd* | bitrig*)
6420 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6421 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6422 else
6423 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6424 fi
6425 ;;
6426
6427 osf3* | osf4* | osf5*)
6428 lt_cv_deplibs_check_method=pass_all
6429 ;;
6430
6431 rdos*)
6432 lt_cv_deplibs_check_method=pass_all
6433 ;;
6434
6435 solaris*)
6436 lt_cv_deplibs_check_method=pass_all
6437 ;;
6438
6439 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6440 lt_cv_deplibs_check_method=pass_all
6441 ;;
6442
6443 sysv4 | sysv4.3*)
6444 case $host_vendor in
6445 motorola)
6446 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]'
6447 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6448 ;;
6449 ncr)
6450 lt_cv_deplibs_check_method=pass_all
6451 ;;
6452 sequent)
6453 lt_cv_file_magic_cmd='/bin/file'
6454 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6455 ;;
6456 sni)
6457 lt_cv_file_magic_cmd='/bin/file'
6458 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6459 lt_cv_file_magic_test_file=/lib/libc.so
6460 ;;
6461 siemens)
6462 lt_cv_deplibs_check_method=pass_all
6463 ;;
6464 pc)
6465 lt_cv_deplibs_check_method=pass_all
6466 ;;
6467 esac
6468 ;;
6469
6470 tpf*)
6471 lt_cv_deplibs_check_method=pass_all
6472 ;;
6473 os2*)
6474 lt_cv_deplibs_check_method=pass_all
6475 ;;
6476 esac
6477
6478 fi
6479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6480 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6481
6482 file_magic_glob=
6483 want_nocaseglob=no
6484 if test "$build" = "$host"; then
6485 case $host_os in
6486 mingw* | pw32*)
6487 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6488 want_nocaseglob=yes
6489 else
6490 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6491 fi
6492 ;;
6493 esac
6494 fi
6495
6496 file_magic_cmd=$lt_cv_file_magic_cmd
6497 deplibs_check_method=$lt_cv_deplibs_check_method
6498 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521 if test -n "$ac_tool_prefix"; then
6522 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6523 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6525 printf %s "checking for $ac_word... " >&6; }
6526 if test ${ac_cv_prog_DLLTOOL+y}
6527 then :
6528 printf %s "(cached) " >&6
6529 else $as_nop
6530 if test -n "$DLLTOOL"; then
6531 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6532 else
6533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6534 for as_dir in $PATH
6535 do
6536 IFS=$as_save_IFS
6537 case $as_dir in #(((
6538 '') as_dir=./ ;;
6539 */) ;;
6540 *) as_dir=$as_dir/ ;;
6541 esac
6542 for ac_exec_ext in '' $ac_executable_extensions; do
6543 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6544 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6546 break 2
6547 fi
6548 done
6549 done
6550 IFS=$as_save_IFS
6551
6552 fi
6553 fi
6554 DLLTOOL=$ac_cv_prog_DLLTOOL
6555 if test -n "$DLLTOOL"; then
6556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6557 printf "%s\n" "$DLLTOOL" >&6; }
6558 else
6559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6560 printf "%s\n" "no" >&6; }
6561 fi
6562
6563
6564 fi
6565 if test -z "$ac_cv_prog_DLLTOOL"; then
6566 ac_ct_DLLTOOL=$DLLTOOL
6567 # Extract the first word of "dlltool", so it can be a program name with args.
6568 set dummy dlltool; ac_word=$2
6569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6570 printf %s "checking for $ac_word... " >&6; }
6571 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6572 then :
6573 printf %s "(cached) " >&6
6574 else $as_nop
6575 if test -n "$ac_ct_DLLTOOL"; then
6576 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6577 else
6578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579 for as_dir in $PATH
6580 do
6581 IFS=$as_save_IFS
6582 case $as_dir in #(((
6583 '') as_dir=./ ;;
6584 */) ;;
6585 *) as_dir=$as_dir/ ;;
6586 esac
6587 for ac_exec_ext in '' $ac_executable_extensions; do
6588 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6589 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6590 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6591 break 2
6592 fi
6593 done
6594 done
6595 IFS=$as_save_IFS
6596
6597 fi
6598 fi
6599 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6600 if test -n "$ac_ct_DLLTOOL"; then
6601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6602 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6603 else
6604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6605 printf "%s\n" "no" >&6; }
6606 fi
6607
6608 if test "x$ac_ct_DLLTOOL" = x; then
6609 DLLTOOL="false"
6610 else
6611 case $cross_compiling:$ac_tool_warned in
6612 yes:)
6613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6614 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6615 ac_tool_warned=yes ;;
6616 esac
6617 DLLTOOL=$ac_ct_DLLTOOL
6618 fi
6619 else
6620 DLLTOOL="$ac_cv_prog_DLLTOOL"
6621 fi
6622
6623 test -z "$DLLTOOL" && DLLTOOL=dlltool
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6635 printf %s "checking how to associate runtime and link libraries... " >&6; }
6636 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6637 then :
6638 printf %s "(cached) " >&6
6639 else $as_nop
6640 lt_cv_sharedlib_from_linklib_cmd='unknown'
6641
6642 case $host_os in
6643 cygwin* | mingw* | pw32* | cegcc*)
6644 # two different shell functions defined in ltmain.sh;
6645 # decide which one to use based on capabilities of $DLLTOOL
6646 case `$DLLTOOL --help 2>&1` in
6647 *--identify-strict*)
6648 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6649 ;;
6650 *)
6651 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6652 ;;
6653 esac
6654 ;;
6655 *)
6656 # fallback: assume linklib IS sharedlib
6657 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6658 ;;
6659 esac
6660
6661 fi
6662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6663 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6664 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6665 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6666
6667
6668
6669
6670
6671
6672
6673
6674 if test -n "$ac_tool_prefix"; then
6675 for ac_prog in ar
6676 do
6677 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6678 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6680 printf %s "checking for $ac_word... " >&6; }
6681 if test ${ac_cv_prog_AR+y}
6682 then :
6683 printf %s "(cached) " >&6
6684 else $as_nop
6685 if test -n "$AR"; then
6686 ac_cv_prog_AR="$AR" # Let the user override the test.
6687 else
6688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689 for as_dir in $PATH
6690 do
6691 IFS=$as_save_IFS
6692 case $as_dir in #(((
6693 '') as_dir=./ ;;
6694 */) ;;
6695 *) as_dir=$as_dir/ ;;
6696 esac
6697 for ac_exec_ext in '' $ac_executable_extensions; do
6698 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6699 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6700 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6701 break 2
6702 fi
6703 done
6704 done
6705 IFS=$as_save_IFS
6706
6707 fi
6708 fi
6709 AR=$ac_cv_prog_AR
6710 if test -n "$AR"; then
6711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6712 printf "%s\n" "$AR" >&6; }
6713 else
6714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6715 printf "%s\n" "no" >&6; }
6716 fi
6717
6718
6719 test -n "$AR" && break
6720 done
6721 fi
6722 if test -z "$AR"; then
6723 ac_ct_AR=$AR
6724 for ac_prog in ar
6725 do
6726 # Extract the first word of "$ac_prog", so it can be a program name with args.
6727 set dummy $ac_prog; ac_word=$2
6728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6729 printf %s "checking for $ac_word... " >&6; }
6730 if test ${ac_cv_prog_ac_ct_AR+y}
6731 then :
6732 printf %s "(cached) " >&6
6733 else $as_nop
6734 if test -n "$ac_ct_AR"; then
6735 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6736 else
6737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738 for as_dir in $PATH
6739 do
6740 IFS=$as_save_IFS
6741 case $as_dir in #(((
6742 '') as_dir=./ ;;
6743 */) ;;
6744 *) as_dir=$as_dir/ ;;
6745 esac
6746 for ac_exec_ext in '' $ac_executable_extensions; do
6747 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6748 ac_cv_prog_ac_ct_AR="$ac_prog"
6749 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6750 break 2
6751 fi
6752 done
6753 done
6754 IFS=$as_save_IFS
6755
6756 fi
6757 fi
6758 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6759 if test -n "$ac_ct_AR"; then
6760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6761 printf "%s\n" "$ac_ct_AR" >&6; }
6762 else
6763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6764 printf "%s\n" "no" >&6; }
6765 fi
6766
6767
6768 test -n "$ac_ct_AR" && break
6769 done
6770
6771 if test "x$ac_ct_AR" = x; then
6772 AR="false"
6773 else
6774 case $cross_compiling:$ac_tool_warned in
6775 yes:)
6776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6777 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6778 ac_tool_warned=yes ;;
6779 esac
6780 AR=$ac_ct_AR
6781 fi
6782 fi
6783
6784 : ${AR=ar}
6785 : ${AR_FLAGS=cr}
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6798 printf %s "checking for archiver @FILE support... " >&6; }
6799 if test ${lt_cv_ar_at_file+y}
6800 then :
6801 printf %s "(cached) " >&6
6802 else $as_nop
6803 lt_cv_ar_at_file=no
6804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6805 /* end confdefs.h. */
6806
6807 int
6808 main (void)
6809 {
6810
6811 ;
6812 return 0;
6813 }
6814 _ACEOF
6815 if ac_fn_c_try_compile "$LINENO"
6816 then :
6817 echo conftest.$ac_objext > conftest.lst
6818 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6819 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6820 (eval $lt_ar_try) 2>&5
6821 ac_status=$?
6822 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6823 test $ac_status = 0; }
6824 if test 0 -eq "$ac_status"; then
6825 # Ensure the archiver fails upon bogus file names.
6826 rm -f conftest.$ac_objext libconftest.a
6827 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6828 (eval $lt_ar_try) 2>&5
6829 ac_status=$?
6830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6831 test $ac_status = 0; }
6832 if test 0 -ne "$ac_status"; then
6833 lt_cv_ar_at_file=@
6834 fi
6835 fi
6836 rm -f conftest.* libconftest.a
6837
6838 fi
6839 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6840
6841 fi
6842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6843 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6844
6845 if test no = "$lt_cv_ar_at_file"; then
6846 archiver_list_spec=
6847 else
6848 archiver_list_spec=$lt_cv_ar_at_file
6849 fi
6850
6851
6852
6853
6854
6855
6856
6857 if test -n "$ac_tool_prefix"; then
6858 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6859 set dummy ${ac_tool_prefix}strip; ac_word=$2
6860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6861 printf %s "checking for $ac_word... " >&6; }
6862 if test ${ac_cv_prog_STRIP+y}
6863 then :
6864 printf %s "(cached) " >&6
6865 else $as_nop
6866 if test -n "$STRIP"; then
6867 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6868 else
6869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870 for as_dir in $PATH
6871 do
6872 IFS=$as_save_IFS
6873 case $as_dir in #(((
6874 '') as_dir=./ ;;
6875 */) ;;
6876 *) as_dir=$as_dir/ ;;
6877 esac
6878 for ac_exec_ext in '' $ac_executable_extensions; do
6879 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6880 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6881 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6882 break 2
6883 fi
6884 done
6885 done
6886 IFS=$as_save_IFS
6887
6888 fi
6889 fi
6890 STRIP=$ac_cv_prog_STRIP
6891 if test -n "$STRIP"; then
6892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6893 printf "%s\n" "$STRIP" >&6; }
6894 else
6895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6896 printf "%s\n" "no" >&6; }
6897 fi
6898
6899
6900 fi
6901 if test -z "$ac_cv_prog_STRIP"; then
6902 ac_ct_STRIP=$STRIP
6903 # Extract the first word of "strip", so it can be a program name with args.
6904 set dummy strip; ac_word=$2
6905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6906 printf %s "checking for $ac_word... " >&6; }
6907 if test ${ac_cv_prog_ac_ct_STRIP+y}
6908 then :
6909 printf %s "(cached) " >&6
6910 else $as_nop
6911 if test -n "$ac_ct_STRIP"; then
6912 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6913 else
6914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915 for as_dir in $PATH
6916 do
6917 IFS=$as_save_IFS
6918 case $as_dir in #(((
6919 '') as_dir=./ ;;
6920 */) ;;
6921 *) as_dir=$as_dir/ ;;
6922 esac
6923 for ac_exec_ext in '' $ac_executable_extensions; do
6924 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6925 ac_cv_prog_ac_ct_STRIP="strip"
6926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6927 break 2
6928 fi
6929 done
6930 done
6931 IFS=$as_save_IFS
6932
6933 fi
6934 fi
6935 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6936 if test -n "$ac_ct_STRIP"; then
6937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6938 printf "%s\n" "$ac_ct_STRIP" >&6; }
6939 else
6940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6941 printf "%s\n" "no" >&6; }
6942 fi
6943
6944 if test "x$ac_ct_STRIP" = x; then
6945 STRIP=":"
6946 else
6947 case $cross_compiling:$ac_tool_warned in
6948 yes:)
6949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6950 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6951 ac_tool_warned=yes ;;
6952 esac
6953 STRIP=$ac_ct_STRIP
6954 fi
6955 else
6956 STRIP="$ac_cv_prog_STRIP"
6957 fi
6958
6959 test -z "$STRIP" && STRIP=:
6960
6961
6962
6963
6964
6965
6966 if test -n "$ac_tool_prefix"; then
6967 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6968 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6970 printf %s "checking for $ac_word... " >&6; }
6971 if test ${ac_cv_prog_RANLIB+y}
6972 then :
6973 printf %s "(cached) " >&6
6974 else $as_nop
6975 if test -n "$RANLIB"; then
6976 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6977 else
6978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979 for as_dir in $PATH
6980 do
6981 IFS=$as_save_IFS
6982 case $as_dir in #(((
6983 '') as_dir=./ ;;
6984 */) ;;
6985 *) as_dir=$as_dir/ ;;
6986 esac
6987 for ac_exec_ext in '' $ac_executable_extensions; do
6988 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6989 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6991 break 2
6992 fi
6993 done
6994 done
6995 IFS=$as_save_IFS
6996
6997 fi
6998 fi
6999 RANLIB=$ac_cv_prog_RANLIB
7000 if test -n "$RANLIB"; then
7001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7002 printf "%s\n" "$RANLIB" >&6; }
7003 else
7004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7005 printf "%s\n" "no" >&6; }
7006 fi
7007
7008
7009 fi
7010 if test -z "$ac_cv_prog_RANLIB"; then
7011 ac_ct_RANLIB=$RANLIB
7012 # Extract the first word of "ranlib", so it can be a program name with args.
7013 set dummy ranlib; ac_word=$2
7014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7015 printf %s "checking for $ac_word... " >&6; }
7016 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7017 then :
7018 printf %s "(cached) " >&6
7019 else $as_nop
7020 if test -n "$ac_ct_RANLIB"; then
7021 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7022 else
7023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024 for as_dir in $PATH
7025 do
7026 IFS=$as_save_IFS
7027 case $as_dir in #(((
7028 '') as_dir=./ ;;
7029 */) ;;
7030 *) as_dir=$as_dir/ ;;
7031 esac
7032 for ac_exec_ext in '' $ac_executable_extensions; do
7033 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7034 ac_cv_prog_ac_ct_RANLIB="ranlib"
7035 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7036 break 2
7037 fi
7038 done
7039 done
7040 IFS=$as_save_IFS
7041
7042 fi
7043 fi
7044 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7045 if test -n "$ac_ct_RANLIB"; then
7046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7047 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7048 else
7049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7050 printf "%s\n" "no" >&6; }
7051 fi
7052
7053 if test "x$ac_ct_RANLIB" = x; then
7054 RANLIB=":"
7055 else
7056 case $cross_compiling:$ac_tool_warned in
7057 yes:)
7058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7059 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7060 ac_tool_warned=yes ;;
7061 esac
7062 RANLIB=$ac_ct_RANLIB
7063 fi
7064 else
7065 RANLIB="$ac_cv_prog_RANLIB"
7066 fi
7067
7068 test -z "$RANLIB" && RANLIB=:
7069
7070
7071
7072
7073
7074
7075 # Determine commands to create old-style static archives.
7076 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7077 old_postinstall_cmds='chmod 644 $oldlib'
7078 old_postuninstall_cmds=
7079
7080 if test -n "$RANLIB"; then
7081 case $host_os in
7082 bitrig* | openbsd*)
7083 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7084 ;;
7085 *)
7086 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7087 ;;
7088 esac
7089 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7090 fi
7091
7092 case $host_os in
7093 darwin*)
7094 lock_old_archive_extraction=yes ;;
7095 *)
7096 lock_old_archive_extraction=no ;;
7097 esac
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137 # If no C compiler was specified, use CC.
7138 LTCC=${LTCC-"$CC"}
7139
7140 # If no C compiler flags were specified, use CFLAGS.
7141 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7142
7143 # Allow CC to be a program name with arguments.
7144 compiler=$CC
7145
7146
7147 # Check for command to grab the raw symbol name followed by C symbol from nm.
7148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7149 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7150 if test ${lt_cv_sys_global_symbol_pipe+y}
7151 then :
7152 printf %s "(cached) " >&6
7153 else $as_nop
7154
7155 # These are sane defaults that work on at least a few old systems.
7156 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7157
7158 # Character class describing NM global symbol codes.
7159 symcode='[BCDEGRST]'
7160
7161 # Regexp to match symbols that can be accessed directly from C.
7162 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7163
7164 # Define system-specific variables.
7165 case $host_os in
7166 aix*)
7167 symcode='[BCDT]'
7168 ;;
7169 cygwin* | mingw* | pw32* | cegcc*)
7170 symcode='[ABCDGISTW]'
7171 ;;
7172 hpux*)
7173 if test ia64 = "$host_cpu"; then
7174 symcode='[ABCDEGRST]'
7175 fi
7176 ;;
7177 irix* | nonstopux*)
7178 symcode='[BCDEGRST]'
7179 ;;
7180 osf*)
7181 symcode='[BCDEGQRST]'
7182 ;;
7183 solaris*)
7184 symcode='[BDRT]'
7185 ;;
7186 sco3.2v5*)
7187 symcode='[DT]'
7188 ;;
7189 sysv4.2uw2*)
7190 symcode='[DT]'
7191 ;;
7192 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7193 symcode='[ABDT]'
7194 ;;
7195 sysv4)
7196 symcode='[DFNSTU]'
7197 ;;
7198 esac
7199
7200 # If we're using GNU nm, then use its standard symbol codes.
7201 case `$NM -V 2>&1` in
7202 *GNU* | *'with BFD'*)
7203 symcode='[ABCDGIRSTW]' ;;
7204 esac
7205
7206 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7207 # Gets list of data symbols to import.
7208 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7209 # Adjust the below global symbol transforms to fixup imported variables.
7210 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7211 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7212 lt_c_name_lib_hook="\
7213 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7214 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7215 else
7216 # Disable hooks by default.
7217 lt_cv_sys_global_symbol_to_import=
7218 lt_cdecl_hook=
7219 lt_c_name_hook=
7220 lt_c_name_lib_hook=
7221 fi
7222
7223 # Transform an extracted symbol line into a proper C declaration.
7224 # Some systems (esp. on ia64) link data and code symbols differently,
7225 # so use this general approach.
7226 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7227 $lt_cdecl_hook\
7228 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7229 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7230
7231 # Transform an extracted symbol line into symbol name and symbol address
7232 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7233 $lt_c_name_hook\
7234 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7235 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7236
7237 # Transform an extracted symbol line into symbol name with lib prefix and
7238 # symbol address.
7239 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7240 $lt_c_name_lib_hook\
7241 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7242 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7243 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7244
7245 # Handle CRLF in mingw tool chain
7246 opt_cr=
7247 case $build_os in
7248 mingw*)
7249 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7250 ;;
7251 esac
7252
7253 # Try without a prefix underscore, then with it.
7254 for ac_symprfx in "" "_"; do
7255
7256 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7257 symxfrm="\\1 $ac_symprfx\\2 \\2"
7258
7259 # Write the raw and C identifiers.
7260 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7261 # Fake it for dumpbin and say T for any non-static function,
7262 # D for any global variable and I for any imported variable.
7263 # Also find C++ and __fastcall symbols from MSVC++,
7264 # which start with @ or ?.
7265 lt_cv_sys_global_symbol_pipe="$AWK '"\
7266 " {last_section=section; section=\$ 3};"\
7267 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7268 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7269 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7270 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7271 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7272 " \$ 0!~/External *\|/{next};"\
7273 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7274 " {if(hide[section]) next};"\
7275 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7276 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7277 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7278 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7279 " ' prfx=^$ac_symprfx"
7280 else
7281 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7282 fi
7283 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7284
7285 # Check to see that the pipe works correctly.
7286 pipe_works=no
7287
7288 rm -f conftest*
7289 cat > conftest.$ac_ext <<_LT_EOF
7290 #ifdef __cplusplus
7291 extern "C" {
7292 #endif
7293 char nm_test_var;
7294 void nm_test_func(void);
7295 void nm_test_func(void){}
7296 #ifdef __cplusplus
7297 }
7298 #endif
7299 int main(){nm_test_var='a';nm_test_func();return(0);}
7300 _LT_EOF
7301
7302 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7303 (eval $ac_compile) 2>&5
7304 ac_status=$?
7305 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7306 test $ac_status = 0; }; then
7307 # Now try to grab the symbols.
7308 nlist=conftest.nm
7309 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7310 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7311 # Try sorting and uniquifying the output.
7312 if sort "$nlist" | uniq > "$nlist"T; then
7313 mv -f "$nlist"T "$nlist"
7314 else
7315 rm -f "$nlist"T
7316 fi
7317
7318 # Make sure that we snagged all the symbols we need.
7319 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7320 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7321 cat <<_LT_EOF > conftest.$ac_ext
7322 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7323 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7324 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7325 relocations are performed -- see ld's documentation on pseudo-relocs. */
7326 # define LT_DLSYM_CONST
7327 #elif defined __osf__
7328 /* This system does not cope well with relocations in const data. */
7329 # define LT_DLSYM_CONST
7330 #else
7331 # define LT_DLSYM_CONST const
7332 #endif
7333
7334 #ifdef __cplusplus
7335 extern "C" {
7336 #endif
7337
7338 _LT_EOF
7339 # Now generate the symbol file.
7340 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7341
7342 cat <<_LT_EOF >> conftest.$ac_ext
7343
7344 /* The mapping between symbol names and symbols. */
7345 LT_DLSYM_CONST struct {
7346 const char *name;
7347 void *address;
7348 }
7349 lt__PROGRAM__LTX_preloaded_symbols[] =
7350 {
7351 { "@PROGRAM@", (void *) 0 },
7352 _LT_EOF
7353 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7354 cat <<\_LT_EOF >> conftest.$ac_ext
7355 {0, (void *) 0}
7356 };
7357
7358 /* This works around a problem in FreeBSD linker */
7359 #ifdef FREEBSD_WORKAROUND
7360 static const void *lt_preloaded_setup() {
7361 return lt__PROGRAM__LTX_preloaded_symbols;
7362 }
7363 #endif
7364
7365 #ifdef __cplusplus
7366 }
7367 #endif
7368 _LT_EOF
7369 # Now try linking the two files.
7370 mv conftest.$ac_objext conftstm.$ac_objext
7371 lt_globsym_save_LIBS=$LIBS
7372 lt_globsym_save_CFLAGS=$CFLAGS
7373 LIBS=conftstm.$ac_objext
7374 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7375 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7376 (eval $ac_link) 2>&5
7377 ac_status=$?
7378 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7379 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7380 pipe_works=yes
7381 fi
7382 LIBS=$lt_globsym_save_LIBS
7383 CFLAGS=$lt_globsym_save_CFLAGS
7384 else
7385 echo "cannot find nm_test_func in $nlist" >&5
7386 fi
7387 else
7388 echo "cannot find nm_test_var in $nlist" >&5
7389 fi
7390 else
7391 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7392 fi
7393 else
7394 echo "$progname: failed program was:" >&5
7395 cat conftest.$ac_ext >&5
7396 fi
7397 rm -rf conftest* conftst*
7398
7399 # Do not use the global_symbol_pipe unless it works.
7400 if test yes = "$pipe_works"; then
7401 break
7402 else
7403 lt_cv_sys_global_symbol_pipe=
7404 fi
7405 done
7406
7407 fi
7408
7409 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7410 lt_cv_sys_global_symbol_to_cdecl=
7411 fi
7412 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7414 printf "%s\n" "failed" >&6; }
7415 else
7416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7417 printf "%s\n" "ok" >&6; }
7418 fi
7419
7420 # Response file support.
7421 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7422 nm_file_list_spec='@'
7423 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7424 nm_file_list_spec='@'
7425 fi
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7464 printf %s "checking for sysroot... " >&6; }
7465
7466 # Check whether --with-sysroot was given.
7467 if test ${with_sysroot+y}
7468 then :
7469 withval=$with_sysroot;
7470 else $as_nop
7471 with_sysroot=no
7472 fi
7473
7474
7475 lt_sysroot=
7476 case $with_sysroot in #(
7477 yes)
7478 if test yes = "$GCC"; then
7479 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7480 fi
7481 ;; #(
7482 /*)
7483 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7484 ;; #(
7485 no|'')
7486 ;; #(
7487 *)
7488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7489 printf "%s\n" "$with_sysroot" >&6; }
7490 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7491 ;;
7492 esac
7493
7494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7495 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7496
7497
7498
7499
7500
7501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7502 printf %s "checking for a working dd... " >&6; }
7503 if test ${ac_cv_path_lt_DD+y}
7504 then :
7505 printf %s "(cached) " >&6
7506 else $as_nop
7507 printf 0123456789abcdef0123456789abcdef >conftest.i
7508 cat conftest.i conftest.i >conftest2.i
7509 : ${lt_DD:=$DD}
7510 if test -z "$lt_DD"; then
7511 ac_path_lt_DD_found=false
7512 # Loop through the user's path and test for each of PROGNAME-LIST
7513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514 for as_dir in $PATH
7515 do
7516 IFS=$as_save_IFS
7517 case $as_dir in #(((
7518 '') as_dir=./ ;;
7519 */) ;;
7520 *) as_dir=$as_dir/ ;;
7521 esac
7522 for ac_prog in dd
7523 do
7524 for ac_exec_ext in '' $ac_executable_extensions; do
7525 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7526 as_fn_executable_p "$ac_path_lt_DD" || continue
7527 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7528 cmp -s conftest.i conftest.out \
7529 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7530 fi
7531 $ac_path_lt_DD_found && break 3
7532 done
7533 done
7534 done
7535 IFS=$as_save_IFS
7536 if test -z "$ac_cv_path_lt_DD"; then
7537 :
7538 fi
7539 else
7540 ac_cv_path_lt_DD=$lt_DD
7541 fi
7542
7543 rm -f conftest.i conftest2.i conftest.out
7544 fi
7545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7546 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7547
7548
7549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7550 printf %s "checking how to truncate binary pipes... " >&6; }
7551 if test ${lt_cv_truncate_bin+y}
7552 then :
7553 printf %s "(cached) " >&6
7554 else $as_nop
7555 printf 0123456789abcdef0123456789abcdef >conftest.i
7556 cat conftest.i conftest.i >conftest2.i
7557 lt_cv_truncate_bin=
7558 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7559 cmp -s conftest.i conftest.out \
7560 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7561 fi
7562 rm -f conftest.i conftest2.i conftest.out
7563 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7564 fi
7565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7566 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7567
7568
7569
7570
7571
7572
7573
7574 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7575 func_cc_basename ()
7576 {
7577 for cc_temp in $*""; do
7578 case $cc_temp in
7579 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7580 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7581 \-*) ;;
7582 *) break;;
7583 esac
7584 done
7585 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7586 }
7587
7588 # Check whether --enable-libtool-lock was given.
7589 if test ${enable_libtool_lock+y}
7590 then :
7591 enableval=$enable_libtool_lock;
7592 fi
7593
7594 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7595
7596 # Some flags need to be propagated to the compiler or linker for good
7597 # libtool support.
7598 case $host in
7599 ia64-*-hpux*)
7600 # Find out what ABI is being produced by ac_compile, and set mode
7601 # options accordingly.
7602 echo 'int i;' > conftest.$ac_ext
7603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7604 (eval $ac_compile) 2>&5
7605 ac_status=$?
7606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7607 test $ac_status = 0; }; then
7608 case `/usr/bin/file conftest.$ac_objext` in
7609 *ELF-32*)
7610 HPUX_IA64_MODE=32
7611 ;;
7612 *ELF-64*)
7613 HPUX_IA64_MODE=64
7614 ;;
7615 esac
7616 fi
7617 rm -rf conftest*
7618 ;;
7619 *-*-irix6*)
7620 # Find out what ABI is being produced by ac_compile, and set linker
7621 # options accordingly.
7622 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7623 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7624 (eval $ac_compile) 2>&5
7625 ac_status=$?
7626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7627 test $ac_status = 0; }; then
7628 if test yes = "$lt_cv_prog_gnu_ld"; then
7629 case `/usr/bin/file conftest.$ac_objext` in
7630 *32-bit*)
7631 LD="${LD-ld} -melf32bsmip"
7632 ;;
7633 *N32*)
7634 LD="${LD-ld} -melf32bmipn32"
7635 ;;
7636 *64-bit*)
7637 LD="${LD-ld} -melf64bmip"
7638 ;;
7639 esac
7640 else
7641 case `/usr/bin/file conftest.$ac_objext` in
7642 *32-bit*)
7643 LD="${LD-ld} -32"
7644 ;;
7645 *N32*)
7646 LD="${LD-ld} -n32"
7647 ;;
7648 *64-bit*)
7649 LD="${LD-ld} -64"
7650 ;;
7651 esac
7652 fi
7653 fi
7654 rm -rf conftest*
7655 ;;
7656
7657 mips64*-*linux*)
7658 # Find out what ABI is being produced by ac_compile, and set linker
7659 # options accordingly.
7660 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7661 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7662 (eval $ac_compile) 2>&5
7663 ac_status=$?
7664 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7665 test $ac_status = 0; }; then
7666 emul=elf
7667 case `/usr/bin/file conftest.$ac_objext` in
7668 *32-bit*)
7669 emul="${emul}32"
7670 ;;
7671 *64-bit*)
7672 emul="${emul}64"
7673 ;;
7674 esac
7675 case `/usr/bin/file conftest.$ac_objext` in
7676 *MSB*)
7677 emul="${emul}btsmip"
7678 ;;
7679 *LSB*)
7680 emul="${emul}ltsmip"
7681 ;;
7682 esac
7683 case `/usr/bin/file conftest.$ac_objext` in
7684 *N32*)
7685 emul="${emul}n32"
7686 ;;
7687 esac
7688 LD="${LD-ld} -m $emul"
7689 fi
7690 rm -rf conftest*
7691 ;;
7692
7693 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7694 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7695 # Find out what ABI is being produced by ac_compile, and set linker
7696 # options accordingly. Note that the listed cases only cover the
7697 # situations where additional linker options are needed (such as when
7698 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7699 # vice versa); the common cases where no linker options are needed do
7700 # not appear in the list.
7701 echo 'int i;' > conftest.$ac_ext
7702 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7703 (eval $ac_compile) 2>&5
7704 ac_status=$?
7705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7706 test $ac_status = 0; }; then
7707 case `/usr/bin/file conftest.o` in
7708 *32-bit*)
7709 case $host in
7710 x86_64-*kfreebsd*-gnu)
7711 LD="${LD-ld} -m elf_i386_fbsd"
7712 ;;
7713 x86_64-*linux*)
7714 case `/usr/bin/file conftest.o` in
7715 *x86-64*)
7716 LD="${LD-ld} -m elf32_x86_64"
7717 ;;
7718 *)
7719 LD="${LD-ld} -m elf_i386"
7720 ;;
7721 esac
7722 ;;
7723 powerpc64le-*linux*)
7724 LD="${LD-ld} -m elf32lppclinux"
7725 ;;
7726 powerpc64-*linux*)
7727 LD="${LD-ld} -m elf32ppclinux"
7728 ;;
7729 s390x-*linux*)
7730 LD="${LD-ld} -m elf_s390"
7731 ;;
7732 sparc64-*linux*)
7733 LD="${LD-ld} -m elf32_sparc"
7734 ;;
7735 esac
7736 ;;
7737 *64-bit*)
7738 case $host in
7739 x86_64-*kfreebsd*-gnu)
7740 LD="${LD-ld} -m elf_x86_64_fbsd"
7741 ;;
7742 x86_64-*linux*)
7743 LD="${LD-ld} -m elf_x86_64"
7744 ;;
7745 powerpcle-*linux*)
7746 LD="${LD-ld} -m elf64lppc"
7747 ;;
7748 powerpc-*linux*)
7749 LD="${LD-ld} -m elf64ppc"
7750 ;;
7751 s390*-*linux*|s390*-*tpf*)
7752 LD="${LD-ld} -m elf64_s390"
7753 ;;
7754 sparc*-*linux*)
7755 LD="${LD-ld} -m elf64_sparc"
7756 ;;
7757 esac
7758 ;;
7759 esac
7760 fi
7761 rm -rf conftest*
7762 ;;
7763
7764 *-*-sco3.2v5*)
7765 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7766 SAVE_CFLAGS=$CFLAGS
7767 CFLAGS="$CFLAGS -belf"
7768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7769 printf %s "checking whether the C compiler needs -belf... " >&6; }
7770 if test ${lt_cv_cc_needs_belf+y}
7771 then :
7772 printf %s "(cached) " >&6
7773 else $as_nop
7774 ac_ext=c
7775 ac_cpp='$CPP $CPPFLAGS'
7776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7779
7780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7781 /* end confdefs.h. */
7782
7783 int
7784 main (void)
7785 {
7786
7787 ;
7788 return 0;
7789 }
7790 _ACEOF
7791 if ac_fn_c_try_link "$LINENO"
7792 then :
7793 lt_cv_cc_needs_belf=yes
7794 else $as_nop
7795 lt_cv_cc_needs_belf=no
7796 fi
7797 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7798 conftest$ac_exeext conftest.$ac_ext
7799 ac_ext=c
7800 ac_cpp='$CPP $CPPFLAGS'
7801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7804
7805 fi
7806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7807 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7808 if test yes != "$lt_cv_cc_needs_belf"; then
7809 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7810 CFLAGS=$SAVE_CFLAGS
7811 fi
7812 ;;
7813 *-*solaris*)
7814 # Find out what ABI is being produced by ac_compile, and set linker
7815 # options accordingly.
7816 echo 'int i;' > conftest.$ac_ext
7817 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7818 (eval $ac_compile) 2>&5
7819 ac_status=$?
7820 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7821 test $ac_status = 0; }; then
7822 case `/usr/bin/file conftest.o` in
7823 *64-bit*)
7824 case $lt_cv_prog_gnu_ld in
7825 yes*)
7826 case $host in
7827 i?86-*-solaris*|x86_64-*-solaris*)
7828 LD="${LD-ld} -m elf_x86_64"
7829 ;;
7830 sparc*-*-solaris*)
7831 LD="${LD-ld} -m elf64_sparc"
7832 ;;
7833 esac
7834 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7835 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7836 LD=${LD-ld}_sol2
7837 fi
7838 ;;
7839 *)
7840 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7841 LD="${LD-ld} -64"
7842 fi
7843 ;;
7844 esac
7845 ;;
7846 esac
7847 fi
7848 rm -rf conftest*
7849 ;;
7850 esac
7851
7852 need_locks=$enable_libtool_lock
7853
7854 if test -n "$ac_tool_prefix"; then
7855 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7856 set dummy ${ac_tool_prefix}mt; ac_word=$2
7857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7858 printf %s "checking for $ac_word... " >&6; }
7859 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7860 then :
7861 printf %s "(cached) " >&6
7862 else $as_nop
7863 if test -n "$MANIFEST_TOOL"; then
7864 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7865 else
7866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7867 for as_dir in $PATH
7868 do
7869 IFS=$as_save_IFS
7870 case $as_dir in #(((
7871 '') as_dir=./ ;;
7872 */) ;;
7873 *) as_dir=$as_dir/ ;;
7874 esac
7875 for ac_exec_ext in '' $ac_executable_extensions; do
7876 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7877 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7879 break 2
7880 fi
7881 done
7882 done
7883 IFS=$as_save_IFS
7884
7885 fi
7886 fi
7887 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7888 if test -n "$MANIFEST_TOOL"; then
7889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7890 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7891 else
7892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7893 printf "%s\n" "no" >&6; }
7894 fi
7895
7896
7897 fi
7898 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7899 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7900 # Extract the first word of "mt", so it can be a program name with args.
7901 set dummy mt; ac_word=$2
7902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7903 printf %s "checking for $ac_word... " >&6; }
7904 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7905 then :
7906 printf %s "(cached) " >&6
7907 else $as_nop
7908 if test -n "$ac_ct_MANIFEST_TOOL"; then
7909 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7910 else
7911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7912 for as_dir in $PATH
7913 do
7914 IFS=$as_save_IFS
7915 case $as_dir in #(((
7916 '') as_dir=./ ;;
7917 */) ;;
7918 *) as_dir=$as_dir/ ;;
7919 esac
7920 for ac_exec_ext in '' $ac_executable_extensions; do
7921 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7922 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7924 break 2
7925 fi
7926 done
7927 done
7928 IFS=$as_save_IFS
7929
7930 fi
7931 fi
7932 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7933 if test -n "$ac_ct_MANIFEST_TOOL"; then
7934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7935 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7936 else
7937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7938 printf "%s\n" "no" >&6; }
7939 fi
7940
7941 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7942 MANIFEST_TOOL=":"
7943 else
7944 case $cross_compiling:$ac_tool_warned in
7945 yes:)
7946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7947 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7948 ac_tool_warned=yes ;;
7949 esac
7950 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7951 fi
7952 else
7953 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7954 fi
7955
7956 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7958 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7959 if test ${lt_cv_path_mainfest_tool+y}
7960 then :
7961 printf %s "(cached) " >&6
7962 else $as_nop
7963 lt_cv_path_mainfest_tool=no
7964 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7965 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7966 cat conftest.err >&5
7967 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7968 lt_cv_path_mainfest_tool=yes
7969 fi
7970 rm -f conftest*
7971 fi
7972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7973 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7974 if test yes != "$lt_cv_path_mainfest_tool"; then
7975 MANIFEST_TOOL=:
7976 fi
7977
7978
7979
7980
7981
7982
7983 case $host_os in
7984 rhapsody* | darwin*)
7985 if test -n "$ac_tool_prefix"; then
7986 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7987 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7989 printf %s "checking for $ac_word... " >&6; }
7990 if test ${ac_cv_prog_DSYMUTIL+y}
7991 then :
7992 printf %s "(cached) " >&6
7993 else $as_nop
7994 if test -n "$DSYMUTIL"; then
7995 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7996 else
7997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7998 for as_dir in $PATH
7999 do
8000 IFS=$as_save_IFS
8001 case $as_dir in #(((
8002 '') as_dir=./ ;;
8003 */) ;;
8004 *) as_dir=$as_dir/ ;;
8005 esac
8006 for ac_exec_ext in '' $ac_executable_extensions; do
8007 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8008 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8009 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8010 break 2
8011 fi
8012 done
8013 done
8014 IFS=$as_save_IFS
8015
8016 fi
8017 fi
8018 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8019 if test -n "$DSYMUTIL"; then
8020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8021 printf "%s\n" "$DSYMUTIL" >&6; }
8022 else
8023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8024 printf "%s\n" "no" >&6; }
8025 fi
8026
8027
8028 fi
8029 if test -z "$ac_cv_prog_DSYMUTIL"; then
8030 ac_ct_DSYMUTIL=$DSYMUTIL
8031 # Extract the first word of "dsymutil", so it can be a program name with args.
8032 set dummy dsymutil; ac_word=$2
8033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8034 printf %s "checking for $ac_word... " >&6; }
8035 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8036 then :
8037 printf %s "(cached) " >&6
8038 else $as_nop
8039 if test -n "$ac_ct_DSYMUTIL"; then
8040 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8041 else
8042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043 for as_dir in $PATH
8044 do
8045 IFS=$as_save_IFS
8046 case $as_dir in #(((
8047 '') as_dir=./ ;;
8048 */) ;;
8049 *) as_dir=$as_dir/ ;;
8050 esac
8051 for ac_exec_ext in '' $ac_executable_extensions; do
8052 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8053 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8055 break 2
8056 fi
8057 done
8058 done
8059 IFS=$as_save_IFS
8060
8061 fi
8062 fi
8063 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8064 if test -n "$ac_ct_DSYMUTIL"; then
8065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8066 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8067 else
8068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8069 printf "%s\n" "no" >&6; }
8070 fi
8071
8072 if test "x$ac_ct_DSYMUTIL" = x; then
8073 DSYMUTIL=":"
8074 else
8075 case $cross_compiling:$ac_tool_warned in
8076 yes:)
8077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8078 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8079 ac_tool_warned=yes ;;
8080 esac
8081 DSYMUTIL=$ac_ct_DSYMUTIL
8082 fi
8083 else
8084 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8085 fi
8086
8087 if test -n "$ac_tool_prefix"; then
8088 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8089 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8091 printf %s "checking for $ac_word... " >&6; }
8092 if test ${ac_cv_prog_NMEDIT+y}
8093 then :
8094 printf %s "(cached) " >&6
8095 else $as_nop
8096 if test -n "$NMEDIT"; then
8097 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8098 else
8099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8100 for as_dir in $PATH
8101 do
8102 IFS=$as_save_IFS
8103 case $as_dir in #(((
8104 '') as_dir=./ ;;
8105 */) ;;
8106 *) as_dir=$as_dir/ ;;
8107 esac
8108 for ac_exec_ext in '' $ac_executable_extensions; do
8109 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8110 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8112 break 2
8113 fi
8114 done
8115 done
8116 IFS=$as_save_IFS
8117
8118 fi
8119 fi
8120 NMEDIT=$ac_cv_prog_NMEDIT
8121 if test -n "$NMEDIT"; then
8122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8123 printf "%s\n" "$NMEDIT" >&6; }
8124 else
8125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8126 printf "%s\n" "no" >&6; }
8127 fi
8128
8129
8130 fi
8131 if test -z "$ac_cv_prog_NMEDIT"; then
8132 ac_ct_NMEDIT=$NMEDIT
8133 # Extract the first word of "nmedit", so it can be a program name with args.
8134 set dummy nmedit; ac_word=$2
8135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8136 printf %s "checking for $ac_word... " >&6; }
8137 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8138 then :
8139 printf %s "(cached) " >&6
8140 else $as_nop
8141 if test -n "$ac_ct_NMEDIT"; then
8142 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8143 else
8144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8145 for as_dir in $PATH
8146 do
8147 IFS=$as_save_IFS
8148 case $as_dir in #(((
8149 '') as_dir=./ ;;
8150 */) ;;
8151 *) as_dir=$as_dir/ ;;
8152 esac
8153 for ac_exec_ext in '' $ac_executable_extensions; do
8154 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8155 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8156 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8157 break 2
8158 fi
8159 done
8160 done
8161 IFS=$as_save_IFS
8162
8163 fi
8164 fi
8165 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8166 if test -n "$ac_ct_NMEDIT"; then
8167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8168 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8169 else
8170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8171 printf "%s\n" "no" >&6; }
8172 fi
8173
8174 if test "x$ac_ct_NMEDIT" = x; then
8175 NMEDIT=":"
8176 else
8177 case $cross_compiling:$ac_tool_warned in
8178 yes:)
8179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8180 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8181 ac_tool_warned=yes ;;
8182 esac
8183 NMEDIT=$ac_ct_NMEDIT
8184 fi
8185 else
8186 NMEDIT="$ac_cv_prog_NMEDIT"
8187 fi
8188
8189 if test -n "$ac_tool_prefix"; then
8190 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8191 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8193 printf %s "checking for $ac_word... " >&6; }
8194 if test ${ac_cv_prog_LIPO+y}
8195 then :
8196 printf %s "(cached) " >&6
8197 else $as_nop
8198 if test -n "$LIPO"; then
8199 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8200 else
8201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8202 for as_dir in $PATH
8203 do
8204 IFS=$as_save_IFS
8205 case $as_dir in #(((
8206 '') as_dir=./ ;;
8207 */) ;;
8208 *) as_dir=$as_dir/ ;;
8209 esac
8210 for ac_exec_ext in '' $ac_executable_extensions; do
8211 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8212 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8213 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8214 break 2
8215 fi
8216 done
8217 done
8218 IFS=$as_save_IFS
8219
8220 fi
8221 fi
8222 LIPO=$ac_cv_prog_LIPO
8223 if test -n "$LIPO"; then
8224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8225 printf "%s\n" "$LIPO" >&6; }
8226 else
8227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8228 printf "%s\n" "no" >&6; }
8229 fi
8230
8231
8232 fi
8233 if test -z "$ac_cv_prog_LIPO"; then
8234 ac_ct_LIPO=$LIPO
8235 # Extract the first word of "lipo", so it can be a program name with args.
8236 set dummy lipo; ac_word=$2
8237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8238 printf %s "checking for $ac_word... " >&6; }
8239 if test ${ac_cv_prog_ac_ct_LIPO+y}
8240 then :
8241 printf %s "(cached) " >&6
8242 else $as_nop
8243 if test -n "$ac_ct_LIPO"; then
8244 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8245 else
8246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8247 for as_dir in $PATH
8248 do
8249 IFS=$as_save_IFS
8250 case $as_dir in #(((
8251 '') as_dir=./ ;;
8252 */) ;;
8253 *) as_dir=$as_dir/ ;;
8254 esac
8255 for ac_exec_ext in '' $ac_executable_extensions; do
8256 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8257 ac_cv_prog_ac_ct_LIPO="lipo"
8258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8259 break 2
8260 fi
8261 done
8262 done
8263 IFS=$as_save_IFS
8264
8265 fi
8266 fi
8267 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8268 if test -n "$ac_ct_LIPO"; then
8269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8270 printf "%s\n" "$ac_ct_LIPO" >&6; }
8271 else
8272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8273 printf "%s\n" "no" >&6; }
8274 fi
8275
8276 if test "x$ac_ct_LIPO" = x; then
8277 LIPO=":"
8278 else
8279 case $cross_compiling:$ac_tool_warned in
8280 yes:)
8281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8282 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8283 ac_tool_warned=yes ;;
8284 esac
8285 LIPO=$ac_ct_LIPO
8286 fi
8287 else
8288 LIPO="$ac_cv_prog_LIPO"
8289 fi
8290
8291 if test -n "$ac_tool_prefix"; then
8292 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8293 set dummy ${ac_tool_prefix}otool; ac_word=$2
8294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8295 printf %s "checking for $ac_word... " >&6; }
8296 if test ${ac_cv_prog_OTOOL+y}
8297 then :
8298 printf %s "(cached) " >&6
8299 else $as_nop
8300 if test -n "$OTOOL"; then
8301 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8302 else
8303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8304 for as_dir in $PATH
8305 do
8306 IFS=$as_save_IFS
8307 case $as_dir in #(((
8308 '') as_dir=./ ;;
8309 */) ;;
8310 *) as_dir=$as_dir/ ;;
8311 esac
8312 for ac_exec_ext in '' $ac_executable_extensions; do
8313 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8314 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8316 break 2
8317 fi
8318 done
8319 done
8320 IFS=$as_save_IFS
8321
8322 fi
8323 fi
8324 OTOOL=$ac_cv_prog_OTOOL
8325 if test -n "$OTOOL"; then
8326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8327 printf "%s\n" "$OTOOL" >&6; }
8328 else
8329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8330 printf "%s\n" "no" >&6; }
8331 fi
8332
8333
8334 fi
8335 if test -z "$ac_cv_prog_OTOOL"; then
8336 ac_ct_OTOOL=$OTOOL
8337 # Extract the first word of "otool", so it can be a program name with args.
8338 set dummy otool; ac_word=$2
8339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8340 printf %s "checking for $ac_word... " >&6; }
8341 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8342 then :
8343 printf %s "(cached) " >&6
8344 else $as_nop
8345 if test -n "$ac_ct_OTOOL"; then
8346 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8347 else
8348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8349 for as_dir in $PATH
8350 do
8351 IFS=$as_save_IFS
8352 case $as_dir in #(((
8353 '') as_dir=./ ;;
8354 */) ;;
8355 *) as_dir=$as_dir/ ;;
8356 esac
8357 for ac_exec_ext in '' $ac_executable_extensions; do
8358 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8359 ac_cv_prog_ac_ct_OTOOL="otool"
8360 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8361 break 2
8362 fi
8363 done
8364 done
8365 IFS=$as_save_IFS
8366
8367 fi
8368 fi
8369 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8370 if test -n "$ac_ct_OTOOL"; then
8371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8372 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8373 else
8374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8375 printf "%s\n" "no" >&6; }
8376 fi
8377
8378 if test "x$ac_ct_OTOOL" = x; then
8379 OTOOL=":"
8380 else
8381 case $cross_compiling:$ac_tool_warned in
8382 yes:)
8383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8384 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8385 ac_tool_warned=yes ;;
8386 esac
8387 OTOOL=$ac_ct_OTOOL
8388 fi
8389 else
8390 OTOOL="$ac_cv_prog_OTOOL"
8391 fi
8392
8393 if test -n "$ac_tool_prefix"; then
8394 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8395 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8397 printf %s "checking for $ac_word... " >&6; }
8398 if test ${ac_cv_prog_OTOOL64+y}
8399 then :
8400 printf %s "(cached) " >&6
8401 else $as_nop
8402 if test -n "$OTOOL64"; then
8403 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8404 else
8405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8406 for as_dir in $PATH
8407 do
8408 IFS=$as_save_IFS
8409 case $as_dir in #(((
8410 '') as_dir=./ ;;
8411 */) ;;
8412 *) as_dir=$as_dir/ ;;
8413 esac
8414 for ac_exec_ext in '' $ac_executable_extensions; do
8415 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8416 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8418 break 2
8419 fi
8420 done
8421 done
8422 IFS=$as_save_IFS
8423
8424 fi
8425 fi
8426 OTOOL64=$ac_cv_prog_OTOOL64
8427 if test -n "$OTOOL64"; then
8428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8429 printf "%s\n" "$OTOOL64" >&6; }
8430 else
8431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8432 printf "%s\n" "no" >&6; }
8433 fi
8434
8435
8436 fi
8437 if test -z "$ac_cv_prog_OTOOL64"; then
8438 ac_ct_OTOOL64=$OTOOL64
8439 # Extract the first word of "otool64", so it can be a program name with args.
8440 set dummy otool64; ac_word=$2
8441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8442 printf %s "checking for $ac_word... " >&6; }
8443 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8444 then :
8445 printf %s "(cached) " >&6
8446 else $as_nop
8447 if test -n "$ac_ct_OTOOL64"; then
8448 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8449 else
8450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8451 for as_dir in $PATH
8452 do
8453 IFS=$as_save_IFS
8454 case $as_dir in #(((
8455 '') as_dir=./ ;;
8456 */) ;;
8457 *) as_dir=$as_dir/ ;;
8458 esac
8459 for ac_exec_ext in '' $ac_executable_extensions; do
8460 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8461 ac_cv_prog_ac_ct_OTOOL64="otool64"
8462 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8463 break 2
8464 fi
8465 done
8466 done
8467 IFS=$as_save_IFS
8468
8469 fi
8470 fi
8471 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8472 if test -n "$ac_ct_OTOOL64"; then
8473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8474 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8475 else
8476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8477 printf "%s\n" "no" >&6; }
8478 fi
8479
8480 if test "x$ac_ct_OTOOL64" = x; then
8481 OTOOL64=":"
8482 else
8483 case $cross_compiling:$ac_tool_warned in
8484 yes:)
8485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8486 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8487 ac_tool_warned=yes ;;
8488 esac
8489 OTOOL64=$ac_ct_OTOOL64
8490 fi
8491 else
8492 OTOOL64="$ac_cv_prog_OTOOL64"
8493 fi
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8522 printf %s "checking for -single_module linker flag... " >&6; }
8523 if test ${lt_cv_apple_cc_single_mod+y}
8524 then :
8525 printf %s "(cached) " >&6
8526 else $as_nop
8527 lt_cv_apple_cc_single_mod=no
8528 if test -z "$LT_MULTI_MODULE"; then
8529 # By default we will add the -single_module flag. You can override
8530 # by either setting the environment variable LT_MULTI_MODULE
8531 # non-empty at configure time, or by adding -multi_module to the
8532 # link flags.
8533 rm -rf libconftest.dylib*
8534 echo "int foo(void){return 1;}" > conftest.c
8535 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8536 -dynamiclib -Wl,-single_module conftest.c" >&5
8537 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8538 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8539 _lt_result=$?
8540 # If there is a non-empty error log, and "single_module"
8541 # appears in it, assume the flag caused a linker warning
8542 if test -s conftest.err && $GREP single_module conftest.err; then
8543 cat conftest.err >&5
8544 # Otherwise, if the output was created with a 0 exit code from
8545 # the compiler, it worked.
8546 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8547 lt_cv_apple_cc_single_mod=yes
8548 else
8549 cat conftest.err >&5
8550 fi
8551 rm -rf libconftest.dylib*
8552 rm -f conftest.*
8553 fi
8554 fi
8555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8556 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8557
8558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8559 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8560 if test ${lt_cv_ld_exported_symbols_list+y}
8561 then :
8562 printf %s "(cached) " >&6
8563 else $as_nop
8564 lt_cv_ld_exported_symbols_list=no
8565 save_LDFLAGS=$LDFLAGS
8566 echo "_main" > conftest.sym
8567 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8569 /* end confdefs.h. */
8570
8571 int
8572 main (void)
8573 {
8574
8575 ;
8576 return 0;
8577 }
8578 _ACEOF
8579 if ac_fn_c_try_link "$LINENO"
8580 then :
8581 lt_cv_ld_exported_symbols_list=yes
8582 else $as_nop
8583 lt_cv_ld_exported_symbols_list=no
8584 fi
8585 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8586 conftest$ac_exeext conftest.$ac_ext
8587 LDFLAGS=$save_LDFLAGS
8588
8589 fi
8590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8591 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8592
8593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8594 printf %s "checking for -force_load linker flag... " >&6; }
8595 if test ${lt_cv_ld_force_load+y}
8596 then :
8597 printf %s "(cached) " >&6
8598 else $as_nop
8599 lt_cv_ld_force_load=no
8600 cat > conftest.c << _LT_EOF
8601 int forced_loaded() { return 2;}
8602 _LT_EOF
8603 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8604 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8605 echo "$AR cr libconftest.a conftest.o" >&5
8606 $AR cr libconftest.a conftest.o 2>&5
8607 echo "$RANLIB libconftest.a" >&5
8608 $RANLIB libconftest.a 2>&5
8609 cat > conftest.c << _LT_EOF
8610 int main() { return 0;}
8611 _LT_EOF
8612 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8613 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8614 _lt_result=$?
8615 if test -s conftest.err && $GREP force_load conftest.err; then
8616 cat conftest.err >&5
8617 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8618 lt_cv_ld_force_load=yes
8619 else
8620 cat conftest.err >&5
8621 fi
8622 rm -f conftest.err libconftest.a conftest conftest.c
8623 rm -rf conftest.dSYM
8624
8625 fi
8626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8627 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8628 case $host_os in
8629 rhapsody* | darwin1.[012])
8630 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8631 darwin1.*)
8632 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8633 darwin*) # darwin 5.x on
8634 # if running on 10.5 or later, the deployment target defaults
8635 # to the OS version, if on x86, and 10.4, the deployment
8636 # target defaults to 10.4. Don't you love it?
8637 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8638 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8639 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8640 10.[012][,.]*)
8641 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8642 10.*)
8643 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8644 esac
8645 ;;
8646 esac
8647 if test yes = "$lt_cv_apple_cc_single_mod"; then
8648 _lt_dar_single_mod='$single_module'
8649 fi
8650 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8651 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8652 else
8653 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8654 fi
8655 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8656 _lt_dsymutil='~$DSYMUTIL $lib || :'
8657 else
8658 _lt_dsymutil=
8659 fi
8660 ;;
8661 esac
8662
8663 # func_munge_path_list VARIABLE PATH
8664 # -----------------------------------
8665 # VARIABLE is name of variable containing _space_ separated list of
8666 # directories to be munged by the contents of PATH, which is string
8667 # having a format:
8668 # "DIR[:DIR]:"
8669 # string "DIR[ DIR]" will be prepended to VARIABLE
8670 # ":DIR[:DIR]"
8671 # string "DIR[ DIR]" will be appended to VARIABLE
8672 # "DIRP[:DIRP]::[DIRA:]DIRA"
8673 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8674 # "DIRA[ DIRA]" will be appended to VARIABLE
8675 # "DIR[:DIR]"
8676 # VARIABLE will be replaced by "DIR[ DIR]"
8677 func_munge_path_list ()
8678 {
8679 case x$2 in
8680 x)
8681 ;;
8682 *:)
8683 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8684 ;;
8685 x:*)
8686 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8687 ;;
8688 *::*)
8689 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8690 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8691 ;;
8692 *)
8693 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8694 ;;
8695 esac
8696 }
8697
8698 ac_header= ac_cache=
8699 for ac_item in $ac_header_c_list
8700 do
8701 if test $ac_cache; then
8702 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8703 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8704 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8705 fi
8706 ac_header= ac_cache=
8707 elif test $ac_header; then
8708 ac_cache=$ac_item
8709 else
8710 ac_header=$ac_item
8711 fi
8712 done
8713
8714
8715
8716
8717
8718
8719
8720
8721 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8722 then :
8723
8724 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8725
8726 fi
8727 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8728 "
8729 if test "x$ac_cv_header_dlfcn_h" = xyes
8730 then :
8731 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8732
8733 fi
8734
8735
8736
8737
8738
8739 # Set options
8740
8741
8742
8743 enable_dlopen=no
8744
8745
8746 enable_win32_dll=no
8747
8748
8749 # Check whether --enable-shared was given.
8750 if test ${enable_shared+y}
8751 then :
8752 enableval=$enable_shared; p=${PACKAGE-default}
8753 case $enableval in
8754 yes) enable_shared=yes ;;
8755 no) enable_shared=no ;;
8756 *)
8757 enable_shared=no
8758 # Look at the argument we got. We use all the common list separators.
8759 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8760 for pkg in $enableval; do
8761 IFS=$lt_save_ifs
8762 if test "X$pkg" = "X$p"; then
8763 enable_shared=yes
8764 fi
8765 done
8766 IFS=$lt_save_ifs
8767 ;;
8768 esac
8769 else $as_nop
8770 enable_shared=yes
8771 fi
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781 # Check whether --enable-static was given.
8782 if test ${enable_static+y}
8783 then :
8784 enableval=$enable_static; p=${PACKAGE-default}
8785 case $enableval in
8786 yes) enable_static=yes ;;
8787 no) enable_static=no ;;
8788 *)
8789 enable_static=no
8790 # Look at the argument we got. We use all the common list separators.
8791 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8792 for pkg in $enableval; do
8793 IFS=$lt_save_ifs
8794 if test "X$pkg" = "X$p"; then
8795 enable_static=yes
8796 fi
8797 done
8798 IFS=$lt_save_ifs
8799 ;;
8800 esac
8801 else $as_nop
8802 enable_static=yes
8803 fi
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814 # Check whether --with-pic was given.
8815 if test ${with_pic+y}
8816 then :
8817 withval=$with_pic; lt_p=${PACKAGE-default}
8818 case $withval in
8819 yes|no) pic_mode=$withval ;;
8820 *)
8821 pic_mode=default
8822 # Look at the argument we got. We use all the common list separators.
8823 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8824 for lt_pkg in $withval; do
8825 IFS=$lt_save_ifs
8826 if test "X$lt_pkg" = "X$lt_p"; then
8827 pic_mode=yes
8828 fi
8829 done
8830 IFS=$lt_save_ifs
8831 ;;
8832 esac
8833 else $as_nop
8834 pic_mode=default
8835 fi
8836
8837
8838
8839
8840
8841
8842
8843
8844 # Check whether --enable-fast-install was given.
8845 if test ${enable_fast_install+y}
8846 then :
8847 enableval=$enable_fast_install; p=${PACKAGE-default}
8848 case $enableval in
8849 yes) enable_fast_install=yes ;;
8850 no) enable_fast_install=no ;;
8851 *)
8852 enable_fast_install=no
8853 # Look at the argument we got. We use all the common list separators.
8854 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8855 for pkg in $enableval; do
8856 IFS=$lt_save_ifs
8857 if test "X$pkg" = "X$p"; then
8858 enable_fast_install=yes
8859 fi
8860 done
8861 IFS=$lt_save_ifs
8862 ;;
8863 esac
8864 else $as_nop
8865 enable_fast_install=yes
8866 fi
8867
8868
8869
8870
8871
8872
8873
8874
8875 shared_archive_member_spec=
8876 case $host,$enable_shared in
8877 power*-*-aix[5-9]*,yes)
8878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8879 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8880
8881 # Check whether --with-aix-soname was given.
8882 if test ${with_aix_soname+y}
8883 then :
8884 withval=$with_aix_soname; case $withval in
8885 aix|svr4|both)
8886 ;;
8887 *)
8888 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8889 ;;
8890 esac
8891 lt_cv_with_aix_soname=$with_aix_soname
8892 else $as_nop
8893 if test ${lt_cv_with_aix_soname+y}
8894 then :
8895 printf %s "(cached) " >&6
8896 else $as_nop
8897 lt_cv_with_aix_soname=aix
8898 fi
8899
8900 with_aix_soname=$lt_cv_with_aix_soname
8901 fi
8902
8903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8904 printf "%s\n" "$with_aix_soname" >&6; }
8905 if test aix != "$with_aix_soname"; then
8906 # For the AIX way of multilib, we name the shared archive member
8907 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8908 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8909 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8910 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8911 if test 64 = "${OBJECT_MODE-32}"; then
8912 shared_archive_member_spec=shr_64
8913 else
8914 shared_archive_member_spec=shr
8915 fi
8916 fi
8917 ;;
8918 *)
8919 with_aix_soname=aix
8920 ;;
8921 esac
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932 # This can be used to rebuild libtool when needed
8933 LIBTOOL_DEPS=$ltmain
8934
8935 # Always use our own libtool.
8936 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967 test -z "$LN_S" && LN_S="ln -s"
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982 if test -n "${ZSH_VERSION+set}"; then
8983 setopt NO_GLOB_SUBST
8984 fi
8985
8986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8987 printf %s "checking for objdir... " >&6; }
8988 if test ${lt_cv_objdir+y}
8989 then :
8990 printf %s "(cached) " >&6
8991 else $as_nop
8992 rm -f .libs 2>/dev/null
8993 mkdir .libs 2>/dev/null
8994 if test -d .libs; then
8995 lt_cv_objdir=.libs
8996 else
8997 # MS-DOS does not allow filenames that begin with a dot.
8998 lt_cv_objdir=_libs
8999 fi
9000 rmdir .libs 2>/dev/null
9001 fi
9002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9003 printf "%s\n" "$lt_cv_objdir" >&6; }
9004 objdir=$lt_cv_objdir
9005
9006
9007
9008
9009
9010 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9011
9012
9013
9014
9015 case $host_os in
9016 aix3*)
9017 # AIX sometimes has problems with the GCC collect2 program. For some
9018 # reason, if we set the COLLECT_NAMES environment variable, the problems
9019 # vanish in a puff of smoke.
9020 if test set != "${COLLECT_NAMES+set}"; then
9021 COLLECT_NAMES=
9022 export COLLECT_NAMES
9023 fi
9024 ;;
9025 esac
9026
9027 # Global variables:
9028 ofile=libtool
9029 can_build_shared=yes
9030
9031 # All known linkers require a '.a' archive for static linking (except MSVC,
9032 # which needs '.lib').
9033 libext=a
9034
9035 with_gnu_ld=$lt_cv_prog_gnu_ld
9036
9037 old_CC=$CC
9038 old_CFLAGS=$CFLAGS
9039
9040 # Set sane defaults for various variables
9041 test -z "$CC" && CC=cc
9042 test -z "$LTCC" && LTCC=$CC
9043 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9044 test -z "$LD" && LD=ld
9045 test -z "$ac_objext" && ac_objext=o
9046
9047 func_cc_basename $compiler
9048 cc_basename=$func_cc_basename_result
9049
9050
9051 # Only perform the check for file, if the check method requires it
9052 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9053 case $deplibs_check_method in
9054 file_magic*)
9055 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9057 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9058 if test ${lt_cv_path_MAGIC_CMD+y}
9059 then :
9060 printf %s "(cached) " >&6
9061 else $as_nop
9062 case $MAGIC_CMD in
9063 [\\/*] | ?:[\\/]*)
9064 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9065 ;;
9066 *)
9067 lt_save_MAGIC_CMD=$MAGIC_CMD
9068 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9069 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9070 for ac_dir in $ac_dummy; do
9071 IFS=$lt_save_ifs
9072 test -z "$ac_dir" && ac_dir=.
9073 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9074 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9075 if test -n "$file_magic_test_file"; then
9076 case $deplibs_check_method in
9077 "file_magic "*)
9078 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9079 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9080 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9081 $EGREP "$file_magic_regex" > /dev/null; then
9082 :
9083 else
9084 cat <<_LT_EOF 1>&2
9085
9086 *** Warning: the command libtool uses to detect shared libraries,
9087 *** $file_magic_cmd, produces output that libtool cannot recognize.
9088 *** The result is that libtool may fail to recognize shared libraries
9089 *** as such. This will affect the creation of libtool libraries that
9090 *** depend on shared libraries, but programs linked with such libtool
9091 *** libraries will work regardless of this problem. Nevertheless, you
9092 *** may want to report the problem to your system manager and/or to
9093 *** [email protected]
9094
9095 _LT_EOF
9096 fi ;;
9097 esac
9098 fi
9099 break
9100 fi
9101 done
9102 IFS=$lt_save_ifs
9103 MAGIC_CMD=$lt_save_MAGIC_CMD
9104 ;;
9105 esac
9106 fi
9107
9108 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9109 if test -n "$MAGIC_CMD"; then
9110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9111 printf "%s\n" "$MAGIC_CMD" >&6; }
9112 else
9113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9114 printf "%s\n" "no" >&6; }
9115 fi
9116
9117
9118
9119
9120
9121 if test -z "$lt_cv_path_MAGIC_CMD"; then
9122 if test -n "$ac_tool_prefix"; then
9123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9124 printf %s "checking for file... " >&6; }
9125 if test ${lt_cv_path_MAGIC_CMD+y}
9126 then :
9127 printf %s "(cached) " >&6
9128 else $as_nop
9129 case $MAGIC_CMD in
9130 [\\/*] | ?:[\\/]*)
9131 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9132 ;;
9133 *)
9134 lt_save_MAGIC_CMD=$MAGIC_CMD
9135 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9136 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9137 for ac_dir in $ac_dummy; do
9138 IFS=$lt_save_ifs
9139 test -z "$ac_dir" && ac_dir=.
9140 if test -f "$ac_dir/file"; then
9141 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9142 if test -n "$file_magic_test_file"; then
9143 case $deplibs_check_method in
9144 "file_magic "*)
9145 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9146 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9147 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9148 $EGREP "$file_magic_regex" > /dev/null; then
9149 :
9150 else
9151 cat <<_LT_EOF 1>&2
9152
9153 *** Warning: the command libtool uses to detect shared libraries,
9154 *** $file_magic_cmd, produces output that libtool cannot recognize.
9155 *** The result is that libtool may fail to recognize shared libraries
9156 *** as such. This will affect the creation of libtool libraries that
9157 *** depend on shared libraries, but programs linked with such libtool
9158 *** libraries will work regardless of this problem. Nevertheless, you
9159 *** may want to report the problem to your system manager and/or to
9160 *** [email protected]
9161
9162 _LT_EOF
9163 fi ;;
9164 esac
9165 fi
9166 break
9167 fi
9168 done
9169 IFS=$lt_save_ifs
9170 MAGIC_CMD=$lt_save_MAGIC_CMD
9171 ;;
9172 esac
9173 fi
9174
9175 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9176 if test -n "$MAGIC_CMD"; then
9177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9178 printf "%s\n" "$MAGIC_CMD" >&6; }
9179 else
9180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9181 printf "%s\n" "no" >&6; }
9182 fi
9183
9184
9185 else
9186 MAGIC_CMD=:
9187 fi
9188 fi
9189
9190 fi
9191 ;;
9192 esac
9193
9194 # Use C for the default configuration in the libtool script
9195
9196 lt_save_CC=$CC
9197 ac_ext=c
9198 ac_cpp='$CPP $CPPFLAGS'
9199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9202
9203
9204 # Source file extension for C test sources.
9205 ac_ext=c
9206
9207 # Object file extension for compiled C test sources.
9208 objext=o
9209 objext=$objext
9210
9211 # Code to be used in simple compile tests
9212 lt_simple_compile_test_code="int some_variable = 0;"
9213
9214 # Code to be used in simple link tests
9215 lt_simple_link_test_code='int main(){return(0);}'
9216
9217
9218
9219
9220
9221
9222
9223 # If no C compiler was specified, use CC.
9224 LTCC=${LTCC-"$CC"}
9225
9226 # If no C compiler flags were specified, use CFLAGS.
9227 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9228
9229 # Allow CC to be a program name with arguments.
9230 compiler=$CC
9231
9232 # Save the default compiler, since it gets overwritten when the other
9233 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9234 compiler_DEFAULT=$CC
9235
9236 # save warnings/boilerplate of simple test code
9237 ac_outfile=conftest.$ac_objext
9238 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9239 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9240 _lt_compiler_boilerplate=`cat conftest.err`
9241 $RM conftest*
9242
9243 ac_outfile=conftest.$ac_objext
9244 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9245 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9246 _lt_linker_boilerplate=`cat conftest.err`
9247 $RM -r conftest*
9248
9249
9250 ## CAVEAT EMPTOR:
9251 ## There is no encapsulation within the following macros, do not change
9252 ## the running order or otherwise move them around unless you know exactly
9253 ## what you are doing...
9254 if test -n "$compiler"; then
9255
9256 lt_prog_compiler_no_builtin_flag=
9257
9258 if test yes = "$GCC"; then
9259 case $cc_basename in
9260 nvcc*)
9261 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9262 *)
9263 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9264 esac
9265
9266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9267 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9268 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9269 then :
9270 printf %s "(cached) " >&6
9271 else $as_nop
9272 lt_cv_prog_compiler_rtti_exceptions=no
9273 ac_outfile=conftest.$ac_objext
9274 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9275 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9276 # Insert the option either (1) after the last *FLAGS variable, or
9277 # (2) before a word containing "conftest.", or (3) at the end.
9278 # Note that $ac_compile itself does not contain backslashes and begins
9279 # with a dollar sign (not a hyphen), so the echo should work correctly.
9280 # The option is referenced via a variable to avoid confusing sed.
9281 lt_compile=`echo "$ac_compile" | $SED \
9282 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9283 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9284 -e 's:$: $lt_compiler_flag:'`
9285 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9286 (eval "$lt_compile" 2>conftest.err)
9287 ac_status=$?
9288 cat conftest.err >&5
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 if (exit $ac_status) && test -s "$ac_outfile"; then
9291 # The compiler can only warn and ignore the option if not recognized
9292 # So say no if there are warnings other than the usual output.
9293 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9294 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9295 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9296 lt_cv_prog_compiler_rtti_exceptions=yes
9297 fi
9298 fi
9299 $RM conftest*
9300
9301 fi
9302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9303 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9304
9305 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9306 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9307 else
9308 :
9309 fi
9310
9311 fi
9312
9313
9314
9315
9316
9317
9318 lt_prog_compiler_wl=
9319 lt_prog_compiler_pic=
9320 lt_prog_compiler_static=
9321
9322
9323 if test yes = "$GCC"; then
9324 lt_prog_compiler_wl='-Wl,'
9325 lt_prog_compiler_static='-static'
9326
9327 case $host_os in
9328 aix*)
9329 # All AIX code is PIC.
9330 if test ia64 = "$host_cpu"; then
9331 # AIX 5 now supports IA64 processor
9332 lt_prog_compiler_static='-Bstatic'
9333 fi
9334 lt_prog_compiler_pic='-fPIC'
9335 ;;
9336
9337 amigaos*)
9338 case $host_cpu in
9339 powerpc)
9340 # see comment about AmigaOS4 .so support
9341 lt_prog_compiler_pic='-fPIC'
9342 ;;
9343 m68k)
9344 # FIXME: we need at least 68020 code to build shared libraries, but
9345 # adding the '-m68020' flag to GCC prevents building anything better,
9346 # like '-m68040'.
9347 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9348 ;;
9349 esac
9350 ;;
9351
9352 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9353 # PIC is the default for these OSes.
9354 ;;
9355
9356 mingw* | cygwin* | pw32* | os2* | cegcc*)
9357 # This hack is so that the source file can tell whether it is being
9358 # built for inclusion in a dll (and should export symbols for example).
9359 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9360 # (--disable-auto-import) libraries
9361 lt_prog_compiler_pic='-DDLL_EXPORT'
9362 case $host_os in
9363 os2*)
9364 lt_prog_compiler_static='$wl-static'
9365 ;;
9366 esac
9367 ;;
9368
9369 darwin* | rhapsody*)
9370 # PIC is the default on this platform
9371 # Common symbols not allowed in MH_DYLIB files
9372 lt_prog_compiler_pic='-fno-common'
9373 ;;
9374
9375 haiku*)
9376 # PIC is the default for Haiku.
9377 # The "-static" flag exists, but is broken.
9378 lt_prog_compiler_static=
9379 ;;
9380
9381 hpux*)
9382 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9383 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9384 # sets the default TLS model and affects inlining.
9385 case $host_cpu in
9386 hppa*64*)
9387 # +Z the default
9388 ;;
9389 *)
9390 lt_prog_compiler_pic='-fPIC'
9391 ;;
9392 esac
9393 ;;
9394
9395 interix[3-9]*)
9396 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9397 # Instead, we relocate shared libraries at runtime.
9398 ;;
9399
9400 msdosdjgpp*)
9401 # Just because we use GCC doesn't mean we suddenly get shared libraries
9402 # on systems that don't support them.
9403 lt_prog_compiler_can_build_shared=no
9404 enable_shared=no
9405 ;;
9406
9407 *nto* | *qnx*)
9408 # QNX uses GNU C++, but need to define -shared option too, otherwise
9409 # it will coredump.
9410 lt_prog_compiler_pic='-fPIC -shared'
9411 ;;
9412
9413 sysv4*MP*)
9414 if test -d /usr/nec; then
9415 lt_prog_compiler_pic=-Kconform_pic
9416 fi
9417 ;;
9418
9419 *)
9420 lt_prog_compiler_pic='-fPIC'
9421 ;;
9422 esac
9423
9424 case $cc_basename in
9425 nvcc*) # Cuda Compiler Driver 2.2
9426 lt_prog_compiler_wl='-Xlinker '
9427 if test -n "$lt_prog_compiler_pic"; then
9428 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9429 fi
9430 ;;
9431 esac
9432 else
9433 # PORTME Check for flag to pass linker flags through the system compiler.
9434 case $host_os in
9435 aix*)
9436 lt_prog_compiler_wl='-Wl,'
9437 if test ia64 = "$host_cpu"; then
9438 # AIX 5 now supports IA64 processor
9439 lt_prog_compiler_static='-Bstatic'
9440 else
9441 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9442 fi
9443 ;;
9444
9445 darwin* | rhapsody*)
9446 # PIC is the default on this platform
9447 # Common symbols not allowed in MH_DYLIB files
9448 lt_prog_compiler_pic='-fno-common'
9449 case $cc_basename in
9450 nagfor*)
9451 # NAG Fortran compiler
9452 lt_prog_compiler_wl='-Wl,-Wl,,'
9453 lt_prog_compiler_pic='-PIC'
9454 lt_prog_compiler_static='-Bstatic'
9455 ;;
9456 esac
9457 ;;
9458
9459 mingw* | cygwin* | pw32* | os2* | cegcc*)
9460 # This hack is so that the source file can tell whether it is being
9461 # built for inclusion in a dll (and should export symbols for example).
9462 lt_prog_compiler_pic='-DDLL_EXPORT'
9463 case $host_os in
9464 os2*)
9465 lt_prog_compiler_static='$wl-static'
9466 ;;
9467 esac
9468 ;;
9469
9470 hpux9* | hpux10* | hpux11*)
9471 lt_prog_compiler_wl='-Wl,'
9472 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9473 # not for PA HP-UX.
9474 case $host_cpu in
9475 hppa*64*|ia64*)
9476 # +Z the default
9477 ;;
9478 *)
9479 lt_prog_compiler_pic='+Z'
9480 ;;
9481 esac
9482 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9483 lt_prog_compiler_static='$wl-a ${wl}archive'
9484 ;;
9485
9486 irix5* | irix6* | nonstopux*)
9487 lt_prog_compiler_wl='-Wl,'
9488 # PIC (with -KPIC) is the default.
9489 lt_prog_compiler_static='-non_shared'
9490 ;;
9491
9492 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9493 case $cc_basename in
9494 # old Intel for x86_64, which still supported -KPIC.
9495 ecc*)
9496 lt_prog_compiler_wl='-Wl,'
9497 lt_prog_compiler_pic='-KPIC'
9498 lt_prog_compiler_static='-static'
9499 ;;
9500 # flang / f18. f95 an alias for gfortran or flang on Debian
9501 flang* | f18* | f95*)
9502 lt_prog_compiler_wl='-Wl,'
9503 lt_prog_compiler_pic='-fPIC'
9504 lt_prog_compiler_static='-static'
9505 ;;
9506 # icc used to be incompatible with GCC.
9507 # ICC 10 doesn't accept -KPIC any more.
9508 icc* | ifort*)
9509 lt_prog_compiler_wl='-Wl,'
9510 lt_prog_compiler_pic='-fPIC'
9511 lt_prog_compiler_static='-static'
9512 ;;
9513 # Lahey Fortran 8.1.
9514 lf95*)
9515 lt_prog_compiler_wl='-Wl,'
9516 lt_prog_compiler_pic='--shared'
9517 lt_prog_compiler_static='--static'
9518 ;;
9519 nagfor*)
9520 # NAG Fortran compiler
9521 lt_prog_compiler_wl='-Wl,-Wl,,'
9522 lt_prog_compiler_pic='-PIC'
9523 lt_prog_compiler_static='-Bstatic'
9524 ;;
9525 tcc*)
9526 # Fabrice Bellard et al's Tiny C Compiler
9527 lt_prog_compiler_wl='-Wl,'
9528 lt_prog_compiler_pic='-fPIC'
9529 lt_prog_compiler_static='-static'
9530 ;;
9531 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9532 # Portland Group compilers (*not* the Pentium gcc compiler,
9533 # which looks to be a dead project)
9534 lt_prog_compiler_wl='-Wl,'
9535 lt_prog_compiler_pic='-fpic'
9536 lt_prog_compiler_static='-Bstatic'
9537 ;;
9538 ccc*)
9539 lt_prog_compiler_wl='-Wl,'
9540 # All Alpha code is PIC.
9541 lt_prog_compiler_static='-non_shared'
9542 ;;
9543 xl* | bgxl* | bgf* | mpixl*)
9544 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9545 lt_prog_compiler_wl='-Wl,'
9546 lt_prog_compiler_pic='-qpic'
9547 lt_prog_compiler_static='-qstaticlink'
9548 ;;
9549 *)
9550 case `$CC -V 2>&1 | sed 5q` in
9551 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9552 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9553 lt_prog_compiler_pic='-KPIC'
9554 lt_prog_compiler_static='-Bstatic'
9555 lt_prog_compiler_wl=''
9556 ;;
9557 *Sun\ F* | *Sun*Fortran*)
9558 lt_prog_compiler_pic='-KPIC'
9559 lt_prog_compiler_static='-Bstatic'
9560 lt_prog_compiler_wl='-Qoption ld '
9561 ;;
9562 *Sun\ C*)
9563 # Sun C 5.9
9564 lt_prog_compiler_pic='-KPIC'
9565 lt_prog_compiler_static='-Bstatic'
9566 lt_prog_compiler_wl='-Wl,'
9567 ;;
9568 *Intel*\ [CF]*Compiler*)
9569 lt_prog_compiler_wl='-Wl,'
9570 lt_prog_compiler_pic='-fPIC'
9571 lt_prog_compiler_static='-static'
9572 ;;
9573 *Portland\ Group*)
9574 lt_prog_compiler_wl='-Wl,'
9575 lt_prog_compiler_pic='-fpic'
9576 lt_prog_compiler_static='-Bstatic'
9577 ;;
9578 esac
9579 ;;
9580 esac
9581 ;;
9582
9583 newsos6)
9584 lt_prog_compiler_pic='-KPIC'
9585 lt_prog_compiler_static='-Bstatic'
9586 ;;
9587
9588 *nto* | *qnx*)
9589 # QNX uses GNU C++, but need to define -shared option too, otherwise
9590 # it will coredump.
9591 lt_prog_compiler_pic='-fPIC -shared'
9592 ;;
9593
9594 osf3* | osf4* | osf5*)
9595 lt_prog_compiler_wl='-Wl,'
9596 # All OSF/1 code is PIC.
9597 lt_prog_compiler_static='-non_shared'
9598 ;;
9599
9600 rdos*)
9601 lt_prog_compiler_static='-non_shared'
9602 ;;
9603
9604 solaris*)
9605 lt_prog_compiler_pic='-KPIC'
9606 lt_prog_compiler_static='-Bstatic'
9607 case $cc_basename in
9608 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9609 lt_prog_compiler_wl='-Qoption ld ';;
9610 *)
9611 lt_prog_compiler_wl='-Wl,';;
9612 esac
9613 ;;
9614
9615 sunos4*)
9616 lt_prog_compiler_wl='-Qoption ld '
9617 lt_prog_compiler_pic='-PIC'
9618 lt_prog_compiler_static='-Bstatic'
9619 ;;
9620
9621 sysv4 | sysv4.2uw2* | sysv4.3*)
9622 lt_prog_compiler_wl='-Wl,'
9623 lt_prog_compiler_pic='-KPIC'
9624 lt_prog_compiler_static='-Bstatic'
9625 ;;
9626
9627 sysv4*MP*)
9628 if test -d /usr/nec; then
9629 lt_prog_compiler_pic='-Kconform_pic'
9630 lt_prog_compiler_static='-Bstatic'
9631 fi
9632 ;;
9633
9634 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9635 lt_prog_compiler_wl='-Wl,'
9636 lt_prog_compiler_pic='-KPIC'
9637 lt_prog_compiler_static='-Bstatic'
9638 ;;
9639
9640 unicos*)
9641 lt_prog_compiler_wl='-Wl,'
9642 lt_prog_compiler_can_build_shared=no
9643 ;;
9644
9645 uts4*)
9646 lt_prog_compiler_pic='-pic'
9647 lt_prog_compiler_static='-Bstatic'
9648 ;;
9649
9650 *)
9651 lt_prog_compiler_can_build_shared=no
9652 ;;
9653 esac
9654 fi
9655
9656 case $host_os in
9657 # For platforms that do not support PIC, -DPIC is meaningless:
9658 *djgpp*)
9659 lt_prog_compiler_pic=
9660 ;;
9661 *)
9662 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9663 ;;
9664 esac
9665
9666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9667 printf %s "checking for $compiler option to produce PIC... " >&6; }
9668 if test ${lt_cv_prog_compiler_pic+y}
9669 then :
9670 printf %s "(cached) " >&6
9671 else $as_nop
9672 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9673 fi
9674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9675 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9676 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9677
9678 #
9679 # Check to make sure the PIC flag actually works.
9680 #
9681 if test -n "$lt_prog_compiler_pic"; then
9682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9683 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9684 if test ${lt_cv_prog_compiler_pic_works+y}
9685 then :
9686 printf %s "(cached) " >&6
9687 else $as_nop
9688 lt_cv_prog_compiler_pic_works=no
9689 ac_outfile=conftest.$ac_objext
9690 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9691 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9692 # Insert the option either (1) after the last *FLAGS variable, or
9693 # (2) before a word containing "conftest.", or (3) at the end.
9694 # Note that $ac_compile itself does not contain backslashes and begins
9695 # with a dollar sign (not a hyphen), so the echo should work correctly.
9696 # The option is referenced via a variable to avoid confusing sed.
9697 lt_compile=`echo "$ac_compile" | $SED \
9698 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9699 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9700 -e 's:$: $lt_compiler_flag:'`
9701 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9702 (eval "$lt_compile" 2>conftest.err)
9703 ac_status=$?
9704 cat conftest.err >&5
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 if (exit $ac_status) && test -s "$ac_outfile"; then
9707 # The compiler can only warn and ignore the option if not recognized
9708 # So say no if there are warnings other than the usual output.
9709 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9710 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9711 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9712 lt_cv_prog_compiler_pic_works=yes
9713 fi
9714 fi
9715 $RM conftest*
9716
9717 fi
9718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9719 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9720
9721 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9722 case $lt_prog_compiler_pic in
9723 "" | " "*) ;;
9724 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9725 esac
9726 else
9727 lt_prog_compiler_pic=
9728 lt_prog_compiler_can_build_shared=no
9729 fi
9730
9731 fi
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743 #
9744 # Check to make sure the static flag actually works.
9745 #
9746 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9748 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9749 if test ${lt_cv_prog_compiler_static_works+y}
9750 then :
9751 printf %s "(cached) " >&6
9752 else $as_nop
9753 lt_cv_prog_compiler_static_works=no
9754 save_LDFLAGS=$LDFLAGS
9755 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9756 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9757 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9758 # The linker can only warn and ignore the option if not recognized
9759 # So say no if there are warnings
9760 if test -s conftest.err; then
9761 # Append any errors to the config.log.
9762 cat conftest.err 1>&5
9763 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9764 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9765 if diff conftest.exp conftest.er2 >/dev/null; then
9766 lt_cv_prog_compiler_static_works=yes
9767 fi
9768 else
9769 lt_cv_prog_compiler_static_works=yes
9770 fi
9771 fi
9772 $RM -r conftest*
9773 LDFLAGS=$save_LDFLAGS
9774
9775 fi
9776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9777 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9778
9779 if test yes = "$lt_cv_prog_compiler_static_works"; then
9780 :
9781 else
9782 lt_prog_compiler_static=
9783 fi
9784
9785
9786
9787
9788
9789
9790
9791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9792 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9793 if test ${lt_cv_prog_compiler_c_o+y}
9794 then :
9795 printf %s "(cached) " >&6
9796 else $as_nop
9797 lt_cv_prog_compiler_c_o=no
9798 $RM -r conftest 2>/dev/null
9799 mkdir conftest
9800 cd conftest
9801 mkdir out
9802 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9803
9804 lt_compiler_flag="-o out/conftest2.$ac_objext"
9805 # Insert the option either (1) after the last *FLAGS variable, or
9806 # (2) before a word containing "conftest.", or (3) at the end.
9807 # Note that $ac_compile itself does not contain backslashes and begins
9808 # with a dollar sign (not a hyphen), so the echo should work correctly.
9809 lt_compile=`echo "$ac_compile" | $SED \
9810 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9811 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9812 -e 's:$: $lt_compiler_flag:'`
9813 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9814 (eval "$lt_compile" 2>out/conftest.err)
9815 ac_status=$?
9816 cat out/conftest.err >&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9819 then
9820 # The compiler can only warn and ignore the option if not recognized
9821 # So say no if there are warnings
9822 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9823 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9824 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9825 lt_cv_prog_compiler_c_o=yes
9826 fi
9827 fi
9828 chmod u+w . 2>&5
9829 $RM conftest*
9830 # SGI C++ compiler will create directory out/ii_files/ for
9831 # template instantiation
9832 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9833 $RM out/* && rmdir out
9834 cd ..
9835 $RM -r conftest
9836 $RM conftest*
9837
9838 fi
9839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9840 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9841
9842
9843
9844
9845
9846
9847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9848 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9849 if test ${lt_cv_prog_compiler_c_o+y}
9850 then :
9851 printf %s "(cached) " >&6
9852 else $as_nop
9853 lt_cv_prog_compiler_c_o=no
9854 $RM -r conftest 2>/dev/null
9855 mkdir conftest
9856 cd conftest
9857 mkdir out
9858 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9859
9860 lt_compiler_flag="-o out/conftest2.$ac_objext"
9861 # Insert the option either (1) after the last *FLAGS variable, or
9862 # (2) before a word containing "conftest.", or (3) at the end.
9863 # Note that $ac_compile itself does not contain backslashes and begins
9864 # with a dollar sign (not a hyphen), so the echo should work correctly.
9865 lt_compile=`echo "$ac_compile" | $SED \
9866 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9867 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9868 -e 's:$: $lt_compiler_flag:'`
9869 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9870 (eval "$lt_compile" 2>out/conftest.err)
9871 ac_status=$?
9872 cat out/conftest.err >&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9875 then
9876 # The compiler can only warn and ignore the option if not recognized
9877 # So say no if there are warnings
9878 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9879 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9880 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9881 lt_cv_prog_compiler_c_o=yes
9882 fi
9883 fi
9884 chmod u+w . 2>&5
9885 $RM conftest*
9886 # SGI C++ compiler will create directory out/ii_files/ for
9887 # template instantiation
9888 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9889 $RM out/* && rmdir out
9890 cd ..
9891 $RM -r conftest
9892 $RM conftest*
9893
9894 fi
9895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9896 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9897
9898
9899
9900
9901 hard_links=nottested
9902 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9903 # do not overwrite the value of need_locks provided by the user
9904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9905 printf %s "checking if we can lock with hard links... " >&6; }
9906 hard_links=yes
9907 $RM conftest*
9908 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9909 touch conftest.a
9910 ln conftest.a conftest.b 2>&5 || hard_links=no
9911 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9913 printf "%s\n" "$hard_links" >&6; }
9914 if test no = "$hard_links"; then
9915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9916 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9917 need_locks=warn
9918 fi
9919 else
9920 need_locks=no
9921 fi
9922
9923
9924
9925
9926
9927
9928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9929 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9930
9931 runpath_var=
9932 allow_undefined_flag=
9933 always_export_symbols=no
9934 archive_cmds=
9935 archive_expsym_cmds=
9936 compiler_needs_object=no
9937 enable_shared_with_static_runtimes=no
9938 export_dynamic_flag_spec=
9939 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9940 hardcode_automatic=no
9941 hardcode_direct=no
9942 hardcode_direct_absolute=no
9943 hardcode_libdir_flag_spec=
9944 hardcode_libdir_separator=
9945 hardcode_minus_L=no
9946 hardcode_shlibpath_var=unsupported
9947 inherit_rpath=no
9948 link_all_deplibs=unknown
9949 module_cmds=
9950 module_expsym_cmds=
9951 old_archive_from_new_cmds=
9952 old_archive_from_expsyms_cmds=
9953 thread_safe_flag_spec=
9954 whole_archive_flag_spec=
9955 # include_expsyms should be a list of space-separated symbols to be *always*
9956 # included in the symbol list
9957 include_expsyms=
9958 # exclude_expsyms can be an extended regexp of symbols to exclude
9959 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9960 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9961 # as well as any symbol that contains 'd'.
9962 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9963 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9964 # platforms (ab)use it in PIC code, but their linkers get confused if
9965 # the symbol is explicitly referenced. Since portable code cannot
9966 # rely on this symbol name, it's probably fine to never include it in
9967 # preloaded symbol tables.
9968 # Exclude shared library initialization/finalization symbols.
9969 extract_expsyms_cmds=
9970
9971 case $host_os in
9972 cygwin* | mingw* | pw32* | cegcc*)
9973 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9974 # When not using gcc, we currently assume that we are using
9975 # Microsoft Visual C++.
9976 if test yes != "$GCC"; then
9977 with_gnu_ld=no
9978 fi
9979 ;;
9980 interix*)
9981 # we just hope/assume this is gcc and not c89 (= MSVC++)
9982 with_gnu_ld=yes
9983 ;;
9984 openbsd* | bitrig*)
9985 with_gnu_ld=no
9986 ;;
9987 linux* | k*bsd*-gnu | gnu*)
9988 link_all_deplibs=no
9989 ;;
9990 esac
9991
9992 ld_shlibs=yes
9993
9994 # On some targets, GNU ld is compatible enough with the native linker
9995 # that we're better off using the native interface for both.
9996 lt_use_gnu_ld_interface=no
9997 if test yes = "$with_gnu_ld"; then
9998 case $host_os in
9999 aix*)
10000 # The AIX port of GNU ld has always aspired to compatibility
10001 # with the native linker. However, as the warning in the GNU ld
10002 # block says, versions before 2.19.5* couldn't really create working
10003 # shared libraries, regardless of the interface used.
10004 case `$LD -v 2>&1` in
10005 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10006 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10007 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10008 *)
10009 lt_use_gnu_ld_interface=yes
10010 ;;
10011 esac
10012 ;;
10013 *)
10014 lt_use_gnu_ld_interface=yes
10015 ;;
10016 esac
10017 fi
10018
10019 if test yes = "$lt_use_gnu_ld_interface"; then
10020 # If archive_cmds runs LD, not CC, wlarc should be empty
10021 wlarc='$wl'
10022
10023 # Set some defaults for GNU ld with shared library support. These
10024 # are reset later if shared libraries are not supported. Putting them
10025 # here allows them to be overridden if necessary.
10026 runpath_var=LD_RUN_PATH
10027 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10028 export_dynamic_flag_spec='$wl--export-dynamic'
10029 # ancient GNU ld didn't support --whole-archive et. al.
10030 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10031 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10032 else
10033 whole_archive_flag_spec=
10034 fi
10035 supports_anon_versioning=no
10036 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10037 *GNU\ gold*) supports_anon_versioning=yes ;;
10038 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10039 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10040 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10041 *\ 2.11.*) ;; # other 2.11 versions
10042 *) supports_anon_versioning=yes ;;
10043 esac
10044
10045 # See if GNU ld supports shared libraries.
10046 case $host_os in
10047 aix[3-9]*)
10048 # On AIX/PPC, the GNU linker is very broken
10049 if test ia64 != "$host_cpu"; then
10050 ld_shlibs=no
10051 cat <<_LT_EOF 1>&2
10052
10053 *** Warning: the GNU linker, at least up to release 2.19, is reported
10054 *** to be unable to reliably create shared libraries on AIX.
10055 *** Therefore, libtool is disabling shared libraries support. If you
10056 *** really care for shared libraries, you may want to install binutils
10057 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10058 *** You will then need to restart the configuration process.
10059
10060 _LT_EOF
10061 fi
10062 ;;
10063
10064 amigaos*)
10065 case $host_cpu in
10066 powerpc)
10067 # see comment about AmigaOS4 .so support
10068 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10069 archive_expsym_cmds=''
10070 ;;
10071 m68k)
10072 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10073 hardcode_libdir_flag_spec='-L$libdir'
10074 hardcode_minus_L=yes
10075 ;;
10076 esac
10077 ;;
10078
10079 beos*)
10080 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10081 allow_undefined_flag=unsupported
10082 # Joseph Beckenbach <[email protected]> says some releases of gcc
10083 # support --undefined. This deserves some investigation. FIXME
10084 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10085 else
10086 ld_shlibs=no
10087 fi
10088 ;;
10089
10090 cygwin* | mingw* | pw32* | cegcc*)
10091 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10092 # as there is no search path for DLLs.
10093 hardcode_libdir_flag_spec='-L$libdir'
10094 export_dynamic_flag_spec='$wl--export-all-symbols'
10095 allow_undefined_flag=unsupported
10096 always_export_symbols=no
10097 enable_shared_with_static_runtimes=yes
10098 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10099 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10100
10101 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10102 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10103 # If the export-symbols file already is a .def file, use it as
10104 # is; otherwise, prepend EXPORTS...
10105 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10106 cp $export_symbols $output_objdir/$soname.def;
10107 else
10108 echo EXPORTS > $output_objdir/$soname.def;
10109 cat $export_symbols >> $output_objdir/$soname.def;
10110 fi~
10111 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10112 else
10113 ld_shlibs=no
10114 fi
10115 ;;
10116
10117 haiku*)
10118 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10119 link_all_deplibs=yes
10120 ;;
10121
10122 os2*)
10123 hardcode_libdir_flag_spec='-L$libdir'
10124 hardcode_minus_L=yes
10125 allow_undefined_flag=unsupported
10126 shrext_cmds=.dll
10127 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10128 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10129 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10130 $ECHO EXPORTS >> $output_objdir/$libname.def~
10131 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10132 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10133 emximp -o $lib $output_objdir/$libname.def'
10134 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10135 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10136 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10137 $ECHO EXPORTS >> $output_objdir/$libname.def~
10138 prefix_cmds="$SED"~
10139 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10140 prefix_cmds="$prefix_cmds -e 1d";
10141 fi~
10142 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10143 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10144 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10145 emximp -o $lib $output_objdir/$libname.def'
10146 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10147 enable_shared_with_static_runtimes=yes
10148 ;;
10149
10150 interix[3-9]*)
10151 hardcode_direct=no
10152 hardcode_shlibpath_var=no
10153 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10154 export_dynamic_flag_spec='$wl-E'
10155 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10156 # Instead, shared libraries are loaded at an image base (0x10000000 by
10157 # default) and relocated if they conflict, which is a slow very memory
10158 # consuming and fragmenting process. To avoid this, we pick a random,
10159 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10160 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10161 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10162 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10163 ;;
10164
10165 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10166 tmp_diet=no
10167 if test linux-dietlibc = "$host_os"; then
10168 case $cc_basename in
10169 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10170 esac
10171 fi
10172 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10173 && test no = "$tmp_diet"
10174 then
10175 tmp_addflag=' $pic_flag'
10176 tmp_sharedflag='-shared'
10177 case $cc_basename,$host_cpu in
10178 pgcc*) # Portland Group C compiler
10179 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10180 tmp_addflag=' $pic_flag'
10181 ;;
10182 pgf77* | pgf90* | pgf95* | pgfortran*)
10183 # Portland Group f77 and f90 compilers
10184 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10185 tmp_addflag=' $pic_flag -Mnomain' ;;
10186 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10187 tmp_addflag=' -i_dynamic' ;;
10188 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10189 tmp_addflag=' -i_dynamic -nofor_main' ;;
10190 ifc* | ifort*) # Intel Fortran compiler
10191 tmp_addflag=' -nofor_main' ;;
10192 lf95*) # Lahey Fortran 8.1
10193 whole_archive_flag_spec=
10194 tmp_sharedflag='--shared' ;;
10195 nagfor*) # NAGFOR 5.3
10196 tmp_sharedflag='-Wl,-shared' ;;
10197 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10198 tmp_sharedflag='-qmkshrobj'
10199 tmp_addflag= ;;
10200 nvcc*) # Cuda Compiler Driver 2.2
10201 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10202 compiler_needs_object=yes
10203 ;;
10204 esac
10205 case `$CC -V 2>&1 | sed 5q` in
10206 *Sun\ C*) # Sun C 5.9
10207 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10208 compiler_needs_object=yes
10209 tmp_sharedflag='-G' ;;
10210 *Sun\ F*) # Sun Fortran 8.3
10211 tmp_sharedflag='-G' ;;
10212 esac
10213 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10214
10215 if test yes = "$supports_anon_versioning"; then
10216 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10217 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10218 echo "local: *; };" >> $output_objdir/$libname.ver~
10219 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10220 fi
10221
10222 case $cc_basename in
10223 tcc*)
10224 export_dynamic_flag_spec='-rdynamic'
10225 ;;
10226 xlf* | bgf* | bgxlf* | mpixlf*)
10227 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10228 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10229 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10230 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10231 if test yes = "$supports_anon_versioning"; then
10232 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10233 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10234 echo "local: *; };" >> $output_objdir/$libname.ver~
10235 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10236 fi
10237 ;;
10238 esac
10239 else
10240 ld_shlibs=no
10241 fi
10242 ;;
10243
10244 netbsd* | netbsdelf*-gnu)
10245 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10246 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10247 wlarc=
10248 else
10249 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10250 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10251 fi
10252 ;;
10253
10254 solaris*)
10255 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10256 ld_shlibs=no
10257 cat <<_LT_EOF 1>&2
10258
10259 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10260 *** create shared libraries on Solaris systems. Therefore, libtool
10261 *** is disabling shared libraries support. We urge you to upgrade GNU
10262 *** binutils to release 2.9.1 or newer. Another option is to modify
10263 *** your PATH or compiler configuration so that the native linker is
10264 *** used, and then restart.
10265
10266 _LT_EOF
10267 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10268 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10269 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10270 else
10271 ld_shlibs=no
10272 fi
10273 ;;
10274
10275 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10276 case `$LD -v 2>&1` in
10277 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10278 ld_shlibs=no
10279 cat <<_LT_EOF 1>&2
10280
10281 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10282 *** reliably create shared libraries on SCO systems. Therefore, libtool
10283 *** is disabling shared libraries support. We urge you to upgrade GNU
10284 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10285 *** your PATH or compiler configuration so that the native linker is
10286 *** used, and then restart.
10287
10288 _LT_EOF
10289 ;;
10290 *)
10291 # For security reasons, it is highly recommended that you always
10292 # use absolute paths for naming shared libraries, and exclude the
10293 # DT_RUNPATH tag from executables and libraries. But doing so
10294 # requires that you compile everything twice, which is a pain.
10295 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10296 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10297 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10298 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10299 else
10300 ld_shlibs=no
10301 fi
10302 ;;
10303 esac
10304 ;;
10305
10306 sunos4*)
10307 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10308 wlarc=
10309 hardcode_direct=yes
10310 hardcode_shlibpath_var=no
10311 ;;
10312
10313 *)
10314 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10315 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10316 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10317 else
10318 ld_shlibs=no
10319 fi
10320 ;;
10321 esac
10322
10323 if test no = "$ld_shlibs"; then
10324 runpath_var=
10325 hardcode_libdir_flag_spec=
10326 export_dynamic_flag_spec=
10327 whole_archive_flag_spec=
10328 fi
10329 else
10330 # PORTME fill in a description of your system's linker (not GNU ld)
10331 case $host_os in
10332 aix3*)
10333 allow_undefined_flag=unsupported
10334 always_export_symbols=yes
10335 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10336 # Note: this linker hardcodes the directories in LIBPATH if there
10337 # are no directories specified by -L.
10338 hardcode_minus_L=yes
10339 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10340 # Neither direct hardcoding nor static linking is supported with a
10341 # broken collect2.
10342 hardcode_direct=unsupported
10343 fi
10344 ;;
10345
10346 aix[4-9]*)
10347 if test ia64 = "$host_cpu"; then
10348 # On IA64, the linker does run time linking by default, so we don't
10349 # have to do anything special.
10350 aix_use_runtimelinking=no
10351 exp_sym_flag='-Bexport'
10352 no_entry_flag=
10353 else
10354 # If we're using GNU nm, then we don't want the "-C" option.
10355 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10356 # Without the "-l" option, or with the "-B" option, AIX nm treats
10357 # weak defined symbols like other global defined symbols, whereas
10358 # GNU nm marks them as "W".
10359 # While the 'weak' keyword is ignored in the Export File, we need
10360 # it in the Import File for the 'aix-soname' feature, so we have
10361 # to replace the "-B" option with "-P" for AIX nm.
10362 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10363 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10364 else
10365 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10366 fi
10367 aix_use_runtimelinking=no
10368
10369 # Test if we are trying to use run time linking or normal
10370 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10371 # have runtime linking enabled, and use it for executables.
10372 # For shared libraries, we enable/disable runtime linking
10373 # depending on the kind of the shared library created -
10374 # when "with_aix_soname,aix_use_runtimelinking" is:
10375 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10376 # "aix,yes" lib.so shared, rtl:yes, for executables
10377 # lib.a static archive
10378 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10379 # lib.a(lib.so.V) shared, rtl:no, for executables
10380 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10381 # lib.a(lib.so.V) shared, rtl:no
10382 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10383 # lib.a static archive
10384 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10385 for ld_flag in $LDFLAGS; do
10386 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10387 aix_use_runtimelinking=yes
10388 break
10389 fi
10390 done
10391 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10392 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10393 # so we don't have lib.a shared libs to link our executables.
10394 # We have to force runtime linking in this case.
10395 aix_use_runtimelinking=yes
10396 LDFLAGS="$LDFLAGS -Wl,-brtl"
10397 fi
10398 ;;
10399 esac
10400
10401 exp_sym_flag='-bexport'
10402 no_entry_flag='-bnoentry'
10403 fi
10404
10405 # When large executables or shared objects are built, AIX ld can
10406 # have problems creating the table of contents. If linking a library
10407 # or program results in "error TOC overflow" add -mminimal-toc to
10408 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10409 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10410
10411 archive_cmds=''
10412 hardcode_direct=yes
10413 hardcode_direct_absolute=yes
10414 hardcode_libdir_separator=':'
10415 link_all_deplibs=yes
10416 file_list_spec='$wl-f,'
10417 case $with_aix_soname,$aix_use_runtimelinking in
10418 aix,*) ;; # traditional, no import file
10419 svr4,* | *,yes) # use import file
10420 # The Import File defines what to hardcode.
10421 hardcode_direct=no
10422 hardcode_direct_absolute=no
10423 ;;
10424 esac
10425
10426 if test yes = "$GCC"; then
10427 case $host_os in aix4.[012]|aix4.[012].*)
10428 # We only want to do this on AIX 4.2 and lower, the check
10429 # below for broken collect2 doesn't work under 4.3+
10430 collect2name=`$CC -print-prog-name=collect2`
10431 if test -f "$collect2name" &&
10432 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10433 then
10434 # We have reworked collect2
10435 :
10436 else
10437 # We have old collect2
10438 hardcode_direct=unsupported
10439 # It fails to find uninstalled libraries when the uninstalled
10440 # path is not listed in the libpath. Setting hardcode_minus_L
10441 # to unsupported forces relinking
10442 hardcode_minus_L=yes
10443 hardcode_libdir_flag_spec='-L$libdir'
10444 hardcode_libdir_separator=
10445 fi
10446 ;;
10447 esac
10448 shared_flag='-shared'
10449 if test yes = "$aix_use_runtimelinking"; then
10450 shared_flag="$shared_flag "'$wl-G'
10451 fi
10452 # Need to ensure runtime linking is disabled for the traditional
10453 # shared library, or the linker may eventually find shared libraries
10454 # /with/ Import File - we do not want to mix them.
10455 shared_flag_aix='-shared'
10456 shared_flag_svr4='-shared $wl-G'
10457 else
10458 # not using gcc
10459 if test ia64 = "$host_cpu"; then
10460 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10461 # chokes on -Wl,-G. The following line is correct:
10462 shared_flag='-G'
10463 else
10464 if test yes = "$aix_use_runtimelinking"; then
10465 shared_flag='$wl-G'
10466 else
10467 shared_flag='$wl-bM:SRE'
10468 fi
10469 shared_flag_aix='$wl-bM:SRE'
10470 shared_flag_svr4='$wl-G'
10471 fi
10472 fi
10473
10474 export_dynamic_flag_spec='$wl-bexpall'
10475 # It seems that -bexpall does not export symbols beginning with
10476 # underscore (_), so it is better to generate a list of symbols to export.
10477 always_export_symbols=yes
10478 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10479 # Warning - without using the other runtime loading flags (-brtl),
10480 # -berok will link without error, but may produce a broken library.
10481 allow_undefined_flag='-berok'
10482 # Determine the default libpath from the value encoded in an
10483 # empty executable.
10484 if test set = "${lt_cv_aix_libpath+set}"; then
10485 aix_libpath=$lt_cv_aix_libpath
10486 else
10487 if test ${lt_cv_aix_libpath_+y}
10488 then :
10489 printf %s "(cached) " >&6
10490 else $as_nop
10491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10492 /* end confdefs.h. */
10493
10494 int
10495 main (void)
10496 {
10497
10498 ;
10499 return 0;
10500 }
10501 _ACEOF
10502 if ac_fn_c_try_link "$LINENO"
10503 then :
10504
10505 lt_aix_libpath_sed='
10506 /Import File Strings/,/^$/ {
10507 /^0/ {
10508 s/^0 *\([^ ]*\) *$/\1/
10509 p
10510 }
10511 }'
10512 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10513 # Check for a 64-bit object if we didn't find anything.
10514 if test -z "$lt_cv_aix_libpath_"; then
10515 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10516 fi
10517 fi
10518 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10519 conftest$ac_exeext conftest.$ac_ext
10520 if test -z "$lt_cv_aix_libpath_"; then
10521 lt_cv_aix_libpath_=/usr/lib:/lib
10522 fi
10523
10524 fi
10525
10526 aix_libpath=$lt_cv_aix_libpath_
10527 fi
10528
10529 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10530 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10531 else
10532 if test ia64 = "$host_cpu"; then
10533 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10534 allow_undefined_flag="-z nodefs"
10535 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
10536 else
10537 # Determine the default libpath from the value encoded in an
10538 # empty executable.
10539 if test set = "${lt_cv_aix_libpath+set}"; then
10540 aix_libpath=$lt_cv_aix_libpath
10541 else
10542 if test ${lt_cv_aix_libpath_+y}
10543 then :
10544 printf %s "(cached) " >&6
10545 else $as_nop
10546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10547 /* end confdefs.h. */
10548
10549 int
10550 main (void)
10551 {
10552
10553 ;
10554 return 0;
10555 }
10556 _ACEOF
10557 if ac_fn_c_try_link "$LINENO"
10558 then :
10559
10560 lt_aix_libpath_sed='
10561 /Import File Strings/,/^$/ {
10562 /^0/ {
10563 s/^0 *\([^ ]*\) *$/\1/
10564 p
10565 }
10566 }'
10567 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10568 # Check for a 64-bit object if we didn't find anything.
10569 if test -z "$lt_cv_aix_libpath_"; then
10570 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10571 fi
10572 fi
10573 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10574 conftest$ac_exeext conftest.$ac_ext
10575 if test -z "$lt_cv_aix_libpath_"; then
10576 lt_cv_aix_libpath_=/usr/lib:/lib
10577 fi
10578
10579 fi
10580
10581 aix_libpath=$lt_cv_aix_libpath_
10582 fi
10583
10584 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10585 # Warning - without using the other run time loading flags,
10586 # -berok will link without error, but may produce a broken library.
10587 no_undefined_flag=' $wl-bernotok'
10588 allow_undefined_flag=' $wl-berok'
10589 if test yes = "$with_gnu_ld"; then
10590 # We only use this code for GNU lds that support --whole-archive.
10591 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10592 else
10593 # Exported symbols can be pulled into shared objects from archives
10594 whole_archive_flag_spec='$convenience'
10595 fi
10596 archive_cmds_need_lc=yes
10597 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10598 # -brtl affects multiple linker settings, -berok does not and is overridden later
10599 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10600 if test svr4 != "$with_aix_soname"; then
10601 # This is similar to how AIX traditionally builds its shared libraries.
10602 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10603 fi
10604 if test aix != "$with_aix_soname"; then
10605 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10606 else
10607 # used by -dlpreopen to get the symbols
10608 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10609 fi
10610 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10611 fi
10612 fi
10613 ;;
10614
10615 amigaos*)
10616 case $host_cpu in
10617 powerpc)
10618 # see comment about AmigaOS4 .so support
10619 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10620 archive_expsym_cmds=''
10621 ;;
10622 m68k)
10623 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10624 hardcode_libdir_flag_spec='-L$libdir'
10625 hardcode_minus_L=yes
10626 ;;
10627 esac
10628 ;;
10629
10630 bsdi[45]*)
10631 export_dynamic_flag_spec=-rdynamic
10632 ;;
10633
10634 cygwin* | mingw* | pw32* | cegcc*)
10635 # When not using gcc, we currently assume that we are using
10636 # Microsoft Visual C++.
10637 # hardcode_libdir_flag_spec is actually meaningless, as there is
10638 # no search path for DLLs.
10639 case $cc_basename in
10640 cl*)
10641 # Native MSVC
10642 hardcode_libdir_flag_spec=' '
10643 allow_undefined_flag=unsupported
10644 always_export_symbols=yes
10645 file_list_spec='@'
10646 # Tell ltmain to make .lib files, not .a files.
10647 libext=lib
10648 # Tell ltmain to make .dll files, not .so files.
10649 shrext_cmds=.dll
10650 # FIXME: Setting linknames here is a bad hack.
10651 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10652 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10653 cp "$export_symbols" "$output_objdir/$soname.def";
10654 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10655 else
10656 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10657 fi~
10658 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10659 linknames='
10660 # The linker will not automatically build a static lib if we build a DLL.
10661 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10662 enable_shared_with_static_runtimes=yes
10663 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10664 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10665 # Don't use ranlib
10666 old_postinstall_cmds='chmod 644 $oldlib'
10667 postlink_cmds='lt_outputfile="@OUTPUT@"~
10668 lt_tool_outputfile="@TOOL_OUTPUT@"~
10669 case $lt_outputfile in
10670 *.exe|*.EXE) ;;
10671 *)
10672 lt_outputfile=$lt_outputfile.exe
10673 lt_tool_outputfile=$lt_tool_outputfile.exe
10674 ;;
10675 esac~
10676 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10677 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10678 $RM "$lt_outputfile.manifest";
10679 fi'
10680 ;;
10681 *)
10682 # Assume MSVC wrapper
10683 hardcode_libdir_flag_spec=' '
10684 allow_undefined_flag=unsupported
10685 # Tell ltmain to make .lib files, not .a files.
10686 libext=lib
10687 # Tell ltmain to make .dll files, not .so files.
10688 shrext_cmds=.dll
10689 # FIXME: Setting linknames here is a bad hack.
10690 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10691 # The linker will automatically build a .lib file if we build a DLL.
10692 old_archive_from_new_cmds='true'
10693 # FIXME: Should let the user specify the lib program.
10694 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10695 enable_shared_with_static_runtimes=yes
10696 ;;
10697 esac
10698 ;;
10699
10700 darwin* | rhapsody*)
10701
10702
10703 archive_cmds_need_lc=no
10704 hardcode_direct=no
10705 hardcode_automatic=yes
10706 hardcode_shlibpath_var=unsupported
10707 if test yes = "$lt_cv_ld_force_load"; then
10708 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10709
10710 else
10711 whole_archive_flag_spec=''
10712 fi
10713 link_all_deplibs=yes
10714 allow_undefined_flag=$_lt_dar_allow_undefined
10715 case $cc_basename in
10716 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10717 *) _lt_dar_can_shared=$GCC ;;
10718 esac
10719 if test yes = "$_lt_dar_can_shared"; then
10720 output_verbose_link_cmd=func_echo_all
10721 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10722 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10723 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
10724 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
10725
10726 else
10727 ld_shlibs=no
10728 fi
10729
10730 ;;
10731
10732 dgux*)
10733 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10734 hardcode_libdir_flag_spec='-L$libdir'
10735 hardcode_shlibpath_var=no
10736 ;;
10737
10738 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10739 # support. Future versions do this automatically, but an explicit c++rt0.o
10740 # does not break anything, and helps significantly (at the cost of a little
10741 # extra space).
10742 freebsd2.2*)
10743 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10744 hardcode_libdir_flag_spec='-R$libdir'
10745 hardcode_direct=yes
10746 hardcode_shlibpath_var=no
10747 ;;
10748
10749 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10750 freebsd2.*)
10751 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10752 hardcode_direct=yes
10753 hardcode_minus_L=yes
10754 hardcode_shlibpath_var=no
10755 ;;
10756
10757 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10758 freebsd* | dragonfly*)
10759 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10760 hardcode_libdir_flag_spec='-R$libdir'
10761 hardcode_direct=yes
10762 hardcode_shlibpath_var=no
10763 ;;
10764
10765 hpux9*)
10766 if test yes = "$GCC"; then
10767 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10768 else
10769 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10770 fi
10771 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10772 hardcode_libdir_separator=:
10773 hardcode_direct=yes
10774
10775 # hardcode_minus_L: Not really in the search PATH,
10776 # but as the default location of the library.
10777 hardcode_minus_L=yes
10778 export_dynamic_flag_spec='$wl-E'
10779 ;;
10780
10781 hpux10*)
10782 if test yes,no = "$GCC,$with_gnu_ld"; then
10783 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10784 else
10785 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10786 fi
10787 if test no = "$with_gnu_ld"; then
10788 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10789 hardcode_libdir_separator=:
10790 hardcode_direct=yes
10791 hardcode_direct_absolute=yes
10792 export_dynamic_flag_spec='$wl-E'
10793 # hardcode_minus_L: Not really in the search PATH,
10794 # but as the default location of the library.
10795 hardcode_minus_L=yes
10796 fi
10797 ;;
10798
10799 hpux11*)
10800 if test yes,no = "$GCC,$with_gnu_ld"; then
10801 case $host_cpu in
10802 hppa*64*)
10803 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10804 ;;
10805 ia64*)
10806 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10807 ;;
10808 *)
10809 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10810 ;;
10811 esac
10812 else
10813 case $host_cpu in
10814 hppa*64*)
10815 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10816 ;;
10817 ia64*)
10818 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10819 ;;
10820 *)
10821
10822 # Older versions of the 11.00 compiler do not understand -b yet
10823 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10825 printf %s "checking if $CC understands -b... " >&6; }
10826 if test ${lt_cv_prog_compiler__b+y}
10827 then :
10828 printf %s "(cached) " >&6
10829 else $as_nop
10830 lt_cv_prog_compiler__b=no
10831 save_LDFLAGS=$LDFLAGS
10832 LDFLAGS="$LDFLAGS -b"
10833 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10834 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10835 # The linker can only warn and ignore the option if not recognized
10836 # So say no if there are warnings
10837 if test -s conftest.err; then
10838 # Append any errors to the config.log.
10839 cat conftest.err 1>&5
10840 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10841 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10842 if diff conftest.exp conftest.er2 >/dev/null; then
10843 lt_cv_prog_compiler__b=yes
10844 fi
10845 else
10846 lt_cv_prog_compiler__b=yes
10847 fi
10848 fi
10849 $RM -r conftest*
10850 LDFLAGS=$save_LDFLAGS
10851
10852 fi
10853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10854 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10855
10856 if test yes = "$lt_cv_prog_compiler__b"; then
10857 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10858 else
10859 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10860 fi
10861
10862 ;;
10863 esac
10864 fi
10865 if test no = "$with_gnu_ld"; then
10866 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10867 hardcode_libdir_separator=:
10868
10869 case $host_cpu in
10870 hppa*64*|ia64*)
10871 hardcode_direct=no
10872 hardcode_shlibpath_var=no
10873 ;;
10874 *)
10875 hardcode_direct=yes
10876 hardcode_direct_absolute=yes
10877 export_dynamic_flag_spec='$wl-E'
10878
10879 # hardcode_minus_L: Not really in the search PATH,
10880 # but as the default location of the library.
10881 hardcode_minus_L=yes
10882 ;;
10883 esac
10884 fi
10885 ;;
10886
10887 irix5* | irix6* | nonstopux*)
10888 if test yes = "$GCC"; then
10889 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10890 # Try to use the -exported_symbol ld option, if it does not
10891 # work, assume that -exports_file does not work either and
10892 # implicitly export all symbols.
10893 # This should be the same for all languages, so no per-tag cache variable.
10894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10895 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10896 if test ${lt_cv_irix_exported_symbol+y}
10897 then :
10898 printf %s "(cached) " >&6
10899 else $as_nop
10900 save_LDFLAGS=$LDFLAGS
10901 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10903 /* end confdefs.h. */
10904 int foo (void) { return 0; }
10905 _ACEOF
10906 if ac_fn_c_try_link "$LINENO"
10907 then :
10908 lt_cv_irix_exported_symbol=yes
10909 else $as_nop
10910 lt_cv_irix_exported_symbol=no
10911 fi
10912 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10913 conftest$ac_exeext conftest.$ac_ext
10914 LDFLAGS=$save_LDFLAGS
10915 fi
10916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10917 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10918 if test yes = "$lt_cv_irix_exported_symbol"; then
10919 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
10920 fi
10921 link_all_deplibs=no
10922 else
10923 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10924 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
10925 fi
10926 archive_cmds_need_lc='no'
10927 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10928 hardcode_libdir_separator=:
10929 inherit_rpath=yes
10930 link_all_deplibs=yes
10931 ;;
10932
10933 linux*)
10934 case $cc_basename in
10935 tcc*)
10936 # Fabrice Bellard et al's Tiny C Compiler
10937 ld_shlibs=yes
10938 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10939 ;;
10940 esac
10941 ;;
10942
10943 netbsd* | netbsdelf*-gnu)
10944 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10945 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10946 else
10947 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10948 fi
10949 hardcode_libdir_flag_spec='-R$libdir'
10950 hardcode_direct=yes
10951 hardcode_shlibpath_var=no
10952 ;;
10953
10954 newsos6)
10955 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10956 hardcode_direct=yes
10957 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10958 hardcode_libdir_separator=:
10959 hardcode_shlibpath_var=no
10960 ;;
10961
10962 *nto* | *qnx*)
10963 ;;
10964
10965 openbsd* | bitrig*)
10966 if test -f /usr/libexec/ld.so; then
10967 hardcode_direct=yes
10968 hardcode_shlibpath_var=no
10969 hardcode_direct_absolute=yes
10970 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10971 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10972 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10973 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10974 export_dynamic_flag_spec='$wl-E'
10975 else
10976 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10977 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10978 fi
10979 else
10980 ld_shlibs=no
10981 fi
10982 ;;
10983
10984 os2*)
10985 hardcode_libdir_flag_spec='-L$libdir'
10986 hardcode_minus_L=yes
10987 allow_undefined_flag=unsupported
10988 shrext_cmds=.dll
10989 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10990 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10991 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10992 $ECHO EXPORTS >> $output_objdir/$libname.def~
10993 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10994 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10995 emximp -o $lib $output_objdir/$libname.def'
10996 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10997 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10998 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10999 $ECHO EXPORTS >> $output_objdir/$libname.def~
11000 prefix_cmds="$SED"~
11001 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11002 prefix_cmds="$prefix_cmds -e 1d";
11003 fi~
11004 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11005 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11006 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11007 emximp -o $lib $output_objdir/$libname.def'
11008 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11009 enable_shared_with_static_runtimes=yes
11010 ;;
11011
11012 osf3*)
11013 if test yes = "$GCC"; then
11014 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11015 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11016 else
11017 allow_undefined_flag=' -expect_unresolved \*'
11018 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11019 fi
11020 archive_cmds_need_lc='no'
11021 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11022 hardcode_libdir_separator=:
11023 ;;
11024
11025 osf4* | osf5*) # as osf3* with the addition of -msym flag
11026 if test yes = "$GCC"; then
11027 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11028 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11029 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11030 else
11031 allow_undefined_flag=' -expect_unresolved \*'
11032 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11033 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
11034 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
11035
11036 # Both c and cxx compiler support -rpath directly
11037 hardcode_libdir_flag_spec='-rpath $libdir'
11038 fi
11039 archive_cmds_need_lc='no'
11040 hardcode_libdir_separator=:
11041 ;;
11042
11043 solaris*)
11044 no_undefined_flag=' -z defs'
11045 if test yes = "$GCC"; then
11046 wlarc='$wl'
11047 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11048 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11049 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11050 else
11051 case `$CC -V 2>&1` in
11052 *"Compilers 5.0"*)
11053 wlarc=''
11054 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11055 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11056 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11057 ;;
11058 *)
11059 wlarc='$wl'
11060 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11061 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11062 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11063 ;;
11064 esac
11065 fi
11066 hardcode_libdir_flag_spec='-R$libdir'
11067 hardcode_shlibpath_var=no
11068 case $host_os in
11069 solaris2.[0-5] | solaris2.[0-5].*) ;;
11070 *)
11071 # The compiler driver will combine and reorder linker options,
11072 # but understands '-z linker_flag'. GCC discards it without '$wl',
11073 # but is careful enough not to reorder.
11074 # Supported since Solaris 2.6 (maybe 2.5.1?)
11075 if test yes = "$GCC"; then
11076 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11077 else
11078 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11079 fi
11080 ;;
11081 esac
11082 link_all_deplibs=yes
11083 ;;
11084
11085 sunos4*)
11086 if test sequent = "$host_vendor"; then
11087 # Use $CC to link under sequent, because it throws in some extra .o
11088 # files that make .init and .fini sections work.
11089 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11090 else
11091 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11092 fi
11093 hardcode_libdir_flag_spec='-L$libdir'
11094 hardcode_direct=yes
11095 hardcode_minus_L=yes
11096 hardcode_shlibpath_var=no
11097 ;;
11098
11099 sysv4)
11100 case $host_vendor in
11101 sni)
11102 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11103 hardcode_direct=yes # is this really true???
11104 ;;
11105 siemens)
11106 ## LD is ld it makes a PLAMLIB
11107 ## CC just makes a GrossModule.
11108 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11109 reload_cmds='$CC -r -o $output$reload_objs'
11110 hardcode_direct=no
11111 ;;
11112 motorola)
11113 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11114 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11115 ;;
11116 esac
11117 runpath_var='LD_RUN_PATH'
11118 hardcode_shlibpath_var=no
11119 ;;
11120
11121 sysv4.3*)
11122 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11123 hardcode_shlibpath_var=no
11124 export_dynamic_flag_spec='-Bexport'
11125 ;;
11126
11127 sysv4*MP*)
11128 if test -d /usr/nec; then
11129 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11130 hardcode_shlibpath_var=no
11131 runpath_var=LD_RUN_PATH
11132 hardcode_runpath_var=yes
11133 ld_shlibs=yes
11134 fi
11135 ;;
11136
11137 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11138 no_undefined_flag='$wl-z,text'
11139 archive_cmds_need_lc=no
11140 hardcode_shlibpath_var=no
11141 runpath_var='LD_RUN_PATH'
11142
11143 if test yes = "$GCC"; then
11144 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11145 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11146 else
11147 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11148 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11149 fi
11150 ;;
11151
11152 sysv5* | sco3.2v5* | sco5v6*)
11153 # Note: We CANNOT use -z defs as we might desire, because we do not
11154 # link with -lc, and that would cause any symbols used from libc to
11155 # always be unresolved, which means just about no library would
11156 # ever link correctly. If we're not using GNU ld we use -z text
11157 # though, which does catch some bad symbols but isn't as heavy-handed
11158 # as -z defs.
11159 no_undefined_flag='$wl-z,text'
11160 allow_undefined_flag='$wl-z,nodefs'
11161 archive_cmds_need_lc=no
11162 hardcode_shlibpath_var=no
11163 hardcode_libdir_flag_spec='$wl-R,$libdir'
11164 hardcode_libdir_separator=':'
11165 link_all_deplibs=yes
11166 export_dynamic_flag_spec='$wl-Bexport'
11167 runpath_var='LD_RUN_PATH'
11168
11169 if test yes = "$GCC"; then
11170 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11171 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11172 else
11173 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11174 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11175 fi
11176 ;;
11177
11178 uts4*)
11179 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11180 hardcode_libdir_flag_spec='-L$libdir'
11181 hardcode_shlibpath_var=no
11182 ;;
11183
11184 *)
11185 ld_shlibs=no
11186 ;;
11187 esac
11188
11189 if test sni = "$host_vendor"; then
11190 case $host in
11191 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11192 export_dynamic_flag_spec='$wl-Blargedynsym'
11193 ;;
11194 esac
11195 fi
11196 fi
11197
11198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11199 printf "%s\n" "$ld_shlibs" >&6; }
11200 test no = "$ld_shlibs" && can_build_shared=no
11201
11202 with_gnu_ld=$with_gnu_ld
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218 #
11219 # Do we need to explicitly link libc?
11220 #
11221 case "x$archive_cmds_need_lc" in
11222 x|xyes)
11223 # Assume -lc should be added
11224 archive_cmds_need_lc=yes
11225
11226 if test yes,yes = "$GCC,$enable_shared"; then
11227 case $archive_cmds in
11228 *'~'*)
11229 # FIXME: we may have to deal with multi-command sequences.
11230 ;;
11231 '$CC '*)
11232 # Test whether the compiler implicitly links with -lc since on some
11233 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11234 # to ld, don't add -lc before -lgcc.
11235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11236 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11237 if test ${lt_cv_archive_cmds_need_lc+y}
11238 then :
11239 printf %s "(cached) " >&6
11240 else $as_nop
11241 $RM conftest*
11242 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11243
11244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11245 (eval $ac_compile) 2>&5
11246 ac_status=$?
11247 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11248 test $ac_status = 0; } 2>conftest.err; then
11249 soname=conftest
11250 lib=conftest
11251 libobjs=conftest.$ac_objext
11252 deplibs=
11253 wl=$lt_prog_compiler_wl
11254 pic_flag=$lt_prog_compiler_pic
11255 compiler_flags=-v
11256 linker_flags=-v
11257 verstring=
11258 output_objdir=.
11259 libname=conftest
11260 lt_save_allow_undefined_flag=$allow_undefined_flag
11261 allow_undefined_flag=
11262 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11263 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11264 ac_status=$?
11265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11266 test $ac_status = 0; }
11267 then
11268 lt_cv_archive_cmds_need_lc=no
11269 else
11270 lt_cv_archive_cmds_need_lc=yes
11271 fi
11272 allow_undefined_flag=$lt_save_allow_undefined_flag
11273 else
11274 cat conftest.err 1>&5
11275 fi
11276 $RM conftest*
11277
11278 fi
11279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11280 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11281 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11282 ;;
11283 esac
11284 fi
11285 ;;
11286 esac
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11440 printf %s "checking dynamic linker characteristics... " >&6; }
11441
11442 if test yes = "$GCC"; then
11443 case $host_os in
11444 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11445 *) lt_awk_arg='/^libraries:/' ;;
11446 esac
11447 case $host_os in
11448 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11449 *) lt_sed_strip_eq='s|=/|/|g' ;;
11450 esac
11451 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11452 case $lt_search_path_spec in
11453 *\;*)
11454 # if the path contains ";" then we assume it to be the separator
11455 # otherwise default to the standard path separator (i.e. ":") - it is
11456 # assumed that no part of a normal pathname contains ";" but that should
11457 # okay in the real world where ";" in dirpaths is itself problematic.
11458 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11459 ;;
11460 *)
11461 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11462 ;;
11463 esac
11464 # Ok, now we have the path, separated by spaces, we can step through it
11465 # and add multilib dir if necessary...
11466 lt_tmp_lt_search_path_spec=
11467 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11468 # ...but if some path component already ends with the multilib dir we assume
11469 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11470 case "$lt_multi_os_dir; $lt_search_path_spec " in
11471 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11472 lt_multi_os_dir=
11473 ;;
11474 esac
11475 for lt_sys_path in $lt_search_path_spec; do
11476 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11477 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11478 elif test -n "$lt_multi_os_dir"; then
11479 test -d "$lt_sys_path" && \
11480 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11481 fi
11482 done
11483 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11484 BEGIN {RS = " "; FS = "/|\n";} {
11485 lt_foo = "";
11486 lt_count = 0;
11487 for (lt_i = NF; lt_i > 0; lt_i--) {
11488 if ($lt_i != "" && $lt_i != ".") {
11489 if ($lt_i == "..") {
11490 lt_count++;
11491 } else {
11492 if (lt_count == 0) {
11493 lt_foo = "/" $lt_i lt_foo;
11494 } else {
11495 lt_count--;
11496 }
11497 }
11498 }
11499 }
11500 if (lt_foo != "") { lt_freq[lt_foo]++; }
11501 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11502 }'`
11503 # AWK program above erroneously prepends '/' to C:/dos/paths
11504 # for these hosts.
11505 case $host_os in
11506 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11507 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11508 esac
11509 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11510 else
11511 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11512 fi
11513 library_names_spec=
11514 libname_spec='lib$name'
11515 soname_spec=
11516 shrext_cmds=.so
11517 postinstall_cmds=
11518 postuninstall_cmds=
11519 finish_cmds=
11520 finish_eval=
11521 shlibpath_var=
11522 shlibpath_overrides_runpath=unknown
11523 version_type=none
11524 dynamic_linker="$host_os ld.so"
11525 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11526 need_lib_prefix=unknown
11527 hardcode_into_libs=no
11528
11529 # when you set need_version to no, make sure it does not cause -set_version
11530 # flags to be left without arguments
11531 need_version=unknown
11532
11533
11534
11535 case $host_os in
11536 aix3*)
11537 version_type=linux # correct to gnu/linux during the next big refactor
11538 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11539 shlibpath_var=LIBPATH
11540
11541 # AIX 3 has no versioning support, so we append a major version to the name.
11542 soname_spec='$libname$release$shared_ext$major'
11543 ;;
11544
11545 aix[4-9]*)
11546 version_type=linux # correct to gnu/linux during the next big refactor
11547 need_lib_prefix=no
11548 need_version=no
11549 hardcode_into_libs=yes
11550 if test ia64 = "$host_cpu"; then
11551 # AIX 5 supports IA64
11552 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11553 shlibpath_var=LD_LIBRARY_PATH
11554 else
11555 # With GCC up to 2.95.x, collect2 would create an import file
11556 # for dependence libraries. The import file would start with
11557 # the line '#! .'. This would cause the generated library to
11558 # depend on '.', always an invalid library. This was fixed in
11559 # development snapshots of GCC prior to 3.0.
11560 case $host_os in
11561 aix4 | aix4.[01] | aix4.[01].*)
11562 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11563 echo ' yes '
11564 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11565 :
11566 else
11567 can_build_shared=no
11568 fi
11569 ;;
11570 esac
11571 # Using Import Files as archive members, it is possible to support
11572 # filename-based versioning of shared library archives on AIX. While
11573 # this would work for both with and without runtime linking, it will
11574 # prevent static linking of such archives. So we do filename-based
11575 # shared library versioning with .so extension only, which is used
11576 # when both runtime linking and shared linking is enabled.
11577 # Unfortunately, runtime linking may impact performance, so we do
11578 # not want this to be the default eventually. Also, we use the
11579 # versioned .so libs for executables only if there is the -brtl
11580 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11581 # To allow for filename-based versioning support, we need to create
11582 # libNAME.so.V as an archive file, containing:
11583 # *) an Import File, referring to the versioned filename of the
11584 # archive as well as the shared archive member, telling the
11585 # bitwidth (32 or 64) of that shared object, and providing the
11586 # list of exported symbols of that shared object, eventually
11587 # decorated with the 'weak' keyword
11588 # *) the shared object with the F_LOADONLY flag set, to really avoid
11589 # it being seen by the linker.
11590 # At run time we better use the real file rather than another symlink,
11591 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11592
11593 case $with_aix_soname,$aix_use_runtimelinking in
11594 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11595 # soname into executable. Probably we can add versioning support to
11596 # collect2, so additional links can be useful in future.
11597 aix,yes) # traditional libtool
11598 dynamic_linker='AIX unversionable lib.so'
11599 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11600 # instead of lib<name>.a to let people know that these are not
11601 # typical AIX shared libraries.
11602 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11603 ;;
11604 aix,no) # traditional AIX only
11605 dynamic_linker='AIX lib.a(lib.so.V)'
11606 # We preserve .a as extension for shared libraries through AIX4.2
11607 # and later when we are not doing run time linking.
11608 library_names_spec='$libname$release.a $libname.a'
11609 soname_spec='$libname$release$shared_ext$major'
11610 ;;
11611 svr4,*) # full svr4 only
11612 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11613 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11614 # We do not specify a path in Import Files, so LIBPATH fires.
11615 shlibpath_overrides_runpath=yes
11616 ;;
11617 *,yes) # both, prefer svr4
11618 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11619 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11620 # unpreferred sharedlib libNAME.a needs extra handling
11621 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11622 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11623 # We do not specify a path in Import Files, so LIBPATH fires.
11624 shlibpath_overrides_runpath=yes
11625 ;;
11626 *,no) # both, prefer aix
11627 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11628 library_names_spec='$libname$release.a $libname.a'
11629 soname_spec='$libname$release$shared_ext$major'
11630 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11631 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11632 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11633 ;;
11634 esac
11635 shlibpath_var=LIBPATH
11636 fi
11637 ;;
11638
11639 amigaos*)
11640 case $host_cpu in
11641 powerpc)
11642 # Since July 2007 AmigaOS4 officially supports .so libraries.
11643 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11644 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11645 ;;
11646 m68k)
11647 library_names_spec='$libname.ixlibrary $libname.a'
11648 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11649 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11650 ;;
11651 esac
11652 ;;
11653
11654 beos*)
11655 library_names_spec='$libname$shared_ext'
11656 dynamic_linker="$host_os ld.so"
11657 shlibpath_var=LIBRARY_PATH
11658 ;;
11659
11660 bsdi[45]*)
11661 version_type=linux # correct to gnu/linux during the next big refactor
11662 need_version=no
11663 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11664 soname_spec='$libname$release$shared_ext$major'
11665 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11666 shlibpath_var=LD_LIBRARY_PATH
11667 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11668 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11669 # the default ld.so.conf also contains /usr/contrib/lib and
11670 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11671 # libtool to hard-code these into programs
11672 ;;
11673
11674 cygwin* | mingw* | pw32* | cegcc*)
11675 version_type=windows
11676 shrext_cmds=.dll
11677 need_version=no
11678 need_lib_prefix=no
11679
11680 case $GCC,$cc_basename in
11681 yes,*)
11682 # gcc
11683 library_names_spec='$libname.dll.a'
11684 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11685 postinstall_cmds='base_file=`basename \$file`~
11686 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11687 dldir=$destdir/`dirname \$dlpath`~
11688 test -d \$dldir || mkdir -p \$dldir~
11689 $install_prog $dir/$dlname \$dldir/$dlname~
11690 chmod a+x \$dldir/$dlname~
11691 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11692 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11693 fi'
11694 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11695 dlpath=$dir/\$dldll~
11696 $RM \$dlpath'
11697 shlibpath_overrides_runpath=yes
11698
11699 case $host_os in
11700 cygwin*)
11701 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11702 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11703
11704 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11705 ;;
11706 mingw* | cegcc*)
11707 # MinGW DLLs use traditional 'lib' prefix
11708 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11709 ;;
11710 pw32*)
11711 # pw32 DLLs use 'pw' prefix rather than 'lib'
11712 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11713 ;;
11714 esac
11715 dynamic_linker='Win32 ld.exe'
11716 ;;
11717
11718 *,cl*)
11719 # Native MSVC
11720 libname_spec='$name'
11721 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11722 library_names_spec='$libname.dll.lib'
11723
11724 case $build_os in
11725 mingw*)
11726 sys_lib_search_path_spec=
11727 lt_save_ifs=$IFS
11728 IFS=';'
11729 for lt_path in $LIB
11730 do
11731 IFS=$lt_save_ifs
11732 # Let DOS variable expansion print the short 8.3 style file name.
11733 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11734 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11735 done
11736 IFS=$lt_save_ifs
11737 # Convert to MSYS style.
11738 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11739 ;;
11740 cygwin*)
11741 # Convert to unix form, then to dos form, then back to unix form
11742 # but this time dos style (no spaces!) so that the unix form looks
11743 # like /cygdrive/c/PROGRA~1:/cygdr...
11744 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11745 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11746 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11747 ;;
11748 *)
11749 sys_lib_search_path_spec=$LIB
11750 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11751 # It is most probably a Windows format PATH.
11752 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11753 else
11754 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11755 fi
11756 # FIXME: find the short name or the path components, as spaces are
11757 # common. (e.g. "Program Files" -> "PROGRA~1")
11758 ;;
11759 esac
11760
11761 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11762 postinstall_cmds='base_file=`basename \$file`~
11763 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11764 dldir=$destdir/`dirname \$dlpath`~
11765 test -d \$dldir || mkdir -p \$dldir~
11766 $install_prog $dir/$dlname \$dldir/$dlname'
11767 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11768 dlpath=$dir/\$dldll~
11769 $RM \$dlpath'
11770 shlibpath_overrides_runpath=yes
11771 dynamic_linker='Win32 link.exe'
11772 ;;
11773
11774 *)
11775 # Assume MSVC wrapper
11776 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11777 dynamic_linker='Win32 ld.exe'
11778 ;;
11779 esac
11780 # FIXME: first we should search . and the directory the executable is in
11781 shlibpath_var=PATH
11782 ;;
11783
11784 darwin* | rhapsody*)
11785 dynamic_linker="$host_os dyld"
11786 version_type=darwin
11787 need_lib_prefix=no
11788 need_version=no
11789 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11790 soname_spec='$libname$release$major$shared_ext'
11791 shlibpath_overrides_runpath=yes
11792 shlibpath_var=DYLD_LIBRARY_PATH
11793 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11794
11795 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11796 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11797 ;;
11798
11799 dgux*)
11800 version_type=linux # correct to gnu/linux during the next big refactor
11801 need_lib_prefix=no
11802 need_version=no
11803 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11804 soname_spec='$libname$release$shared_ext$major'
11805 shlibpath_var=LD_LIBRARY_PATH
11806 ;;
11807
11808 freebsd* | dragonfly*)
11809 # DragonFly does not have aout. When/if they implement a new
11810 # versioning mechanism, adjust this.
11811 if test -x /usr/bin/objformat; then
11812 objformat=`/usr/bin/objformat`
11813 else
11814 case $host_os in
11815 freebsd[23].*) objformat=aout ;;
11816 *) objformat=elf ;;
11817 esac
11818 fi
11819 version_type=freebsd-$objformat
11820 case $version_type in
11821 freebsd-elf*)
11822 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11823 soname_spec='$libname$release$shared_ext$major'
11824 need_version=no
11825 need_lib_prefix=no
11826 ;;
11827 freebsd-*)
11828 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11829 need_version=yes
11830 ;;
11831 esac
11832 shlibpath_var=LD_LIBRARY_PATH
11833 case $host_os in
11834 freebsd2.*)
11835 shlibpath_overrides_runpath=yes
11836 ;;
11837 freebsd3.[01]* | freebsdelf3.[01]*)
11838 shlibpath_overrides_runpath=yes
11839 hardcode_into_libs=yes
11840 ;;
11841 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11842 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11843 shlibpath_overrides_runpath=no
11844 hardcode_into_libs=yes
11845 ;;
11846 *) # from 4.6 on, and DragonFly
11847 shlibpath_overrides_runpath=yes
11848 hardcode_into_libs=yes
11849 ;;
11850 esac
11851 ;;
11852
11853 haiku*)
11854 version_type=linux # correct to gnu/linux during the next big refactor
11855 need_lib_prefix=no
11856 need_version=no
11857 dynamic_linker="$host_os runtime_loader"
11858 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11859 soname_spec='$libname$release$shared_ext$major'
11860 shlibpath_var=LIBRARY_PATH
11861 shlibpath_overrides_runpath=no
11862 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11863 hardcode_into_libs=yes
11864 ;;
11865
11866 hpux9* | hpux10* | hpux11*)
11867 # Give a soname corresponding to the major version so that dld.sl refuses to
11868 # link against other versions.
11869 version_type=sunos
11870 need_lib_prefix=no
11871 need_version=no
11872 case $host_cpu in
11873 ia64*)
11874 shrext_cmds='.so'
11875 hardcode_into_libs=yes
11876 dynamic_linker="$host_os dld.so"
11877 shlibpath_var=LD_LIBRARY_PATH
11878 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11879 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11880 soname_spec='$libname$release$shared_ext$major'
11881 if test 32 = "$HPUX_IA64_MODE"; then
11882 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11883 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11884 else
11885 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11886 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11887 fi
11888 ;;
11889 hppa*64*)
11890 shrext_cmds='.sl'
11891 hardcode_into_libs=yes
11892 dynamic_linker="$host_os dld.sl"
11893 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11894 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11895 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11896 soname_spec='$libname$release$shared_ext$major'
11897 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11898 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11899 ;;
11900 *)
11901 shrext_cmds='.sl'
11902 dynamic_linker="$host_os dld.sl"
11903 shlibpath_var=SHLIB_PATH
11904 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11905 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11906 soname_spec='$libname$release$shared_ext$major'
11907 ;;
11908 esac
11909 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11910 postinstall_cmds='chmod 555 $lib'
11911 # or fails outright, so override atomically:
11912 install_override_mode=555
11913 ;;
11914
11915 interix[3-9]*)
11916 version_type=linux # correct to gnu/linux during the next big refactor
11917 need_lib_prefix=no
11918 need_version=no
11919 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11920 soname_spec='$libname$release$shared_ext$major'
11921 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11922 shlibpath_var=LD_LIBRARY_PATH
11923 shlibpath_overrides_runpath=no
11924 hardcode_into_libs=yes
11925 ;;
11926
11927 irix5* | irix6* | nonstopux*)
11928 case $host_os in
11929 nonstopux*) version_type=nonstopux ;;
11930 *)
11931 if test yes = "$lt_cv_prog_gnu_ld"; then
11932 version_type=linux # correct to gnu/linux during the next big refactor
11933 else
11934 version_type=irix
11935 fi ;;
11936 esac
11937 need_lib_prefix=no
11938 need_version=no
11939 soname_spec='$libname$release$shared_ext$major'
11940 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11941 case $host_os in
11942 irix5* | nonstopux*)
11943 libsuff= shlibsuff=
11944 ;;
11945 *)
11946 case $LD in # libtool.m4 will add one of these switches to LD
11947 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11948 libsuff= shlibsuff= libmagic=32-bit;;
11949 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11950 libsuff=32 shlibsuff=N32 libmagic=N32;;
11951 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11952 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11953 *) libsuff= shlibsuff= libmagic=never-match;;
11954 esac
11955 ;;
11956 esac
11957 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11958 shlibpath_overrides_runpath=no
11959 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11960 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11961 hardcode_into_libs=yes
11962 ;;
11963
11964 # No shared lib support for Linux oldld, aout, or coff.
11965 linux*oldld* | linux*aout* | linux*coff*)
11966 dynamic_linker=no
11967 ;;
11968
11969 linux*android*)
11970 version_type=none # Android doesn't support versioned libraries.
11971 need_lib_prefix=no
11972 need_version=no
11973 library_names_spec='$libname$release$shared_ext'
11974 soname_spec='$libname$release$shared_ext'
11975 finish_cmds=
11976 shlibpath_var=LD_LIBRARY_PATH
11977 shlibpath_overrides_runpath=yes
11978
11979 # This implies no fast_install, which is unacceptable.
11980 # Some rework will be needed to allow for fast_install
11981 # before this can be enabled.
11982 hardcode_into_libs=yes
11983
11984 dynamic_linker='Android linker'
11985 # Don't embed -rpath directories since the linker doesn't support them.
11986 hardcode_libdir_flag_spec='-L$libdir'
11987 ;;
11988
11989 # This must be glibc/ELF.
11990 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11991 version_type=linux # correct to gnu/linux during the next big refactor
11992 need_lib_prefix=no
11993 need_version=no
11994 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11995 soname_spec='$libname$release$shared_ext$major'
11996 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11997 shlibpath_var=LD_LIBRARY_PATH
11998 shlibpath_overrides_runpath=no
11999
12000 # Some binutils ld are patched to set DT_RUNPATH
12001 if test ${lt_cv_shlibpath_overrides_runpath+y}
12002 then :
12003 printf %s "(cached) " >&6
12004 else $as_nop
12005 lt_cv_shlibpath_overrides_runpath=no
12006 save_LDFLAGS=$LDFLAGS
12007 save_libdir=$libdir
12008 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12009 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12011 /* end confdefs.h. */
12012
12013 int
12014 main (void)
12015 {
12016
12017 ;
12018 return 0;
12019 }
12020 _ACEOF
12021 if ac_fn_c_try_link "$LINENO"
12022 then :
12023 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12024 then :
12025 lt_cv_shlibpath_overrides_runpath=yes
12026 fi
12027 fi
12028 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12029 conftest$ac_exeext conftest.$ac_ext
12030 LDFLAGS=$save_LDFLAGS
12031 libdir=$save_libdir
12032
12033 fi
12034
12035 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12036
12037 # This implies no fast_install, which is unacceptable.
12038 # Some rework will be needed to allow for fast_install
12039 # before this can be enabled.
12040 hardcode_into_libs=yes
12041
12042 # Ideally, we could use ldconfig to report *all* directores which are
12043 # searched for libraries, however this is still not possible. Aside from not
12044 # being certain /sbin/ldconfig is available, command
12045 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12046 # even though it is searched at run-time. Try to do the best guess by
12047 # appending ld.so.conf contents (and includes) to the search path.
12048 if test -f /etc/ld.so.conf; then
12049 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12050 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12051 fi
12052
12053 # We used to test for /lib/ld.so.1 and disable shared libraries on
12054 # powerpc, because MkLinux only supported shared libraries with the
12055 # GNU dynamic linker. Since this was broken with cross compilers,
12056 # most powerpc-linux boxes support dynamic linking these days and
12057 # people can always --disable-shared, the test was removed, and we
12058 # assume the GNU/Linux dynamic linker is in use.
12059 dynamic_linker='GNU/Linux ld.so'
12060 ;;
12061
12062 netbsdelf*-gnu)
12063 version_type=linux
12064 need_lib_prefix=no
12065 need_version=no
12066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12067 soname_spec='${libname}${release}${shared_ext}$major'
12068 shlibpath_var=LD_LIBRARY_PATH
12069 shlibpath_overrides_runpath=no
12070 hardcode_into_libs=yes
12071 dynamic_linker='NetBSD ld.elf_so'
12072 ;;
12073
12074 netbsd*)
12075 version_type=sunos
12076 need_lib_prefix=no
12077 need_version=no
12078 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12079 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12080 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12081 dynamic_linker='NetBSD (a.out) ld.so'
12082 else
12083 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12084 soname_spec='$libname$release$shared_ext$major'
12085 dynamic_linker='NetBSD ld.elf_so'
12086 fi
12087 shlibpath_var=LD_LIBRARY_PATH
12088 shlibpath_overrides_runpath=yes
12089 hardcode_into_libs=yes
12090 ;;
12091
12092 newsos6)
12093 version_type=linux # correct to gnu/linux during the next big refactor
12094 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12095 shlibpath_var=LD_LIBRARY_PATH
12096 shlibpath_overrides_runpath=yes
12097 ;;
12098
12099 *nto* | *qnx*)
12100 version_type=qnx
12101 need_lib_prefix=no
12102 need_version=no
12103 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12104 soname_spec='$libname$release$shared_ext$major'
12105 shlibpath_var=LD_LIBRARY_PATH
12106 shlibpath_overrides_runpath=no
12107 hardcode_into_libs=yes
12108 dynamic_linker='ldqnx.so'
12109 ;;
12110
12111 openbsd* | bitrig*)
12112 version_type=sunos
12113 sys_lib_dlsearch_path_spec=/usr/lib
12114 need_lib_prefix=no
12115 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12116 need_version=no
12117 else
12118 need_version=yes
12119 fi
12120 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12121 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12122 shlibpath_var=LD_LIBRARY_PATH
12123 shlibpath_overrides_runpath=yes
12124 ;;
12125
12126 os2*)
12127 libname_spec='$name'
12128 version_type=windows
12129 shrext_cmds=.dll
12130 need_version=no
12131 need_lib_prefix=no
12132 # OS/2 can only load a DLL with a base name of 8 characters or less.
12133 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12134 v=$($ECHO $release$versuffix | tr -d .-);
12135 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12136 $ECHO $n$v`$shared_ext'
12137 library_names_spec='${libname}_dll.$libext'
12138 dynamic_linker='OS/2 ld.exe'
12139 shlibpath_var=BEGINLIBPATH
12140 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12141 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12142 postinstall_cmds='base_file=`basename \$file`~
12143 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12144 dldir=$destdir/`dirname \$dlpath`~
12145 test -d \$dldir || mkdir -p \$dldir~
12146 $install_prog $dir/$dlname \$dldir/$dlname~
12147 chmod a+x \$dldir/$dlname~
12148 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12149 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12150 fi'
12151 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12152 dlpath=$dir/\$dldll~
12153 $RM \$dlpath'
12154 ;;
12155
12156 osf3* | osf4* | osf5*)
12157 version_type=osf
12158 need_lib_prefix=no
12159 need_version=no
12160 soname_spec='$libname$release$shared_ext$major'
12161 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12162 shlibpath_var=LD_LIBRARY_PATH
12163 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12164 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12165 ;;
12166
12167 rdos*)
12168 dynamic_linker=no
12169 ;;
12170
12171 solaris*)
12172 version_type=linux # correct to gnu/linux during the next big refactor
12173 need_lib_prefix=no
12174 need_version=no
12175 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12176 soname_spec='$libname$release$shared_ext$major'
12177 shlibpath_var=LD_LIBRARY_PATH
12178 shlibpath_overrides_runpath=yes
12179 hardcode_into_libs=yes
12180 # ldd complains unless libraries are executable
12181 postinstall_cmds='chmod +x $lib'
12182 ;;
12183
12184 sunos4*)
12185 version_type=sunos
12186 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12187 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12188 shlibpath_var=LD_LIBRARY_PATH
12189 shlibpath_overrides_runpath=yes
12190 if test yes = "$with_gnu_ld"; then
12191 need_lib_prefix=no
12192 fi
12193 need_version=yes
12194 ;;
12195
12196 sysv4 | sysv4.3*)
12197 version_type=linux # correct to gnu/linux during the next big refactor
12198 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12199 soname_spec='$libname$release$shared_ext$major'
12200 shlibpath_var=LD_LIBRARY_PATH
12201 case $host_vendor in
12202 sni)
12203 shlibpath_overrides_runpath=no
12204 need_lib_prefix=no
12205 runpath_var=LD_RUN_PATH
12206 ;;
12207 siemens)
12208 need_lib_prefix=no
12209 ;;
12210 motorola)
12211 need_lib_prefix=no
12212 need_version=no
12213 shlibpath_overrides_runpath=no
12214 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12215 ;;
12216 esac
12217 ;;
12218
12219 sysv4*MP*)
12220 if test -d /usr/nec; then
12221 version_type=linux # correct to gnu/linux during the next big refactor
12222 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12223 soname_spec='$libname$shared_ext.$major'
12224 shlibpath_var=LD_LIBRARY_PATH
12225 fi
12226 ;;
12227
12228 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12229 version_type=sco
12230 need_lib_prefix=no
12231 need_version=no
12232 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12233 soname_spec='$libname$release$shared_ext$major'
12234 shlibpath_var=LD_LIBRARY_PATH
12235 shlibpath_overrides_runpath=yes
12236 hardcode_into_libs=yes
12237 if test yes = "$with_gnu_ld"; then
12238 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12239 else
12240 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12241 case $host_os in
12242 sco3.2v5*)
12243 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12244 ;;
12245 esac
12246 fi
12247 sys_lib_dlsearch_path_spec='/usr/lib'
12248 ;;
12249
12250 tpf*)
12251 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12252 version_type=linux # correct to gnu/linux during the next big refactor
12253 need_lib_prefix=no
12254 need_version=no
12255 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12256 shlibpath_var=LD_LIBRARY_PATH
12257 shlibpath_overrides_runpath=no
12258 hardcode_into_libs=yes
12259 ;;
12260
12261 uts4*)
12262 version_type=linux # correct to gnu/linux during the next big refactor
12263 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12264 soname_spec='$libname$release$shared_ext$major'
12265 shlibpath_var=LD_LIBRARY_PATH
12266 ;;
12267
12268 *)
12269 dynamic_linker=no
12270 ;;
12271 esac
12272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12273 printf "%s\n" "$dynamic_linker" >&6; }
12274 test no = "$dynamic_linker" && can_build_shared=no
12275
12276 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12277 if test yes = "$GCC"; then
12278 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12279 fi
12280
12281 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12282 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12283 fi
12284
12285 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12286 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12287 fi
12288
12289 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12290 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12291
12292 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12293 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12294
12295 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12296 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12395 printf %s "checking how to hardcode library paths into programs... " >&6; }
12396 hardcode_action=
12397 if test -n "$hardcode_libdir_flag_spec" ||
12398 test -n "$runpath_var" ||
12399 test yes = "$hardcode_automatic"; then
12400
12401 # We can hardcode non-existent directories.
12402 if test no != "$hardcode_direct" &&
12403 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12404 # have to relink, otherwise we might link with an installed library
12405 # when we should be linking with a yet-to-be-installed one
12406 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12407 test no != "$hardcode_minus_L"; then
12408 # Linking always hardcodes the temporary library directory.
12409 hardcode_action=relink
12410 else
12411 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12412 hardcode_action=immediate
12413 fi
12414 else
12415 # We cannot hardcode anything, or else we can only hardcode existing
12416 # directories.
12417 hardcode_action=unsupported
12418 fi
12419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12420 printf "%s\n" "$hardcode_action" >&6; }
12421
12422 if test relink = "$hardcode_action" ||
12423 test yes = "$inherit_rpath"; then
12424 # Fast installation is not supported
12425 enable_fast_install=no
12426 elif test yes = "$shlibpath_overrides_runpath" ||
12427 test no = "$enable_shared"; then
12428 # Fast installation is not necessary
12429 enable_fast_install=needless
12430 fi
12431
12432
12433
12434
12435
12436
12437 if test yes != "$enable_dlopen"; then
12438 enable_dlopen=unknown
12439 enable_dlopen_self=unknown
12440 enable_dlopen_self_static=unknown
12441 else
12442 lt_cv_dlopen=no
12443 lt_cv_dlopen_libs=
12444
12445 case $host_os in
12446 beos*)
12447 lt_cv_dlopen=load_add_on
12448 lt_cv_dlopen_libs=
12449 lt_cv_dlopen_self=yes
12450 ;;
12451
12452 mingw* | pw32* | cegcc*)
12453 lt_cv_dlopen=LoadLibrary
12454 lt_cv_dlopen_libs=
12455 ;;
12456
12457 cygwin*)
12458 lt_cv_dlopen=dlopen
12459 lt_cv_dlopen_libs=
12460 ;;
12461
12462 darwin*)
12463 # if libdl is installed we need to link against it
12464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12465 printf %s "checking for dlopen in -ldl... " >&6; }
12466 if test ${ac_cv_lib_dl_dlopen+y}
12467 then :
12468 printf %s "(cached) " >&6
12469 else $as_nop
12470 ac_check_lib_save_LIBS=$LIBS
12471 LIBS="-ldl $LIBS"
12472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12473 /* end confdefs.h. */
12474
12475 /* Override any GCC internal prototype to avoid an error.
12476 Use char because int might match the return type of a GCC
12477 builtin and then its argument prototype would still apply. */
12478 char dlopen ();
12479 int
12480 main (void)
12481 {
12482 return dlopen ();
12483 ;
12484 return 0;
12485 }
12486 _ACEOF
12487 if ac_fn_c_try_link "$LINENO"
12488 then :
12489 ac_cv_lib_dl_dlopen=yes
12490 else $as_nop
12491 ac_cv_lib_dl_dlopen=no
12492 fi
12493 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12494 conftest$ac_exeext conftest.$ac_ext
12495 LIBS=$ac_check_lib_save_LIBS
12496 fi
12497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12498 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12499 if test "x$ac_cv_lib_dl_dlopen" = xyes
12500 then :
12501 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12502 else $as_nop
12503
12504 lt_cv_dlopen=dyld
12505 lt_cv_dlopen_libs=
12506 lt_cv_dlopen_self=yes
12507
12508 fi
12509
12510 ;;
12511
12512 tpf*)
12513 # Don't try to run any link tests for TPF. We know it's impossible
12514 # because TPF is a cross-compiler, and we know how we open DSOs.
12515 lt_cv_dlopen=dlopen
12516 lt_cv_dlopen_libs=
12517 lt_cv_dlopen_self=no
12518 ;;
12519
12520 *)
12521 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12522 if test "x$ac_cv_func_shl_load" = xyes
12523 then :
12524 lt_cv_dlopen=shl_load
12525 else $as_nop
12526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12527 printf %s "checking for shl_load in -ldld... " >&6; }
12528 if test ${ac_cv_lib_dld_shl_load+y}
12529 then :
12530 printf %s "(cached) " >&6
12531 else $as_nop
12532 ac_check_lib_save_LIBS=$LIBS
12533 LIBS="-ldld $LIBS"
12534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12535 /* end confdefs.h. */
12536
12537 /* Override any GCC internal prototype to avoid an error.
12538 Use char because int might match the return type of a GCC
12539 builtin and then its argument prototype would still apply. */
12540 char shl_load ();
12541 int
12542 main (void)
12543 {
12544 return shl_load ();
12545 ;
12546 return 0;
12547 }
12548 _ACEOF
12549 if ac_fn_c_try_link "$LINENO"
12550 then :
12551 ac_cv_lib_dld_shl_load=yes
12552 else $as_nop
12553 ac_cv_lib_dld_shl_load=no
12554 fi
12555 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12556 conftest$ac_exeext conftest.$ac_ext
12557 LIBS=$ac_check_lib_save_LIBS
12558 fi
12559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12560 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12561 if test "x$ac_cv_lib_dld_shl_load" = xyes
12562 then :
12563 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12564 else $as_nop
12565 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12566 if test "x$ac_cv_func_dlopen" = xyes
12567 then :
12568 lt_cv_dlopen=dlopen
12569 else $as_nop
12570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12571 printf %s "checking for dlopen in -ldl... " >&6; }
12572 if test ${ac_cv_lib_dl_dlopen+y}
12573 then :
12574 printf %s "(cached) " >&6
12575 else $as_nop
12576 ac_check_lib_save_LIBS=$LIBS
12577 LIBS="-ldl $LIBS"
12578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12579 /* end confdefs.h. */
12580
12581 /* Override any GCC internal prototype to avoid an error.
12582 Use char because int might match the return type of a GCC
12583 builtin and then its argument prototype would still apply. */
12584 char dlopen ();
12585 int
12586 main (void)
12587 {
12588 return dlopen ();
12589 ;
12590 return 0;
12591 }
12592 _ACEOF
12593 if ac_fn_c_try_link "$LINENO"
12594 then :
12595 ac_cv_lib_dl_dlopen=yes
12596 else $as_nop
12597 ac_cv_lib_dl_dlopen=no
12598 fi
12599 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12600 conftest$ac_exeext conftest.$ac_ext
12601 LIBS=$ac_check_lib_save_LIBS
12602 fi
12603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12604 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12605 if test "x$ac_cv_lib_dl_dlopen" = xyes
12606 then :
12607 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12608 else $as_nop
12609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12610 printf %s "checking for dlopen in -lsvld... " >&6; }
12611 if test ${ac_cv_lib_svld_dlopen+y}
12612 then :
12613 printf %s "(cached) " >&6
12614 else $as_nop
12615 ac_check_lib_save_LIBS=$LIBS
12616 LIBS="-lsvld $LIBS"
12617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12618 /* end confdefs.h. */
12619
12620 /* Override any GCC internal prototype to avoid an error.
12621 Use char because int might match the return type of a GCC
12622 builtin and then its argument prototype would still apply. */
12623 char dlopen ();
12624 int
12625 main (void)
12626 {
12627 return dlopen ();
12628 ;
12629 return 0;
12630 }
12631 _ACEOF
12632 if ac_fn_c_try_link "$LINENO"
12633 then :
12634 ac_cv_lib_svld_dlopen=yes
12635 else $as_nop
12636 ac_cv_lib_svld_dlopen=no
12637 fi
12638 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12639 conftest$ac_exeext conftest.$ac_ext
12640 LIBS=$ac_check_lib_save_LIBS
12641 fi
12642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12643 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12644 if test "x$ac_cv_lib_svld_dlopen" = xyes
12645 then :
12646 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12647 else $as_nop
12648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12649 printf %s "checking for dld_link in -ldld... " >&6; }
12650 if test ${ac_cv_lib_dld_dld_link+y}
12651 then :
12652 printf %s "(cached) " >&6
12653 else $as_nop
12654 ac_check_lib_save_LIBS=$LIBS
12655 LIBS="-ldld $LIBS"
12656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12657 /* end confdefs.h. */
12658
12659 /* Override any GCC internal prototype to avoid an error.
12660 Use char because int might match the return type of a GCC
12661 builtin and then its argument prototype would still apply. */
12662 char dld_link ();
12663 int
12664 main (void)
12665 {
12666 return dld_link ();
12667 ;
12668 return 0;
12669 }
12670 _ACEOF
12671 if ac_fn_c_try_link "$LINENO"
12672 then :
12673 ac_cv_lib_dld_dld_link=yes
12674 else $as_nop
12675 ac_cv_lib_dld_dld_link=no
12676 fi
12677 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12678 conftest$ac_exeext conftest.$ac_ext
12679 LIBS=$ac_check_lib_save_LIBS
12680 fi
12681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12682 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12683 if test "x$ac_cv_lib_dld_dld_link" = xyes
12684 then :
12685 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12686 fi
12687
12688
12689 fi
12690
12691
12692 fi
12693
12694
12695 fi
12696
12697
12698 fi
12699
12700
12701 fi
12702
12703 ;;
12704 esac
12705
12706 if test no = "$lt_cv_dlopen"; then
12707 enable_dlopen=no
12708 else
12709 enable_dlopen=yes
12710 fi
12711
12712 case $lt_cv_dlopen in
12713 dlopen)
12714 save_CPPFLAGS=$CPPFLAGS
12715 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12716
12717 save_LDFLAGS=$LDFLAGS
12718 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12719
12720 save_LIBS=$LIBS
12721 LIBS="$lt_cv_dlopen_libs $LIBS"
12722
12723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12724 printf %s "checking whether a program can dlopen itself... " >&6; }
12725 if test ${lt_cv_dlopen_self+y}
12726 then :
12727 printf %s "(cached) " >&6
12728 else $as_nop
12729 if test yes = "$cross_compiling"; then :
12730 lt_cv_dlopen_self=cross
12731 else
12732 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12733 lt_status=$lt_dlunknown
12734 cat > conftest.$ac_ext <<_LT_EOF
12735 #line $LINENO "configure"
12736 #include "confdefs.h"
12737
12738 #if HAVE_DLFCN_H
12739 #include <dlfcn.h>
12740 #endif
12741
12742 #include <stdio.h>
12743
12744 #ifdef RTLD_GLOBAL
12745 # define LT_DLGLOBAL RTLD_GLOBAL
12746 #else
12747 # ifdef DL_GLOBAL
12748 # define LT_DLGLOBAL DL_GLOBAL
12749 # else
12750 # define LT_DLGLOBAL 0
12751 # endif
12752 #endif
12753
12754 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12755 find out it does not work in some platform. */
12756 #ifndef LT_DLLAZY_OR_NOW
12757 # ifdef RTLD_LAZY
12758 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12759 # else
12760 # ifdef DL_LAZY
12761 # define LT_DLLAZY_OR_NOW DL_LAZY
12762 # else
12763 # ifdef RTLD_NOW
12764 # define LT_DLLAZY_OR_NOW RTLD_NOW
12765 # else
12766 # ifdef DL_NOW
12767 # define LT_DLLAZY_OR_NOW DL_NOW
12768 # else
12769 # define LT_DLLAZY_OR_NOW 0
12770 # endif
12771 # endif
12772 # endif
12773 # endif
12774 #endif
12775
12776 /* When -fvisibility=hidden is used, assume the code has been annotated
12777 correspondingly for the symbols needed. */
12778 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12779 int fnord () __attribute__((visibility("default")));
12780 #endif
12781
12782 int fnord () { return 42; }
12783 int main ()
12784 {
12785 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12786 int status = $lt_dlunknown;
12787
12788 if (self)
12789 {
12790 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12791 else
12792 {
12793 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12794 else puts (dlerror ());
12795 }
12796 /* dlclose (self); */
12797 }
12798 else
12799 puts (dlerror ());
12800
12801 return status;
12802 }
12803 _LT_EOF
12804 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12805 (eval $ac_link) 2>&5
12806 ac_status=$?
12807 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12808 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12809 (./conftest; exit; ) >&5 2>/dev/null
12810 lt_status=$?
12811 case x$lt_status in
12812 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12813 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12814 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12815 esac
12816 else :
12817 # compilation failed
12818 lt_cv_dlopen_self=no
12819 fi
12820 fi
12821 rm -fr conftest*
12822
12823
12824 fi
12825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12826 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12827
12828 if test yes = "$lt_cv_dlopen_self"; then
12829 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12831 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12832 if test ${lt_cv_dlopen_self_static+y}
12833 then :
12834 printf %s "(cached) " >&6
12835 else $as_nop
12836 if test yes = "$cross_compiling"; then :
12837 lt_cv_dlopen_self_static=cross
12838 else
12839 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12840 lt_status=$lt_dlunknown
12841 cat > conftest.$ac_ext <<_LT_EOF
12842 #line $LINENO "configure"
12843 #include "confdefs.h"
12844
12845 #if HAVE_DLFCN_H
12846 #include <dlfcn.h>
12847 #endif
12848
12849 #include <stdio.h>
12850
12851 #ifdef RTLD_GLOBAL
12852 # define LT_DLGLOBAL RTLD_GLOBAL
12853 #else
12854 # ifdef DL_GLOBAL
12855 # define LT_DLGLOBAL DL_GLOBAL
12856 # else
12857 # define LT_DLGLOBAL 0
12858 # endif
12859 #endif
12860
12861 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12862 find out it does not work in some platform. */
12863 #ifndef LT_DLLAZY_OR_NOW
12864 # ifdef RTLD_LAZY
12865 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12866 # else
12867 # ifdef DL_LAZY
12868 # define LT_DLLAZY_OR_NOW DL_LAZY
12869 # else
12870 # ifdef RTLD_NOW
12871 # define LT_DLLAZY_OR_NOW RTLD_NOW
12872 # else
12873 # ifdef DL_NOW
12874 # define LT_DLLAZY_OR_NOW DL_NOW
12875 # else
12876 # define LT_DLLAZY_OR_NOW 0
12877 # endif
12878 # endif
12879 # endif
12880 # endif
12881 #endif
12882
12883 /* When -fvisibility=hidden is used, assume the code has been annotated
12884 correspondingly for the symbols needed. */
12885 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12886 int fnord () __attribute__((visibility("default")));
12887 #endif
12888
12889 int fnord () { return 42; }
12890 int main ()
12891 {
12892 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12893 int status = $lt_dlunknown;
12894
12895 if (self)
12896 {
12897 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12898 else
12899 {
12900 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12901 else puts (dlerror ());
12902 }
12903 /* dlclose (self); */
12904 }
12905 else
12906 puts (dlerror ());
12907
12908 return status;
12909 }
12910 _LT_EOF
12911 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12912 (eval $ac_link) 2>&5
12913 ac_status=$?
12914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12915 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12916 (./conftest; exit; ) >&5 2>/dev/null
12917 lt_status=$?
12918 case x$lt_status in
12919 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12920 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12921 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12922 esac
12923 else :
12924 # compilation failed
12925 lt_cv_dlopen_self_static=no
12926 fi
12927 fi
12928 rm -fr conftest*
12929
12930
12931 fi
12932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12933 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12934 fi
12935
12936 CPPFLAGS=$save_CPPFLAGS
12937 LDFLAGS=$save_LDFLAGS
12938 LIBS=$save_LIBS
12939 ;;
12940 esac
12941
12942 case $lt_cv_dlopen_self in
12943 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12944 *) enable_dlopen_self=unknown ;;
12945 esac
12946
12947 case $lt_cv_dlopen_self_static in
12948 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12949 *) enable_dlopen_self_static=unknown ;;
12950 esac
12951 fi
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969 striplib=
12970 old_striplib=
12971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12972 printf %s "checking whether stripping libraries is possible... " >&6; }
12973 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12974 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12975 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12977 printf "%s\n" "yes" >&6; }
12978 else
12979 # FIXME - insert some real tests, host_os isn't really good enough
12980 case $host_os in
12981 darwin*)
12982 if test -n "$STRIP"; then
12983 striplib="$STRIP -x"
12984 old_striplib="$STRIP -S"
12985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12986 printf "%s\n" "yes" >&6; }
12987 else
12988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12989 printf "%s\n" "no" >&6; }
12990 fi
12991 ;;
12992 *)
12993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12994 printf "%s\n" "no" >&6; }
12995 ;;
12996 esac
12997 fi
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010 # Report what library types will actually be built
13011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13012 printf %s "checking if libtool supports shared libraries... " >&6; }
13013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13014 printf "%s\n" "$can_build_shared" >&6; }
13015
13016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13017 printf %s "checking whether to build shared libraries... " >&6; }
13018 test no = "$can_build_shared" && enable_shared=no
13019
13020 # On AIX, shared libraries and static libraries use the same namespace, and
13021 # are all built from PIC.
13022 case $host_os in
13023 aix3*)
13024 test yes = "$enable_shared" && enable_static=no
13025 if test -n "$RANLIB"; then
13026 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13027 postinstall_cmds='$RANLIB $lib'
13028 fi
13029 ;;
13030
13031 aix[4-9]*)
13032 if test ia64 != "$host_cpu"; then
13033 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13034 yes,aix,yes) ;; # shared object as lib.so file only
13035 yes,svr4,*) ;; # shared object as lib.so archive member only
13036 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13037 esac
13038 fi
13039 ;;
13040 esac
13041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13042 printf "%s\n" "$enable_shared" >&6; }
13043
13044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13045 printf %s "checking whether to build static libraries... " >&6; }
13046 # Make sure either enable_shared or enable_static is yes.
13047 test yes = "$enable_shared" || enable_static=yes
13048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13049 printf "%s\n" "$enable_static" >&6; }
13050
13051
13052
13053
13054 fi
13055 ac_ext=c
13056 ac_cpp='$CPP $CPPFLAGS'
13057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13060
13061 CC=$lt_save_CC
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077 ac_config_commands="$ac_config_commands libtool"
13078
13079
13080
13081
13082 # Only expand once:
13083
13084 win32-dll
13085
13086
13087 ac_config_headers="$ac_config_headers config.h"
13088
13089
13090 # Checks for programs.
13091 ac_ext=c
13092 ac_cpp='$CPP $CPPFLAGS'
13093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13096 if test -n "$ac_tool_prefix"; then
13097 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13098 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13100 printf %s "checking for $ac_word... " >&6; }
13101 if test ${ac_cv_prog_CC+y}
13102 then :
13103 printf %s "(cached) " >&6
13104 else $as_nop
13105 if test -n "$CC"; then
13106 ac_cv_prog_CC="$CC" # Let the user override the test.
13107 else
13108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13109 for as_dir in $PATH
13110 do
13111 IFS=$as_save_IFS
13112 case $as_dir in #(((
13113 '') as_dir=./ ;;
13114 */) ;;
13115 *) as_dir=$as_dir/ ;;
13116 esac
13117 for ac_exec_ext in '' $ac_executable_extensions; do
13118 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13119 ac_cv_prog_CC="${ac_tool_prefix}gcc"
13120 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13121 break 2
13122 fi
13123 done
13124 done
13125 IFS=$as_save_IFS
13126
13127 fi
13128 fi
13129 CC=$ac_cv_prog_CC
13130 if test -n "$CC"; then
13131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13132 printf "%s\n" "$CC" >&6; }
13133 else
13134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13135 printf "%s\n" "no" >&6; }
13136 fi
13137
13138
13139 fi
13140 if test -z "$ac_cv_prog_CC"; then
13141 ac_ct_CC=$CC
13142 # Extract the first word of "gcc", so it can be a program name with args.
13143 set dummy gcc; ac_word=$2
13144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13145 printf %s "checking for $ac_word... " >&6; }
13146 if test ${ac_cv_prog_ac_ct_CC+y}
13147 then :
13148 printf %s "(cached) " >&6
13149 else $as_nop
13150 if test -n "$ac_ct_CC"; then
13151 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13152 else
13153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13154 for as_dir in $PATH
13155 do
13156 IFS=$as_save_IFS
13157 case $as_dir in #(((
13158 '') as_dir=./ ;;
13159 */) ;;
13160 *) as_dir=$as_dir/ ;;
13161 esac
13162 for ac_exec_ext in '' $ac_executable_extensions; do
13163 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13164 ac_cv_prog_ac_ct_CC="gcc"
13165 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13166 break 2
13167 fi
13168 done
13169 done
13170 IFS=$as_save_IFS
13171
13172 fi
13173 fi
13174 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13175 if test -n "$ac_ct_CC"; then
13176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13177 printf "%s\n" "$ac_ct_CC" >&6; }
13178 else
13179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13180 printf "%s\n" "no" >&6; }
13181 fi
13182
13183 if test "x$ac_ct_CC" = x; then
13184 CC=""
13185 else
13186 case $cross_compiling:$ac_tool_warned in
13187 yes:)
13188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13189 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13190 ac_tool_warned=yes ;;
13191 esac
13192 CC=$ac_ct_CC
13193 fi
13194 else
13195 CC="$ac_cv_prog_CC"
13196 fi
13197
13198 if test -z "$CC"; then
13199 if test -n "$ac_tool_prefix"; then
13200 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13201 set dummy ${ac_tool_prefix}cc; ac_word=$2
13202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13203 printf %s "checking for $ac_word... " >&6; }
13204 if test ${ac_cv_prog_CC+y}
13205 then :
13206 printf %s "(cached) " >&6
13207 else $as_nop
13208 if test -n "$CC"; then
13209 ac_cv_prog_CC="$CC" # Let the user override the test.
13210 else
13211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13212 for as_dir in $PATH
13213 do
13214 IFS=$as_save_IFS
13215 case $as_dir in #(((
13216 '') as_dir=./ ;;
13217 */) ;;
13218 *) as_dir=$as_dir/ ;;
13219 esac
13220 for ac_exec_ext in '' $ac_executable_extensions; do
13221 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13222 ac_cv_prog_CC="${ac_tool_prefix}cc"
13223 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13224 break 2
13225 fi
13226 done
13227 done
13228 IFS=$as_save_IFS
13229
13230 fi
13231 fi
13232 CC=$ac_cv_prog_CC
13233 if test -n "$CC"; then
13234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13235 printf "%s\n" "$CC" >&6; }
13236 else
13237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13238 printf "%s\n" "no" >&6; }
13239 fi
13240
13241
13242 fi
13243 fi
13244 if test -z "$CC"; then
13245 # Extract the first word of "cc", so it can be a program name with args.
13246 set dummy cc; ac_word=$2
13247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13248 printf %s "checking for $ac_word... " >&6; }
13249 if test ${ac_cv_prog_CC+y}
13250 then :
13251 printf %s "(cached) " >&6
13252 else $as_nop
13253 if test -n "$CC"; then
13254 ac_cv_prog_CC="$CC" # Let the user override the test.
13255 else
13256 ac_prog_rejected=no
13257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13258 for as_dir in $PATH
13259 do
13260 IFS=$as_save_IFS
13261 case $as_dir in #(((
13262 '') as_dir=./ ;;
13263 */) ;;
13264 *) as_dir=$as_dir/ ;;
13265 esac
13266 for ac_exec_ext in '' $ac_executable_extensions; do
13267 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13268 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13269 ac_prog_rejected=yes
13270 continue
13271 fi
13272 ac_cv_prog_CC="cc"
13273 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13274 break 2
13275 fi
13276 done
13277 done
13278 IFS=$as_save_IFS
13279
13280 if test $ac_prog_rejected = yes; then
13281 # We found a bogon in the path, so make sure we never use it.
13282 set dummy $ac_cv_prog_CC
13283 shift
13284 if test $# != 0; then
13285 # We chose a different compiler from the bogus one.
13286 # However, it has the same basename, so the bogon will be chosen
13287 # first if we set CC to just the basename; use the full file name.
13288 shift
13289 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
13290 fi
13291 fi
13292 fi
13293 fi
13294 CC=$ac_cv_prog_CC
13295 if test -n "$CC"; then
13296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13297 printf "%s\n" "$CC" >&6; }
13298 else
13299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13300 printf "%s\n" "no" >&6; }
13301 fi
13302
13303
13304 fi
13305 if test -z "$CC"; then
13306 if test -n "$ac_tool_prefix"; then
13307 for ac_prog in cl.exe
13308 do
13309 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13310 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13312 printf %s "checking for $ac_word... " >&6; }
13313 if test ${ac_cv_prog_CC+y}
13314 then :
13315 printf %s "(cached) " >&6
13316 else $as_nop
13317 if test -n "$CC"; then
13318 ac_cv_prog_CC="$CC" # Let the user override the test.
13319 else
13320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13321 for as_dir in $PATH
13322 do
13323 IFS=$as_save_IFS
13324 case $as_dir in #(((
13325 '') as_dir=./ ;;
13326 */) ;;
13327 *) as_dir=$as_dir/ ;;
13328 esac
13329 for ac_exec_ext in '' $ac_executable_extensions; do
13330 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13331 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13332 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13333 break 2
13334 fi
13335 done
13336 done
13337 IFS=$as_save_IFS
13338
13339 fi
13340 fi
13341 CC=$ac_cv_prog_CC
13342 if test -n "$CC"; then
13343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13344 printf "%s\n" "$CC" >&6; }
13345 else
13346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13347 printf "%s\n" "no" >&6; }
13348 fi
13349
13350
13351 test -n "$CC" && break
13352 done
13353 fi
13354 if test -z "$CC"; then
13355 ac_ct_CC=$CC
13356 for ac_prog in cl.exe
13357 do
13358 # Extract the first word of "$ac_prog", so it can be a program name with args.
13359 set dummy $ac_prog; ac_word=$2
13360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13361 printf %s "checking for $ac_word... " >&6; }
13362 if test ${ac_cv_prog_ac_ct_CC+y}
13363 then :
13364 printf %s "(cached) " >&6
13365 else $as_nop
13366 if test -n "$ac_ct_CC"; then
13367 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13368 else
13369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13370 for as_dir in $PATH
13371 do
13372 IFS=$as_save_IFS
13373 case $as_dir in #(((
13374 '') as_dir=./ ;;
13375 */) ;;
13376 *) as_dir=$as_dir/ ;;
13377 esac
13378 for ac_exec_ext in '' $ac_executable_extensions; do
13379 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13380 ac_cv_prog_ac_ct_CC="$ac_prog"
13381 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13382 break 2
13383 fi
13384 done
13385 done
13386 IFS=$as_save_IFS
13387
13388 fi
13389 fi
13390 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13391 if test -n "$ac_ct_CC"; then
13392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13393 printf "%s\n" "$ac_ct_CC" >&6; }
13394 else
13395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13396 printf "%s\n" "no" >&6; }
13397 fi
13398
13399
13400 test -n "$ac_ct_CC" && break
13401 done
13402
13403 if test "x$ac_ct_CC" = x; then
13404 CC=""
13405 else
13406 case $cross_compiling:$ac_tool_warned in
13407 yes:)
13408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13409 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13410 ac_tool_warned=yes ;;
13411 esac
13412 CC=$ac_ct_CC
13413 fi
13414 fi
13415
13416 fi
13417 if test -z "$CC"; then
13418 if test -n "$ac_tool_prefix"; then
13419 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
13420 set dummy ${ac_tool_prefix}clang; ac_word=$2
13421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13422 printf %s "checking for $ac_word... " >&6; }
13423 if test ${ac_cv_prog_CC+y}
13424 then :
13425 printf %s "(cached) " >&6
13426 else $as_nop
13427 if test -n "$CC"; then
13428 ac_cv_prog_CC="$CC" # Let the user override the test.
13429 else
13430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13431 for as_dir in $PATH
13432 do
13433 IFS=$as_save_IFS
13434 case $as_dir in #(((
13435 '') as_dir=./ ;;
13436 */) ;;
13437 *) as_dir=$as_dir/ ;;
13438 esac
13439 for ac_exec_ext in '' $ac_executable_extensions; do
13440 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13441 ac_cv_prog_CC="${ac_tool_prefix}clang"
13442 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13443 break 2
13444 fi
13445 done
13446 done
13447 IFS=$as_save_IFS
13448
13449 fi
13450 fi
13451 CC=$ac_cv_prog_CC
13452 if test -n "$CC"; then
13453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13454 printf "%s\n" "$CC" >&6; }
13455 else
13456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13457 printf "%s\n" "no" >&6; }
13458 fi
13459
13460
13461 fi
13462 if test -z "$ac_cv_prog_CC"; then
13463 ac_ct_CC=$CC
13464 # Extract the first word of "clang", so it can be a program name with args.
13465 set dummy clang; ac_word=$2
13466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13467 printf %s "checking for $ac_word... " >&6; }
13468 if test ${ac_cv_prog_ac_ct_CC+y}
13469 then :
13470 printf %s "(cached) " >&6
13471 else $as_nop
13472 if test -n "$ac_ct_CC"; then
13473 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13474 else
13475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13476 for as_dir in $PATH
13477 do
13478 IFS=$as_save_IFS
13479 case $as_dir in #(((
13480 '') as_dir=./ ;;
13481 */) ;;
13482 *) as_dir=$as_dir/ ;;
13483 esac
13484 for ac_exec_ext in '' $ac_executable_extensions; do
13485 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13486 ac_cv_prog_ac_ct_CC="clang"
13487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13488 break 2
13489 fi
13490 done
13491 done
13492 IFS=$as_save_IFS
13493
13494 fi
13495 fi
13496 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13497 if test -n "$ac_ct_CC"; then
13498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13499 printf "%s\n" "$ac_ct_CC" >&6; }
13500 else
13501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13502 printf "%s\n" "no" >&6; }
13503 fi
13504
13505 if test "x$ac_ct_CC" = x; then
13506 CC=""
13507 else
13508 case $cross_compiling:$ac_tool_warned in
13509 yes:)
13510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13511 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13512 ac_tool_warned=yes ;;
13513 esac
13514 CC=$ac_ct_CC
13515 fi
13516 else
13517 CC="$ac_cv_prog_CC"
13518 fi
13519
13520 fi
13521
13522
13523 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13524 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13525 as_fn_error $? "no acceptable C compiler found in \$PATH
13526 See \`config.log' for more details" "$LINENO" 5; }
13527
13528 # Provide some information about the compiler.
13529 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13530 set X $ac_compile
13531 ac_compiler=$2
13532 for ac_option in --version -v -V -qversion -version; do
13533 { { ac_try="$ac_compiler $ac_option >&5"
13534 case "(($ac_try" in
13535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13536 *) ac_try_echo=$ac_try;;
13537 esac
13538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13539 printf "%s\n" "$ac_try_echo"; } >&5
13540 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13541 ac_status=$?
13542 if test -s conftest.err; then
13543 sed '10a\
13544 ... rest of stderr output deleted ...
13545 10q' conftest.err >conftest.er1
13546 cat conftest.er1 >&5
13547 fi
13548 rm -f conftest.er1 conftest.err
13549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13550 test $ac_status = 0; }
13551 done
13552
13553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
13554 printf %s "checking whether the compiler supports GNU C... " >&6; }
13555 if test ${ac_cv_c_compiler_gnu+y}
13556 then :
13557 printf %s "(cached) " >&6
13558 else $as_nop
13559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13560 /* end confdefs.h. */
13561
13562 int
13563 main (void)
13564 {
13565 #ifndef __GNUC__
13566 choke me
13567 #endif
13568
13569 ;
13570 return 0;
13571 }
13572 _ACEOF
13573 if ac_fn_c_try_compile "$LINENO"
13574 then :
13575 ac_compiler_gnu=yes
13576 else $as_nop
13577 ac_compiler_gnu=no
13578 fi
13579 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13580 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13581
13582 fi
13583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13584 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
13585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13586
13587 if test $ac_compiler_gnu = yes; then
13588 GCC=yes
13589 else
13590 GCC=
13591 fi
13592 ac_test_CFLAGS=${CFLAGS+y}
13593 ac_save_CFLAGS=$CFLAGS
13594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13595 printf %s "checking whether $CC accepts -g... " >&6; }
13596 if test ${ac_cv_prog_cc_g+y}
13597 then :
13598 printf %s "(cached) " >&6
13599 else $as_nop
13600 ac_save_c_werror_flag=$ac_c_werror_flag
13601 ac_c_werror_flag=yes
13602 ac_cv_prog_cc_g=no
13603 CFLAGS="-g"
13604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13605 /* end confdefs.h. */
13606
13607 int
13608 main (void)
13609 {
13610
13611 ;
13612 return 0;
13613 }
13614 _ACEOF
13615 if ac_fn_c_try_compile "$LINENO"
13616 then :
13617 ac_cv_prog_cc_g=yes
13618 else $as_nop
13619 CFLAGS=""
13620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13621 /* end confdefs.h. */
13622
13623 int
13624 main (void)
13625 {
13626
13627 ;
13628 return 0;
13629 }
13630 _ACEOF
13631 if ac_fn_c_try_compile "$LINENO"
13632 then :
13633
13634 else $as_nop
13635 ac_c_werror_flag=$ac_save_c_werror_flag
13636 CFLAGS="-g"
13637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13638 /* end confdefs.h. */
13639
13640 int
13641 main (void)
13642 {
13643
13644 ;
13645 return 0;
13646 }
13647 _ACEOF
13648 if ac_fn_c_try_compile "$LINENO"
13649 then :
13650 ac_cv_prog_cc_g=yes
13651 fi
13652 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13653 fi
13654 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13655 fi
13656 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13657 ac_c_werror_flag=$ac_save_c_werror_flag
13658 fi
13659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13660 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
13661 if test $ac_test_CFLAGS; then
13662 CFLAGS=$ac_save_CFLAGS
13663 elif test $ac_cv_prog_cc_g = yes; then
13664 if test "$GCC" = yes; then
13665 CFLAGS="-g -O2"
13666 else
13667 CFLAGS="-g"
13668 fi
13669 else
13670 if test "$GCC" = yes; then
13671 CFLAGS="-O2"
13672 else
13673 CFLAGS=
13674 fi
13675 fi
13676 ac_prog_cc_stdc=no
13677 if test x$ac_prog_cc_stdc = xno
13678 then :
13679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
13680 printf %s "checking for $CC option to enable C11 features... " >&6; }
13681 if test ${ac_cv_prog_cc_c11+y}
13682 then :
13683 printf %s "(cached) " >&6
13684 else $as_nop
13685 ac_cv_prog_cc_c11=no
13686 ac_save_CC=$CC
13687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13688 /* end confdefs.h. */
13689 $ac_c_conftest_c11_program
13690 _ACEOF
13691 for ac_arg in '' -std=gnu11
13692 do
13693 CC="$ac_save_CC $ac_arg"
13694 if ac_fn_c_try_compile "$LINENO"
13695 then :
13696 ac_cv_prog_cc_c11=$ac_arg
13697 fi
13698 rm -f core conftest.err conftest.$ac_objext conftest.beam
13699 test "x$ac_cv_prog_cc_c11" != "xno" && break
13700 done
13701 rm -f conftest.$ac_ext
13702 CC=$ac_save_CC
13703 fi
13704
13705 if test "x$ac_cv_prog_cc_c11" = xno
13706 then :
13707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13708 printf "%s\n" "unsupported" >&6; }
13709 else $as_nop
13710 if test "x$ac_cv_prog_cc_c11" = x
13711 then :
13712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13713 printf "%s\n" "none needed" >&6; }
13714 else $as_nop
13715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
13716 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
13717 CC="$CC $ac_cv_prog_cc_c11"
13718 fi
13719 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
13720 ac_prog_cc_stdc=c11
13721 fi
13722 fi
13723 if test x$ac_prog_cc_stdc = xno
13724 then :
13725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
13726 printf %s "checking for $CC option to enable C99 features... " >&6; }
13727 if test ${ac_cv_prog_cc_c99+y}
13728 then :
13729 printf %s "(cached) " >&6
13730 else $as_nop
13731 ac_cv_prog_cc_c99=no
13732 ac_save_CC=$CC
13733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13734 /* end confdefs.h. */
13735 $ac_c_conftest_c99_program
13736 _ACEOF
13737 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
13738 do
13739 CC="$ac_save_CC $ac_arg"
13740 if ac_fn_c_try_compile "$LINENO"
13741 then :
13742 ac_cv_prog_cc_c99=$ac_arg
13743 fi
13744 rm -f core conftest.err conftest.$ac_objext conftest.beam
13745 test "x$ac_cv_prog_cc_c99" != "xno" && break
13746 done
13747 rm -f conftest.$ac_ext
13748 CC=$ac_save_CC
13749 fi
13750
13751 if test "x$ac_cv_prog_cc_c99" = xno
13752 then :
13753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13754 printf "%s\n" "unsupported" >&6; }
13755 else $as_nop
13756 if test "x$ac_cv_prog_cc_c99" = x
13757 then :
13758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13759 printf "%s\n" "none needed" >&6; }
13760 else $as_nop
13761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
13762 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
13763 CC="$CC $ac_cv_prog_cc_c99"
13764 fi
13765 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
13766 ac_prog_cc_stdc=c99
13767 fi
13768 fi
13769 if test x$ac_prog_cc_stdc = xno
13770 then :
13771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
13772 printf %s "checking for $CC option to enable C89 features... " >&6; }
13773 if test ${ac_cv_prog_cc_c89+y}
13774 then :
13775 printf %s "(cached) " >&6
13776 else $as_nop
13777 ac_cv_prog_cc_c89=no
13778 ac_save_CC=$CC
13779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13780 /* end confdefs.h. */
13781 $ac_c_conftest_c89_program
13782 _ACEOF
13783 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13784 do
13785 CC="$ac_save_CC $ac_arg"
13786 if ac_fn_c_try_compile "$LINENO"
13787 then :
13788 ac_cv_prog_cc_c89=$ac_arg
13789 fi
13790 rm -f core conftest.err conftest.$ac_objext conftest.beam
13791 test "x$ac_cv_prog_cc_c89" != "xno" && break
13792 done
13793 rm -f conftest.$ac_ext
13794 CC=$ac_save_CC
13795 fi
13796
13797 if test "x$ac_cv_prog_cc_c89" = xno
13798 then :
13799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13800 printf "%s\n" "unsupported" >&6; }
13801 else $as_nop
13802 if test "x$ac_cv_prog_cc_c89" = x
13803 then :
13804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13805 printf "%s\n" "none needed" >&6; }
13806 else $as_nop
13807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13808 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
13809 CC="$CC $ac_cv_prog_cc_c89"
13810 fi
13811 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
13812 ac_prog_cc_stdc=c89
13813 fi
13814 fi
13815
13816 ac_ext=c
13817 ac_cpp='$CPP $CPPFLAGS'
13818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13821
13822
13823 ac_ext=c
13824 ac_cpp='$CPP $CPPFLAGS'
13825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13829 printf %s "checking whether $CC understands -c and -o together... " >&6; }
13830 if test ${am_cv_prog_cc_c_o+y}
13831 then :
13832 printf %s "(cached) " >&6
13833 else $as_nop
13834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13835 /* end confdefs.h. */
13836
13837 int
13838 main (void)
13839 {
13840
13841 ;
13842 return 0;
13843 }
13844 _ACEOF
13845 # Make sure it works both with $CC and with simple cc.
13846 # Following AC_PROG_CC_C_O, we do the test twice because some
13847 # compilers refuse to overwrite an existing .o file with -o,
13848 # though they will create one.
13849 am_cv_prog_cc_c_o=yes
13850 for am_i in 1 2; do
13851 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13852 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13853 ac_status=$?
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); } \
13856 && test -f conftest2.$ac_objext; then
13857 : OK
13858 else
13859 am_cv_prog_cc_c_o=no
13860 break
13861 fi
13862 done
13863 rm -f core conftest*
13864 unset am_i
13865 fi
13866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13867 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
13868 if test "$am_cv_prog_cc_c_o" != yes; then
13869 # Losing compiler, so override with the script.
13870 # FIXME: It is wrong to rewrite CC.
13871 # But if we don't then we get into trouble of one sort or another.
13872 # A longer-term fix would be to have automake use am__CC in this case,
13873 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13874 CC="$am_aux_dir/compile $CC"
13875 fi
13876 ac_ext=c
13877 ac_cpp='$CPP $CPPFLAGS'
13878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13881
13882
13883 depcc="$CC" am_compiler_list=
13884
13885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13886 printf %s "checking dependency style of $depcc... " >&6; }
13887 if test ${am_cv_CC_dependencies_compiler_type+y}
13888 then :
13889 printf %s "(cached) " >&6
13890 else $as_nop
13891 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13892 # We make a subdir and do the tests there. Otherwise we can end up
13893 # making bogus files that we don't know about and never remove. For
13894 # instance it was reported that on HP-UX the gcc test will end up
13895 # making a dummy file named 'D' -- because '-MD' means "put the output
13896 # in D".
13897 rm -rf conftest.dir
13898 mkdir conftest.dir
13899 # Copy depcomp to subdir because otherwise we won't find it if we're
13900 # using a relative directory.
13901 cp "$am_depcomp" conftest.dir
13902 cd conftest.dir
13903 # We will build objects and dependencies in a subdirectory because
13904 # it helps to detect inapplicable dependency modes. For instance
13905 # both Tru64's cc and ICC support -MD to output dependencies as a
13906 # side effect of compilation, but ICC will put the dependencies in
13907 # the current directory while Tru64 will put them in the object
13908 # directory.
13909 mkdir sub
13910
13911 am_cv_CC_dependencies_compiler_type=none
13912 if test "$am_compiler_list" = ""; then
13913 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13914 fi
13915 am__universal=false
13916 case " $depcc " in #(
13917 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13918 esac
13919
13920 for depmode in $am_compiler_list; do
13921 # Setup a source with many dependencies, because some compilers
13922 # like to wrap large dependency lists on column 80 (with \), and
13923 # we should not choose a depcomp mode which is confused by this.
13924 #
13925 # We need to recreate these files for each test, as the compiler may
13926 # overwrite some of them when testing with obscure command lines.
13927 # This happens at least with the AIX C compiler.
13928 : > sub/conftest.c
13929 for i in 1 2 3 4 5 6; do
13930 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13931 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13932 # Solaris 10 /bin/sh.
13933 echo '/* dummy */' > sub/conftst$i.h
13934 done
13935 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13936
13937 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13938 # mode. It turns out that the SunPro C++ compiler does not properly
13939 # handle '-M -o', and we need to detect this. Also, some Intel
13940 # versions had trouble with output in subdirs.
13941 am__obj=sub/conftest.${OBJEXT-o}
13942 am__minus_obj="-o $am__obj"
13943 case $depmode in
13944 gcc)
13945 # This depmode causes a compiler race in universal mode.
13946 test "$am__universal" = false || continue
13947 ;;
13948 nosideeffect)
13949 # After this tag, mechanisms are not by side-effect, so they'll
13950 # only be used when explicitly requested.
13951 if test "x$enable_dependency_tracking" = xyes; then
13952 continue
13953 else
13954 break
13955 fi
13956 ;;
13957 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13958 # This compiler won't grok '-c -o', but also, the minuso test has
13959 # not run yet. These depmodes are late enough in the game, and
13960 # so weak that their functioning should not be impacted.
13961 am__obj=conftest.${OBJEXT-o}
13962 am__minus_obj=
13963 ;;
13964 none) break ;;
13965 esac
13966 if depmode=$depmode \
13967 source=sub/conftest.c object=$am__obj \
13968 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13969 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13970 >/dev/null 2>conftest.err &&
13971 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13972 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13973 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13974 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13975 # icc doesn't choke on unknown options, it will just issue warnings
13976 # or remarks (even with -Werror). So we grep stderr for any message
13977 # that says an option was ignored or not supported.
13978 # When given -MP, icc 7.0 and 7.1 complain thusly:
13979 # icc: Command line warning: ignoring option '-M'; no argument required
13980 # The diagnosis changed in icc 8.0:
13981 # icc: Command line remark: option '-MP' not supported
13982 if (grep 'ignoring option' conftest.err ||
13983 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13984 am_cv_CC_dependencies_compiler_type=$depmode
13985 break
13986 fi
13987 fi
13988 done
13989
13990 cd ..
13991 rm -rf conftest.dir
13992 else
13993 am_cv_CC_dependencies_compiler_type=none
13994 fi
13995
13996 fi
13997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13998 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
13999 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14000
14001 if
14002 test "x$enable_dependency_tracking" != xno \
14003 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14004 am__fastdepCC_TRUE=
14005 am__fastdepCC_FALSE='#'
14006 else
14007 am__fastdepCC_TRUE='#'
14008 am__fastdepCC_FALSE=
14009 fi
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019 ac_ext=cpp
14020 ac_cpp='$CXXCPP $CPPFLAGS'
14021 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14022 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14023 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14024 if test -z "$CXX"; then
14025 if test -n "$CCC"; then
14026 CXX=$CCC
14027 else
14028 if test -n "$ac_tool_prefix"; then
14029 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
14030 do
14031 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14032 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14034 printf %s "checking for $ac_word... " >&6; }
14035 if test ${ac_cv_prog_CXX+y}
14036 then :
14037 printf %s "(cached) " >&6
14038 else $as_nop
14039 if test -n "$CXX"; then
14040 ac_cv_prog_CXX="$CXX" # Let the user override the test.
14041 else
14042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14043 for as_dir in $PATH
14044 do
14045 IFS=$as_save_IFS
14046 case $as_dir in #(((
14047 '') as_dir=./ ;;
14048 */) ;;
14049 *) as_dir=$as_dir/ ;;
14050 esac
14051 for ac_exec_ext in '' $ac_executable_extensions; do
14052 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14053 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14055 break 2
14056 fi
14057 done
14058 done
14059 IFS=$as_save_IFS
14060
14061 fi
14062 fi
14063 CXX=$ac_cv_prog_CXX
14064 if test -n "$CXX"; then
14065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14066 printf "%s\n" "$CXX" >&6; }
14067 else
14068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14069 printf "%s\n" "no" >&6; }
14070 fi
14071
14072
14073 test -n "$CXX" && break
14074 done
14075 fi
14076 if test -z "$CXX"; then
14077 ac_ct_CXX=$CXX
14078 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
14079 do
14080 # Extract the first word of "$ac_prog", so it can be a program name with args.
14081 set dummy $ac_prog; ac_word=$2
14082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14083 printf %s "checking for $ac_word... " >&6; }
14084 if test ${ac_cv_prog_ac_ct_CXX+y}
14085 then :
14086 printf %s "(cached) " >&6
14087 else $as_nop
14088 if test -n "$ac_ct_CXX"; then
14089 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14090 else
14091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14092 for as_dir in $PATH
14093 do
14094 IFS=$as_save_IFS
14095 case $as_dir in #(((
14096 '') as_dir=./ ;;
14097 */) ;;
14098 *) as_dir=$as_dir/ ;;
14099 esac
14100 for ac_exec_ext in '' $ac_executable_extensions; do
14101 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14102 ac_cv_prog_ac_ct_CXX="$ac_prog"
14103 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14104 break 2
14105 fi
14106 done
14107 done
14108 IFS=$as_save_IFS
14109
14110 fi
14111 fi
14112 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14113 if test -n "$ac_ct_CXX"; then
14114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14115 printf "%s\n" "$ac_ct_CXX" >&6; }
14116 else
14117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14118 printf "%s\n" "no" >&6; }
14119 fi
14120
14121
14122 test -n "$ac_ct_CXX" && break
14123 done
14124
14125 if test "x$ac_ct_CXX" = x; then
14126 CXX="g++"
14127 else
14128 case $cross_compiling:$ac_tool_warned in
14129 yes:)
14130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14131 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14132 ac_tool_warned=yes ;;
14133 esac
14134 CXX=$ac_ct_CXX
14135 fi
14136 fi
14137
14138 fi
14139 fi
14140 # Provide some information about the compiler.
14141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14142 set X $ac_compile
14143 ac_compiler=$2
14144 for ac_option in --version -v -V -qversion; do
14145 { { ac_try="$ac_compiler $ac_option >&5"
14146 case "(($ac_try" in
14147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14148 *) ac_try_echo=$ac_try;;
14149 esac
14150 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14151 printf "%s\n" "$ac_try_echo"; } >&5
14152 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14153 ac_status=$?
14154 if test -s conftest.err; then
14155 sed '10a\
14156 ... rest of stderr output deleted ...
14157 10q' conftest.err >conftest.er1
14158 cat conftest.er1 >&5
14159 fi
14160 rm -f conftest.er1 conftest.err
14161 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14162 test $ac_status = 0; }
14163 done
14164
14165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
14166 printf %s "checking whether the compiler supports GNU C++... " >&6; }
14167 if test ${ac_cv_cxx_compiler_gnu+y}
14168 then :
14169 printf %s "(cached) " >&6
14170 else $as_nop
14171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14172 /* end confdefs.h. */
14173
14174 int
14175 main (void)
14176 {
14177 #ifndef __GNUC__
14178 choke me
14179 #endif
14180
14181 ;
14182 return 0;
14183 }
14184 _ACEOF
14185 if ac_fn_cxx_try_compile "$LINENO"
14186 then :
14187 ac_compiler_gnu=yes
14188 else $as_nop
14189 ac_compiler_gnu=no
14190 fi
14191 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14192 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14193
14194 fi
14195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14196 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
14197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14198
14199 if test $ac_compiler_gnu = yes; then
14200 GXX=yes
14201 else
14202 GXX=
14203 fi
14204 ac_test_CXXFLAGS=${CXXFLAGS+y}
14205 ac_save_CXXFLAGS=$CXXFLAGS
14206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14207 printf %s "checking whether $CXX accepts -g... " >&6; }
14208 if test ${ac_cv_prog_cxx_g+y}
14209 then :
14210 printf %s "(cached) " >&6
14211 else $as_nop
14212 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14213 ac_cxx_werror_flag=yes
14214 ac_cv_prog_cxx_g=no
14215 CXXFLAGS="-g"
14216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14217 /* end confdefs.h. */
14218
14219 int
14220 main (void)
14221 {
14222
14223 ;
14224 return 0;
14225 }
14226 _ACEOF
14227 if ac_fn_cxx_try_compile "$LINENO"
14228 then :
14229 ac_cv_prog_cxx_g=yes
14230 else $as_nop
14231 CXXFLAGS=""
14232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14233 /* end confdefs.h. */
14234
14235 int
14236 main (void)
14237 {
14238
14239 ;
14240 return 0;
14241 }
14242 _ACEOF
14243 if ac_fn_cxx_try_compile "$LINENO"
14244 then :
14245
14246 else $as_nop
14247 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14248 CXXFLAGS="-g"
14249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14250 /* end confdefs.h. */
14251
14252 int
14253 main (void)
14254 {
14255
14256 ;
14257 return 0;
14258 }
14259 _ACEOF
14260 if ac_fn_cxx_try_compile "$LINENO"
14261 then :
14262 ac_cv_prog_cxx_g=yes
14263 fi
14264 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14265 fi
14266 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14267 fi
14268 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14269 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14270 fi
14271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14272 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
14273 if test $ac_test_CXXFLAGS; then
14274 CXXFLAGS=$ac_save_CXXFLAGS
14275 elif test $ac_cv_prog_cxx_g = yes; then
14276 if test "$GXX" = yes; then
14277 CXXFLAGS="-g -O2"
14278 else
14279 CXXFLAGS="-g"
14280 fi
14281 else
14282 if test "$GXX" = yes; then
14283 CXXFLAGS="-O2"
14284 else
14285 CXXFLAGS=
14286 fi
14287 fi
14288 ac_prog_cxx_stdcxx=no
14289 if test x$ac_prog_cxx_stdcxx = xno
14290 then :
14291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
14292 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
14293 if test ${ac_cv_prog_cxx_11+y}
14294 then :
14295 printf %s "(cached) " >&6
14296 else $as_nop
14297 ac_cv_prog_cxx_11=no
14298 ac_save_CXX=$CXX
14299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14300 /* end confdefs.h. */
14301 $ac_cxx_conftest_cxx11_program
14302 _ACEOF
14303 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
14304 do
14305 CXX="$ac_save_CXX $ac_arg"
14306 if ac_fn_cxx_try_compile "$LINENO"
14307 then :
14308 ac_cv_prog_cxx_cxx11=$ac_arg
14309 fi
14310 rm -f core conftest.err conftest.$ac_objext conftest.beam
14311 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
14312 done
14313 rm -f conftest.$ac_ext
14314 CXX=$ac_save_CXX
14315 fi
14316
14317 if test "x$ac_cv_prog_cxx_cxx11" = xno
14318 then :
14319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14320 printf "%s\n" "unsupported" >&6; }
14321 else $as_nop
14322 if test "x$ac_cv_prog_cxx_cxx11" = x
14323 then :
14324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14325 printf "%s\n" "none needed" >&6; }
14326 else $as_nop
14327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
14328 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
14329 CXX="$CXX $ac_cv_prog_cxx_cxx11"
14330 fi
14331 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
14332 ac_prog_cxx_stdcxx=cxx11
14333 fi
14334 fi
14335 if test x$ac_prog_cxx_stdcxx = xno
14336 then :
14337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
14338 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
14339 if test ${ac_cv_prog_cxx_98+y}
14340 then :
14341 printf %s "(cached) " >&6
14342 else $as_nop
14343 ac_cv_prog_cxx_98=no
14344 ac_save_CXX=$CXX
14345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14346 /* end confdefs.h. */
14347 $ac_cxx_conftest_cxx98_program
14348 _ACEOF
14349 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
14350 do
14351 CXX="$ac_save_CXX $ac_arg"
14352 if ac_fn_cxx_try_compile "$LINENO"
14353 then :
14354 ac_cv_prog_cxx_cxx98=$ac_arg
14355 fi
14356 rm -f core conftest.err conftest.$ac_objext conftest.beam
14357 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
14358 done
14359 rm -f conftest.$ac_ext
14360 CXX=$ac_save_CXX
14361 fi
14362
14363 if test "x$ac_cv_prog_cxx_cxx98" = xno
14364 then :
14365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14366 printf "%s\n" "unsupported" >&6; }
14367 else $as_nop
14368 if test "x$ac_cv_prog_cxx_cxx98" = x
14369 then :
14370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14371 printf "%s\n" "none needed" >&6; }
14372 else $as_nop
14373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
14374 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
14375 CXX="$CXX $ac_cv_prog_cxx_cxx98"
14376 fi
14377 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
14378 ac_prog_cxx_stdcxx=cxx98
14379 fi
14380 fi
14381
14382 ac_ext=c
14383 ac_cpp='$CPP $CPPFLAGS'
14384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14387
14388 depcc="$CXX" am_compiler_list=
14389
14390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14391 printf %s "checking dependency style of $depcc... " >&6; }
14392 if test ${am_cv_CXX_dependencies_compiler_type+y}
14393 then :
14394 printf %s "(cached) " >&6
14395 else $as_nop
14396 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14397 # We make a subdir and do the tests there. Otherwise we can end up
14398 # making bogus files that we don't know about and never remove. For
14399 # instance it was reported that on HP-UX the gcc test will end up
14400 # making a dummy file named 'D' -- because '-MD' means "put the output
14401 # in D".
14402 rm -rf conftest.dir
14403 mkdir conftest.dir
14404 # Copy depcomp to subdir because otherwise we won't find it if we're
14405 # using a relative directory.
14406 cp "$am_depcomp" conftest.dir
14407 cd conftest.dir
14408 # We will build objects and dependencies in a subdirectory because
14409 # it helps to detect inapplicable dependency modes. For instance
14410 # both Tru64's cc and ICC support -MD to output dependencies as a
14411 # side effect of compilation, but ICC will put the dependencies in
14412 # the current directory while Tru64 will put them in the object
14413 # directory.
14414 mkdir sub
14415
14416 am_cv_CXX_dependencies_compiler_type=none
14417 if test "$am_compiler_list" = ""; then
14418 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14419 fi
14420 am__universal=false
14421 case " $depcc " in #(
14422 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14423 esac
14424
14425 for depmode in $am_compiler_list; do
14426 # Setup a source with many dependencies, because some compilers
14427 # like to wrap large dependency lists on column 80 (with \), and
14428 # we should not choose a depcomp mode which is confused by this.
14429 #
14430 # We need to recreate these files for each test, as the compiler may
14431 # overwrite some of them when testing with obscure command lines.
14432 # This happens at least with the AIX C compiler.
14433 : > sub/conftest.c
14434 for i in 1 2 3 4 5 6; do
14435 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14436 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14437 # Solaris 10 /bin/sh.
14438 echo '/* dummy */' > sub/conftst$i.h
14439 done
14440 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14441
14442 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14443 # mode. It turns out that the SunPro C++ compiler does not properly
14444 # handle '-M -o', and we need to detect this. Also, some Intel
14445 # versions had trouble with output in subdirs.
14446 am__obj=sub/conftest.${OBJEXT-o}
14447 am__minus_obj="-o $am__obj"
14448 case $depmode in
14449 gcc)
14450 # This depmode causes a compiler race in universal mode.
14451 test "$am__universal" = false || continue
14452 ;;
14453 nosideeffect)
14454 # After this tag, mechanisms are not by side-effect, so they'll
14455 # only be used when explicitly requested.
14456 if test "x$enable_dependency_tracking" = xyes; then
14457 continue
14458 else
14459 break
14460 fi
14461 ;;
14462 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14463 # This compiler won't grok '-c -o', but also, the minuso test has
14464 # not run yet. These depmodes are late enough in the game, and
14465 # so weak that their functioning should not be impacted.
14466 am__obj=conftest.${OBJEXT-o}
14467 am__minus_obj=
14468 ;;
14469 none) break ;;
14470 esac
14471 if depmode=$depmode \
14472 source=sub/conftest.c object=$am__obj \
14473 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14474 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14475 >/dev/null 2>conftest.err &&
14476 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14477 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14478 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14479 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14480 # icc doesn't choke on unknown options, it will just issue warnings
14481 # or remarks (even with -Werror). So we grep stderr for any message
14482 # that says an option was ignored or not supported.
14483 # When given -MP, icc 7.0 and 7.1 complain thusly:
14484 # icc: Command line warning: ignoring option '-M'; no argument required
14485 # The diagnosis changed in icc 8.0:
14486 # icc: Command line remark: option '-MP' not supported
14487 if (grep 'ignoring option' conftest.err ||
14488 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14489 am_cv_CXX_dependencies_compiler_type=$depmode
14490 break
14491 fi
14492 fi
14493 done
14494
14495 cd ..
14496 rm -rf conftest.dir
14497 else
14498 am_cv_CXX_dependencies_compiler_type=none
14499 fi
14500
14501 fi
14502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
14503 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
14504 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14505
14506 if
14507 test "x$enable_dependency_tracking" != xno \
14508 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14509 am__fastdepCXX_TRUE=
14510 am__fastdepCXX_FALSE='#'
14511 else
14512 am__fastdepCXX_TRUE='#'
14513 am__fastdepCXX_FALSE=
14514 fi
14515
14516
14517
14518
14519 func_stripname_cnf ()
14520 {
14521 case $2 in
14522 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
14523 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
14524 esac
14525 } # func_stripname_cnf
14526
14527 if test -n "$CXX" && ( test no != "$CXX" &&
14528 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14529 (test g++ != "$CXX"))); then
14530 ac_ext=cpp
14531 ac_cpp='$CXXCPP $CPPFLAGS'
14532 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14533 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14534 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14536 printf %s "checking how to run the C++ preprocessor... " >&6; }
14537 if test -z "$CXXCPP"; then
14538 if test ${ac_cv_prog_CXXCPP+y}
14539 then :
14540 printf %s "(cached) " >&6
14541 else $as_nop
14542 # Double quotes because $CXX needs to be expanded
14543 for CXXCPP in "$CXX -E" cpp /lib/cpp
14544 do
14545 ac_preproc_ok=false
14546 for ac_cxx_preproc_warn_flag in '' yes
14547 do
14548 # Use a header file that comes with gcc, so configuring glibc
14549 # with a fresh cross-compiler works.
14550 # On the NeXT, cc -E runs the code through the compiler's parser,
14551 # not just through cpp. "Syntax error" is here to catch this case.
14552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14553 /* end confdefs.h. */
14554 #include <limits.h>
14555 Syntax error
14556 _ACEOF
14557 if ac_fn_cxx_try_cpp "$LINENO"
14558 then :
14559
14560 else $as_nop
14561 # Broken: fails on valid input.
14562 continue
14563 fi
14564 rm -f conftest.err conftest.i conftest.$ac_ext
14565
14566 # OK, works on sane cases. Now check whether nonexistent headers
14567 # can be detected and how.
14568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14569 /* end confdefs.h. */
14570 #include <ac_nonexistent.h>
14571 _ACEOF
14572 if ac_fn_cxx_try_cpp "$LINENO"
14573 then :
14574 # Broken: success on invalid input.
14575 continue
14576 else $as_nop
14577 # Passes both tests.
14578 ac_preproc_ok=:
14579 break
14580 fi
14581 rm -f conftest.err conftest.i conftest.$ac_ext
14582
14583 done
14584 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14585 rm -f conftest.i conftest.err conftest.$ac_ext
14586 if $ac_preproc_ok
14587 then :
14588 break
14589 fi
14590
14591 done
14592 ac_cv_prog_CXXCPP=$CXXCPP
14593
14594 fi
14595 CXXCPP=$ac_cv_prog_CXXCPP
14596 else
14597 ac_cv_prog_CXXCPP=$CXXCPP
14598 fi
14599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14600 printf "%s\n" "$CXXCPP" >&6; }
14601 ac_preproc_ok=false
14602 for ac_cxx_preproc_warn_flag in '' yes
14603 do
14604 # Use a header file that comes with gcc, so configuring glibc
14605 # with a fresh cross-compiler works.
14606 # On the NeXT, cc -E runs the code through the compiler's parser,
14607 # not just through cpp. "Syntax error" is here to catch this case.
14608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14609 /* end confdefs.h. */
14610 #include <limits.h>
14611 Syntax error
14612 _ACEOF
14613 if ac_fn_cxx_try_cpp "$LINENO"
14614 then :
14615
14616 else $as_nop
14617 # Broken: fails on valid input.
14618 continue
14619 fi
14620 rm -f conftest.err conftest.i conftest.$ac_ext
14621
14622 # OK, works on sane cases. Now check whether nonexistent headers
14623 # can be detected and how.
14624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14625 /* end confdefs.h. */
14626 #include <ac_nonexistent.h>
14627 _ACEOF
14628 if ac_fn_cxx_try_cpp "$LINENO"
14629 then :
14630 # Broken: success on invalid input.
14631 continue
14632 else $as_nop
14633 # Passes both tests.
14634 ac_preproc_ok=:
14635 break
14636 fi
14637 rm -f conftest.err conftest.i conftest.$ac_ext
14638
14639 done
14640 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14641 rm -f conftest.i conftest.err conftest.$ac_ext
14642 if $ac_preproc_ok
14643 then :
14644
14645 else $as_nop
14646 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14647 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14648 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14649 See \`config.log' for more details" "$LINENO" 5; }
14650 fi
14651
14652 ac_ext=c
14653 ac_cpp='$CPP $CPPFLAGS'
14654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14657
14658 else
14659 _lt_caught_CXX_error=yes
14660 fi
14661
14662 ac_ext=cpp
14663 ac_cpp='$CXXCPP $CPPFLAGS'
14664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14667
14668 archive_cmds_need_lc_CXX=no
14669 allow_undefined_flag_CXX=
14670 always_export_symbols_CXX=no
14671 archive_expsym_cmds_CXX=
14672 compiler_needs_object_CXX=no
14673 export_dynamic_flag_spec_CXX=
14674 hardcode_direct_CXX=no
14675 hardcode_direct_absolute_CXX=no
14676 hardcode_libdir_flag_spec_CXX=
14677 hardcode_libdir_separator_CXX=
14678 hardcode_minus_L_CXX=no
14679 hardcode_shlibpath_var_CXX=unsupported
14680 hardcode_automatic_CXX=no
14681 inherit_rpath_CXX=no
14682 module_cmds_CXX=
14683 module_expsym_cmds_CXX=
14684 link_all_deplibs_CXX=unknown
14685 old_archive_cmds_CXX=$old_archive_cmds
14686 reload_flag_CXX=$reload_flag
14687 reload_cmds_CXX=$reload_cmds
14688 no_undefined_flag_CXX=
14689 whole_archive_flag_spec_CXX=
14690 enable_shared_with_static_runtimes_CXX=no
14691
14692 # Source file extension for C++ test sources.
14693 ac_ext=cpp
14694
14695 # Object file extension for compiled C++ test sources.
14696 objext=o
14697 objext_CXX=$objext
14698
14699 # No sense in running all these tests if we already determined that
14700 # the CXX compiler isn't working. Some variables (like enable_shared)
14701 # are currently assumed to apply to all compilers on this platform,
14702 # and will be corrupted by setting them based on a non-working compiler.
14703 if test yes != "$_lt_caught_CXX_error"; then
14704 # Code to be used in simple compile tests
14705 lt_simple_compile_test_code="int some_variable = 0;"
14706
14707 # Code to be used in simple link tests
14708 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14709
14710 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14711
14712
14713
14714
14715
14716
14717 # If no C compiler was specified, use CC.
14718 LTCC=${LTCC-"$CC"}
14719
14720 # If no C compiler flags were specified, use CFLAGS.
14721 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14722
14723 # Allow CC to be a program name with arguments.
14724 compiler=$CC
14725
14726
14727 # save warnings/boilerplate of simple test code
14728 ac_outfile=conftest.$ac_objext
14729 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14730 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14731 _lt_compiler_boilerplate=`cat conftest.err`
14732 $RM conftest*
14733
14734 ac_outfile=conftest.$ac_objext
14735 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14736 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14737 _lt_linker_boilerplate=`cat conftest.err`
14738 $RM -r conftest*
14739
14740
14741 # Allow CC to be a program name with arguments.
14742 lt_save_CC=$CC
14743 lt_save_CFLAGS=$CFLAGS
14744 lt_save_LD=$LD
14745 lt_save_GCC=$GCC
14746 GCC=$GXX
14747 lt_save_with_gnu_ld=$with_gnu_ld
14748 lt_save_path_LD=$lt_cv_path_LD
14749 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14750 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14751 else
14752 $as_unset lt_cv_prog_gnu_ld
14753 fi
14754 if test -n "${lt_cv_path_LDCXX+set}"; then
14755 lt_cv_path_LD=$lt_cv_path_LDCXX
14756 else
14757 $as_unset lt_cv_path_LD
14758 fi
14759 test -z "${LDCXX+set}" || LD=$LDCXX
14760 CC=${CXX-"c++"}
14761 CFLAGS=$CXXFLAGS
14762 compiler=$CC
14763 compiler_CXX=$CC
14764 func_cc_basename $compiler
14765 cc_basename=$func_cc_basename_result
14766
14767
14768 if test -n "$compiler"; then
14769 # We don't want -fno-exception when compiling C++ code, so set the
14770 # no_builtin_flag separately
14771 if test yes = "$GXX"; then
14772 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14773 else
14774 lt_prog_compiler_no_builtin_flag_CXX=
14775 fi
14776
14777 if test yes = "$GXX"; then
14778 # Set up default GNU C++ configuration
14779
14780
14781
14782 # Check whether --with-gnu-ld was given.
14783 if test ${with_gnu_ld+y}
14784 then :
14785 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14786 else $as_nop
14787 with_gnu_ld=no
14788 fi
14789
14790 ac_prog=ld
14791 if test yes = "$GCC"; then
14792 # Check if gcc -print-prog-name=ld gives a path.
14793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14794 printf %s "checking for ld used by $CC... " >&6; }
14795 case $host in
14796 *-*-mingw*)
14797 # gcc leaves a trailing carriage return, which upsets mingw
14798 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14799 *)
14800 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14801 esac
14802 case $ac_prog in
14803 # Accept absolute paths.
14804 [\\/]* | ?:[\\/]*)
14805 re_direlt='/[^/][^/]*/\.\./'
14806 # Canonicalize the pathname of ld
14807 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14808 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14809 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14810 done
14811 test -z "$LD" && LD=$ac_prog
14812 ;;
14813 "")
14814 # If it fails, then pretend we aren't using GCC.
14815 ac_prog=ld
14816 ;;
14817 *)
14818 # If it is relative, then search for the first ld in PATH.
14819 with_gnu_ld=unknown
14820 ;;
14821 esac
14822 elif test yes = "$with_gnu_ld"; then
14823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14824 printf %s "checking for GNU ld... " >&6; }
14825 else
14826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14827 printf %s "checking for non-GNU ld... " >&6; }
14828 fi
14829 if test ${lt_cv_path_LD+y}
14830 then :
14831 printf %s "(cached) " >&6
14832 else $as_nop
14833 if test -z "$LD"; then
14834 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14835 for ac_dir in $PATH; do
14836 IFS=$lt_save_ifs
14837 test -z "$ac_dir" && ac_dir=.
14838 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14839 lt_cv_path_LD=$ac_dir/$ac_prog
14840 # Check to see if the program is GNU ld. I'd rather use --version,
14841 # but apparently some variants of GNU ld only accept -v.
14842 # Break only if it was the GNU/non-GNU ld that we prefer.
14843 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14844 *GNU* | *'with BFD'*)
14845 test no != "$with_gnu_ld" && break
14846 ;;
14847 *)
14848 test yes != "$with_gnu_ld" && break
14849 ;;
14850 esac
14851 fi
14852 done
14853 IFS=$lt_save_ifs
14854 else
14855 lt_cv_path_LD=$LD # Let the user override the test with a path.
14856 fi
14857 fi
14858
14859 LD=$lt_cv_path_LD
14860 if test -n "$LD"; then
14861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14862 printf "%s\n" "$LD" >&6; }
14863 else
14864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14865 printf "%s\n" "no" >&6; }
14866 fi
14867 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14869 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
14870 if test ${lt_cv_prog_gnu_ld+y}
14871 then :
14872 printf %s "(cached) " >&6
14873 else $as_nop
14874 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14875 case `$LD -v 2>&1 </dev/null` in
14876 *GNU* | *'with BFD'*)
14877 lt_cv_prog_gnu_ld=yes
14878 ;;
14879 *)
14880 lt_cv_prog_gnu_ld=no
14881 ;;
14882 esac
14883 fi
14884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14885 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
14886 with_gnu_ld=$lt_cv_prog_gnu_ld
14887
14888
14889
14890
14891
14892
14893
14894 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14895 # archiving commands below assume that GNU ld is being used.
14896 if test yes = "$with_gnu_ld"; then
14897 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14898 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14899
14900 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14901 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14902
14903 # If archive_cmds runs LD, not CC, wlarc should be empty
14904 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14905 # investigate it a little bit more. (MM)
14906 wlarc='$wl'
14907
14908 # ancient GNU ld didn't support --whole-archive et. al.
14909 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14910 $GREP 'no-whole-archive' > /dev/null; then
14911 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14912 else
14913 whole_archive_flag_spec_CXX=
14914 fi
14915 else
14916 with_gnu_ld=no
14917 wlarc=
14918
14919 # A generic and very simple default shared library creation
14920 # command for GNU C++ for the case where it uses the native
14921 # linker, instead of GNU ld. If possible, this setting should
14922 # overridden to take advantage of the native linker features on
14923 # the platform it is being used on.
14924 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14925 fi
14926
14927 # Commands to make compiler produce verbose output that lists
14928 # what "hidden" libraries, object files and flags are used when
14929 # linking a shared library.
14930 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
14931
14932 else
14933 GXX=no
14934 with_gnu_ld=no
14935 wlarc=
14936 fi
14937
14938 # PORTME: fill in a description of your system's C++ link characteristics
14939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14940 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14941 ld_shlibs_CXX=yes
14942 case $host_os in
14943 aix3*)
14944 # FIXME: insert proper C++ library support
14945 ld_shlibs_CXX=no
14946 ;;
14947 aix[4-9]*)
14948 if test ia64 = "$host_cpu"; then
14949 # On IA64, the linker does run time linking by default, so we don't
14950 # have to do anything special.
14951 aix_use_runtimelinking=no
14952 exp_sym_flag='-Bexport'
14953 no_entry_flag=
14954 else
14955 aix_use_runtimelinking=no
14956
14957 # Test if we are trying to use run time linking or normal
14958 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14959 # have runtime linking enabled, and use it for executables.
14960 # For shared libraries, we enable/disable runtime linking
14961 # depending on the kind of the shared library created -
14962 # when "with_aix_soname,aix_use_runtimelinking" is:
14963 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
14964 # "aix,yes" lib.so shared, rtl:yes, for executables
14965 # lib.a static archive
14966 # "both,no" lib.so.V(shr.o) shared, rtl:yes
14967 # lib.a(lib.so.V) shared, rtl:no, for executables
14968 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14969 # lib.a(lib.so.V) shared, rtl:no
14970 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
14971 # lib.a static archive
14972 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14973 for ld_flag in $LDFLAGS; do
14974 case $ld_flag in
14975 *-brtl*)
14976 aix_use_runtimelinking=yes
14977 break
14978 ;;
14979 esac
14980 done
14981 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14982 # With aix-soname=svr4, we create the lib.so.V shared archives only,
14983 # so we don't have lib.a shared libs to link our executables.
14984 # We have to force runtime linking in this case.
14985 aix_use_runtimelinking=yes
14986 LDFLAGS="$LDFLAGS -Wl,-brtl"
14987 fi
14988 ;;
14989 esac
14990
14991 exp_sym_flag='-bexport'
14992 no_entry_flag='-bnoentry'
14993 fi
14994
14995 # When large executables or shared objects are built, AIX ld can
14996 # have problems creating the table of contents. If linking a library
14997 # or program results in "error TOC overflow" add -mminimal-toc to
14998 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14999 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15000
15001 archive_cmds_CXX=''
15002 hardcode_direct_CXX=yes
15003 hardcode_direct_absolute_CXX=yes
15004 hardcode_libdir_separator_CXX=':'
15005 link_all_deplibs_CXX=yes
15006 file_list_spec_CXX='$wl-f,'
15007 case $with_aix_soname,$aix_use_runtimelinking in
15008 aix,*) ;; # no import file
15009 svr4,* | *,yes) # use import file
15010 # The Import File defines what to hardcode.
15011 hardcode_direct_CXX=no
15012 hardcode_direct_absolute_CXX=no
15013 ;;
15014 esac
15015
15016 if test yes = "$GXX"; then
15017 case $host_os in aix4.[012]|aix4.[012].*)
15018 # We only want to do this on AIX 4.2 and lower, the check
15019 # below for broken collect2 doesn't work under 4.3+
15020 collect2name=`$CC -print-prog-name=collect2`
15021 if test -f "$collect2name" &&
15022 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15023 then
15024 # We have reworked collect2
15025 :
15026 else
15027 # We have old collect2
15028 hardcode_direct_CXX=unsupported
15029 # It fails to find uninstalled libraries when the uninstalled
15030 # path is not listed in the libpath. Setting hardcode_minus_L
15031 # to unsupported forces relinking
15032 hardcode_minus_L_CXX=yes
15033 hardcode_libdir_flag_spec_CXX='-L$libdir'
15034 hardcode_libdir_separator_CXX=
15035 fi
15036 esac
15037 shared_flag='-shared'
15038 if test yes = "$aix_use_runtimelinking"; then
15039 shared_flag=$shared_flag' $wl-G'
15040 fi
15041 # Need to ensure runtime linking is disabled for the traditional
15042 # shared library, or the linker may eventually find shared libraries
15043 # /with/ Import File - we do not want to mix them.
15044 shared_flag_aix='-shared'
15045 shared_flag_svr4='-shared $wl-G'
15046 else
15047 # not using gcc
15048 if test ia64 = "$host_cpu"; then
15049 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15050 # chokes on -Wl,-G. The following line is correct:
15051 shared_flag='-G'
15052 else
15053 if test yes = "$aix_use_runtimelinking"; then
15054 shared_flag='$wl-G'
15055 else
15056 shared_flag='$wl-bM:SRE'
15057 fi
15058 shared_flag_aix='$wl-bM:SRE'
15059 shared_flag_svr4='$wl-G'
15060 fi
15061 fi
15062
15063 export_dynamic_flag_spec_CXX='$wl-bexpall'
15064 # It seems that -bexpall does not export symbols beginning with
15065 # underscore (_), so it is better to generate a list of symbols to
15066 # export.
15067 always_export_symbols_CXX=yes
15068 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15069 # Warning - without using the other runtime loading flags (-brtl),
15070 # -berok will link without error, but may produce a broken library.
15071 # The "-G" linker flag allows undefined symbols.
15072 no_undefined_flag_CXX='-bernotok'
15073 # Determine the default libpath from the value encoded in an empty
15074 # executable.
15075 if test set = "${lt_cv_aix_libpath+set}"; then
15076 aix_libpath=$lt_cv_aix_libpath
15077 else
15078 if test ${lt_cv_aix_libpath__CXX+y}
15079 then :
15080 printf %s "(cached) " >&6
15081 else $as_nop
15082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15083 /* end confdefs.h. */
15084
15085 int
15086 main (void)
15087 {
15088
15089 ;
15090 return 0;
15091 }
15092 _ACEOF
15093 if ac_fn_cxx_try_link "$LINENO"
15094 then :
15095
15096 lt_aix_libpath_sed='
15097 /Import File Strings/,/^$/ {
15098 /^0/ {
15099 s/^0 *\([^ ]*\) *$/\1/
15100 p
15101 }
15102 }'
15103 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15104 # Check for a 64-bit object if we didn't find anything.
15105 if test -z "$lt_cv_aix_libpath__CXX"; then
15106 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15107 fi
15108 fi
15109 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15110 conftest$ac_exeext conftest.$ac_ext
15111 if test -z "$lt_cv_aix_libpath__CXX"; then
15112 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15113 fi
15114
15115 fi
15116
15117 aix_libpath=$lt_cv_aix_libpath__CXX
15118 fi
15119
15120 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15121
15122 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
15123 else
15124 if test ia64 = "$host_cpu"; then
15125 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15126 allow_undefined_flag_CXX="-z nodefs"
15127 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
15128 else
15129 # Determine the default libpath from the value encoded in an
15130 # empty executable.
15131 if test set = "${lt_cv_aix_libpath+set}"; then
15132 aix_libpath=$lt_cv_aix_libpath
15133 else
15134 if test ${lt_cv_aix_libpath__CXX+y}
15135 then :
15136 printf %s "(cached) " >&6
15137 else $as_nop
15138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15139 /* end confdefs.h. */
15140
15141 int
15142 main (void)
15143 {
15144
15145 ;
15146 return 0;
15147 }
15148 _ACEOF
15149 if ac_fn_cxx_try_link "$LINENO"
15150 then :
15151
15152 lt_aix_libpath_sed='
15153 /Import File Strings/,/^$/ {
15154 /^0/ {
15155 s/^0 *\([^ ]*\) *$/\1/
15156 p
15157 }
15158 }'
15159 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15160 # Check for a 64-bit object if we didn't find anything.
15161 if test -z "$lt_cv_aix_libpath__CXX"; then
15162 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15163 fi
15164 fi
15165 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15166 conftest$ac_exeext conftest.$ac_ext
15167 if test -z "$lt_cv_aix_libpath__CXX"; then
15168 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15169 fi
15170
15171 fi
15172
15173 aix_libpath=$lt_cv_aix_libpath__CXX
15174 fi
15175
15176 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15177 # Warning - without using the other run time loading flags,
15178 # -berok will link without error, but may produce a broken library.
15179 no_undefined_flag_CXX=' $wl-bernotok'
15180 allow_undefined_flag_CXX=' $wl-berok'
15181 if test yes = "$with_gnu_ld"; then
15182 # We only use this code for GNU lds that support --whole-archive.
15183 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15184 else
15185 # Exported symbols can be pulled into shared objects from archives
15186 whole_archive_flag_spec_CXX='$convenience'
15187 fi
15188 archive_cmds_need_lc_CXX=yes
15189 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15190 # -brtl affects multiple linker settings, -berok does not and is overridden later
15191 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15192 if test svr4 != "$with_aix_soname"; then
15193 # This is similar to how AIX traditionally builds its shared
15194 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15195 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
15196 fi
15197 if test aix != "$with_aix_soname"; then
15198 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
15199 else
15200 # used by -dlpreopen to get the symbols
15201 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
15202 fi
15203 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15204 fi
15205 fi
15206 ;;
15207
15208 beos*)
15209 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15210 allow_undefined_flag_CXX=unsupported
15211 # Joseph Beckenbach <[email protected]> says some releases of gcc
15212 # support --undefined. This deserves some investigation. FIXME
15213 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15214 else
15215 ld_shlibs_CXX=no
15216 fi
15217 ;;
15218
15219 chorus*)
15220 case $cc_basename in
15221 *)
15222 # FIXME: insert proper C++ library support
15223 ld_shlibs_CXX=no
15224 ;;
15225 esac
15226 ;;
15227
15228 cygwin* | mingw* | pw32* | cegcc*)
15229 case $GXX,$cc_basename in
15230 ,cl* | no,cl*)
15231 # Native MSVC
15232 # hardcode_libdir_flag_spec is actually meaningless, as there is
15233 # no search path for DLLs.
15234 hardcode_libdir_flag_spec_CXX=' '
15235 allow_undefined_flag_CXX=unsupported
15236 always_export_symbols_CXX=yes
15237 file_list_spec_CXX='@'
15238 # Tell ltmain to make .lib files, not .a files.
15239 libext=lib
15240 # Tell ltmain to make .dll files, not .so files.
15241 shrext_cmds=.dll
15242 # FIXME: Setting linknames here is a bad hack.
15243 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15244 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15245 cp "$export_symbols" "$output_objdir/$soname.def";
15246 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15247 else
15248 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15249 fi~
15250 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15251 linknames='
15252 # The linker will not automatically build a static lib if we build a DLL.
15253 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15254 enable_shared_with_static_runtimes_CXX=yes
15255 # Don't use ranlib
15256 old_postinstall_cmds_CXX='chmod 644 $oldlib'
15257 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15258 lt_tool_outputfile="@TOOL_OUTPUT@"~
15259 case $lt_outputfile in
15260 *.exe|*.EXE) ;;
15261 *)
15262 lt_outputfile=$lt_outputfile.exe
15263 lt_tool_outputfile=$lt_tool_outputfile.exe
15264 ;;
15265 esac~
15266 func_to_tool_file "$lt_outputfile"~
15267 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15268 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15269 $RM "$lt_outputfile.manifest";
15270 fi'
15271 ;;
15272 *)
15273 # g++
15274 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15275 # as there is no search path for DLLs.
15276 hardcode_libdir_flag_spec_CXX='-L$libdir'
15277 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15278 allow_undefined_flag_CXX=unsupported
15279 always_export_symbols_CXX=no
15280 enable_shared_with_static_runtimes_CXX=yes
15281
15282 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15283 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15284 # If the export-symbols file already is a .def file, use it as
15285 # is; otherwise, prepend EXPORTS...
15286 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15287 cp $export_symbols $output_objdir/$soname.def;
15288 else
15289 echo EXPORTS > $output_objdir/$soname.def;
15290 cat $export_symbols >> $output_objdir/$soname.def;
15291 fi~
15292 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15293 else
15294 ld_shlibs_CXX=no
15295 fi
15296 ;;
15297 esac
15298 ;;
15299 darwin* | rhapsody*)
15300
15301
15302 archive_cmds_need_lc_CXX=no
15303 hardcode_direct_CXX=no
15304 hardcode_automatic_CXX=yes
15305 hardcode_shlibpath_var_CXX=unsupported
15306 if test yes = "$lt_cv_ld_force_load"; then
15307 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
15308
15309 else
15310 whole_archive_flag_spec_CXX=''
15311 fi
15312 link_all_deplibs_CXX=yes
15313 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15314 case $cc_basename in
15315 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15316 *) _lt_dar_can_shared=$GCC ;;
15317 esac
15318 if test yes = "$_lt_dar_can_shared"; then
15319 output_verbose_link_cmd=func_echo_all
15320 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
15321 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15322 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
15323 module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
15324 if test yes != "$lt_cv_apple_cc_single_mod"; then
15325 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
15326 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
15327 fi
15328
15329 else
15330 ld_shlibs_CXX=no
15331 fi
15332
15333 ;;
15334
15335 os2*)
15336 hardcode_libdir_flag_spec_CXX='-L$libdir'
15337 hardcode_minus_L_CXX=yes
15338 allow_undefined_flag_CXX=unsupported
15339 shrext_cmds=.dll
15340 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15341 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15342 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15343 $ECHO EXPORTS >> $output_objdir/$libname.def~
15344 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15345 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15346 emximp -o $lib $output_objdir/$libname.def'
15347 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15348 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15349 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15350 $ECHO EXPORTS >> $output_objdir/$libname.def~
15351 prefix_cmds="$SED"~
15352 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15353 prefix_cmds="$prefix_cmds -e 1d";
15354 fi~
15355 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15356 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15357 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15358 emximp -o $lib $output_objdir/$libname.def'
15359 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15360 enable_shared_with_static_runtimes_CXX=yes
15361 ;;
15362
15363 dgux*)
15364 case $cc_basename in
15365 ec++*)
15366 # FIXME: insert proper C++ library support
15367 ld_shlibs_CXX=no
15368 ;;
15369 ghcx*)
15370 # Green Hills C++ Compiler
15371 # FIXME: insert proper C++ library support
15372 ld_shlibs_CXX=no
15373 ;;
15374 *)
15375 # FIXME: insert proper C++ library support
15376 ld_shlibs_CXX=no
15377 ;;
15378 esac
15379 ;;
15380
15381 freebsd2.*)
15382 # C++ shared libraries reported to be fairly broken before
15383 # switch to ELF
15384 ld_shlibs_CXX=no
15385 ;;
15386
15387 freebsd-elf*)
15388 archive_cmds_need_lc_CXX=no
15389 ;;
15390
15391 freebsd* | dragonfly*)
15392 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15393 # conventions
15394 ld_shlibs_CXX=yes
15395 ;;
15396
15397 haiku*)
15398 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15399 link_all_deplibs_CXX=yes
15400 ;;
15401
15402 hpux9*)
15403 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15404 hardcode_libdir_separator_CXX=:
15405 export_dynamic_flag_spec_CXX='$wl-E'
15406 hardcode_direct_CXX=yes
15407 hardcode_minus_L_CXX=yes # Not in the search PATH,
15408 # but as the default
15409 # location of the library.
15410
15411 case $cc_basename in
15412 CC*)
15413 # FIXME: insert proper C++ library support
15414 ld_shlibs_CXX=no
15415 ;;
15416 aCC*)
15417 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15418 # Commands to make compiler produce verbose output that lists
15419 # what "hidden" libraries, object files and flags are used when
15420 # linking a shared library.
15421 #
15422 # There doesn't appear to be a way to prevent this compiler from
15423 # explicitly linking system object files so we need to strip them
15424 # from the output so that they don't get included in the library
15425 # dependencies.
15426 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15427 ;;
15428 *)
15429 if test yes = "$GXX"; then
15430 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15431 else
15432 # FIXME: insert proper C++ library support
15433 ld_shlibs_CXX=no
15434 fi
15435 ;;
15436 esac
15437 ;;
15438
15439 hpux10*|hpux11*)
15440 if test no = "$with_gnu_ld"; then
15441 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15442 hardcode_libdir_separator_CXX=:
15443
15444 case $host_cpu in
15445 hppa*64*|ia64*)
15446 ;;
15447 *)
15448 export_dynamic_flag_spec_CXX='$wl-E'
15449 ;;
15450 esac
15451 fi
15452 case $host_cpu in
15453 hppa*64*|ia64*)
15454 hardcode_direct_CXX=no
15455 hardcode_shlibpath_var_CXX=no
15456 ;;
15457 *)
15458 hardcode_direct_CXX=yes
15459 hardcode_direct_absolute_CXX=yes
15460 hardcode_minus_L_CXX=yes # Not in the search PATH,
15461 # but as the default
15462 # location of the library.
15463 ;;
15464 esac
15465
15466 case $cc_basename in
15467 CC*)
15468 # FIXME: insert proper C++ library support
15469 ld_shlibs_CXX=no
15470 ;;
15471 aCC*)
15472 case $host_cpu in
15473 hppa*64*)
15474 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15475 ;;
15476 ia64*)
15477 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15478 ;;
15479 *)
15480 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15481 ;;
15482 esac
15483 # Commands to make compiler produce verbose output that lists
15484 # what "hidden" libraries, object files and flags are used when
15485 # linking a shared library.
15486 #
15487 # There doesn't appear to be a way to prevent this compiler from
15488 # explicitly linking system object files so we need to strip them
15489 # from the output so that they don't get included in the library
15490 # dependencies.
15491 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15492 ;;
15493 *)
15494 if test yes = "$GXX"; then
15495 if test no = "$with_gnu_ld"; then
15496 case $host_cpu in
15497 hppa*64*)
15498 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15499 ;;
15500 ia64*)
15501 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15502 ;;
15503 *)
15504 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15505 ;;
15506 esac
15507 fi
15508 else
15509 # FIXME: insert proper C++ library support
15510 ld_shlibs_CXX=no
15511 fi
15512 ;;
15513 esac
15514 ;;
15515
15516 interix[3-9]*)
15517 hardcode_direct_CXX=no
15518 hardcode_shlibpath_var_CXX=no
15519 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15520 export_dynamic_flag_spec_CXX='$wl-E'
15521 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15522 # Instead, shared libraries are loaded at an image base (0x10000000 by
15523 # default) and relocated if they conflict, which is a slow very memory
15524 # consuming and fragmenting process. To avoid this, we pick a random,
15525 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15526 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15527 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15528 archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15529 ;;
15530 irix5* | irix6*)
15531 case $cc_basename in
15532 CC*)
15533 # SGI C++
15534 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15535
15536 # Archives containing C++ object files must be created using
15537 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15538 # necessary to make sure instantiated templates are included
15539 # in the archive.
15540 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15541 ;;
15542 *)
15543 if test yes = "$GXX"; then
15544 if test no = "$with_gnu_ld"; then
15545 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
15546 else
15547 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
15548 fi
15549 fi
15550 link_all_deplibs_CXX=yes
15551 ;;
15552 esac
15553 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15554 hardcode_libdir_separator_CXX=:
15555 inherit_rpath_CXX=yes
15556 ;;
15557
15558 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15559 case $cc_basename in
15560 KCC*)
15561 # Kuck and Associates, Inc. (KAI) C++ Compiler
15562
15563 # KCC will only create a shared library if the output file
15564 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15565 # to its proper name (with version) after linking.
15566 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15567 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
15568 # Commands to make compiler produce verbose output that lists
15569 # what "hidden" libraries, object files and flags are used when
15570 # linking a shared library.
15571 #
15572 # There doesn't appear to be a way to prevent this compiler from
15573 # explicitly linking system object files so we need to strip them
15574 # from the output so that they don't get included in the library
15575 # dependencies.
15576 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15577
15578 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15579 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15580
15581 # Archives containing C++ object files must be created using
15582 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15583 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15584 ;;
15585 icpc* | ecpc* )
15586 # Intel C++
15587 with_gnu_ld=yes
15588 # version 8.0 and above of icpc choke on multiply defined symbols
15589 # if we add $predep_objects and $postdep_objects, however 7.1 and
15590 # earlier do not add the objects themselves.
15591 case `$CC -V 2>&1` in
15592 *"Version 7."*)
15593 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15594 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15595 ;;
15596 *) # Version 8.0 or newer
15597 tmp_idyn=
15598 case $host_cpu in
15599 ia64*) tmp_idyn=' -i_dynamic';;
15600 esac
15601 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15602 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15603 ;;
15604 esac
15605 archive_cmds_need_lc_CXX=no
15606 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15607 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15608 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15609 ;;
15610 pgCC* | pgcpp*)
15611 # Portland Group C++ compiler
15612 case `$CC -V` in
15613 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15614 prelink_cmds_CXX='tpldir=Template.dir~
15615 rm -rf $tpldir~
15616 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15617 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15618 old_archive_cmds_CXX='tpldir=Template.dir~
15619 rm -rf $tpldir~
15620 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15621 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15622 $RANLIB $oldlib'
15623 archive_cmds_CXX='tpldir=Template.dir~
15624 rm -rf $tpldir~
15625 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15626 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15627 archive_expsym_cmds_CXX='tpldir=Template.dir~
15628 rm -rf $tpldir~
15629 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15630 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15631 ;;
15632 *) # Version 6 and above use weak symbols
15633 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15634 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15635 ;;
15636 esac
15637
15638 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15639 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15640 whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
15641 ;;
15642 cxx*)
15643 # Compaq C++
15644 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15645 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
15646
15647 runpath_var=LD_RUN_PATH
15648 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15649 hardcode_libdir_separator_CXX=:
15650
15651 # Commands to make compiler produce verbose output that lists
15652 # what "hidden" libraries, object files and flags are used when
15653 # linking a shared library.
15654 #
15655 # There doesn't appear to be a way to prevent this compiler from
15656 # explicitly linking system object files so we need to strip them
15657 # from the output so that they don't get included in the library
15658 # dependencies.
15659 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
15660 ;;
15661 xl* | mpixl* | bgxl*)
15662 # IBM XL 8.0 on PPC, with GNU ld
15663 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15664 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15665 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15666 if test yes = "$supports_anon_versioning"; then
15667 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15668 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15669 echo "local: *; };" >> $output_objdir/$libname.ver~
15670 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15671 fi
15672 ;;
15673 *)
15674 case `$CC -V 2>&1 | sed 5q` in
15675 *Sun\ C*)
15676 # Sun C++ 5.9
15677 no_undefined_flag_CXX=' -zdefs'
15678 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15679 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
15680 hardcode_libdir_flag_spec_CXX='-R$libdir'
15681 whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
15682 compiler_needs_object_CXX=yes
15683
15684 # Not sure whether something based on
15685 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15686 # would be better.
15687 output_verbose_link_cmd='func_echo_all'
15688
15689 # Archives containing C++ object files must be created using
15690 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15691 # necessary to make sure instantiated templates are included
15692 # in the archive.
15693 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15694 ;;
15695 esac
15696 ;;
15697 esac
15698 ;;
15699
15700 lynxos*)
15701 # FIXME: insert proper C++ library support
15702 ld_shlibs_CXX=no
15703 ;;
15704
15705 m88k*)
15706 # FIXME: insert proper C++ library support
15707 ld_shlibs_CXX=no
15708 ;;
15709
15710 mvs*)
15711 case $cc_basename in
15712 cxx*)
15713 # FIXME: insert proper C++ library support
15714 ld_shlibs_CXX=no
15715 ;;
15716 *)
15717 # FIXME: insert proper C++ library support
15718 ld_shlibs_CXX=no
15719 ;;
15720 esac
15721 ;;
15722
15723 netbsd*)
15724 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15725 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15726 wlarc=
15727 hardcode_libdir_flag_spec_CXX='-R$libdir'
15728 hardcode_direct_CXX=yes
15729 hardcode_shlibpath_var_CXX=no
15730 fi
15731 # Workaround some broken pre-1.5 toolchains
15732 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15733 ;;
15734
15735 *nto* | *qnx*)
15736 ld_shlibs_CXX=yes
15737 ;;
15738
15739 openbsd* | bitrig*)
15740 if test -f /usr/libexec/ld.so; then
15741 hardcode_direct_CXX=yes
15742 hardcode_shlibpath_var_CXX=no
15743 hardcode_direct_absolute_CXX=yes
15744 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15745 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15746 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15747 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15748 export_dynamic_flag_spec_CXX='$wl-E'
15749 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15750 fi
15751 output_verbose_link_cmd=func_echo_all
15752 else
15753 ld_shlibs_CXX=no
15754 fi
15755 ;;
15756
15757 osf3* | osf4* | osf5*)
15758 case $cc_basename in
15759 KCC*)
15760 # Kuck and Associates, Inc. (KAI) C++ Compiler
15761
15762 # KCC will only create a shared library if the output file
15763 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15764 # to its proper name (with version) after linking.
15765 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15766
15767 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15768 hardcode_libdir_separator_CXX=:
15769
15770 # Archives containing C++ object files must be created using
15771 # the KAI C++ compiler.
15772 case $host in
15773 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15774 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15775 esac
15776 ;;
15777 RCC*)
15778 # Rational C++ 2.4.1
15779 # FIXME: insert proper C++ library support
15780 ld_shlibs_CXX=no
15781 ;;
15782 cxx*)
15783 case $host in
15784 osf3*)
15785 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15786 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15787 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15788 ;;
15789 *)
15790 allow_undefined_flag_CXX=' -expect_unresolved \*'
15791 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15792 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15793 echo "-hidden">> $lib.exp~
15794 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
15795 $RM $lib.exp'
15796 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15797 ;;
15798 esac
15799
15800 hardcode_libdir_separator_CXX=:
15801
15802 # Commands to make compiler produce verbose output that lists
15803 # what "hidden" libraries, object files and flags are used when
15804 # linking a shared library.
15805 #
15806 # There doesn't appear to be a way to prevent this compiler from
15807 # explicitly linking system object files so we need to strip them
15808 # from the output so that they don't get included in the library
15809 # dependencies.
15810 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15811 ;;
15812 *)
15813 if test yes,no = "$GXX,$with_gnu_ld"; then
15814 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15815 case $host in
15816 osf3*)
15817 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
15818 ;;
15819 *)
15820 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
15821 ;;
15822 esac
15823
15824 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15825 hardcode_libdir_separator_CXX=:
15826
15827 # Commands to make compiler produce verbose output that lists
15828 # what "hidden" libraries, object files and flags are used when
15829 # linking a shared library.
15830 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15831
15832 else
15833 # FIXME: insert proper C++ library support
15834 ld_shlibs_CXX=no
15835 fi
15836 ;;
15837 esac
15838 ;;
15839
15840 psos*)
15841 # FIXME: insert proper C++ library support
15842 ld_shlibs_CXX=no
15843 ;;
15844
15845 sunos4*)
15846 case $cc_basename in
15847 CC*)
15848 # Sun C++ 4.x
15849 # FIXME: insert proper C++ library support
15850 ld_shlibs_CXX=no
15851 ;;
15852 lcc*)
15853 # Lucid
15854 # FIXME: insert proper C++ library support
15855 ld_shlibs_CXX=no
15856 ;;
15857 *)
15858 # FIXME: insert proper C++ library support
15859 ld_shlibs_CXX=no
15860 ;;
15861 esac
15862 ;;
15863
15864 solaris*)
15865 case $cc_basename in
15866 CC* | sunCC*)
15867 # Sun C++ 4.2, 5.x and Centerline C++
15868 archive_cmds_need_lc_CXX=yes
15869 no_undefined_flag_CXX=' -zdefs'
15870 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15871 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15872 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15873
15874 hardcode_libdir_flag_spec_CXX='-R$libdir'
15875 hardcode_shlibpath_var_CXX=no
15876 case $host_os in
15877 solaris2.[0-5] | solaris2.[0-5].*) ;;
15878 *)
15879 # The compiler driver will combine and reorder linker options,
15880 # but understands '-z linker_flag'.
15881 # Supported since Solaris 2.6 (maybe 2.5.1?)
15882 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15883 ;;
15884 esac
15885 link_all_deplibs_CXX=yes
15886
15887 output_verbose_link_cmd='func_echo_all'
15888
15889 # Archives containing C++ object files must be created using
15890 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15891 # necessary to make sure instantiated templates are included
15892 # in the archive.
15893 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15894 ;;
15895 gcx*)
15896 # Green Hills C++ Compiler
15897 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15898
15899 # The C++ compiler must be used to create the archive.
15900 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15901 ;;
15902 *)
15903 # GNU C++ compiler with Solaris linker
15904 if test yes,no = "$GXX,$with_gnu_ld"; then
15905 no_undefined_flag_CXX=' $wl-z ${wl}defs'
15906 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15907 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15908 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15909 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15910
15911 # Commands to make compiler produce verbose output that lists
15912 # what "hidden" libraries, object files and flags are used when
15913 # linking a shared library.
15914 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15915 else
15916 # g++ 2.7 appears to require '-G' NOT '-shared' on this
15917 # platform.
15918 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15919 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15920 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15921
15922 # Commands to make compiler produce verbose output that lists
15923 # what "hidden" libraries, object files and flags are used when
15924 # linking a shared library.
15925 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15926 fi
15927
15928 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
15929 case $host_os in
15930 solaris2.[0-5] | solaris2.[0-5].*) ;;
15931 *)
15932 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15933 ;;
15934 esac
15935 fi
15936 ;;
15937 esac
15938 ;;
15939
15940 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15941 no_undefined_flag_CXX='$wl-z,text'
15942 archive_cmds_need_lc_CXX=no
15943 hardcode_shlibpath_var_CXX=no
15944 runpath_var='LD_RUN_PATH'
15945
15946 case $cc_basename in
15947 CC*)
15948 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15949 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15950 ;;
15951 *)
15952 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15953 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15954 ;;
15955 esac
15956 ;;
15957
15958 sysv5* | sco3.2v5* | sco5v6*)
15959 # Note: We CANNOT use -z defs as we might desire, because we do not
15960 # link with -lc, and that would cause any symbols used from libc to
15961 # always be unresolved, which means just about no library would
15962 # ever link correctly. If we're not using GNU ld we use -z text
15963 # though, which does catch some bad symbols but isn't as heavy-handed
15964 # as -z defs.
15965 no_undefined_flag_CXX='$wl-z,text'
15966 allow_undefined_flag_CXX='$wl-z,nodefs'
15967 archive_cmds_need_lc_CXX=no
15968 hardcode_shlibpath_var_CXX=no
15969 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
15970 hardcode_libdir_separator_CXX=':'
15971 link_all_deplibs_CXX=yes
15972 export_dynamic_flag_spec_CXX='$wl-Bexport'
15973 runpath_var='LD_RUN_PATH'
15974
15975 case $cc_basename in
15976 CC*)
15977 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15978 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15979 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15980 '"$old_archive_cmds_CXX"
15981 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15982 '"$reload_cmds_CXX"
15983 ;;
15984 *)
15985 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15986 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15987 ;;
15988 esac
15989 ;;
15990
15991 tandem*)
15992 case $cc_basename in
15993 NCC*)
15994 # NonStop-UX NCC 3.20
15995 # FIXME: insert proper C++ library support
15996 ld_shlibs_CXX=no
15997 ;;
15998 *)
15999 # FIXME: insert proper C++ library support
16000 ld_shlibs_CXX=no
16001 ;;
16002 esac
16003 ;;
16004
16005 vxworks*)
16006 # FIXME: insert proper C++ library support
16007 ld_shlibs_CXX=no
16008 ;;
16009
16010 *)
16011 # FIXME: insert proper C++ library support
16012 ld_shlibs_CXX=no
16013 ;;
16014 esac
16015
16016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16017 printf "%s\n" "$ld_shlibs_CXX" >&6; }
16018 test no = "$ld_shlibs_CXX" && can_build_shared=no
16019
16020 GCC_CXX=$GXX
16021 LD_CXX=$LD
16022
16023 ## CAVEAT EMPTOR:
16024 ## There is no encapsulation within the following macros, do not change
16025 ## the running order or otherwise move them around unless you know exactly
16026 ## what you are doing...
16027 # Dependencies to place before and after the object being linked:
16028 predep_objects_CXX=
16029 postdep_objects_CXX=
16030 predeps_CXX=
16031 postdeps_CXX=
16032 compiler_lib_search_path_CXX=
16033
16034 cat > conftest.$ac_ext <<_LT_EOF
16035 class Foo
16036 {
16037 public:
16038 Foo (void) { a = 0; }
16039 private:
16040 int a;
16041 };
16042 _LT_EOF
16043
16044
16045 _lt_libdeps_save_CFLAGS=$CFLAGS
16046 case "$CC $CFLAGS " in #(
16047 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16048 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16049 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16050 esac
16051
16052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16053 (eval $ac_compile) 2>&5
16054 ac_status=$?
16055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16056 test $ac_status = 0; }; then
16057 # Parse the compiler output and extract the necessary
16058 # objects, libraries and library flags.
16059
16060 # Sentinel used to keep track of whether or not we are before
16061 # the conftest object file.
16062 pre_test_object_deps_done=no
16063
16064 for p in `eval "$output_verbose_link_cmd"`; do
16065 case $prev$p in
16066
16067 -L* | -R* | -l*)
16068 # Some compilers place space between "-{L,R}" and the path.
16069 # Remove the space.
16070 if test x-L = "$p" ||
16071 test x-R = "$p"; then
16072 prev=$p
16073 continue
16074 fi
16075
16076 # Expand the sysroot to ease extracting the directories later.
16077 if test -z "$prev"; then
16078 case $p in
16079 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16080 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16081 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16082 esac
16083 fi
16084 case $p in
16085 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16086 esac
16087 if test no = "$pre_test_object_deps_done"; then
16088 case $prev in
16089 -L | -R)
16090 # Internal compiler library paths should come after those
16091 # provided the user. The postdeps already come after the
16092 # user supplied libs so there is no need to process them.
16093 if test -z "$compiler_lib_search_path_CXX"; then
16094 compiler_lib_search_path_CXX=$prev$p
16095 else
16096 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16097 fi
16098 ;;
16099 # The "-l" case would never come before the object being
16100 # linked, so don't bother handling this case.
16101 esac
16102 else
16103 if test -z "$postdeps_CXX"; then
16104 postdeps_CXX=$prev$p
16105 else
16106 postdeps_CXX="${postdeps_CXX} $prev$p"
16107 fi
16108 fi
16109 prev=
16110 ;;
16111
16112 *.lto.$objext) ;; # Ignore GCC LTO objects
16113 *.$objext)
16114 # This assumes that the test object file only shows up
16115 # once in the compiler output.
16116 if test "$p" = "conftest.$objext"; then
16117 pre_test_object_deps_done=yes
16118 continue
16119 fi
16120
16121 if test no = "$pre_test_object_deps_done"; then
16122 if test -z "$predep_objects_CXX"; then
16123 predep_objects_CXX=$p
16124 else
16125 predep_objects_CXX="$predep_objects_CXX $p"
16126 fi
16127 else
16128 if test -z "$postdep_objects_CXX"; then
16129 postdep_objects_CXX=$p
16130 else
16131 postdep_objects_CXX="$postdep_objects_CXX $p"
16132 fi
16133 fi
16134 ;;
16135
16136 *) ;; # Ignore the rest.
16137
16138 esac
16139 done
16140
16141 # Clean up.
16142 rm -f a.out a.exe
16143 else
16144 echo "libtool.m4: error: problem compiling CXX test program"
16145 fi
16146
16147 $RM -f confest.$objext
16148 CFLAGS=$_lt_libdeps_save_CFLAGS
16149
16150 # PORTME: override above test on systems where it is broken
16151 case $host_os in
16152 interix[3-9]*)
16153 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16154 # hack all around it, let's just trust "g++" to DTRT.
16155 predep_objects_CXX=
16156 postdep_objects_CXX=
16157 postdeps_CXX=
16158 ;;
16159 esac
16160
16161
16162 case " $postdeps_CXX " in
16163 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16164 esac
16165 compiler_lib_search_dirs_CXX=
16166 if test -n "${compiler_lib_search_path_CXX}"; then
16167 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16168 fi
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200 lt_prog_compiler_wl_CXX=
16201 lt_prog_compiler_pic_CXX=
16202 lt_prog_compiler_static_CXX=
16203
16204
16205 # C++ specific cases for pic, static, wl, etc.
16206 if test yes = "$GXX"; then
16207 lt_prog_compiler_wl_CXX='-Wl,'
16208 lt_prog_compiler_static_CXX='-static'
16209
16210 case $host_os in
16211 aix*)
16212 # All AIX code is PIC.
16213 if test ia64 = "$host_cpu"; then
16214 # AIX 5 now supports IA64 processor
16215 lt_prog_compiler_static_CXX='-Bstatic'
16216 fi
16217 lt_prog_compiler_pic_CXX='-fPIC'
16218 ;;
16219
16220 amigaos*)
16221 case $host_cpu in
16222 powerpc)
16223 # see comment about AmigaOS4 .so support
16224 lt_prog_compiler_pic_CXX='-fPIC'
16225 ;;
16226 m68k)
16227 # FIXME: we need at least 68020 code to build shared libraries, but
16228 # adding the '-m68020' flag to GCC prevents building anything better,
16229 # like '-m68040'.
16230 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16231 ;;
16232 esac
16233 ;;
16234
16235 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16236 # PIC is the default for these OSes.
16237 ;;
16238 mingw* | cygwin* | os2* | pw32* | cegcc*)
16239 # This hack is so that the source file can tell whether it is being
16240 # built for inclusion in a dll (and should export symbols for example).
16241 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16242 # (--disable-auto-import) libraries
16243 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16244 case $host_os in
16245 os2*)
16246 lt_prog_compiler_static_CXX='$wl-static'
16247 ;;
16248 esac
16249 ;;
16250 darwin* | rhapsody*)
16251 # PIC is the default on this platform
16252 # Common symbols not allowed in MH_DYLIB files
16253 lt_prog_compiler_pic_CXX='-fno-common'
16254 ;;
16255 *djgpp*)
16256 # DJGPP does not support shared libraries at all
16257 lt_prog_compiler_pic_CXX=
16258 ;;
16259 haiku*)
16260 # PIC is the default for Haiku.
16261 # The "-static" flag exists, but is broken.
16262 lt_prog_compiler_static_CXX=
16263 ;;
16264 interix[3-9]*)
16265 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16266 # Instead, we relocate shared libraries at runtime.
16267 ;;
16268 sysv4*MP*)
16269 if test -d /usr/nec; then
16270 lt_prog_compiler_pic_CXX=-Kconform_pic
16271 fi
16272 ;;
16273 hpux*)
16274 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16275 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16276 # sets the default TLS model and affects inlining.
16277 case $host_cpu in
16278 hppa*64*)
16279 ;;
16280 *)
16281 lt_prog_compiler_pic_CXX='-fPIC'
16282 ;;
16283 esac
16284 ;;
16285 *qnx* | *nto*)
16286 # QNX uses GNU C++, but need to define -shared option too, otherwise
16287 # it will coredump.
16288 lt_prog_compiler_pic_CXX='-fPIC -shared'
16289 ;;
16290 *)
16291 lt_prog_compiler_pic_CXX='-fPIC'
16292 ;;
16293 esac
16294 else
16295 case $host_os in
16296 aix[4-9]*)
16297 # All AIX code is PIC.
16298 if test ia64 = "$host_cpu"; then
16299 # AIX 5 now supports IA64 processor
16300 lt_prog_compiler_static_CXX='-Bstatic'
16301 else
16302 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16303 fi
16304 ;;
16305 chorus*)
16306 case $cc_basename in
16307 cxch68*)
16308 # Green Hills C++ Compiler
16309 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
16310 ;;
16311 esac
16312 ;;
16313 mingw* | cygwin* | os2* | pw32* | cegcc*)
16314 # This hack is so that the source file can tell whether it is being
16315 # built for inclusion in a dll (and should export symbols for example).
16316 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16317 ;;
16318 dgux*)
16319 case $cc_basename in
16320 ec++*)
16321 lt_prog_compiler_pic_CXX='-KPIC'
16322 ;;
16323 ghcx*)
16324 # Green Hills C++ Compiler
16325 lt_prog_compiler_pic_CXX='-pic'
16326 ;;
16327 *)
16328 ;;
16329 esac
16330 ;;
16331 freebsd* | dragonfly*)
16332 # FreeBSD uses GNU C++
16333 ;;
16334 hpux9* | hpux10* | hpux11*)
16335 case $cc_basename in
16336 CC*)
16337 lt_prog_compiler_wl_CXX='-Wl,'
16338 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16339 if test ia64 != "$host_cpu"; then
16340 lt_prog_compiler_pic_CXX='+Z'
16341 fi
16342 ;;
16343 aCC*)
16344 lt_prog_compiler_wl_CXX='-Wl,'
16345 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16346 case $host_cpu in
16347 hppa*64*|ia64*)
16348 # +Z the default
16349 ;;
16350 *)
16351 lt_prog_compiler_pic_CXX='+Z'
16352 ;;
16353 esac
16354 ;;
16355 *)
16356 ;;
16357 esac
16358 ;;
16359 interix*)
16360 # This is c89, which is MS Visual C++ (no shared libs)
16361 # Anyone wants to do a port?
16362 ;;
16363 irix5* | irix6* | nonstopux*)
16364 case $cc_basename in
16365 CC*)
16366 lt_prog_compiler_wl_CXX='-Wl,'
16367 lt_prog_compiler_static_CXX='-non_shared'
16368 # CC pic flag -KPIC is the default.
16369 ;;
16370 *)
16371 ;;
16372 esac
16373 ;;
16374 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16375 case $cc_basename in
16376 KCC*)
16377 # KAI C++ Compiler
16378 lt_prog_compiler_wl_CXX='--backend -Wl,'
16379 lt_prog_compiler_pic_CXX='-fPIC'
16380 ;;
16381 ecpc* )
16382 # old Intel C++ for x86_64, which still supported -KPIC.
16383 lt_prog_compiler_wl_CXX='-Wl,'
16384 lt_prog_compiler_pic_CXX='-KPIC'
16385 lt_prog_compiler_static_CXX='-static'
16386 ;;
16387 icpc* )
16388 # Intel C++, used to be incompatible with GCC.
16389 # ICC 10 doesn't accept -KPIC any more.
16390 lt_prog_compiler_wl_CXX='-Wl,'
16391 lt_prog_compiler_pic_CXX='-fPIC'
16392 lt_prog_compiler_static_CXX='-static'
16393 ;;
16394 pgCC* | pgcpp*)
16395 # Portland Group C++ compiler
16396 lt_prog_compiler_wl_CXX='-Wl,'
16397 lt_prog_compiler_pic_CXX='-fpic'
16398 lt_prog_compiler_static_CXX='-Bstatic'
16399 ;;
16400 cxx*)
16401 # Compaq C++
16402 # Make sure the PIC flag is empty. It appears that all Alpha
16403 # Linux and Compaq Tru64 Unix objects are PIC.
16404 lt_prog_compiler_pic_CXX=
16405 lt_prog_compiler_static_CXX='-non_shared'
16406 ;;
16407 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16408 # IBM XL 8.0, 9.0 on PPC and BlueGene
16409 lt_prog_compiler_wl_CXX='-Wl,'
16410 lt_prog_compiler_pic_CXX='-qpic'
16411 lt_prog_compiler_static_CXX='-qstaticlink'
16412 ;;
16413 *)
16414 case `$CC -V 2>&1 | sed 5q` in
16415 *Sun\ C*)
16416 # Sun C++ 5.9
16417 lt_prog_compiler_pic_CXX='-KPIC'
16418 lt_prog_compiler_static_CXX='-Bstatic'
16419 lt_prog_compiler_wl_CXX='-Qoption ld '
16420 ;;
16421 esac
16422 ;;
16423 esac
16424 ;;
16425 lynxos*)
16426 ;;
16427 m88k*)
16428 ;;
16429 mvs*)
16430 case $cc_basename in
16431 cxx*)
16432 lt_prog_compiler_pic_CXX='-W c,exportall'
16433 ;;
16434 *)
16435 ;;
16436 esac
16437 ;;
16438 netbsd* | netbsdelf*-gnu)
16439 ;;
16440 *qnx* | *nto*)
16441 # QNX uses GNU C++, but need to define -shared option too, otherwise
16442 # it will coredump.
16443 lt_prog_compiler_pic_CXX='-fPIC -shared'
16444 ;;
16445 osf3* | osf4* | osf5*)
16446 case $cc_basename in
16447 KCC*)
16448 lt_prog_compiler_wl_CXX='--backend -Wl,'
16449 ;;
16450 RCC*)
16451 # Rational C++ 2.4.1
16452 lt_prog_compiler_pic_CXX='-pic'
16453 ;;
16454 cxx*)
16455 # Digital/Compaq C++
16456 lt_prog_compiler_wl_CXX='-Wl,'
16457 # Make sure the PIC flag is empty. It appears that all Alpha
16458 # Linux and Compaq Tru64 Unix objects are PIC.
16459 lt_prog_compiler_pic_CXX=
16460 lt_prog_compiler_static_CXX='-non_shared'
16461 ;;
16462 *)
16463 ;;
16464 esac
16465 ;;
16466 psos*)
16467 ;;
16468 solaris*)
16469 case $cc_basename in
16470 CC* | sunCC*)
16471 # Sun C++ 4.2, 5.x and Centerline C++
16472 lt_prog_compiler_pic_CXX='-KPIC'
16473 lt_prog_compiler_static_CXX='-Bstatic'
16474 lt_prog_compiler_wl_CXX='-Qoption ld '
16475 ;;
16476 gcx*)
16477 # Green Hills C++ Compiler
16478 lt_prog_compiler_pic_CXX='-PIC'
16479 ;;
16480 *)
16481 ;;
16482 esac
16483 ;;
16484 sunos4*)
16485 case $cc_basename in
16486 CC*)
16487 # Sun C++ 4.x
16488 lt_prog_compiler_pic_CXX='-pic'
16489 lt_prog_compiler_static_CXX='-Bstatic'
16490 ;;
16491 lcc*)
16492 # Lucid
16493 lt_prog_compiler_pic_CXX='-pic'
16494 ;;
16495 *)
16496 ;;
16497 esac
16498 ;;
16499 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16500 case $cc_basename in
16501 CC*)
16502 lt_prog_compiler_wl_CXX='-Wl,'
16503 lt_prog_compiler_pic_CXX='-KPIC'
16504 lt_prog_compiler_static_CXX='-Bstatic'
16505 ;;
16506 esac
16507 ;;
16508 tandem*)
16509 case $cc_basename in
16510 NCC*)
16511 # NonStop-UX NCC 3.20
16512 lt_prog_compiler_pic_CXX='-KPIC'
16513 ;;
16514 *)
16515 ;;
16516 esac
16517 ;;
16518 vxworks*)
16519 ;;
16520 *)
16521 lt_prog_compiler_can_build_shared_CXX=no
16522 ;;
16523 esac
16524 fi
16525
16526 case $host_os in
16527 # For platforms that do not support PIC, -DPIC is meaningless:
16528 *djgpp*)
16529 lt_prog_compiler_pic_CXX=
16530 ;;
16531 *)
16532 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16533 ;;
16534 esac
16535
16536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16537 printf %s "checking for $compiler option to produce PIC... " >&6; }
16538 if test ${lt_cv_prog_compiler_pic_CXX+y}
16539 then :
16540 printf %s "(cached) " >&6
16541 else $as_nop
16542 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16543 fi
16544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16545 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
16546 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16547
16548 #
16549 # Check to make sure the PIC flag actually works.
16550 #
16551 if test -n "$lt_prog_compiler_pic_CXX"; then
16552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16553 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16554 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
16555 then :
16556 printf %s "(cached) " >&6
16557 else $as_nop
16558 lt_cv_prog_compiler_pic_works_CXX=no
16559 ac_outfile=conftest.$ac_objext
16560 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16561 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
16562 # Insert the option either (1) after the last *FLAGS variable, or
16563 # (2) before a word containing "conftest.", or (3) at the end.
16564 # Note that $ac_compile itself does not contain backslashes and begins
16565 # with a dollar sign (not a hyphen), so the echo should work correctly.
16566 # The option is referenced via a variable to avoid confusing sed.
16567 lt_compile=`echo "$ac_compile" | $SED \
16568 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16569 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16570 -e 's:$: $lt_compiler_flag:'`
16571 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16572 (eval "$lt_compile" 2>conftest.err)
16573 ac_status=$?
16574 cat conftest.err >&5
16575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576 if (exit $ac_status) && test -s "$ac_outfile"; then
16577 # The compiler can only warn and ignore the option if not recognized
16578 # So say no if there are warnings other than the usual output.
16579 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16580 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16581 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16582 lt_cv_prog_compiler_pic_works_CXX=yes
16583 fi
16584 fi
16585 $RM conftest*
16586
16587 fi
16588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16589 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16590
16591 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16592 case $lt_prog_compiler_pic_CXX in
16593 "" | " "*) ;;
16594 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16595 esac
16596 else
16597 lt_prog_compiler_pic_CXX=
16598 lt_prog_compiler_can_build_shared_CXX=no
16599 fi
16600
16601 fi
16602
16603
16604
16605
16606
16607 #
16608 # Check to make sure the static flag actually works.
16609 #
16610 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16612 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16613 if test ${lt_cv_prog_compiler_static_works_CXX+y}
16614 then :
16615 printf %s "(cached) " >&6
16616 else $as_nop
16617 lt_cv_prog_compiler_static_works_CXX=no
16618 save_LDFLAGS=$LDFLAGS
16619 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16620 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16621 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16622 # The linker can only warn and ignore the option if not recognized
16623 # So say no if there are warnings
16624 if test -s conftest.err; then
16625 # Append any errors to the config.log.
16626 cat conftest.err 1>&5
16627 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16628 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16629 if diff conftest.exp conftest.er2 >/dev/null; then
16630 lt_cv_prog_compiler_static_works_CXX=yes
16631 fi
16632 else
16633 lt_cv_prog_compiler_static_works_CXX=yes
16634 fi
16635 fi
16636 $RM -r conftest*
16637 LDFLAGS=$save_LDFLAGS
16638
16639 fi
16640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16641 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16642
16643 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16644 :
16645 else
16646 lt_prog_compiler_static_CXX=
16647 fi
16648
16649
16650
16651
16652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16653 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16654 if test ${lt_cv_prog_compiler_c_o_CXX+y}
16655 then :
16656 printf %s "(cached) " >&6
16657 else $as_nop
16658 lt_cv_prog_compiler_c_o_CXX=no
16659 $RM -r conftest 2>/dev/null
16660 mkdir conftest
16661 cd conftest
16662 mkdir out
16663 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16664
16665 lt_compiler_flag="-o out/conftest2.$ac_objext"
16666 # Insert the option either (1) after the last *FLAGS variable, or
16667 # (2) before a word containing "conftest.", or (3) at the end.
16668 # Note that $ac_compile itself does not contain backslashes and begins
16669 # with a dollar sign (not a hyphen), so the echo should work correctly.
16670 lt_compile=`echo "$ac_compile" | $SED \
16671 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16672 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16673 -e 's:$: $lt_compiler_flag:'`
16674 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16675 (eval "$lt_compile" 2>out/conftest.err)
16676 ac_status=$?
16677 cat out/conftest.err >&5
16678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16680 then
16681 # The compiler can only warn and ignore the option if not recognized
16682 # So say no if there are warnings
16683 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16684 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16685 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16686 lt_cv_prog_compiler_c_o_CXX=yes
16687 fi
16688 fi
16689 chmod u+w . 2>&5
16690 $RM conftest*
16691 # SGI C++ compiler will create directory out/ii_files/ for
16692 # template instantiation
16693 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16694 $RM out/* && rmdir out
16695 cd ..
16696 $RM -r conftest
16697 $RM conftest*
16698
16699 fi
16700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16701 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16702
16703
16704
16705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16706 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16707 if test ${lt_cv_prog_compiler_c_o_CXX+y}
16708 then :
16709 printf %s "(cached) " >&6
16710 else $as_nop
16711 lt_cv_prog_compiler_c_o_CXX=no
16712 $RM -r conftest 2>/dev/null
16713 mkdir conftest
16714 cd conftest
16715 mkdir out
16716 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16717
16718 lt_compiler_flag="-o out/conftest2.$ac_objext"
16719 # Insert the option either (1) after the last *FLAGS variable, or
16720 # (2) before a word containing "conftest.", or (3) at the end.
16721 # Note that $ac_compile itself does not contain backslashes and begins
16722 # with a dollar sign (not a hyphen), so the echo should work correctly.
16723 lt_compile=`echo "$ac_compile" | $SED \
16724 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16726 -e 's:$: $lt_compiler_flag:'`
16727 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16728 (eval "$lt_compile" 2>out/conftest.err)
16729 ac_status=$?
16730 cat out/conftest.err >&5
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16733 then
16734 # The compiler can only warn and ignore the option if not recognized
16735 # So say no if there are warnings
16736 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16737 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16738 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16739 lt_cv_prog_compiler_c_o_CXX=yes
16740 fi
16741 fi
16742 chmod u+w . 2>&5
16743 $RM conftest*
16744 # SGI C++ compiler will create directory out/ii_files/ for
16745 # template instantiation
16746 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16747 $RM out/* && rmdir out
16748 cd ..
16749 $RM -r conftest
16750 $RM conftest*
16751
16752 fi
16753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16754 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16755
16756
16757
16758
16759 hard_links=nottested
16760 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16761 # do not overwrite the value of need_locks provided by the user
16762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16763 printf %s "checking if we can lock with hard links... " >&6; }
16764 hard_links=yes
16765 $RM conftest*
16766 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16767 touch conftest.a
16768 ln conftest.a conftest.b 2>&5 || hard_links=no
16769 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16771 printf "%s\n" "$hard_links" >&6; }
16772 if test no = "$hard_links"; then
16773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16774 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16775 need_locks=warn
16776 fi
16777 else
16778 need_locks=no
16779 fi
16780
16781
16782
16783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16784 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16785
16786 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16787 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16788 case $host_os in
16789 aix[4-9]*)
16790 # If we're using GNU nm, then we don't want the "-C" option.
16791 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16792 # Without the "-l" option, or with the "-B" option, AIX nm treats
16793 # weak defined symbols like other global defined symbols, whereas
16794 # GNU nm marks them as "W".
16795 # While the 'weak' keyword is ignored in the Export File, we need
16796 # it in the Import File for the 'aix-soname' feature, so we have
16797 # to replace the "-B" option with "-P" for AIX nm.
16798 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16799 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
16800 else
16801 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
16802 fi
16803 ;;
16804 pw32*)
16805 export_symbols_cmds_CXX=$ltdll_cmds
16806 ;;
16807 cygwin* | mingw* | cegcc*)
16808 case $cc_basename in
16809 cl*)
16810 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16811 ;;
16812 *)
16813 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
16814 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16815 ;;
16816 esac
16817 ;;
16818 linux* | k*bsd*-gnu | gnu*)
16819 link_all_deplibs_CXX=no
16820 ;;
16821 *)
16822 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16823 ;;
16824 esac
16825
16826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16827 printf "%s\n" "$ld_shlibs_CXX" >&6; }
16828 test no = "$ld_shlibs_CXX" && can_build_shared=no
16829
16830 with_gnu_ld_CXX=$with_gnu_ld
16831
16832
16833
16834
16835
16836
16837 #
16838 # Do we need to explicitly link libc?
16839 #
16840 case "x$archive_cmds_need_lc_CXX" in
16841 x|xyes)
16842 # Assume -lc should be added
16843 archive_cmds_need_lc_CXX=yes
16844
16845 if test yes,yes = "$GCC,$enable_shared"; then
16846 case $archive_cmds_CXX in
16847 *'~'*)
16848 # FIXME: we may have to deal with multi-command sequences.
16849 ;;
16850 '$CC '*)
16851 # Test whether the compiler implicitly links with -lc since on some
16852 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16853 # to ld, don't add -lc before -lgcc.
16854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16855 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
16856 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
16857 then :
16858 printf %s "(cached) " >&6
16859 else $as_nop
16860 $RM conftest*
16861 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16862
16863 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16864 (eval $ac_compile) 2>&5
16865 ac_status=$?
16866 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16867 test $ac_status = 0; } 2>conftest.err; then
16868 soname=conftest
16869 lib=conftest
16870 libobjs=conftest.$ac_objext
16871 deplibs=
16872 wl=$lt_prog_compiler_wl_CXX
16873 pic_flag=$lt_prog_compiler_pic_CXX
16874 compiler_flags=-v
16875 linker_flags=-v
16876 verstring=
16877 output_objdir=.
16878 libname=conftest
16879 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16880 allow_undefined_flag_CXX=
16881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16882 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16883 ac_status=$?
16884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16885 test $ac_status = 0; }
16886 then
16887 lt_cv_archive_cmds_need_lc_CXX=no
16888 else
16889 lt_cv_archive_cmds_need_lc_CXX=yes
16890 fi
16891 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16892 else
16893 cat conftest.err 1>&5
16894 fi
16895 $RM conftest*
16896
16897 fi
16898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16899 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16900 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16901 ;;
16902 esac
16903 fi
16904 ;;
16905 esac
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16969 printf %s "checking dynamic linker characteristics... " >&6; }
16970
16971 library_names_spec=
16972 libname_spec='lib$name'
16973 soname_spec=
16974 shrext_cmds=.so
16975 postinstall_cmds=
16976 postuninstall_cmds=
16977 finish_cmds=
16978 finish_eval=
16979 shlibpath_var=
16980 shlibpath_overrides_runpath=unknown
16981 version_type=none
16982 dynamic_linker="$host_os ld.so"
16983 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16984 need_lib_prefix=unknown
16985 hardcode_into_libs=no
16986
16987 # when you set need_version to no, make sure it does not cause -set_version
16988 # flags to be left without arguments
16989 need_version=unknown
16990
16991
16992
16993 case $host_os in
16994 aix3*)
16995 version_type=linux # correct to gnu/linux during the next big refactor
16996 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16997 shlibpath_var=LIBPATH
16998
16999 # AIX 3 has no versioning support, so we append a major version to the name.
17000 soname_spec='$libname$release$shared_ext$major'
17001 ;;
17002
17003 aix[4-9]*)
17004 version_type=linux # correct to gnu/linux during the next big refactor
17005 need_lib_prefix=no
17006 need_version=no
17007 hardcode_into_libs=yes
17008 if test ia64 = "$host_cpu"; then
17009 # AIX 5 supports IA64
17010 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17011 shlibpath_var=LD_LIBRARY_PATH
17012 else
17013 # With GCC up to 2.95.x, collect2 would create an import file
17014 # for dependence libraries. The import file would start with
17015 # the line '#! .'. This would cause the generated library to
17016 # depend on '.', always an invalid library. This was fixed in
17017 # development snapshots of GCC prior to 3.0.
17018 case $host_os in
17019 aix4 | aix4.[01] | aix4.[01].*)
17020 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17021 echo ' yes '
17022 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17023 :
17024 else
17025 can_build_shared=no
17026 fi
17027 ;;
17028 esac
17029 # Using Import Files as archive members, it is possible to support
17030 # filename-based versioning of shared library archives on AIX. While
17031 # this would work for both with and without runtime linking, it will
17032 # prevent static linking of such archives. So we do filename-based
17033 # shared library versioning with .so extension only, which is used
17034 # when both runtime linking and shared linking is enabled.
17035 # Unfortunately, runtime linking may impact performance, so we do
17036 # not want this to be the default eventually. Also, we use the
17037 # versioned .so libs for executables only if there is the -brtl
17038 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17039 # To allow for filename-based versioning support, we need to create
17040 # libNAME.so.V as an archive file, containing:
17041 # *) an Import File, referring to the versioned filename of the
17042 # archive as well as the shared archive member, telling the
17043 # bitwidth (32 or 64) of that shared object, and providing the
17044 # list of exported symbols of that shared object, eventually
17045 # decorated with the 'weak' keyword
17046 # *) the shared object with the F_LOADONLY flag set, to really avoid
17047 # it being seen by the linker.
17048 # At run time we better use the real file rather than another symlink,
17049 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17050
17051 case $with_aix_soname,$aix_use_runtimelinking in
17052 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17053 # soname into executable. Probably we can add versioning support to
17054 # collect2, so additional links can be useful in future.
17055 aix,yes) # traditional libtool
17056 dynamic_linker='AIX unversionable lib.so'
17057 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17058 # instead of lib<name>.a to let people know that these are not
17059 # typical AIX shared libraries.
17060 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17061 ;;
17062 aix,no) # traditional AIX only
17063 dynamic_linker='AIX lib.a(lib.so.V)'
17064 # We preserve .a as extension for shared libraries through AIX4.2
17065 # and later when we are not doing run time linking.
17066 library_names_spec='$libname$release.a $libname.a'
17067 soname_spec='$libname$release$shared_ext$major'
17068 ;;
17069 svr4,*) # full svr4 only
17070 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17071 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17072 # We do not specify a path in Import Files, so LIBPATH fires.
17073 shlibpath_overrides_runpath=yes
17074 ;;
17075 *,yes) # both, prefer svr4
17076 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17077 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17078 # unpreferred sharedlib libNAME.a needs extra handling
17079 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
17080 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
17081 # We do not specify a path in Import Files, so LIBPATH fires.
17082 shlibpath_overrides_runpath=yes
17083 ;;
17084 *,no) # both, prefer aix
17085 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17086 library_names_spec='$libname$release.a $libname.a'
17087 soname_spec='$libname$release$shared_ext$major'
17088 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17089 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
17090 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
17091 ;;
17092 esac
17093 shlibpath_var=LIBPATH
17094 fi
17095 ;;
17096
17097 amigaos*)
17098 case $host_cpu in
17099 powerpc)
17100 # Since July 2007 AmigaOS4 officially supports .so libraries.
17101 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17102 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17103 ;;
17104 m68k)
17105 library_names_spec='$libname.ixlibrary $libname.a'
17106 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17107 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17108 ;;
17109 esac
17110 ;;
17111
17112 beos*)
17113 library_names_spec='$libname$shared_ext'
17114 dynamic_linker="$host_os ld.so"
17115 shlibpath_var=LIBRARY_PATH
17116 ;;
17117
17118 bsdi[45]*)
17119 version_type=linux # correct to gnu/linux during the next big refactor
17120 need_version=no
17121 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17122 soname_spec='$libname$release$shared_ext$major'
17123 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17124 shlibpath_var=LD_LIBRARY_PATH
17125 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17126 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17127 # the default ld.so.conf also contains /usr/contrib/lib and
17128 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17129 # libtool to hard-code these into programs
17130 ;;
17131
17132 cygwin* | mingw* | pw32* | cegcc*)
17133 version_type=windows
17134 shrext_cmds=.dll
17135 need_version=no
17136 need_lib_prefix=no
17137
17138 case $GCC,$cc_basename in
17139 yes,*)
17140 # gcc
17141 library_names_spec='$libname.dll.a'
17142 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17143 postinstall_cmds='base_file=`basename \$file`~
17144 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17145 dldir=$destdir/`dirname \$dlpath`~
17146 test -d \$dldir || mkdir -p \$dldir~
17147 $install_prog $dir/$dlname \$dldir/$dlname~
17148 chmod a+x \$dldir/$dlname~
17149 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17150 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17151 fi'
17152 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17153 dlpath=$dir/\$dldll~
17154 $RM \$dlpath'
17155 shlibpath_overrides_runpath=yes
17156
17157 case $host_os in
17158 cygwin*)
17159 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17160 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17161
17162 ;;
17163 mingw* | cegcc*)
17164 # MinGW DLLs use traditional 'lib' prefix
17165 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17166 ;;
17167 pw32*)
17168 # pw32 DLLs use 'pw' prefix rather than 'lib'
17169 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17170 ;;
17171 esac
17172 dynamic_linker='Win32 ld.exe'
17173 ;;
17174
17175 *,cl*)
17176 # Native MSVC
17177 libname_spec='$name'
17178 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17179 library_names_spec='$libname.dll.lib'
17180
17181 case $build_os in
17182 mingw*)
17183 sys_lib_search_path_spec=
17184 lt_save_ifs=$IFS
17185 IFS=';'
17186 for lt_path in $LIB
17187 do
17188 IFS=$lt_save_ifs
17189 # Let DOS variable expansion print the short 8.3 style file name.
17190 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17191 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17192 done
17193 IFS=$lt_save_ifs
17194 # Convert to MSYS style.
17195 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17196 ;;
17197 cygwin*)
17198 # Convert to unix form, then to dos form, then back to unix form
17199 # but this time dos style (no spaces!) so that the unix form looks
17200 # like /cygdrive/c/PROGRA~1:/cygdr...
17201 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17202 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17203 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17204 ;;
17205 *)
17206 sys_lib_search_path_spec=$LIB
17207 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17208 # It is most probably a Windows format PATH.
17209 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17210 else
17211 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17212 fi
17213 # FIXME: find the short name or the path components, as spaces are
17214 # common. (e.g. "Program Files" -> "PROGRA~1")
17215 ;;
17216 esac
17217
17218 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17219 postinstall_cmds='base_file=`basename \$file`~
17220 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17221 dldir=$destdir/`dirname \$dlpath`~
17222 test -d \$dldir || mkdir -p \$dldir~
17223 $install_prog $dir/$dlname \$dldir/$dlname'
17224 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17225 dlpath=$dir/\$dldll~
17226 $RM \$dlpath'
17227 shlibpath_overrides_runpath=yes
17228 dynamic_linker='Win32 link.exe'
17229 ;;
17230
17231 *)
17232 # Assume MSVC wrapper
17233 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17234 dynamic_linker='Win32 ld.exe'
17235 ;;
17236 esac
17237 # FIXME: first we should search . and the directory the executable is in
17238 shlibpath_var=PATH
17239 ;;
17240
17241 darwin* | rhapsody*)
17242 dynamic_linker="$host_os dyld"
17243 version_type=darwin
17244 need_lib_prefix=no
17245 need_version=no
17246 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17247 soname_spec='$libname$release$major$shared_ext'
17248 shlibpath_overrides_runpath=yes
17249 shlibpath_var=DYLD_LIBRARY_PATH
17250 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17251
17252 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17253 ;;
17254
17255 dgux*)
17256 version_type=linux # correct to gnu/linux during the next big refactor
17257 need_lib_prefix=no
17258 need_version=no
17259 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17260 soname_spec='$libname$release$shared_ext$major'
17261 shlibpath_var=LD_LIBRARY_PATH
17262 ;;
17263
17264 freebsd* | dragonfly*)
17265 # DragonFly does not have aout. When/if they implement a new
17266 # versioning mechanism, adjust this.
17267 if test -x /usr/bin/objformat; then
17268 objformat=`/usr/bin/objformat`
17269 else
17270 case $host_os in
17271 freebsd[23].*) objformat=aout ;;
17272 *) objformat=elf ;;
17273 esac
17274 fi
17275 version_type=freebsd-$objformat
17276 case $version_type in
17277 freebsd-elf*)
17278 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17279 soname_spec='$libname$release$shared_ext$major'
17280 need_version=no
17281 need_lib_prefix=no
17282 ;;
17283 freebsd-*)
17284 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17285 need_version=yes
17286 ;;
17287 esac
17288 shlibpath_var=LD_LIBRARY_PATH
17289 case $host_os in
17290 freebsd2.*)
17291 shlibpath_overrides_runpath=yes
17292 ;;
17293 freebsd3.[01]* | freebsdelf3.[01]*)
17294 shlibpath_overrides_runpath=yes
17295 hardcode_into_libs=yes
17296 ;;
17297 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17298 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17299 shlibpath_overrides_runpath=no
17300 hardcode_into_libs=yes
17301 ;;
17302 *) # from 4.6 on, and DragonFly
17303 shlibpath_overrides_runpath=yes
17304 hardcode_into_libs=yes
17305 ;;
17306 esac
17307 ;;
17308
17309 haiku*)
17310 version_type=linux # correct to gnu/linux during the next big refactor
17311 need_lib_prefix=no
17312 need_version=no
17313 dynamic_linker="$host_os runtime_loader"
17314 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17315 soname_spec='$libname$release$shared_ext$major'
17316 shlibpath_var=LIBRARY_PATH
17317 shlibpath_overrides_runpath=no
17318 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17319 hardcode_into_libs=yes
17320 ;;
17321
17322 hpux9* | hpux10* | hpux11*)
17323 # Give a soname corresponding to the major version so that dld.sl refuses to
17324 # link against other versions.
17325 version_type=sunos
17326 need_lib_prefix=no
17327 need_version=no
17328 case $host_cpu in
17329 ia64*)
17330 shrext_cmds='.so'
17331 hardcode_into_libs=yes
17332 dynamic_linker="$host_os dld.so"
17333 shlibpath_var=LD_LIBRARY_PATH
17334 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17335 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17336 soname_spec='$libname$release$shared_ext$major'
17337 if test 32 = "$HPUX_IA64_MODE"; then
17338 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17339 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17340 else
17341 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17342 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17343 fi
17344 ;;
17345 hppa*64*)
17346 shrext_cmds='.sl'
17347 hardcode_into_libs=yes
17348 dynamic_linker="$host_os dld.sl"
17349 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17350 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17351 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17352 soname_spec='$libname$release$shared_ext$major'
17353 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17354 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17355 ;;
17356 *)
17357 shrext_cmds='.sl'
17358 dynamic_linker="$host_os dld.sl"
17359 shlibpath_var=SHLIB_PATH
17360 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17361 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17362 soname_spec='$libname$release$shared_ext$major'
17363 ;;
17364 esac
17365 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17366 postinstall_cmds='chmod 555 $lib'
17367 # or fails outright, so override atomically:
17368 install_override_mode=555
17369 ;;
17370
17371 interix[3-9]*)
17372 version_type=linux # correct to gnu/linux during the next big refactor
17373 need_lib_prefix=no
17374 need_version=no
17375 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17376 soname_spec='$libname$release$shared_ext$major'
17377 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17378 shlibpath_var=LD_LIBRARY_PATH
17379 shlibpath_overrides_runpath=no
17380 hardcode_into_libs=yes
17381 ;;
17382
17383 irix5* | irix6* | nonstopux*)
17384 case $host_os in
17385 nonstopux*) version_type=nonstopux ;;
17386 *)
17387 if test yes = "$lt_cv_prog_gnu_ld"; then
17388 version_type=linux # correct to gnu/linux during the next big refactor
17389 else
17390 version_type=irix
17391 fi ;;
17392 esac
17393 need_lib_prefix=no
17394 need_version=no
17395 soname_spec='$libname$release$shared_ext$major'
17396 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17397 case $host_os in
17398 irix5* | nonstopux*)
17399 libsuff= shlibsuff=
17400 ;;
17401 *)
17402 case $LD in # libtool.m4 will add one of these switches to LD
17403 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17404 libsuff= shlibsuff= libmagic=32-bit;;
17405 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17406 libsuff=32 shlibsuff=N32 libmagic=N32;;
17407 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17408 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17409 *) libsuff= shlibsuff= libmagic=never-match;;
17410 esac
17411 ;;
17412 esac
17413 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17414 shlibpath_overrides_runpath=no
17415 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17416 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17417 hardcode_into_libs=yes
17418 ;;
17419
17420 # No shared lib support for Linux oldld, aout, or coff.
17421 linux*oldld* | linux*aout* | linux*coff*)
17422 dynamic_linker=no
17423 ;;
17424
17425 linux*android*)
17426 version_type=none # Android doesn't support versioned libraries.
17427 need_lib_prefix=no
17428 need_version=no
17429 library_names_spec='$libname$release$shared_ext'
17430 soname_spec='$libname$release$shared_ext'
17431 finish_cmds=
17432 shlibpath_var=LD_LIBRARY_PATH
17433 shlibpath_overrides_runpath=yes
17434
17435 # This implies no fast_install, which is unacceptable.
17436 # Some rework will be needed to allow for fast_install
17437 # before this can be enabled.
17438 hardcode_into_libs=yes
17439
17440 dynamic_linker='Android linker'
17441 # Don't embed -rpath directories since the linker doesn't support them.
17442 hardcode_libdir_flag_spec_CXX='-L$libdir'
17443 ;;
17444
17445 # This must be glibc/ELF.
17446 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17447 version_type=linux # correct to gnu/linux during the next big refactor
17448 need_lib_prefix=no
17449 need_version=no
17450 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17451 soname_spec='$libname$release$shared_ext$major'
17452 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17453 shlibpath_var=LD_LIBRARY_PATH
17454 shlibpath_overrides_runpath=no
17455
17456 # Some binutils ld are patched to set DT_RUNPATH
17457 if test ${lt_cv_shlibpath_overrides_runpath+y}
17458 then :
17459 printf %s "(cached) " >&6
17460 else $as_nop
17461 lt_cv_shlibpath_overrides_runpath=no
17462 save_LDFLAGS=$LDFLAGS
17463 save_libdir=$libdir
17464 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17465 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17467 /* end confdefs.h. */
17468
17469 int
17470 main (void)
17471 {
17472
17473 ;
17474 return 0;
17475 }
17476 _ACEOF
17477 if ac_fn_cxx_try_link "$LINENO"
17478 then :
17479 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
17480 then :
17481 lt_cv_shlibpath_overrides_runpath=yes
17482 fi
17483 fi
17484 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17485 conftest$ac_exeext conftest.$ac_ext
17486 LDFLAGS=$save_LDFLAGS
17487 libdir=$save_libdir
17488
17489 fi
17490
17491 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17492
17493 # This implies no fast_install, which is unacceptable.
17494 # Some rework will be needed to allow for fast_install
17495 # before this can be enabled.
17496 hardcode_into_libs=yes
17497
17498 # Ideally, we could use ldconfig to report *all* directores which are
17499 # searched for libraries, however this is still not possible. Aside from not
17500 # being certain /sbin/ldconfig is available, command
17501 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17502 # even though it is searched at run-time. Try to do the best guess by
17503 # appending ld.so.conf contents (and includes) to the search path.
17504 if test -f /etc/ld.so.conf; then
17505 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
17506 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17507 fi
17508
17509 # We used to test for /lib/ld.so.1 and disable shared libraries on
17510 # powerpc, because MkLinux only supported shared libraries with the
17511 # GNU dynamic linker. Since this was broken with cross compilers,
17512 # most powerpc-linux boxes support dynamic linking these days and
17513 # people can always --disable-shared, the test was removed, and we
17514 # assume the GNU/Linux dynamic linker is in use.
17515 dynamic_linker='GNU/Linux ld.so'
17516 ;;
17517
17518 netbsdelf*-gnu)
17519 version_type=linux
17520 need_lib_prefix=no
17521 need_version=no
17522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17523 soname_spec='${libname}${release}${shared_ext}$major'
17524 shlibpath_var=LD_LIBRARY_PATH
17525 shlibpath_overrides_runpath=no
17526 hardcode_into_libs=yes
17527 dynamic_linker='NetBSD ld.elf_so'
17528 ;;
17529
17530 netbsd*)
17531 version_type=sunos
17532 need_lib_prefix=no
17533 need_version=no
17534 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17535 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17536 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17537 dynamic_linker='NetBSD (a.out) ld.so'
17538 else
17539 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17540 soname_spec='$libname$release$shared_ext$major'
17541 dynamic_linker='NetBSD ld.elf_so'
17542 fi
17543 shlibpath_var=LD_LIBRARY_PATH
17544 shlibpath_overrides_runpath=yes
17545 hardcode_into_libs=yes
17546 ;;
17547
17548 newsos6)
17549 version_type=linux # correct to gnu/linux during the next big refactor
17550 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17551 shlibpath_var=LD_LIBRARY_PATH
17552 shlibpath_overrides_runpath=yes
17553 ;;
17554
17555 *nto* | *qnx*)
17556 version_type=qnx
17557 need_lib_prefix=no
17558 need_version=no
17559 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17560 soname_spec='$libname$release$shared_ext$major'
17561 shlibpath_var=LD_LIBRARY_PATH
17562 shlibpath_overrides_runpath=no
17563 hardcode_into_libs=yes
17564 dynamic_linker='ldqnx.so'
17565 ;;
17566
17567 openbsd* | bitrig*)
17568 version_type=sunos
17569 sys_lib_dlsearch_path_spec=/usr/lib
17570 need_lib_prefix=no
17571 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17572 need_version=no
17573 else
17574 need_version=yes
17575 fi
17576 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17577 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17578 shlibpath_var=LD_LIBRARY_PATH
17579 shlibpath_overrides_runpath=yes
17580 ;;
17581
17582 os2*)
17583 libname_spec='$name'
17584 version_type=windows
17585 shrext_cmds=.dll
17586 need_version=no
17587 need_lib_prefix=no
17588 # OS/2 can only load a DLL with a base name of 8 characters or less.
17589 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17590 v=$($ECHO $release$versuffix | tr -d .-);
17591 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17592 $ECHO $n$v`$shared_ext'
17593 library_names_spec='${libname}_dll.$libext'
17594 dynamic_linker='OS/2 ld.exe'
17595 shlibpath_var=BEGINLIBPATH
17596 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17597 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17598 postinstall_cmds='base_file=`basename \$file`~
17599 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17600 dldir=$destdir/`dirname \$dlpath`~
17601 test -d \$dldir || mkdir -p \$dldir~
17602 $install_prog $dir/$dlname \$dldir/$dlname~
17603 chmod a+x \$dldir/$dlname~
17604 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17605 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17606 fi'
17607 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17608 dlpath=$dir/\$dldll~
17609 $RM \$dlpath'
17610 ;;
17611
17612 osf3* | osf4* | osf5*)
17613 version_type=osf
17614 need_lib_prefix=no
17615 need_version=no
17616 soname_spec='$libname$release$shared_ext$major'
17617 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17618 shlibpath_var=LD_LIBRARY_PATH
17619 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17620 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17621 ;;
17622
17623 rdos*)
17624 dynamic_linker=no
17625 ;;
17626
17627 solaris*)
17628 version_type=linux # correct to gnu/linux during the next big refactor
17629 need_lib_prefix=no
17630 need_version=no
17631 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17632 soname_spec='$libname$release$shared_ext$major'
17633 shlibpath_var=LD_LIBRARY_PATH
17634 shlibpath_overrides_runpath=yes
17635 hardcode_into_libs=yes
17636 # ldd complains unless libraries are executable
17637 postinstall_cmds='chmod +x $lib'
17638 ;;
17639
17640 sunos4*)
17641 version_type=sunos
17642 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17643 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17644 shlibpath_var=LD_LIBRARY_PATH
17645 shlibpath_overrides_runpath=yes
17646 if test yes = "$with_gnu_ld"; then
17647 need_lib_prefix=no
17648 fi
17649 need_version=yes
17650 ;;
17651
17652 sysv4 | sysv4.3*)
17653 version_type=linux # correct to gnu/linux during the next big refactor
17654 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17655 soname_spec='$libname$release$shared_ext$major'
17656 shlibpath_var=LD_LIBRARY_PATH
17657 case $host_vendor in
17658 sni)
17659 shlibpath_overrides_runpath=no
17660 need_lib_prefix=no
17661 runpath_var=LD_RUN_PATH
17662 ;;
17663 siemens)
17664 need_lib_prefix=no
17665 ;;
17666 motorola)
17667 need_lib_prefix=no
17668 need_version=no
17669 shlibpath_overrides_runpath=no
17670 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17671 ;;
17672 esac
17673 ;;
17674
17675 sysv4*MP*)
17676 if test -d /usr/nec; then
17677 version_type=linux # correct to gnu/linux during the next big refactor
17678 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17679 soname_spec='$libname$shared_ext.$major'
17680 shlibpath_var=LD_LIBRARY_PATH
17681 fi
17682 ;;
17683
17684 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17685 version_type=sco
17686 need_lib_prefix=no
17687 need_version=no
17688 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17689 soname_spec='$libname$release$shared_ext$major'
17690 shlibpath_var=LD_LIBRARY_PATH
17691 shlibpath_overrides_runpath=yes
17692 hardcode_into_libs=yes
17693 if test yes = "$with_gnu_ld"; then
17694 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17695 else
17696 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17697 case $host_os in
17698 sco3.2v5*)
17699 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17700 ;;
17701 esac
17702 fi
17703 sys_lib_dlsearch_path_spec='/usr/lib'
17704 ;;
17705
17706 tpf*)
17707 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17708 version_type=linux # correct to gnu/linux during the next big refactor
17709 need_lib_prefix=no
17710 need_version=no
17711 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17712 shlibpath_var=LD_LIBRARY_PATH
17713 shlibpath_overrides_runpath=no
17714 hardcode_into_libs=yes
17715 ;;
17716
17717 uts4*)
17718 version_type=linux # correct to gnu/linux during the next big refactor
17719 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17720 soname_spec='$libname$release$shared_ext$major'
17721 shlibpath_var=LD_LIBRARY_PATH
17722 ;;
17723
17724 *)
17725 dynamic_linker=no
17726 ;;
17727 esac
17728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17729 printf "%s\n" "$dynamic_linker" >&6; }
17730 test no = "$dynamic_linker" && can_build_shared=no
17731
17732 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17733 if test yes = "$GCC"; then
17734 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17735 fi
17736
17737 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17738 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17739 fi
17740
17741 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17742 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17743 fi
17744
17745 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17746 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17747
17748 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17749 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17750
17751 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17752 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17794 printf %s "checking how to hardcode library paths into programs... " >&6; }
17795 hardcode_action_CXX=
17796 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17797 test -n "$runpath_var_CXX" ||
17798 test yes = "$hardcode_automatic_CXX"; then
17799
17800 # We can hardcode non-existent directories.
17801 if test no != "$hardcode_direct_CXX" &&
17802 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17803 # have to relink, otherwise we might link with an installed library
17804 # when we should be linking with a yet-to-be-installed one
17805 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
17806 test no != "$hardcode_minus_L_CXX"; then
17807 # Linking always hardcodes the temporary library directory.
17808 hardcode_action_CXX=relink
17809 else
17810 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17811 hardcode_action_CXX=immediate
17812 fi
17813 else
17814 # We cannot hardcode anything, or else we can only hardcode existing
17815 # directories.
17816 hardcode_action_CXX=unsupported
17817 fi
17818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17819 printf "%s\n" "$hardcode_action_CXX" >&6; }
17820
17821 if test relink = "$hardcode_action_CXX" ||
17822 test yes = "$inherit_rpath_CXX"; then
17823 # Fast installation is not supported
17824 enable_fast_install=no
17825 elif test yes = "$shlibpath_overrides_runpath" ||
17826 test no = "$enable_shared"; then
17827 # Fast installation is not necessary
17828 enable_fast_install=needless
17829 fi
17830
17831
17832
17833
17834
17835
17836
17837 fi # test -n "$compiler"
17838
17839 CC=$lt_save_CC
17840 CFLAGS=$lt_save_CFLAGS
17841 LDCXX=$LD
17842 LD=$lt_save_LD
17843 GCC=$lt_save_GCC
17844 with_gnu_ld=$lt_save_with_gnu_ld
17845 lt_cv_path_LDCXX=$lt_cv_path_LD
17846 lt_cv_path_LD=$lt_save_path_LD
17847 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17848 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17849 fi # test yes != "$_lt_caught_CXX_error"
17850
17851 ac_ext=c
17852 ac_cpp='$CPP $CPPFLAGS'
17853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17856
17857
17858 ac_ext=c
17859 ac_cpp='$CPP $CPPFLAGS'
17860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
17864 printf %s "checking how to run the C preprocessor... " >&6; }
17865 # On Suns, sometimes $CPP names a directory.
17866 if test -n "$CPP" && test -d "$CPP"; then
17867 CPP=
17868 fi
17869 if test -z "$CPP"; then
17870 if test ${ac_cv_prog_CPP+y}
17871 then :
17872 printf %s "(cached) " >&6
17873 else $as_nop
17874 # Double quotes because $CC needs to be expanded
17875 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
17876 do
17877 ac_preproc_ok=false
17878 for ac_c_preproc_warn_flag in '' yes
17879 do
17880 # Use a header file that comes with gcc, so configuring glibc
17881 # with a fresh cross-compiler works.
17882 # On the NeXT, cc -E runs the code through the compiler's parser,
17883 # not just through cpp. "Syntax error" is here to catch this case.
17884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17885 /* end confdefs.h. */
17886 #include <limits.h>
17887 Syntax error
17888 _ACEOF
17889 if ac_fn_c_try_cpp "$LINENO"
17890 then :
17891
17892 else $as_nop
17893 # Broken: fails on valid input.
17894 continue
17895 fi
17896 rm -f conftest.err conftest.i conftest.$ac_ext
17897
17898 # OK, works on sane cases. Now check whether nonexistent headers
17899 # can be detected and how.
17900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17901 /* end confdefs.h. */
17902 #include <ac_nonexistent.h>
17903 _ACEOF
17904 if ac_fn_c_try_cpp "$LINENO"
17905 then :
17906 # Broken: success on invalid input.
17907 continue
17908 else $as_nop
17909 # Passes both tests.
17910 ac_preproc_ok=:
17911 break
17912 fi
17913 rm -f conftest.err conftest.i conftest.$ac_ext
17914
17915 done
17916 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17917 rm -f conftest.i conftest.err conftest.$ac_ext
17918 if $ac_preproc_ok
17919 then :
17920 break
17921 fi
17922
17923 done
17924 ac_cv_prog_CPP=$CPP
17925
17926 fi
17927 CPP=$ac_cv_prog_CPP
17928 else
17929 ac_cv_prog_CPP=$CPP
17930 fi
17931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
17932 printf "%s\n" "$CPP" >&6; }
17933 ac_preproc_ok=false
17934 for ac_c_preproc_warn_flag in '' yes
17935 do
17936 # Use a header file that comes with gcc, so configuring glibc
17937 # with a fresh cross-compiler works.
17938 # On the NeXT, cc -E runs the code through the compiler's parser,
17939 # not just through cpp. "Syntax error" is here to catch this case.
17940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17941 /* end confdefs.h. */
17942 #include <limits.h>
17943 Syntax error
17944 _ACEOF
17945 if ac_fn_c_try_cpp "$LINENO"
17946 then :
17947
17948 else $as_nop
17949 # Broken: fails on valid input.
17950 continue
17951 fi
17952 rm -f conftest.err conftest.i conftest.$ac_ext
17953
17954 # OK, works on sane cases. Now check whether nonexistent headers
17955 # can be detected and how.
17956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17957 /* end confdefs.h. */
17958 #include <ac_nonexistent.h>
17959 _ACEOF
17960 if ac_fn_c_try_cpp "$LINENO"
17961 then :
17962 # Broken: success on invalid input.
17963 continue
17964 else $as_nop
17965 # Passes both tests.
17966 ac_preproc_ok=:
17967 break
17968 fi
17969 rm -f conftest.err conftest.i conftest.$ac_ext
17970
17971 done
17972 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17973 rm -f conftest.i conftest.err conftest.$ac_ext
17974 if $ac_preproc_ok
17975 then :
17976
17977 else $as_nop
17978 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17979 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17980 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
17981 See \`config.log' for more details" "$LINENO" 5; }
17982 fi
17983
17984 ac_ext=c
17985 ac_cpp='$CPP $CPPFLAGS'
17986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17989
17990 for ac_prog in gawk mawk nawk awk
17991 do
17992 # Extract the first word of "$ac_prog", so it can be a program name with args.
17993 set dummy $ac_prog; ac_word=$2
17994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17995 printf %s "checking for $ac_word... " >&6; }
17996 if test ${ac_cv_prog_AWK+y}
17997 then :
17998 printf %s "(cached) " >&6
17999 else $as_nop
18000 if test -n "$AWK"; then
18001 ac_cv_prog_AWK="$AWK" # Let the user override the test.
18002 else
18003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18004 for as_dir in $PATH
18005 do
18006 IFS=$as_save_IFS
18007 case $as_dir in #(((
18008 '') as_dir=./ ;;
18009 */) ;;
18010 *) as_dir=$as_dir/ ;;
18011 esac
18012 for ac_exec_ext in '' $ac_executable_extensions; do
18013 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18014 ac_cv_prog_AWK="$ac_prog"
18015 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18016 break 2
18017 fi
18018 done
18019 done
18020 IFS=$as_save_IFS
18021
18022 fi
18023 fi
18024 AWK=$ac_cv_prog_AWK
18025 if test -n "$AWK"; then
18026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
18027 printf "%s\n" "$AWK" >&6; }
18028 else
18029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18030 printf "%s\n" "no" >&6; }
18031 fi
18032
18033
18034 test -n "$AWK" && break
18035 done
18036
18037
18038 for ac_prog in flex lex
18039 do
18040 # Extract the first word of "$ac_prog", so it can be a program name with args.
18041 set dummy $ac_prog; ac_word=$2
18042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18043 printf %s "checking for $ac_word... " >&6; }
18044 if test ${ac_cv_prog_LEX+y}
18045 then :
18046 printf %s "(cached) " >&6
18047 else $as_nop
18048 if test -n "$LEX"; then
18049 ac_cv_prog_LEX="$LEX" # Let the user override the test.
18050 else
18051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18052 for as_dir in $PATH
18053 do
18054 IFS=$as_save_IFS
18055 case $as_dir in #(((
18056 '') as_dir=./ ;;
18057 */) ;;
18058 *) as_dir=$as_dir/ ;;
18059 esac
18060 for ac_exec_ext in '' $ac_executable_extensions; do
18061 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18062 ac_cv_prog_LEX="$ac_prog"
18063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18064 break 2
18065 fi
18066 done
18067 done
18068 IFS=$as_save_IFS
18069
18070 fi
18071 fi
18072 LEX=$ac_cv_prog_LEX
18073 if test -n "$LEX"; then
18074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
18075 printf "%s\n" "$LEX" >&6; }
18076 else
18077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18078 printf "%s\n" "no" >&6; }
18079 fi
18080
18081
18082 test -n "$LEX" && break
18083 done
18084 test -n "$LEX" || LEX=":"
18085
18086 if test "x$LEX" != "x:"; then
18087 cat >conftest.l <<_ACEOF
18088 %{
18089 #ifdef __cplusplus
18090 extern "C"
18091 #endif
18092 int yywrap(void);
18093 %}
18094 %%
18095 a { ECHO; }
18096 b { REJECT; }
18097 c { yymore (); }
18098 d { yyless (1); }
18099 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
18100 #ifdef __cplusplus
18101 yyless ((yyinput () != 0));
18102 #else
18103 yyless ((input () != 0));
18104 #endif
18105 }
18106 f { unput (yytext[0]); }
18107 . { BEGIN INITIAL; }
18108 %%
18109 #ifdef YYTEXT_POINTER
18110 extern char *yytext;
18111 #endif
18112 int
18113 yywrap (void)
18114 {
18115 return 1;
18116 }
18117 int
18118 main (void)
18119 {
18120 return ! yylex ();
18121 }
18122 _ACEOF
18123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex output file root" >&5
18124 printf %s "checking for lex output file root... " >&6; }
18125 if test ${ac_cv_prog_lex_root+y}
18126 then :
18127 printf %s "(cached) " >&6
18128 else $as_nop
18129
18130 ac_cv_prog_lex_root=unknown
18131 { { ac_try="$LEX conftest.l"
18132 case "(($ac_try" in
18133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18134 *) ac_try_echo=$ac_try;;
18135 esac
18136 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18137 printf "%s\n" "$ac_try_echo"; } >&5
18138 (eval "$LEX conftest.l") 2>&5
18139 ac_status=$?
18140 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18141 test $ac_status = 0; } &&
18142 if test -f lex.yy.c; then
18143 ac_cv_prog_lex_root=lex.yy
18144 elif test -f lexyy.c; then
18145 ac_cv_prog_lex_root=lexyy
18146 fi
18147 fi
18148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
18149 printf "%s\n" "$ac_cv_prog_lex_root" >&6; }
18150 if test "$ac_cv_prog_lex_root" = unknown
18151 then :
18152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find output from $LEX; giving up on $LEX" >&5
18153 printf "%s\n" "$as_me: WARNING: cannot find output from $LEX; giving up on $LEX" >&2;}
18154 LEX=: LEXLIB=
18155 fi
18156 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
18157
18158 if test ${LEXLIB+y}
18159 then :
18160
18161 else $as_nop
18162
18163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex library" >&5
18164 printf %s "checking for lex library... " >&6; }
18165 if test ${ac_cv_lib_lex+y}
18166 then :
18167 printf %s "(cached) " >&6
18168 else $as_nop
18169
18170 ac_save_LIBS="$LIBS"
18171 ac_found=false
18172 for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do
18173 case $ac_cv_lib_lex in #(
18174 'none needed') :
18175 ;; #(
18176 'not found') :
18177 break ;; #(
18178 *) :
18179 LIBS="$ac_cv_lib_lex $ac_save_LIBS" ;; #(
18180 *) :
18181 ;;
18182 esac
18183
18184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18185 /* end confdefs.h. */
18186 `cat $LEX_OUTPUT_ROOT.c`
18187 _ACEOF
18188 if ac_fn_c_try_link "$LINENO"
18189 then :
18190 ac_found=:
18191 fi
18192 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18193 conftest$ac_exeext conftest.$ac_ext
18194 if $ac_found; then
18195 break
18196 fi
18197 done
18198 LIBS="$ac_save_LIBS"
18199
18200 fi
18201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
18202 printf "%s\n" "$ac_cv_lib_lex" >&6; }
18203 if test "$ac_cv_lib_lex" = 'not found'
18204 then :
18205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: required lex library not found; giving up on $LEX" >&5
18206 printf "%s\n" "$as_me: WARNING: required lex library not found; giving up on $LEX" >&2;}
18207 LEX=: LEXLIB=
18208 elif test "$ac_cv_lib_lex" = 'none needed'
18209 then :
18210 LEXLIB=''
18211 else $as_nop
18212 LEXLIB=$ac_cv_lib_lex
18213 fi
18214 ac_save_LIBS="$LIBS"
18215 LIBS=
18216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing yywrap" >&5
18217 printf %s "checking for library containing yywrap... " >&6; }
18218 if test ${ac_cv_search_yywrap+y}
18219 then :
18220 printf %s "(cached) " >&6
18221 else $as_nop
18222 ac_func_search_save_LIBS=$LIBS
18223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18224 /* end confdefs.h. */
18225
18226 /* Override any GCC internal prototype to avoid an error.
18227 Use char because int might match the return type of a GCC
18228 builtin and then its argument prototype would still apply. */
18229 char yywrap ();
18230 int
18231 main (void)
18232 {
18233 return yywrap ();
18234 ;
18235 return 0;
18236 }
18237 _ACEOF
18238 for ac_lib in '' fl l
18239 do
18240 if test -z "$ac_lib"; then
18241 ac_res="none required"
18242 else
18243 ac_res=-l$ac_lib
18244 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18245 fi
18246 if ac_fn_c_try_link "$LINENO"
18247 then :
18248 ac_cv_search_yywrap=$ac_res
18249 fi
18250 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18251 conftest$ac_exeext
18252 if test ${ac_cv_search_yywrap+y}
18253 then :
18254 break
18255 fi
18256 done
18257 if test ${ac_cv_search_yywrap+y}
18258 then :
18259
18260 else $as_nop
18261 ac_cv_search_yywrap=no
18262 fi
18263 rm conftest.$ac_ext
18264 LIBS=$ac_func_search_save_LIBS
18265 fi
18266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_yywrap" >&5
18267 printf "%s\n" "$ac_cv_search_yywrap" >&6; }
18268 ac_res=$ac_cv_search_yywrap
18269 if test "$ac_res" != no
18270 then :
18271 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18272 LEXLIB="$LIBS"
18273 fi
18274
18275 LIBS="$ac_save_LIBS"
18276 fi
18277
18278
18279 if test "$LEX" != :
18280 then :
18281
18282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
18283 printf %s "checking whether yytext is a pointer... " >&6; }
18284 if test ${ac_cv_prog_lex_yytext_pointer+y}
18285 then :
18286 printf %s "(cached) " >&6
18287 else $as_nop
18288 # POSIX says lex can declare yytext either as a pointer or an array; the
18289 # default is implementation-dependent. Figure out which it is, since
18290 # not all implementations provide the %pointer and %array declarations.
18291 ac_cv_prog_lex_yytext_pointer=no
18292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18293 /* end confdefs.h. */
18294
18295 #define YYTEXT_POINTER 1
18296 `cat $LEX_OUTPUT_ROOT.c`
18297 _ACEOF
18298 if ac_fn_c_try_compile "$LINENO"
18299 then :
18300 ac_cv_prog_lex_yytext_pointer=yes
18301 fi
18302 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18303
18304 fi
18305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
18306 printf "%s\n" "$ac_cv_prog_lex_yytext_pointer" >&6; }
18307 if test $ac_cv_prog_lex_yytext_pointer = yes; then
18308
18309 printf "%s\n" "#define YYTEXT_POINTER 1" >>confdefs.h
18310
18311 fi
18312
18313 fi
18314 rm -f conftest.l $LEX_OUTPUT_ROOT.c
18315
18316 fi
18317 if test "$LEX" = :; then
18318 LEX=${am_missing_run}flex
18319 fi
18320 for ac_prog in 'bison -y' byacc
18321 do
18322 # Extract the first word of "$ac_prog", so it can be a program name with args.
18323 set dummy $ac_prog; ac_word=$2
18324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18325 printf %s "checking for $ac_word... " >&6; }
18326 if test ${ac_cv_prog_YACC+y}
18327 then :
18328 printf %s "(cached) " >&6
18329 else $as_nop
18330 if test -n "$YACC"; then
18331 ac_cv_prog_YACC="$YACC" # Let the user override the test.
18332 else
18333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18334 for as_dir in $PATH
18335 do
18336 IFS=$as_save_IFS
18337 case $as_dir in #(((
18338 '') as_dir=./ ;;
18339 */) ;;
18340 *) as_dir=$as_dir/ ;;
18341 esac
18342 for ac_exec_ext in '' $ac_executable_extensions; do
18343 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18344 ac_cv_prog_YACC="$ac_prog"
18345 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18346 break 2
18347 fi
18348 done
18349 done
18350 IFS=$as_save_IFS
18351
18352 fi
18353 fi
18354 YACC=$ac_cv_prog_YACC
18355 if test -n "$YACC"; then
18356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
18357 printf "%s\n" "$YACC" >&6; }
18358 else
18359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18360 printf "%s\n" "no" >&6; }
18361 fi
18362
18363
18364 test -n "$YACC" && break
18365 done
18366 test -n "$YACC" || YACC="yacc"
18367
18368
18369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
18370 printf %s "checking whether ln -s works... " >&6; }
18371 LN_S=$as_ln_s
18372 if test "$LN_S" = "ln -s"; then
18373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18374 printf "%s\n" "yes" >&6; }
18375 else
18376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
18377 printf "%s\n" "no, using $LN_S" >&6; }
18378 fi
18379
18380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
18381 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
18382 set x ${MAKE-make}
18383 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
18384 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
18385 then :
18386 printf %s "(cached) " >&6
18387 else $as_nop
18388 cat >conftest.make <<\_ACEOF
18389 SHELL = /bin/sh
18390 all:
18391 @echo '@@@%%%=$(MAKE)=@@@%%%'
18392 _ACEOF
18393 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
18394 case `${MAKE-make} -f conftest.make 2>/dev/null` in
18395 *@@@%%%=?*=@@@%%%*)
18396 eval ac_cv_prog_make_${ac_make}_set=yes;;
18397 *)
18398 eval ac_cv_prog_make_${ac_make}_set=no;;
18399 esac
18400 rm -f conftest.make
18401 fi
18402 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
18403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18404 printf "%s\n" "yes" >&6; }
18405 SET_MAKE=
18406 else
18407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18408 printf "%s\n" "no" >&6; }
18409 SET_MAKE="MAKE=${MAKE-make}"
18410 fi
18411
18412
18413 # Configure options: --enable-debug[=no].
18414 # Check whether --enable-debug was given.
18415 if test ${enable_debug+y}
18416 then :
18417 enableval=$enable_debug; debug="$withval"
18418 else $as_nop
18419 debug=no
18420 fi
18421
18422
18423 # Configure options: --disable-cpp-wrapper[=no].
18424 # Check whether --enable-cpp_wrapper was given.
18425 if test ${enable_cpp_wrapper+y}
18426 then :
18427 enableval=$enable_cpp_wrapper;
18428 else $as_nop
18429 cpp_wrapper=yes
18430 fi
18431
18432
18433 # Checks for libraries.
18434
18435 # Checks for header files.
18436 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18437 if test "x$ac_cv_type_size_t" = xyes
18438 then :
18439
18440 else $as_nop
18441
18442 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
18443
18444 fi
18445
18446 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18447 # for constant arguments. Useless!
18448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18449 printf %s "checking for working alloca.h... " >&6; }
18450 if test ${ac_cv_working_alloca_h+y}
18451 then :
18452 printf %s "(cached) " >&6
18453 else $as_nop
18454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18455 /* end confdefs.h. */
18456 #include <alloca.h>
18457 int
18458 main (void)
18459 {
18460 char *p = (char *) alloca (2 * sizeof (int));
18461 if (p) return 0;
18462 ;
18463 return 0;
18464 }
18465 _ACEOF
18466 if ac_fn_c_try_link "$LINENO"
18467 then :
18468 ac_cv_working_alloca_h=yes
18469 else $as_nop
18470 ac_cv_working_alloca_h=no
18471 fi
18472 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18473 conftest$ac_exeext conftest.$ac_ext
18474 fi
18475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18476 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
18477 if test $ac_cv_working_alloca_h = yes; then
18478
18479 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
18480
18481 fi
18482
18483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18484 printf %s "checking for alloca... " >&6; }
18485 if test ${ac_cv_func_alloca_works+y}
18486 then :
18487 printf %s "(cached) " >&6
18488 else $as_nop
18489 if test $ac_cv_working_alloca_h = yes; then
18490 ac_cv_func_alloca_works=yes
18491 else
18492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18493 /* end confdefs.h. */
18494 #include <stdlib.h>
18495 #include <stddef.h>
18496 #ifndef alloca
18497 # ifdef __GNUC__
18498 # define alloca __builtin_alloca
18499 # elif defined _MSC_VER
18500 # include <malloc.h>
18501 # define alloca _alloca
18502 # else
18503 # ifdef __cplusplus
18504 extern "C"
18505 # endif
18506 void *alloca (size_t);
18507 # endif
18508 #endif
18509
18510 int
18511 main (void)
18512 {
18513 char *p = (char *) alloca (1);
18514 if (p) return 0;
18515 ;
18516 return 0;
18517 }
18518 _ACEOF
18519 if ac_fn_c_try_link "$LINENO"
18520 then :
18521 ac_cv_func_alloca_works=yes
18522 else $as_nop
18523 ac_cv_func_alloca_works=no
18524 fi
18525 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18526 conftest$ac_exeext conftest.$ac_ext
18527 fi
18528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18529 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
18530 fi
18531
18532 if test $ac_cv_func_alloca_works = yes; then
18533
18534 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
18535
18536 else
18537 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18538 # that cause trouble. Some versions do not even contain alloca or
18539 # contain a buggy version. If you still want to use their alloca,
18540 # use ar to extract alloca.o from them instead of compiling alloca.c.
18541
18542 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18543
18544 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
18545
18546
18547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18548 printf %s "checking stack direction for C alloca... " >&6; }
18549 if test ${ac_cv_c_stack_direction+y}
18550 then :
18551 printf %s "(cached) " >&6
18552 else $as_nop
18553 if test "$cross_compiling" = yes
18554 then :
18555 ac_cv_c_stack_direction=0
18556 else $as_nop
18557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18558 /* end confdefs.h. */
18559 $ac_includes_default
18560 int
18561 find_stack_direction (int *addr, int depth)
18562 {
18563 int dir, dummy = 0;
18564 if (! addr)
18565 addr = &dummy;
18566 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
18567 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
18568 return dir + dummy;
18569 }
18570
18571 int
18572 main (int argc, char **argv)
18573 {
18574 return find_stack_direction (0, argc + !argv + 20) < 0;
18575 }
18576 _ACEOF
18577 if ac_fn_c_try_run "$LINENO"
18578 then :
18579 ac_cv_c_stack_direction=1
18580 else $as_nop
18581 ac_cv_c_stack_direction=-1
18582 fi
18583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18584 conftest.$ac_objext conftest.beam conftest.$ac_ext
18585 fi
18586
18587 fi
18588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18589 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
18590 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
18591
18592
18593 fi
18594
18595 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
18596 if test "x$ac_cv_header_inttypes_h" = xyes
18597 then :
18598 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
18599
18600 fi
18601 ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
18602 if test "x$ac_cv_header_libintl_h" = xyes
18603 then :
18604 printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h
18605
18606 fi
18607 ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
18608 if test "x$ac_cv_header_malloc_h" = xyes
18609 then :
18610 printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
18611
18612 fi
18613 ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
18614 if test "x$ac_cv_header_stddef_h" = xyes
18615 then :
18616 printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
18617
18618 fi
18619 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
18620 if test "x$ac_cv_header_stdint_h" = xyes
18621 then :
18622 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
18623
18624 fi
18625 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
18626 if test "x$ac_cv_header_stdlib_h" = xyes
18627 then :
18628 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
18629
18630 fi
18631 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
18632 if test "x$ac_cv_header_string_h" = xyes
18633 then :
18634 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
18635
18636 fi
18637 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
18638 if test "x$ac_cv_header_unistd_h" = xyes
18639 then :
18640 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
18641
18642 fi
18643 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
18644 if test "x$ac_cv_header_limits_h" = xyes
18645 then :
18646 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
18647
18648 fi
18649
18650
18651 # Checks for typedefs, structures, and compiler characteristics.
18652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18653 printf %s "checking for inline... " >&6; }
18654 if test ${ac_cv_c_inline+y}
18655 then :
18656 printf %s "(cached) " >&6
18657 else $as_nop
18658 ac_cv_c_inline=no
18659 for ac_kw in inline __inline__ __inline; do
18660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18661 /* end confdefs.h. */
18662 #ifndef __cplusplus
18663 typedef int foo_t;
18664 static $ac_kw foo_t static_foo (void) {return 0; }
18665 $ac_kw foo_t foo (void) {return 0; }
18666 #endif
18667
18668 _ACEOF
18669 if ac_fn_c_try_compile "$LINENO"
18670 then :
18671 ac_cv_c_inline=$ac_kw
18672 fi
18673 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18674 test "$ac_cv_c_inline" != no && break
18675 done
18676
18677 fi
18678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18679 printf "%s\n" "$ac_cv_c_inline" >&6; }
18680
18681 case $ac_cv_c_inline in
18682 inline | yes) ;;
18683 *)
18684 case $ac_cv_c_inline in
18685 no) ac_val=;;
18686 *) ac_val=$ac_cv_c_inline;;
18687 esac
18688 cat >>confdefs.h <<_ACEOF
18689 #ifndef __cplusplus
18690 #define inline $ac_val
18691 #endif
18692 _ACEOF
18693 ;;
18694 esac
18695
18696 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
18697 case $ac_cv_c_int16_t in #(
18698 no|yes) ;; #(
18699 *)
18700
18701 printf "%s\n" "#define int16_t $ac_cv_c_int16_t" >>confdefs.h
18702 ;;
18703 esac
18704
18705 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
18706 case $ac_cv_c_int32_t in #(
18707 no|yes) ;; #(
18708 *)
18709
18710 printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h
18711 ;;
18712 esac
18713
18714 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
18715 case $ac_cv_c_int64_t in #(
18716 no|yes) ;; #(
18717 *)
18718
18719 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
18720 ;;
18721 esac
18722
18723 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
18724 case $ac_cv_c_int8_t in #(
18725 no|yes) ;; #(
18726 *)
18727
18728 printf "%s\n" "#define int8_t $ac_cv_c_int8_t" >>confdefs.h
18729 ;;
18730 esac
18731
18732 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18733 if test "x$ac_cv_type_size_t" = xyes
18734 then :
18735
18736 else $as_nop
18737
18738 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
18739
18740 fi
18741
18742 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
18743 case $ac_cv_c_uint16_t in #(
18744 no|yes) ;; #(
18745 *)
18746
18747
18748 printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
18749 ;;
18750 esac
18751
18752 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
18753 case $ac_cv_c_uint32_t in #(
18754 no|yes) ;; #(
18755 *)
18756
18757 printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
18758
18759
18760 printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
18761 ;;
18762 esac
18763
18764 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
18765 case $ac_cv_c_uint64_t in #(
18766 no|yes) ;; #(
18767 *)
18768
18769 printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
18770
18771
18772 printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
18773 ;;
18774 esac
18775
18776 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
18777 case $ac_cv_c_uint8_t in #(
18778 no|yes) ;; #(
18779 *)
18780
18781 printf "%s\n" "#define _UINT8_T 1" >>confdefs.h
18782
18783
18784 printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h
18785 ;;
18786 esac
18787
18788
18789 # Checks for library functions.
18790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
18791 printf %s "checking for GNU libc compatible malloc... " >&6; }
18792 if test ${ac_cv_func_malloc_0_nonnull+y}
18793 then :
18794 printf %s "(cached) " >&6
18795 else $as_nop
18796 if test "$cross_compiling" = yes
18797 then :
18798 case "$host_os" in # ((
18799 # Guess yes on platforms where we know the result.
18800 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
18801 | hpux* | solaris* | cygwin* | mingw* | msys* )
18802 ac_cv_func_malloc_0_nonnull=yes ;;
18803 # If we don't know, assume the worst.
18804 *) ac_cv_func_malloc_0_nonnull=no ;;
18805 esac
18806 else $as_nop
18807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18808 /* end confdefs.h. */
18809 #include <stdlib.h>
18810
18811 int
18812 main (void)
18813 {
18814 void *p = malloc (0);
18815 int result = !p;
18816 free (p);
18817 return result;
18818 ;
18819 return 0;
18820 }
18821 _ACEOF
18822 if ac_fn_c_try_run "$LINENO"
18823 then :
18824 ac_cv_func_malloc_0_nonnull=yes
18825 else $as_nop
18826 ac_cv_func_malloc_0_nonnull=no
18827 fi
18828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18829 conftest.$ac_objext conftest.beam conftest.$ac_ext
18830 fi
18831
18832 fi
18833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
18834 printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
18835 if test $ac_cv_func_malloc_0_nonnull = yes
18836 then :
18837
18838 printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
18839
18840 else $as_nop
18841 printf "%s\n" "#define HAVE_MALLOC 0" >>confdefs.h
18842
18843 case " $LIBOBJS " in
18844 *" malloc.$ac_objext "* ) ;;
18845 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
18846 ;;
18847 esac
18848
18849
18850 printf "%s\n" "#define malloc rpl_malloc" >>confdefs.h
18851
18852 fi
18853
18854
18855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
18856 printf %s "checking for GNU libc compatible realloc... " >&6; }
18857 if test ${ac_cv_func_realloc_0_nonnull+y}
18858 then :
18859 printf %s "(cached) " >&6
18860 else $as_nop
18861 if test "$cross_compiling" = yes
18862 then :
18863 case "$host_os" in # ((
18864 # Guess yes on platforms where we know the result.
18865 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
18866 | hpux* | solaris* | cygwin* | mingw* | msys* )
18867 ac_cv_func_realloc_0_nonnull=yes ;;
18868 # If we don't know, assume the worst.
18869 *) ac_cv_func_realloc_0_nonnull=no ;;
18870 esac
18871 else $as_nop
18872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18873 /* end confdefs.h. */
18874 #include <stdlib.h>
18875
18876 int
18877 main (void)
18878 {
18879 void *p = realloc (0, 0);
18880 int result = !p;
18881 free (p);
18882 return result;
18883 ;
18884 return 0;
18885 }
18886 _ACEOF
18887 if ac_fn_c_try_run "$LINENO"
18888 then :
18889 ac_cv_func_realloc_0_nonnull=yes
18890 else $as_nop
18891 ac_cv_func_realloc_0_nonnull=no
18892 fi
18893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18894 conftest.$ac_objext conftest.beam conftest.$ac_ext
18895 fi
18896
18897 fi
18898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
18899 printf "%s\n" "$ac_cv_func_realloc_0_nonnull" >&6; }
18900 if test $ac_cv_func_realloc_0_nonnull = yes
18901 then :
18902
18903 printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
18904
18905 else $as_nop
18906 printf "%s\n" "#define HAVE_REALLOC 0" >>confdefs.h
18907
18908 case " $LIBOBJS " in
18909 *" realloc.$ac_objext "* ) ;;
18910 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
18911 ;;
18912 esac
18913
18914
18915 printf "%s\n" "#define realloc rpl_realloc" >>confdefs.h
18916
18917 fi
18918
18919
18920 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
18921 if test "x$ac_cv_func_memset" = xyes
18922 then :
18923 printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
18924
18925 fi
18926 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
18927 if test "x$ac_cv_func_strtoul" = xyes
18928 then :
18929 printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
18930
18931 fi
18932 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
18933 if test "x$ac_cv_func_strtoull" = xyes
18934 then :
18935 printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
18936
18937 fi
18938 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
18939 if test "x$ac_cv_func_vsnprintf" = xyes
18940 then :
18941 printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
18942
18943 fi
18944 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
18945 if test "x$ac_cv_func_memcpy" = xyes
18946 then :
18947 printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
18948
18949 fi
18950 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
18951 if test "x$ac_cv_func_strchr" = xyes
18952 then :
18953 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
18954
18955 fi
18956 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
18957 if test "x$ac_cv_func_strtol" = xyes
18958 then :
18959 printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
18960
18961 fi
18962
18963
18964 # Configure DEBUG source code, if requested.
18965 if test "x$debug" = xyes
18966 then :
18967
18968 printf "%s\n" "#define FCML_DEBUG 1" >>confdefs.h
18969
18970 fi
18971
18972 # Doxygen
18973 # Extract the first word of "doxygen", so it can be a program name with args.
18974 set dummy doxygen; ac_word=$2
18975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18976 printf %s "checking for $ac_word... " >&6; }
18977 if test ${ac_cv_prog_DOXYGEN+y}
18978 then :
18979 printf %s "(cached) " >&6
18980 else $as_nop
18981 if test -n "$DOXYGEN"; then
18982 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
18983 else
18984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18985 for as_dir in $PATH
18986 do
18987 IFS=$as_save_IFS
18988 case $as_dir in #(((
18989 '') as_dir=./ ;;
18990 */) ;;
18991 *) as_dir=$as_dir/ ;;
18992 esac
18993 for ac_exec_ext in '' $ac_executable_extensions; do
18994 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18995 ac_cv_prog_DOXYGEN="doxygen"
18996 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18997 break 2
18998 fi
18999 done
19000 done
19001 IFS=$as_save_IFS
19002
19003 fi
19004 fi
19005 DOXYGEN=$ac_cv_prog_DOXYGEN
19006 if test -n "$DOXYGEN"; then
19007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
19008 printf "%s\n" "$DOXYGEN" >&6; }
19009 else
19010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19011 printf "%s\n" "no" >&6; }
19012 fi
19013
19014
19015 if test -z "$DOXYGEN"; then
19016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Doxygen not found - continuing without Doxygen support" >&5
19017 printf "%s\n" "$as_me: WARNING: Doxygen not found - continuing without Doxygen support" >&2;}
19018 fi
19019
19020 # Disable the internal part of unit tests for cygwin and mingw,
19021 # due to the way Windows exports symbols in shared libraries.
19022 case $host_os in #(
19023 cygwin*|mingw*) :
19024 internal_test=no
19025 # Maybe not the most beatiful way to write it, but as least it doesn't have
19026 # to be written in one line and Eclipse's parser doesn't complain.
19027 internal_test_msg="(Don't be afraid of disabled internal unit tests for"
19028 internal_test_msg="$internal_test_msg"$'\n'" this configuration. Integration tests which are"
19029 internal_test_msg="$internal_test_msg"$'\n'" built on top of the public API are still executed.)"
19030 ;; #(
19031 *) :
19032 internal_test=yes
19033 ;;
19034 esac
19035
19036 if test -n "$CXX" && test "x$cpp_wrapper" = xyes ; then
19037 CPP_WRAPPER_TRUE=
19038 CPP_WRAPPER_FALSE='#'
19039 else
19040 CPP_WRAPPER_TRUE='#'
19041 CPP_WRAPPER_FALSE=
19042 fi
19043
19044 if test "x$internal_test" = xyes; then
19045 ENABLE_INTERNAL_TESTS_TRUE=
19046 ENABLE_INTERNAL_TESTS_FALSE='#'
19047 else
19048 ENABLE_INTERNAL_TESTS_TRUE='#'
19049 ENABLE_INTERNAL_TESTS_FALSE=
19050 fi
19051
19052 if test -n "$DOXYGEN"; then
19053 HAVE_DOXYGEN_TRUE=
19054 HAVE_DOXYGEN_FALSE='#'
19055 else
19056 HAVE_DOXYGEN_TRUE='#'
19057 HAVE_DOXYGEN_FALSE=
19058 fi
19059
19060 if test -z "$HAVE_DOXYGEN_TRUE"; then :
19061 ac_config_files="$ac_config_files docs/doxygen/doxyfile"
19062
19063 fi
19064
19065 # Configuration files.
19066 ac_config_files="$ac_config_files Makefile src/Makefile check/Makefile check/stf/Makefile check/internal-tests/Makefile check/public-tests/Makefile check/cpp-tests/Makefile example/Makefile example/fcml-disasm/Makefile example/fcml-asm/Makefile example/hsdis/Makefile win32/Makefile include/Makefile docs/doxygen/Makefile"
19067
19068
19069 # Enable __declspec(dllimport) for linking public tests with shared DLL.
19070
19071
19072 case $enable_shared in #(
19073 yes) :
19074 case $host_os in #(
19075 cygwin*|mingw*) :
19076 FCML_IMPORT_LIB="-DLIBFCML_DLL_IMPORT"
19077
19078 ;; #(
19079 *) :
19080 ;;
19081 esac
19082 ;; #(
19083 *) :
19084 ;;
19085 esac
19086
19087 # Check whether the compiler can hide symbols
19088 VISIBILITY_CFLAGS=""
19089
19090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -fvisibility=hidden" >&5
19091 printf %s "checking to see if compiler understands -fvisibility=hidden... " >&6; }
19092
19093 save_CFLAGS="$CFLAGS"
19094 CFLAGS="$CFLAGS -fvisibility=hidden"
19095
19096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19097 /* end confdefs.h. */
19098
19099 int
19100 main (void)
19101 {
19102
19103 ;
19104 return 0;
19105 }
19106 _ACEOF
19107 if ac_fn_c_try_compile "$LINENO"
19108 then :
19109 flag_ok=yes
19110 else $as_nop
19111 flag_ok=no
19112 fi
19113 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19114 CFLAGS="$save_CFLAGS"
19115
19116 if test "X$flag_ok" = Xyes ; then
19117 VISIBILITY_CFLAGS="-fvisibility=hidden"
19118
19119 true
19120 else
19121
19122 true
19123 fi
19124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
19125 printf "%s\n" "$flag_ok" >&6; }
19126
19127
19128
19129 if test -n "$VISIBILITY_CFLAGS"
19130 then :
19131
19132 printf "%s\n" "#define SUPPORT_VISIBILITY_HIDDEN 1" >>confdefs.h
19133
19134 fi
19135
19136 CFLAGS="$CFLAGS $VISIBILITY_CFLAGS"
19137
19138 cat >confcache <<\_ACEOF
19139 # This file is a shell script that caches the results of configure
19140 # tests run on this system so they can be shared between configure
19141 # scripts and configure runs, see configure's option --config-cache.
19142 # It is not useful on other systems. If it contains results you don't
19143 # want to keep, you may remove or edit it.
19144 #
19145 # config.status only pays attention to the cache file if you give it
19146 # the --recheck option to rerun configure.
19147 #
19148 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19149 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19150 # following values.
19151
19152 _ACEOF
19153
19154 # The following way of writing the cache mishandles newlines in values,
19155 # but we know of no workaround that is simple, portable, and efficient.
19156 # So, we kill variables containing newlines.
19157 # Ultrix sh set writes to stderr and can't be redirected directly,
19158 # and sets the high bit in the cache file unless we assign to the vars.
19159 (
19160 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19161 eval ac_val=\$$ac_var
19162 case $ac_val in #(
19163 *${as_nl}*)
19164 case $ac_var in #(
19165 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19166 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19167 esac
19168 case $ac_var in #(
19169 _ | IFS | as_nl) ;; #(
19170 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19171 *) { eval $ac_var=; unset $ac_var;} ;;
19172 esac ;;
19173 esac
19174 done
19175
19176 (set) 2>&1 |
19177 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19178 *${as_nl}ac_space=\ *)
19179 # `set' does not quote correctly, so add quotes: double-quote
19180 # substitution turns \\\\ into \\, and sed turns \\ into \.
19181 sed -n \
19182 "s/'/'\\\\''/g;
19183 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19184 ;; #(
19185 *)
19186 # `set' quotes correctly as required by POSIX, so do not add quotes.
19187 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19188 ;;
19189 esac |
19190 sort
19191 ) |
19192 sed '
19193 /^ac_cv_env_/b end
19194 t clear
19195 :clear
19196 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19197 t end
19198 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19199 :end' >>confcache
19200 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19201 if test -w "$cache_file"; then
19202 if test "x$cache_file" != "x/dev/null"; then
19203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19204 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19205 if test ! -f "$cache_file" || test -h "$cache_file"; then
19206 cat confcache >"$cache_file"
19207 else
19208 case $cache_file in #(
19209 */* | ?:*)
19210 mv -f confcache "$cache_file"$$ &&
19211 mv -f "$cache_file"$$ "$cache_file" ;; #(
19212 *)
19213 mv -f confcache "$cache_file" ;;
19214 esac
19215 fi
19216 fi
19217 else
19218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19219 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19220 fi
19221 fi
19222 rm -f confcache
19223
19224 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19225 # Let make expand exec_prefix.
19226 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19227
19228 DEFS=-DHAVE_CONFIG_H
19229
19230 ac_libobjs=
19231 ac_ltlibobjs=
19232 U=
19233 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19234 # 1. Remove the extension, and $U if already installed.
19235 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19236 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19237 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19238 # will be set to the directory where LIBOBJS objects are built.
19239 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19240 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19241 done
19242 LIBOBJS=$ac_libobjs
19243
19244 LTLIBOBJS=$ac_ltlibobjs
19245
19246
19247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19248 printf %s "checking that generated files are newer than configure... " >&6; }
19249 if test -n "$am_sleep_pid"; then
19250 # Hide warnings about reused PIDs.
19251 wait $am_sleep_pid 2>/dev/null
19252 fi
19253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19254 printf "%s\n" "done" >&6; }
19255 if test -n "$EXEEXT"; then
19256 am__EXEEXT_TRUE=
19257 am__EXEEXT_FALSE='#'
19258 else
19259 am__EXEEXT_TRUE='#'
19260 am__EXEEXT_FALSE=
19261 fi
19262
19263 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19264 as_fn_error $? "conditional \"AMDEP\" was never defined.
19265 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19266 fi
19267 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19268 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19269 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19270 fi
19271 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19272 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19273 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19274 fi
19275 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19276 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19277 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19278 fi
19279 if test -z "${CPP_WRAPPER_TRUE}" && test -z "${CPP_WRAPPER_FALSE}"; then
19280 as_fn_error $? "conditional \"CPP_WRAPPER\" was never defined.
19281 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19282 fi
19283 if test -z "${ENABLE_INTERNAL_TESTS_TRUE}" && test -z "${ENABLE_INTERNAL_TESTS_FALSE}"; then
19284 as_fn_error $? "conditional \"ENABLE_INTERNAL_TESTS\" was never defined.
19285 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19286 fi
19287 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
19288 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
19289 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19290 fi
19291
19292 : "${CONFIG_STATUS=./config.status}"
19293 ac_write_fail=0
19294 ac_clean_files_save=$ac_clean_files
19295 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19297 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19298 as_write_fail=0
19299 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19300 #! $SHELL
19301 # Generated by $as_me.
19302 # Run this file to recreate the current configuration.
19303 # Compiler output produced by configure, useful for debugging
19304 # configure, is in config.log if it exists.
19305
19306 debug=false
19307 ac_cs_recheck=false
19308 ac_cs_silent=false
19309
19310 SHELL=\${CONFIG_SHELL-$SHELL}
19311 export SHELL
19312 _ASEOF
19313 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19314 ## -------------------- ##
19315 ## M4sh Initialization. ##
19316 ## -------------------- ##
19317
19318 # Be more Bourne compatible
19319 DUALCASE=1; export DUALCASE # for MKS sh
19320 as_nop=:
19321 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19322 then :
19323 emulate sh
19324 NULLCMD=:
19325 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19326 # is contrary to our usage. Disable this feature.
19327 alias -g '${1+"$@"}'='"$@"'
19328 setopt NO_GLOB_SUBST
19329 else $as_nop
19330 case `(set -o) 2>/dev/null` in #(
19331 *posix*) :
19332 set -o posix ;; #(
19333 *) :
19334 ;;
19335 esac
19336 fi
19337
19338
19339
19340 # Reset variables that may have inherited troublesome values from
19341 # the environment.
19342
19343 # IFS needs to be set, to space, tab, and newline, in precisely that order.
19344 # (If _AS_PATH_WALK were called with IFS unset, it would have the
19345 # side effect of setting IFS to empty, thus disabling word splitting.)
19346 # Quoting is to prevent editors from complaining about space-tab.
19347 as_nl='
19348 '
19349 export as_nl
19350 IFS=" "" $as_nl"
19351
19352 PS1='$ '
19353 PS2='> '
19354 PS4='+ '
19355
19356 # Ensure predictable behavior from utilities with locale-dependent output.
19357 LC_ALL=C
19358 export LC_ALL
19359 LANGUAGE=C
19360 export LANGUAGE
19361
19362 # We cannot yet rely on "unset" to work, but we need these variables
19363 # to be unset--not just set to an empty or harmless value--now, to
19364 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
19365 # also avoids known problems related to "unset" and subshell syntax
19366 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19367 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19368 do eval test \${$as_var+y} \
19369 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19370 done
19371
19372 # Ensure that fds 0, 1, and 2 are open.
19373 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19374 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19375 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
19376
19377 # The user is always right.
19378 if ${PATH_SEPARATOR+false} :; then
19379 PATH_SEPARATOR=:
19380 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19381 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19382 PATH_SEPARATOR=';'
19383 }
19384 fi
19385
19386
19387 # Find who we are. Look in the path if we contain no directory separator.
19388 as_myself=
19389 case $0 in #((
19390 *[\\/]* ) as_myself=$0 ;;
19391 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19392 for as_dir in $PATH
19393 do
19394 IFS=$as_save_IFS
19395 case $as_dir in #(((
19396 '') as_dir=./ ;;
19397 */) ;;
19398 *) as_dir=$as_dir/ ;;
19399 esac
19400 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19401 done
19402 IFS=$as_save_IFS
19403
19404 ;;
19405 esac
19406 # We did not find ourselves, most probably we were run as `sh COMMAND'
19407 # in which case we are not to be found in the path.
19408 if test "x$as_myself" = x; then
19409 as_myself=$0
19410 fi
19411 if test ! -f "$as_myself"; then
19412 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19413 exit 1
19414 fi
19415
19416
19417
19418 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19419 # ----------------------------------------
19420 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19421 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19422 # script with STATUS, using 1 if that was 0.
19423 as_fn_error ()
19424 {
19425 as_status=$1; test $as_status -eq 0 && as_status=1
19426 if test "$4"; then
19427 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19428 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19429 fi
19430 printf "%s\n" "$as_me: error: $2" >&2
19431 as_fn_exit $as_status
19432 } # as_fn_error
19433
19434
19435
19436 # as_fn_set_status STATUS
19437 # -----------------------
19438 # Set $? to STATUS, without forking.
19439 as_fn_set_status ()
19440 {
19441 return $1
19442 } # as_fn_set_status
19443
19444 # as_fn_exit STATUS
19445 # -----------------
19446 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19447 as_fn_exit ()
19448 {
19449 set +e
19450 as_fn_set_status $1
19451 exit $1
19452 } # as_fn_exit
19453
19454 # as_fn_unset VAR
19455 # ---------------
19456 # Portably unset VAR.
19457 as_fn_unset ()
19458 {
19459 { eval $1=; unset $1;}
19460 }
19461 as_unset=as_fn_unset
19462
19463 # as_fn_append VAR VALUE
19464 # ----------------------
19465 # Append the text in VALUE to the end of the definition contained in VAR. Take
19466 # advantage of any shell optimizations that allow amortized linear growth over
19467 # repeated appends, instead of the typical quadratic growth present in naive
19468 # implementations.
19469 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
19470 then :
19471 eval 'as_fn_append ()
19472 {
19473 eval $1+=\$2
19474 }'
19475 else $as_nop
19476 as_fn_append ()
19477 {
19478 eval $1=\$$1\$2
19479 }
19480 fi # as_fn_append
19481
19482 # as_fn_arith ARG...
19483 # ------------------
19484 # Perform arithmetic evaluation on the ARGs, and store the result in the
19485 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19486 # must be portable across $(()) and expr.
19487 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
19488 then :
19489 eval 'as_fn_arith ()
19490 {
19491 as_val=$(( $* ))
19492 }'
19493 else $as_nop
19494 as_fn_arith ()
19495 {
19496 as_val=`expr "$@" || test $? -eq 1`
19497 }
19498 fi # as_fn_arith
19499
19500
19501 if expr a : '\(a\)' >/dev/null 2>&1 &&
19502 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19503 as_expr=expr
19504 else
19505 as_expr=false
19506 fi
19507
19508 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19509 as_basename=basename
19510 else
19511 as_basename=false
19512 fi
19513
19514 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19515 as_dirname=dirname
19516 else
19517 as_dirname=false
19518 fi
19519
19520 as_me=`$as_basename -- "$0" ||
19521 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19522 X"$0" : 'X\(//\)$' \| \
19523 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19524 printf "%s\n" X/"$0" |
19525 sed '/^.*\/\([^/][^/]*\)\/*$/{
19526 s//\1/
19527 q
19528 }
19529 /^X\/\(\/\/\)$/{
19530 s//\1/
19531 q
19532 }
19533 /^X\/\(\/\).*/{
19534 s//\1/
19535 q
19536 }
19537 s/.*/./; q'`
19538
19539 # Avoid depending upon Character Ranges.
19540 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19541 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19542 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19543 as_cr_digits='0123456789'
19544 as_cr_alnum=$as_cr_Letters$as_cr_digits
19545
19546
19547 # Determine whether it's possible to make 'echo' print without a newline.
19548 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
19549 # for compatibility with existing Makefiles.
19550 ECHO_C= ECHO_N= ECHO_T=
19551 case `echo -n x` in #(((((
19552 -n*)
19553 case `echo 'xy\c'` in
19554 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19555 xy) ECHO_C='\c';;
19556 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19557 ECHO_T=' ';;
19558 esac;;
19559 *)
19560 ECHO_N='-n';;
19561 esac
19562
19563 # For backward compatibility with old third-party macros, we provide
19564 # the shell variables $as_echo and $as_echo_n. New code should use
19565 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
19566 as_echo='printf %s\n'
19567 as_echo_n='printf %s'
19568
19569 rm -f conf$$ conf$$.exe conf$$.file
19570 if test -d conf$$.dir; then
19571 rm -f conf$$.dir/conf$$.file
19572 else
19573 rm -f conf$$.dir
19574 mkdir conf$$.dir 2>/dev/null
19575 fi
19576 if (echo >conf$$.file) 2>/dev/null; then
19577 if ln -s conf$$.file conf$$ 2>/dev/null; then
19578 as_ln_s='ln -s'
19579 # ... but there are two gotchas:
19580 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19581 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19582 # In both cases, we have to default to `cp -pR'.
19583 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19584 as_ln_s='cp -pR'
19585 elif ln conf$$.file conf$$ 2>/dev/null; then
19586 as_ln_s=ln
19587 else
19588 as_ln_s='cp -pR'
19589 fi
19590 else
19591 as_ln_s='cp -pR'
19592 fi
19593 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19594 rmdir conf$$.dir 2>/dev/null
19595
19596
19597 # as_fn_mkdir_p
19598 # -------------
19599 # Create "$as_dir" as a directory, including parents if necessary.
19600 as_fn_mkdir_p ()
19601 {
19602
19603 case $as_dir in #(
19604 -*) as_dir=./$as_dir;;
19605 esac
19606 test -d "$as_dir" || eval $as_mkdir_p || {
19607 as_dirs=
19608 while :; do
19609 case $as_dir in #(
19610 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19611 *) as_qdir=$as_dir;;
19612 esac
19613 as_dirs="'$as_qdir' $as_dirs"
19614 as_dir=`$as_dirname -- "$as_dir" ||
19615 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19616 X"$as_dir" : 'X\(//\)[^/]' \| \
19617 X"$as_dir" : 'X\(//\)$' \| \
19618 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19619 printf "%s\n" X"$as_dir" |
19620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19621 s//\1/
19622 q
19623 }
19624 /^X\(\/\/\)[^/].*/{
19625 s//\1/
19626 q
19627 }
19628 /^X\(\/\/\)$/{
19629 s//\1/
19630 q
19631 }
19632 /^X\(\/\).*/{
19633 s//\1/
19634 q
19635 }
19636 s/.*/./; q'`
19637 test -d "$as_dir" && break
19638 done
19639 test -z "$as_dirs" || eval "mkdir $as_dirs"
19640 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19641
19642
19643 } # as_fn_mkdir_p
19644 if mkdir -p . 2>/dev/null; then
19645 as_mkdir_p='mkdir -p "$as_dir"'
19646 else
19647 test -d ./-p && rmdir ./-p
19648 as_mkdir_p=false
19649 fi
19650
19651
19652 # as_fn_executable_p FILE
19653 # -----------------------
19654 # Test if FILE is an executable regular file.
19655 as_fn_executable_p ()
19656 {
19657 test -f "$1" && test -x "$1"
19658 } # as_fn_executable_p
19659 as_test_x='test -x'
19660 as_executable_p=as_fn_executable_p
19661
19662 # Sed expression to map a string onto a valid CPP name.
19663 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19664
19665 # Sed expression to map a string onto a valid variable name.
19666 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19667
19668
19669 exec 6>&1
19670 ## ----------------------------------- ##
19671 ## Main body of $CONFIG_STATUS script. ##
19672 ## ----------------------------------- ##
19673 _ASEOF
19674 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19675
19676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19677 # Save the log message, to keep $0 and so on meaningful, and to
19678 # report actual input values of CONFIG_FILES etc. instead of their
19679 # values after options handling.
19680 ac_log="
19681 This file was extended by fcml $as_me 1.3.0, which was
19682 generated by GNU Autoconf 2.71. Invocation command line was
19683
19684 CONFIG_FILES = $CONFIG_FILES
19685 CONFIG_HEADERS = $CONFIG_HEADERS
19686 CONFIG_LINKS = $CONFIG_LINKS
19687 CONFIG_COMMANDS = $CONFIG_COMMANDS
19688 $ $0 $@
19689
19690 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19691 "
19692
19693 _ACEOF
19694
19695 case $ac_config_files in *"
19696 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19697 esac
19698
19699 case $ac_config_headers in *"
19700 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19701 esac
19702
19703
19704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19705 # Files that config.status was made for.
19706 config_files="$ac_config_files"
19707 config_headers="$ac_config_headers"
19708 config_commands="$ac_config_commands"
19709
19710 _ACEOF
19711
19712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19713 ac_cs_usage="\
19714 \`$as_me' instantiates files and other configuration actions
19715 from templates according to the current configuration. Unless the files
19716 and actions are specified as TAGs, all are instantiated by default.
19717
19718 Usage: $0 [OPTION]... [TAG]...
19719
19720 -h, --help print this help, then exit
19721 -V, --version print version number and configuration settings, then exit
19722 --config print configuration, then exit
19723 -q, --quiet, --silent
19724 do not print progress messages
19725 -d, --debug don't remove temporary files
19726 --recheck update $as_me by reconfiguring in the same conditions
19727 --file=FILE[:TEMPLATE]
19728 instantiate the configuration file FILE
19729 --header=FILE[:TEMPLATE]
19730 instantiate the configuration header FILE
19731
19732 Configuration files:
19733 $config_files
19734
19735 Configuration headers:
19736 $config_headers
19737
19738 Configuration commands:
19739 $config_commands
19740
19741 Report bugs to <[email protected]>."
19742
19743 _ACEOF
19744 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
19745 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
19746 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19747 ac_cs_config='$ac_cs_config_escaped'
19748 ac_cs_version="\\
19749 fcml config.status 1.3.0
19750 configured by $0, generated by GNU Autoconf 2.71,
19751 with options \\"\$ac_cs_config\\"
19752
19753 Copyright (C) 2021 Free Software Foundation, Inc.
19754 This config.status script is free software; the Free Software Foundation
19755 gives unlimited permission to copy, distribute and modify it."
19756
19757 ac_pwd='$ac_pwd'
19758 srcdir='$srcdir'
19759 INSTALL='$INSTALL'
19760 MKDIR_P='$MKDIR_P'
19761 AWK='$AWK'
19762 test -n "\$AWK" || AWK=awk
19763 _ACEOF
19764
19765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19766 # The default lists apply if the user does not specify any file.
19767 ac_need_defaults=:
19768 while test $# != 0
19769 do
19770 case $1 in
19771 --*=?*)
19772 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19773 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19774 ac_shift=:
19775 ;;
19776 --*=)
19777 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19778 ac_optarg=
19779 ac_shift=:
19780 ;;
19781 *)
19782 ac_option=$1
19783 ac_optarg=$2
19784 ac_shift=shift
19785 ;;
19786 esac
19787
19788 case $ac_option in
19789 # Handling of the options.
19790 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19791 ac_cs_recheck=: ;;
19792 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19793 printf "%s\n" "$ac_cs_version"; exit ;;
19794 --config | --confi | --conf | --con | --co | --c )
19795 printf "%s\n" "$ac_cs_config"; exit ;;
19796 --debug | --debu | --deb | --de | --d | -d )
19797 debug=: ;;
19798 --file | --fil | --fi | --f )
19799 $ac_shift
19800 case $ac_optarg in
19801 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19802 '') as_fn_error $? "missing file argument" ;;
19803 esac
19804 as_fn_append CONFIG_FILES " '$ac_optarg'"
19805 ac_need_defaults=false;;
19806 --header | --heade | --head | --hea )
19807 $ac_shift
19808 case $ac_optarg in
19809 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19810 esac
19811 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19812 ac_need_defaults=false;;
19813 --he | --h)
19814 # Conflict between --help and --header
19815 as_fn_error $? "ambiguous option: \`$1'
19816 Try \`$0 --help' for more information.";;
19817 --help | --hel | -h )
19818 printf "%s\n" "$ac_cs_usage"; exit ;;
19819 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19820 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19821 ac_cs_silent=: ;;
19822
19823 # This is an error.
19824 -*) as_fn_error $? "unrecognized option: \`$1'
19825 Try \`$0 --help' for more information." ;;
19826
19827 *) as_fn_append ac_config_targets " $1"
19828 ac_need_defaults=false ;;
19829
19830 esac
19831 shift
19832 done
19833
19834 ac_configure_extra_args=
19835
19836 if $ac_cs_silent; then
19837 exec 6>/dev/null
19838 ac_configure_extra_args="$ac_configure_extra_args --silent"
19839 fi
19840
19841 _ACEOF
19842 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19843 if \$ac_cs_recheck; then
19844 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19845 shift
19846 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
19847 CONFIG_SHELL='$SHELL'
19848 export CONFIG_SHELL
19849 exec "\$@"
19850 fi
19851
19852 _ACEOF
19853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19854 exec 5>>config.log
19855 {
19856 echo
19857 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19858 ## Running $as_me. ##
19859 _ASBOX
19860 printf "%s\n" "$ac_log"
19861 } >&5
19862
19863 _ACEOF
19864 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19865 #
19866 # INIT-COMMANDS
19867 #
19868 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
19869
19870
19871 # The HP-UX ksh and POSIX shell print the target directory to stdout
19872 # if CDPATH is set.
19873 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19874
19875 sed_quote_subst='$sed_quote_subst'
19876 double_quote_subst='$double_quote_subst'
19877 delay_variable_subst='$delay_variable_subst'
19878 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19879 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19880 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19881 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19882 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19883 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19884 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19885 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19886 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19887 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19888 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19889 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19890 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19891 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19892 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19893 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19894 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19895 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19896 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19897 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19898 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19899 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19900 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19901 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19902 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19903 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19904 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19905 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19906 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19907 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19908 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19909 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19910 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19911 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19912 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19913 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19914 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19915 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19916 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19917 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19918 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19919 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19920 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19921 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19922 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19923 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19924 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19925 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19926 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19927 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19928 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19929 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19930 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19931 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19932 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19933 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19934 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19935 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19936 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
19937 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19938 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19939 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19940 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19941 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19942 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19943 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19944 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19945 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19946 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19947 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19948 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19949 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19950 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19951 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19952 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19953 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19954 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19955 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19956 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19957 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19958 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19959 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19960 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19961 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19962 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19963 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19964 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19965 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19966 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19967 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19968 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19969 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19970 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19971 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19972 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19973 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19974 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19975 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19976 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19977 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19978 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19979 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19980 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19981 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19982 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19983 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19984 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19985 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19986 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19987 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19988 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19989 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19990 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19991 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19992 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19993 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19994 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19995 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19996 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19997 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19998 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19999 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20000 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20001 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20002 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20003 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20004 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20005 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20006 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20007 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20008 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20009 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20010 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20011 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20012 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20013 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20014 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20015 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20016 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20017 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20018 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20019 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20020 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20021 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20022 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20023 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20024 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20025 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20026 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20027 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20028 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20029 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20030 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20031 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20032 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20033 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20034 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20035 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20036 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20037 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20038 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20039 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20040 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20041 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20042 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20043 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20044 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20045 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20046 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20047 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20048 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20049 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20050 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20051 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20052 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20053 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20054 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20055 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20056 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20057 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20058 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20059 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20060 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20061 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20062 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20063 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20064 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20065 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20066 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20067
20068 LTCC='$LTCC'
20069 LTCFLAGS='$LTCFLAGS'
20070 compiler='$compiler_DEFAULT'
20071
20072 # A function that is used when there is no print builtin or printf.
20073 func_fallback_echo ()
20074 {
20075 eval 'cat <<_LTECHO_EOF
20076 \$1
20077 _LTECHO_EOF'
20078 }
20079
20080 # Quote evaled strings.
20081 for var in SHELL \
20082 ECHO \
20083 PATH_SEPARATOR \
20084 SED \
20085 GREP \
20086 EGREP \
20087 FGREP \
20088 LD \
20089 NM \
20090 LN_S \
20091 lt_SP2NL \
20092 lt_NL2SP \
20093 reload_flag \
20094 OBJDUMP \
20095 deplibs_check_method \
20096 file_magic_cmd \
20097 file_magic_glob \
20098 want_nocaseglob \
20099 DLLTOOL \
20100 sharedlib_from_linklib_cmd \
20101 AR \
20102 AR_FLAGS \
20103 archiver_list_spec \
20104 STRIP \
20105 RANLIB \
20106 CC \
20107 CFLAGS \
20108 compiler \
20109 lt_cv_sys_global_symbol_pipe \
20110 lt_cv_sys_global_symbol_to_cdecl \
20111 lt_cv_sys_global_symbol_to_import \
20112 lt_cv_sys_global_symbol_to_c_name_address \
20113 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20114 lt_cv_nm_interface \
20115 nm_file_list_spec \
20116 lt_cv_truncate_bin \
20117 lt_prog_compiler_no_builtin_flag \
20118 lt_prog_compiler_pic \
20119 lt_prog_compiler_wl \
20120 lt_prog_compiler_static \
20121 lt_cv_prog_compiler_c_o \
20122 need_locks \
20123 MANIFEST_TOOL \
20124 DSYMUTIL \
20125 NMEDIT \
20126 LIPO \
20127 OTOOL \
20128 OTOOL64 \
20129 shrext_cmds \
20130 export_dynamic_flag_spec \
20131 whole_archive_flag_spec \
20132 compiler_needs_object \
20133 with_gnu_ld \
20134 allow_undefined_flag \
20135 no_undefined_flag \
20136 hardcode_libdir_flag_spec \
20137 hardcode_libdir_separator \
20138 exclude_expsyms \
20139 include_expsyms \
20140 file_list_spec \
20141 variables_saved_for_relink \
20142 libname_spec \
20143 library_names_spec \
20144 soname_spec \
20145 install_override_mode \
20146 finish_eval \
20147 old_striplib \
20148 striplib \
20149 compiler_lib_search_dirs \
20150 predep_objects \
20151 postdep_objects \
20152 predeps \
20153 postdeps \
20154 compiler_lib_search_path \
20155 LD_CXX \
20156 reload_flag_CXX \
20157 compiler_CXX \
20158 lt_prog_compiler_no_builtin_flag_CXX \
20159 lt_prog_compiler_pic_CXX \
20160 lt_prog_compiler_wl_CXX \
20161 lt_prog_compiler_static_CXX \
20162 lt_cv_prog_compiler_c_o_CXX \
20163 export_dynamic_flag_spec_CXX \
20164 whole_archive_flag_spec_CXX \
20165 compiler_needs_object_CXX \
20166 with_gnu_ld_CXX \
20167 allow_undefined_flag_CXX \
20168 no_undefined_flag_CXX \
20169 hardcode_libdir_flag_spec_CXX \
20170 hardcode_libdir_separator_CXX \
20171 exclude_expsyms_CXX \
20172 include_expsyms_CXX \
20173 file_list_spec_CXX \
20174 compiler_lib_search_dirs_CXX \
20175 predep_objects_CXX \
20176 postdep_objects_CXX \
20177 predeps_CXX \
20178 postdeps_CXX \
20179 compiler_lib_search_path_CXX; do
20180 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20181 *[\\\\\\\`\\"\\\$]*)
20182 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20183 ;;
20184 *)
20185 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20186 ;;
20187 esac
20188 done
20189
20190 # Double-quote double-evaled strings.
20191 for var in reload_cmds \
20192 old_postinstall_cmds \
20193 old_postuninstall_cmds \
20194 old_archive_cmds \
20195 extract_expsyms_cmds \
20196 old_archive_from_new_cmds \
20197 old_archive_from_expsyms_cmds \
20198 archive_cmds \
20199 archive_expsym_cmds \
20200 module_cmds \
20201 module_expsym_cmds \
20202 export_symbols_cmds \
20203 prelink_cmds \
20204 postlink_cmds \
20205 postinstall_cmds \
20206 postuninstall_cmds \
20207 finish_cmds \
20208 sys_lib_search_path_spec \
20209 configure_time_dlsearch_path \
20210 configure_time_lt_sys_library_path \
20211 reload_cmds_CXX \
20212 old_archive_cmds_CXX \
20213 old_archive_from_new_cmds_CXX \
20214 old_archive_from_expsyms_cmds_CXX \
20215 archive_cmds_CXX \
20216 archive_expsym_cmds_CXX \
20217 module_cmds_CXX \
20218 module_expsym_cmds_CXX \
20219 export_symbols_cmds_CXX \
20220 prelink_cmds_CXX \
20221 postlink_cmds_CXX; do
20222 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20223 *[\\\\\\\`\\"\\\$]*)
20224 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20225 ;;
20226 *)
20227 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20228 ;;
20229 esac
20230 done
20231
20232 ac_aux_dir='$ac_aux_dir'
20233
20234 # See if we are running on zsh, and set the options that allow our
20235 # commands through without removal of \ escapes INIT.
20236 if test -n "\${ZSH_VERSION+set}"; then
20237 setopt NO_GLOB_SUBST
20238 fi
20239
20240
20241 PACKAGE='$PACKAGE'
20242 VERSION='$VERSION'
20243 RM='$RM'
20244 ofile='$ofile'
20245
20246
20247
20248
20249
20250
20251 _ACEOF
20252
20253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20254
20255 # Handling of arguments.
20256 for ac_config_target in $ac_config_targets
20257 do
20258 case $ac_config_target in
20259 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20260 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20261 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20262 "docs/doxygen/doxyfile") CONFIG_FILES="$CONFIG_FILES docs/doxygen/doxyfile" ;;
20263 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20264 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20265 "check/Makefile") CONFIG_FILES="$CONFIG_FILES check/Makefile" ;;
20266 "check/stf/Makefile") CONFIG_FILES="$CONFIG_FILES check/stf/Makefile" ;;
20267 "check/internal-tests/Makefile") CONFIG_FILES="$CONFIG_FILES check/internal-tests/Makefile" ;;
20268 "check/public-tests/Makefile") CONFIG_FILES="$CONFIG_FILES check/public-tests/Makefile" ;;
20269 "check/cpp-tests/Makefile") CONFIG_FILES="$CONFIG_FILES check/cpp-tests/Makefile" ;;
20270 "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
20271 "example/fcml-disasm/Makefile") CONFIG_FILES="$CONFIG_FILES example/fcml-disasm/Makefile" ;;
20272 "example/fcml-asm/Makefile") CONFIG_FILES="$CONFIG_FILES example/fcml-asm/Makefile" ;;
20273 "example/hsdis/Makefile") CONFIG_FILES="$CONFIG_FILES example/hsdis/Makefile" ;;
20274 "win32/Makefile") CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
20275 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20276 "docs/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES docs/doxygen/Makefile" ;;
20277
20278 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20279 esac
20280 done
20281
20282
20283 # If the user did not use the arguments to specify the items to instantiate,
20284 # then the envvar interface is used. Set only those that are not.
20285 # We use the long form for the default assignment because of an extremely
20286 # bizarre bug on SunOS 4.1.3.
20287 if $ac_need_defaults; then
20288 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20289 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20290 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20291 fi
20292
20293 # Have a temporary directory for convenience. Make it in the build tree
20294 # simply because there is no reason against having it here, and in addition,
20295 # creating and moving files from /tmp can sometimes cause problems.
20296 # Hook for its removal unless debugging.
20297 # Note that there is a small window in which the directory will not be cleaned:
20298 # after its creation but before its name has been assigned to `$tmp'.
20299 $debug ||
20300 {
20301 tmp= ac_tmp=
20302 trap 'exit_status=$?
20303 : "${ac_tmp:=$tmp}"
20304 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20305 ' 0
20306 trap 'as_fn_exit 1' 1 2 13 15
20307 }
20308 # Create a (secure) tmp directory for tmp files.
20309
20310 {
20311 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20312 test -d "$tmp"
20313 } ||
20314 {
20315 tmp=./conf$$-$RANDOM
20316 (umask 077 && mkdir "$tmp")
20317 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20318 ac_tmp=$tmp
20319
20320 # Set up the scripts for CONFIG_FILES section.
20321 # No need to generate them if there are no CONFIG_FILES.
20322 # This happens for instance with `./config.status config.h'.
20323 if test -n "$CONFIG_FILES"; then
20324
20325
20326 ac_cr=`echo X | tr X '\015'`
20327 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20328 # But we know of no other shell where ac_cr would be empty at this
20329 # point, so we can use a bashism as a fallback.
20330 if test "x$ac_cr" = x; then
20331 eval ac_cr=\$\'\\r\'
20332 fi
20333 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20334 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20335 ac_cs_awk_cr='\\r'
20336 else
20337 ac_cs_awk_cr=$ac_cr
20338 fi
20339
20340 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20341 _ACEOF
20342
20343
20344 {
20345 echo "cat >conf$$subs.awk <<_ACEOF" &&
20346 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20347 echo "_ACEOF"
20348 } >conf$$subs.sh ||
20349 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20350 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20351 ac_delim='%!_!# '
20352 for ac_last_try in false false false false false :; do
20353 . ./conf$$subs.sh ||
20354 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20355
20356 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20357 if test $ac_delim_n = $ac_delim_num; then
20358 break
20359 elif $ac_last_try; then
20360 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20361 else
20362 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20363 fi
20364 done
20365 rm -f conf$$subs.sh
20366
20367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20368 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20369 _ACEOF
20370 sed -n '
20371 h
20372 s/^/S["/; s/!.*/"]=/
20373 p
20374 g
20375 s/^[^!]*!//
20376 :repl
20377 t repl
20378 s/'"$ac_delim"'$//
20379 t delim
20380 :nl
20381 h
20382 s/\(.\{148\}\)..*/\1/
20383 t more1
20384 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20385 p
20386 n
20387 b repl
20388 :more1
20389 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20390 p
20391 g
20392 s/.\{148\}//
20393 t nl
20394 :delim
20395 h
20396 s/\(.\{148\}\)..*/\1/
20397 t more2
20398 s/["\\]/\\&/g; s/^/"/; s/$/"/
20399 p
20400 b
20401 :more2
20402 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20403 p
20404 g
20405 s/.\{148\}//
20406 t delim
20407 ' <conf$$subs.awk | sed '
20408 /^[^""]/{
20409 N
20410 s/\n//
20411 }
20412 ' >>$CONFIG_STATUS || ac_write_fail=1
20413 rm -f conf$$subs.awk
20414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20415 _ACAWK
20416 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20417 for (key in S) S_is_set[key] = 1
20418 FS = ""
20419
20420 }
20421 {
20422 line = $ 0
20423 nfields = split(line, field, "@")
20424 substed = 0
20425 len = length(field[1])
20426 for (i = 2; i < nfields; i++) {
20427 key = field[i]
20428 keylen = length(key)
20429 if (S_is_set[key]) {
20430 value = S[key]
20431 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20432 len += length(value) + length(field[++i])
20433 substed = 1
20434 } else
20435 len += 1 + keylen
20436 }
20437
20438 print line
20439 }
20440
20441 _ACAWK
20442 _ACEOF
20443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20444 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20445 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20446 else
20447 cat
20448 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20449 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20450 _ACEOF
20451
20452 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20453 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20454 # trailing colons and then remove the whole line if VPATH becomes empty
20455 # (actually we leave an empty line to preserve line numbers).
20456 if test "x$srcdir" = x.; then
20457 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20458 h
20459 s///
20460 s/^/:/
20461 s/[ ]*$/:/
20462 s/:\$(srcdir):/:/g
20463 s/:\${srcdir}:/:/g
20464 s/:@srcdir@:/:/g
20465 s/^:*//
20466 s/:*$//
20467 x
20468 s/\(=[ ]*\).*/\1/
20469 G
20470 s/\n//
20471 s/^[^=]*=[ ]*$//
20472 }'
20473 fi
20474
20475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20476 fi # test -n "$CONFIG_FILES"
20477
20478 # Set up the scripts for CONFIG_HEADERS section.
20479 # No need to generate them if there are no CONFIG_HEADERS.
20480 # This happens for instance with `./config.status Makefile'.
20481 if test -n "$CONFIG_HEADERS"; then
20482 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20483 BEGIN {
20484 _ACEOF
20485
20486 # Transform confdefs.h into an awk script `defines.awk', embedded as
20487 # here-document in config.status, that substitutes the proper values into
20488 # config.h.in to produce config.h.
20489
20490 # Create a delimiter string that does not exist in confdefs.h, to ease
20491 # handling of long lines.
20492 ac_delim='%!_!# '
20493 for ac_last_try in false false :; do
20494 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20495 if test -z "$ac_tt"; then
20496 break
20497 elif $ac_last_try; then
20498 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20499 else
20500 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20501 fi
20502 done
20503
20504 # For the awk script, D is an array of macro values keyed by name,
20505 # likewise P contains macro parameters if any. Preserve backslash
20506 # newline sequences.
20507
20508 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20509 sed -n '
20510 s/.\{148\}/&'"$ac_delim"'/g
20511 t rset
20512 :rset
20513 s/^[ ]*#[ ]*define[ ][ ]*/ /
20514 t def
20515 d
20516 :def
20517 s/\\$//
20518 t bsnl
20519 s/["\\]/\\&/g
20520 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20521 D["\1"]=" \3"/p
20522 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20523 d
20524 :bsnl
20525 s/["\\]/\\&/g
20526 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20527 D["\1"]=" \3\\\\\\n"\\/p
20528 t cont
20529 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20530 t cont
20531 d
20532 :cont
20533 n
20534 s/.\{148\}/&'"$ac_delim"'/g
20535 t clear
20536 :clear
20537 s/\\$//
20538 t bsnlc
20539 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20540 d
20541 :bsnlc
20542 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20543 b cont
20544 ' <confdefs.h | sed '
20545 s/'"$ac_delim"'/"\\\
20546 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20547
20548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20549 for (key in D) D_is_set[key] = 1
20550 FS = ""
20551 }
20552 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20553 line = \$ 0
20554 split(line, arg, " ")
20555 if (arg[1] == "#") {
20556 defundef = arg[2]
20557 mac1 = arg[3]
20558 } else {
20559 defundef = substr(arg[1], 2)
20560 mac1 = arg[2]
20561 }
20562 split(mac1, mac2, "(") #)
20563 macro = mac2[1]
20564 prefix = substr(line, 1, index(line, defundef) - 1)
20565 if (D_is_set[macro]) {
20566 # Preserve the white space surrounding the "#".
20567 print prefix "define", macro P[macro] D[macro]
20568 next
20569 } else {
20570 # Replace #undef with comments. This is necessary, for example,
20571 # in the case of _POSIX_SOURCE, which is predefined and required
20572 # on some systems where configure will not decide to define it.
20573 if (defundef == "undef") {
20574 print "/*", prefix defundef, macro, "*/"
20575 next
20576 }
20577 }
20578 }
20579 { print }
20580 _ACAWK
20581 _ACEOF
20582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20583 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20584 fi # test -n "$CONFIG_HEADERS"
20585
20586
20587 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20588 shift
20589 for ac_tag
20590 do
20591 case $ac_tag in
20592 :[FHLC]) ac_mode=$ac_tag; continue;;
20593 esac
20594 case $ac_mode$ac_tag in
20595 :[FHL]*:*);;
20596 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20597 :[FH]-) ac_tag=-:-;;
20598 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20599 esac
20600 ac_save_IFS=$IFS
20601 IFS=:
20602 set x $ac_tag
20603 IFS=$ac_save_IFS
20604 shift
20605 ac_file=$1
20606 shift
20607
20608 case $ac_mode in
20609 :L) ac_source=$1;;
20610 :[FH])
20611 ac_file_inputs=
20612 for ac_f
20613 do
20614 case $ac_f in
20615 -) ac_f="$ac_tmp/stdin";;
20616 *) # Look for the file first in the build tree, then in the source tree
20617 # (if the path is not absolute). The absolute path cannot be DOS-style,
20618 # because $ac_f cannot contain `:'.
20619 test -f "$ac_f" ||
20620 case $ac_f in
20621 [\\/$]*) false;;
20622 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20623 esac ||
20624 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20625 esac
20626 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20627 as_fn_append ac_file_inputs " '$ac_f'"
20628 done
20629
20630 # Let's still pretend it is `configure' which instantiates (i.e., don't
20631 # use $as_me), people would be surprised to read:
20632 # /* config.h. Generated by config.status. */
20633 configure_input='Generated from '`
20634 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20635 `' by configure.'
20636 if test x"$ac_file" != x-; then
20637 configure_input="$ac_file. $configure_input"
20638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20639 printf "%s\n" "$as_me: creating $ac_file" >&6;}
20640 fi
20641 # Neutralize special characters interpreted by sed in replacement strings.
20642 case $configure_input in #(
20643 *\&* | *\|* | *\\* )
20644 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
20645 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20646 *) ac_sed_conf_input=$configure_input;;
20647 esac
20648
20649 case $ac_tag in
20650 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20651 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20652 esac
20653 ;;
20654 esac
20655
20656 ac_dir=`$as_dirname -- "$ac_file" ||
20657 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20658 X"$ac_file" : 'X\(//\)[^/]' \| \
20659 X"$ac_file" : 'X\(//\)$' \| \
20660 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20661 printf "%s\n" X"$ac_file" |
20662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20663 s//\1/
20664 q
20665 }
20666 /^X\(\/\/\)[^/].*/{
20667 s//\1/
20668 q
20669 }
20670 /^X\(\/\/\)$/{
20671 s//\1/
20672 q
20673 }
20674 /^X\(\/\).*/{
20675 s//\1/
20676 q
20677 }
20678 s/.*/./; q'`
20679 as_dir="$ac_dir"; as_fn_mkdir_p
20680 ac_builddir=.
20681
20682 case "$ac_dir" in
20683 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20684 *)
20685 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
20686 # A ".." for each directory in $ac_dir_suffix.
20687 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20688 case $ac_top_builddir_sub in
20689 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20690 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20691 esac ;;
20692 esac
20693 ac_abs_top_builddir=$ac_pwd
20694 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20695 # for backward compatibility:
20696 ac_top_builddir=$ac_top_build_prefix
20697
20698 case $srcdir in
20699 .) # We are building in place.
20700 ac_srcdir=.
20701 ac_top_srcdir=$ac_top_builddir_sub
20702 ac_abs_top_srcdir=$ac_pwd ;;
20703 [\\/]* | ?:[\\/]* ) # Absolute name.
20704 ac_srcdir=$srcdir$ac_dir_suffix;
20705 ac_top_srcdir=$srcdir
20706 ac_abs_top_srcdir=$srcdir ;;
20707 *) # Relative name.
20708 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20709 ac_top_srcdir=$ac_top_build_prefix$srcdir
20710 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20711 esac
20712 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20713
20714
20715 case $ac_mode in
20716 :F)
20717 #
20718 # CONFIG_FILE
20719 #
20720
20721 case $INSTALL in
20722 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20723 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20724 esac
20725 ac_MKDIR_P=$MKDIR_P
20726 case $MKDIR_P in
20727 [\\/$]* | ?:[\\/]* ) ;;
20728 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20729 esac
20730 _ACEOF
20731
20732 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20733 # If the template does not know about datarootdir, expand it.
20734 # FIXME: This hack should be removed a few years after 2.60.
20735 ac_datarootdir_hack=; ac_datarootdir_seen=
20736 ac_sed_dataroot='
20737 /datarootdir/ {
20738 p
20739 q
20740 }
20741 /@datadir@/p
20742 /@docdir@/p
20743 /@infodir@/p
20744 /@localedir@/p
20745 /@mandir@/p'
20746 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20747 *datarootdir*) ac_datarootdir_seen=yes;;
20748 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20750 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20751 _ACEOF
20752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20753 ac_datarootdir_hack='
20754 s&@datadir@&$datadir&g
20755 s&@docdir@&$docdir&g
20756 s&@infodir@&$infodir&g
20757 s&@localedir@&$localedir&g
20758 s&@mandir@&$mandir&g
20759 s&\\\${datarootdir}&$datarootdir&g' ;;
20760 esac
20761 _ACEOF
20762
20763 # Neutralize VPATH when `$srcdir' = `.'.
20764 # Shell code in configure.ac might set extrasub.
20765 # FIXME: do we really want to maintain this feature?
20766 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20767 ac_sed_extra="$ac_vpsub
20768 $extrasub
20769 _ACEOF
20770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20771 :t
20772 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20773 s|@configure_input@|$ac_sed_conf_input|;t t
20774 s&@top_builddir@&$ac_top_builddir_sub&;t t
20775 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20776 s&@srcdir@&$ac_srcdir&;t t
20777 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20778 s&@top_srcdir@&$ac_top_srcdir&;t t
20779 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20780 s&@builddir@&$ac_builddir&;t t
20781 s&@abs_builddir@&$ac_abs_builddir&;t t
20782 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20783 s&@INSTALL@&$ac_INSTALL&;t t
20784 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20785 $ac_datarootdir_hack
20786 "
20787 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20788 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20789
20790 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20791 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20792 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20793 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20795 which seems to be undefined. Please make sure it is defined" >&5
20796 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20797 which seems to be undefined. Please make sure it is defined" >&2;}
20798
20799 rm -f "$ac_tmp/stdin"
20800 case $ac_file in
20801 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20802 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20803 esac \
20804 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20805 ;;
20806 :H)
20807 #
20808 # CONFIG_HEADER
20809 #
20810 if test x"$ac_file" != x-; then
20811 {
20812 printf "%s\n" "/* $configure_input */" >&1 \
20813 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20814 } >"$ac_tmp/config.h" \
20815 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20816 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20818 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
20819 else
20820 rm -f "$ac_file"
20821 mv "$ac_tmp/config.h" "$ac_file" \
20822 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20823 fi
20824 else
20825 printf "%s\n" "/* $configure_input */" >&1 \
20826 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20827 || as_fn_error $? "could not create -" "$LINENO" 5
20828 fi
20829 # Compute "$ac_file"'s index in $config_headers.
20830 _am_arg="$ac_file"
20831 _am_stamp_count=1
20832 for _am_header in $config_headers :; do
20833 case $_am_header in
20834 $_am_arg | $_am_arg:* )
20835 break ;;
20836 * )
20837 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20838 esac
20839 done
20840 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20841 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20842 X"$_am_arg" : 'X\(//\)[^/]' \| \
20843 X"$_am_arg" : 'X\(//\)$' \| \
20844 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20845 printf "%s\n" X"$_am_arg" |
20846 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20847 s//\1/
20848 q
20849 }
20850 /^X\(\/\/\)[^/].*/{
20851 s//\1/
20852 q
20853 }
20854 /^X\(\/\/\)$/{
20855 s//\1/
20856 q
20857 }
20858 /^X\(\/\).*/{
20859 s//\1/
20860 q
20861 }
20862 s/.*/./; q'`/stamp-h$_am_stamp_count
20863 ;;
20864
20865 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20866 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
20867 ;;
20868 esac
20869
20870
20871 case $ac_file$ac_mode in
20872 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20873 # Older Autoconf quotes --file arguments for eval, but not when files
20874 # are listed without --file. Let's play safe and only enable the eval
20875 # if we detect the quoting.
20876 # TODO: see whether this extra hack can be removed once we start
20877 # requiring Autoconf 2.70 or later.
20878 case $CONFIG_FILES in #(
20879 *\'*) :
20880 eval set x "$CONFIG_FILES" ;; #(
20881 *) :
20882 set x $CONFIG_FILES ;; #(
20883 *) :
20884 ;;
20885 esac
20886 shift
20887 # Used to flag and report bootstrapping failures.
20888 am_rc=0
20889 for am_mf
20890 do
20891 # Strip MF so we end up with the name of the file.
20892 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
20893 # Check whether this is an Automake generated Makefile which includes
20894 # dependency-tracking related rules and includes.
20895 # Grep'ing the whole file directly is not great: AIX grep has a line
20896 # limit of 2048, but all sed's we know have understand at least 4000.
20897 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20898 || continue
20899 am_dirpart=`$as_dirname -- "$am_mf" ||
20900 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20901 X"$am_mf" : 'X\(//\)[^/]' \| \
20902 X"$am_mf" : 'X\(//\)$' \| \
20903 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20904 printf "%s\n" X"$am_mf" |
20905 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20906 s//\1/
20907 q
20908 }
20909 /^X\(\/\/\)[^/].*/{
20910 s//\1/
20911 q
20912 }
20913 /^X\(\/\/\)$/{
20914 s//\1/
20915 q
20916 }
20917 /^X\(\/\).*/{
20918 s//\1/
20919 q
20920 }
20921 s/.*/./; q'`
20922 am_filepart=`$as_basename -- "$am_mf" ||
20923 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
20924 X"$am_mf" : 'X\(//\)$' \| \
20925 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20926 printf "%s\n" X/"$am_mf" |
20927 sed '/^.*\/\([^/][^/]*\)\/*$/{
20928 s//\1/
20929 q
20930 }
20931 /^X\/\(\/\/\)$/{
20932 s//\1/
20933 q
20934 }
20935 /^X\/\(\/\).*/{
20936 s//\1/
20937 q
20938 }
20939 s/.*/./; q'`
20940 { echo "$as_me:$LINENO: cd "$am_dirpart" \
20941 && sed -e '/# am--include-marker/d' "$am_filepart" \
20942 | $MAKE -f - am--depfiles" >&5
20943 (cd "$am_dirpart" \
20944 && sed -e '/# am--include-marker/d' "$am_filepart" \
20945 | $MAKE -f - am--depfiles) >&5 2>&5
20946 ac_status=$?
20947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948 (exit $ac_status); } || am_rc=$?
20949 done
20950 if test $am_rc -ne 0; then
20951 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20952 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20953 as_fn_error $? "Something went wrong bootstrapping makefile fragments
20954 for automatic dependency tracking. If GNU make was not used, consider
20955 re-running the configure script with MAKE=\"gmake\" (or whatever is
20956 necessary). You can also try re-running configure with the
20957 '--disable-dependency-tracking' option to at least be able to build
20958 the package (albeit without support for automatic dependency tracking).
20959 See \`config.log' for more details" "$LINENO" 5; }
20960 fi
20961 { am_dirpart=; unset am_dirpart;}
20962 { am_filepart=; unset am_filepart;}
20963 { am_mf=; unset am_mf;}
20964 { am_rc=; unset am_rc;}
20965 rm -f conftest-deps.mk
20966 }
20967 ;;
20968 "libtool":C)
20969
20970 # See if we are running on zsh, and set the options that allow our
20971 # commands through without removal of \ escapes.
20972 if test -n "${ZSH_VERSION+set}"; then
20973 setopt NO_GLOB_SUBST
20974 fi
20975
20976 cfgfile=${ofile}T
20977 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20978 $RM "$cfgfile"
20979
20980 cat <<_LT_EOF >> "$cfgfile"
20981 #! $SHELL
20982 # Generated automatically by $as_me ($PACKAGE) $VERSION
20983 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20984
20985 # Provide generalized library-building support services.
20986 # Written by Gordon Matzigkeit, 1996
20987
20988 # Copyright (C) 2014 Free Software Foundation, Inc.
20989 # This is free software; see the source for copying conditions. There is NO
20990 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20991
20992 # GNU Libtool is free software; you can redistribute it and/or modify
20993 # it under the terms of the GNU General Public License as published by
20994 # the Free Software Foundation; either version 2 of of the License, or
20995 # (at your option) any later version.
20996 #
20997 # As a special exception to the GNU General Public License, if you
20998 # distribute this file as part of a program or library that is built
20999 # using GNU Libtool, you may include this file under the same
21000 # distribution terms that you use for the rest of that program.
21001 #
21002 # GNU Libtool is distributed in the hope that it will be useful, but
21003 # WITHOUT ANY WARRANTY; without even the implied warranty of
21004 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21005 # GNU General Public License for more details.
21006 #
21007 # You should have received a copy of the GNU General Public License
21008 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21009
21010
21011 # The names of the tagged configurations supported by this script.
21012 available_tags='CXX '
21013
21014 # Configured defaults for sys_lib_dlsearch_path munging.
21015 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21016
21017 # ### BEGIN LIBTOOL CONFIG
21018
21019 # Which release of libtool.m4 was used?
21020 macro_version=$macro_version
21021 macro_revision=$macro_revision
21022
21023 # Whether or not to build shared libraries.
21024 build_libtool_libs=$enable_shared
21025
21026 # Whether or not to build static libraries.
21027 build_old_libs=$enable_static
21028
21029 # What type of objects to build.
21030 pic_mode=$pic_mode
21031
21032 # Whether or not to optimize for fast installation.
21033 fast_install=$enable_fast_install
21034
21035 # Shared archive member basename,for filename based shared library versioning on AIX.
21036 shared_archive_member_spec=$shared_archive_member_spec
21037
21038 # Shell to use when invoking shell scripts.
21039 SHELL=$lt_SHELL
21040
21041 # An echo program that protects backslashes.
21042 ECHO=$lt_ECHO
21043
21044 # The PATH separator for the build system.
21045 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21046
21047 # The host system.
21048 host_alias=$host_alias
21049 host=$host
21050 host_os=$host_os
21051
21052 # The build system.
21053 build_alias=$build_alias
21054 build=$build
21055 build_os=$build_os
21056
21057 # A sed program that does not truncate output.
21058 SED=$lt_SED
21059
21060 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21061 Xsed="\$SED -e 1s/^X//"
21062
21063 # A grep program that handles long lines.
21064 GREP=$lt_GREP
21065
21066 # An ERE matcher.
21067 EGREP=$lt_EGREP
21068
21069 # A literal string matcher.
21070 FGREP=$lt_FGREP
21071
21072 # A BSD- or MS-compatible name lister.
21073 NM=$lt_NM
21074
21075 # Whether we need soft or hard links.
21076 LN_S=$lt_LN_S
21077
21078 # What is the maximum length of a command?
21079 max_cmd_len=$max_cmd_len
21080
21081 # Object file suffix (normally "o").
21082 objext=$ac_objext
21083
21084 # Executable file suffix (normally "").
21085 exeext=$exeext
21086
21087 # whether the shell understands "unset".
21088 lt_unset=$lt_unset
21089
21090 # turn spaces into newlines.
21091 SP2NL=$lt_lt_SP2NL
21092
21093 # turn newlines into spaces.
21094 NL2SP=$lt_lt_NL2SP
21095
21096 # convert \$build file names to \$host format.
21097 to_host_file_cmd=$lt_cv_to_host_file_cmd
21098
21099 # convert \$build files to toolchain format.
21100 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21101
21102 # An object symbol dumper.
21103 OBJDUMP=$lt_OBJDUMP
21104
21105 # Method to check whether dependent libraries are shared objects.
21106 deplibs_check_method=$lt_deplibs_check_method
21107
21108 # Command to use when deplibs_check_method = "file_magic".
21109 file_magic_cmd=$lt_file_magic_cmd
21110
21111 # How to find potential files when deplibs_check_method = "file_magic".
21112 file_magic_glob=$lt_file_magic_glob
21113
21114 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21115 want_nocaseglob=$lt_want_nocaseglob
21116
21117 # DLL creation program.
21118 DLLTOOL=$lt_DLLTOOL
21119
21120 # Command to associate shared and link libraries.
21121 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21122
21123 # The archiver.
21124 AR=$lt_AR
21125
21126 # Flags to create an archive.
21127 AR_FLAGS=$lt_AR_FLAGS
21128
21129 # How to feed a file listing to the archiver.
21130 archiver_list_spec=$lt_archiver_list_spec
21131
21132 # A symbol stripping program.
21133 STRIP=$lt_STRIP
21134
21135 # Commands used to install an old-style archive.
21136 RANLIB=$lt_RANLIB
21137 old_postinstall_cmds=$lt_old_postinstall_cmds
21138 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21139
21140 # Whether to use a lock for old archive extraction.
21141 lock_old_archive_extraction=$lock_old_archive_extraction
21142
21143 # A C compiler.
21144 LTCC=$lt_CC
21145
21146 # LTCC compiler flags.
21147 LTCFLAGS=$lt_CFLAGS
21148
21149 # Take the output of nm and produce a listing of raw symbols and C names.
21150 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21151
21152 # Transform the output of nm in a proper C declaration.
21153 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21154
21155 # Transform the output of nm into a list of symbols to manually relocate.
21156 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21157
21158 # Transform the output of nm in a C name address pair.
21159 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21160
21161 # Transform the output of nm in a C name address pair when lib prefix is needed.
21162 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21163
21164 # The name lister interface.
21165 nm_interface=$lt_lt_cv_nm_interface
21166
21167 # Specify filename containing input files for \$NM.
21168 nm_file_list_spec=$lt_nm_file_list_spec
21169
21170 # The root where to search for dependent libraries,and where our libraries should be installed.
21171 lt_sysroot=$lt_sysroot
21172
21173 # Command to truncate a binary pipe.
21174 lt_truncate_bin=$lt_lt_cv_truncate_bin
21175
21176 # The name of the directory that contains temporary libtool files.
21177 objdir=$objdir
21178
21179 # Used to examine libraries when file_magic_cmd begins with "file".
21180 MAGIC_CMD=$MAGIC_CMD
21181
21182 # Must we lock files when doing compilation?
21183 need_locks=$lt_need_locks
21184
21185 # Manifest tool.
21186 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21187
21188 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21189 DSYMUTIL=$lt_DSYMUTIL
21190
21191 # Tool to change global to local symbols on Mac OS X.
21192 NMEDIT=$lt_NMEDIT
21193
21194 # Tool to manipulate fat objects and archives on Mac OS X.
21195 LIPO=$lt_LIPO
21196
21197 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21198 OTOOL=$lt_OTOOL
21199
21200 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21201 OTOOL64=$lt_OTOOL64
21202
21203 # Old archive suffix (normally "a").
21204 libext=$libext
21205
21206 # Shared library suffix (normally ".so").
21207 shrext_cmds=$lt_shrext_cmds
21208
21209 # The commands to extract the exported symbol list from a shared archive.
21210 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21211
21212 # Variables whose values should be saved in libtool wrapper scripts and
21213 # restored at link time.
21214 variables_saved_for_relink=$lt_variables_saved_for_relink
21215
21216 # Do we need the "lib" prefix for modules?
21217 need_lib_prefix=$need_lib_prefix
21218
21219 # Do we need a version for libraries?
21220 need_version=$need_version
21221
21222 # Library versioning type.
21223 version_type=$version_type
21224
21225 # Shared library runtime path variable.
21226 runpath_var=$runpath_var
21227
21228 # Shared library path variable.
21229 shlibpath_var=$shlibpath_var
21230
21231 # Is shlibpath searched before the hard-coded library search path?
21232 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21233
21234 # Format of library name prefix.
21235 libname_spec=$lt_libname_spec
21236
21237 # List of archive names. First name is the real one, the rest are links.
21238 # The last name is the one that the linker finds with -lNAME
21239 library_names_spec=$lt_library_names_spec
21240
21241 # The coded name of the library, if different from the real name.
21242 soname_spec=$lt_soname_spec
21243
21244 # Permission mode override for installation of shared libraries.
21245 install_override_mode=$lt_install_override_mode
21246
21247 # Command to use after installation of a shared archive.
21248 postinstall_cmds=$lt_postinstall_cmds
21249
21250 # Command to use after uninstallation of a shared archive.
21251 postuninstall_cmds=$lt_postuninstall_cmds
21252
21253 # Commands used to finish a libtool library installation in a directory.
21254 finish_cmds=$lt_finish_cmds
21255
21256 # As "finish_cmds", except a single script fragment to be evaled but
21257 # not shown.
21258 finish_eval=$lt_finish_eval
21259
21260 # Whether we should hardcode library paths into libraries.
21261 hardcode_into_libs=$hardcode_into_libs
21262
21263 # Compile-time system search path for libraries.
21264 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21265
21266 # Detected run-time system search path for libraries.
21267 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21268
21269 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21270 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21271
21272 # Whether dlopen is supported.
21273 dlopen_support=$enable_dlopen
21274
21275 # Whether dlopen of programs is supported.
21276 dlopen_self=$enable_dlopen_self
21277
21278 # Whether dlopen of statically linked programs is supported.
21279 dlopen_self_static=$enable_dlopen_self_static
21280
21281 # Commands to strip libraries.
21282 old_striplib=$lt_old_striplib
21283 striplib=$lt_striplib
21284
21285
21286 # The linker used to build libraries.
21287 LD=$lt_LD
21288
21289 # How to create reloadable object files.
21290 reload_flag=$lt_reload_flag
21291 reload_cmds=$lt_reload_cmds
21292
21293 # Commands used to build an old-style archive.
21294 old_archive_cmds=$lt_old_archive_cmds
21295
21296 # A language specific compiler.
21297 CC=$lt_compiler
21298
21299 # Is the compiler the GNU compiler?
21300 with_gcc=$GCC
21301
21302 # Compiler flag to turn off builtin functions.
21303 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21304
21305 # Additional compiler flags for building library objects.
21306 pic_flag=$lt_lt_prog_compiler_pic
21307
21308 # How to pass a linker flag through the compiler.
21309 wl=$lt_lt_prog_compiler_wl
21310
21311 # Compiler flag to prevent dynamic linking.
21312 link_static_flag=$lt_lt_prog_compiler_static
21313
21314 # Does compiler simultaneously support -c and -o options?
21315 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21316
21317 # Whether or not to add -lc for building shared libraries.
21318 build_libtool_need_lc=$archive_cmds_need_lc
21319
21320 # Whether or not to disallow shared libs when runtime libs are static.
21321 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21322
21323 # Compiler flag to allow reflexive dlopens.
21324 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21325
21326 # Compiler flag to generate shared objects directly from archives.
21327 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21328
21329 # Whether the compiler copes with passing no objects directly.
21330 compiler_needs_object=$lt_compiler_needs_object
21331
21332 # Create an old-style archive from a shared archive.
21333 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21334
21335 # Create a temporary old-style archive to link instead of a shared archive.
21336 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21337
21338 # Commands used to build a shared archive.
21339 archive_cmds=$lt_archive_cmds
21340 archive_expsym_cmds=$lt_archive_expsym_cmds
21341
21342 # Commands used to build a loadable module if different from building
21343 # a shared archive.
21344 module_cmds=$lt_module_cmds
21345 module_expsym_cmds=$lt_module_expsym_cmds
21346
21347 # Whether we are building with GNU ld or not.
21348 with_gnu_ld=$lt_with_gnu_ld
21349
21350 # Flag that allows shared libraries with undefined symbols to be built.
21351 allow_undefined_flag=$lt_allow_undefined_flag
21352
21353 # Flag that enforces no undefined symbols.
21354 no_undefined_flag=$lt_no_undefined_flag
21355
21356 # Flag to hardcode \$libdir into a binary during linking.
21357 # This must work even if \$libdir does not exist
21358 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21359
21360 # Whether we need a single "-rpath" flag with a separated argument.
21361 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21362
21363 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21364 # DIR into the resulting binary.
21365 hardcode_direct=$hardcode_direct
21366
21367 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21368 # DIR into the resulting binary and the resulting library dependency is
21369 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21370 # library is relocated.
21371 hardcode_direct_absolute=$hardcode_direct_absolute
21372
21373 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21374 # into the resulting binary.
21375 hardcode_minus_L=$hardcode_minus_L
21376
21377 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21378 # into the resulting binary.
21379 hardcode_shlibpath_var=$hardcode_shlibpath_var
21380
21381 # Set to "yes" if building a shared library automatically hardcodes DIR
21382 # into the library and all subsequent libraries and executables linked
21383 # against it.
21384 hardcode_automatic=$hardcode_automatic
21385
21386 # Set to yes if linker adds runtime paths of dependent libraries
21387 # to runtime path list.
21388 inherit_rpath=$inherit_rpath
21389
21390 # Whether libtool must link a program against all its dependency libraries.
21391 link_all_deplibs=$link_all_deplibs
21392
21393 # Set to "yes" if exported symbols are required.
21394 always_export_symbols=$always_export_symbols
21395
21396 # The commands to list exported symbols.
21397 export_symbols_cmds=$lt_export_symbols_cmds
21398
21399 # Symbols that should not be listed in the preloaded symbols.
21400 exclude_expsyms=$lt_exclude_expsyms
21401
21402 # Symbols that must always be exported.
21403 include_expsyms=$lt_include_expsyms
21404
21405 # Commands necessary for linking programs (against libraries) with templates.
21406 prelink_cmds=$lt_prelink_cmds
21407
21408 # Commands necessary for finishing linking programs.
21409 postlink_cmds=$lt_postlink_cmds
21410
21411 # Specify filename containing input files.
21412 file_list_spec=$lt_file_list_spec
21413
21414 # How to hardcode a shared library path into an executable.
21415 hardcode_action=$hardcode_action
21416
21417 # The directories searched by this compiler when creating a shared library.
21418 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21419
21420 # Dependencies to place before and after the objects being linked to
21421 # create a shared library.
21422 predep_objects=$lt_predep_objects
21423 postdep_objects=$lt_postdep_objects
21424 predeps=$lt_predeps
21425 postdeps=$lt_postdeps
21426
21427 # The library search path used internally by the compiler when linking
21428 # a shared library.
21429 compiler_lib_search_path=$lt_compiler_lib_search_path
21430
21431 # ### END LIBTOOL CONFIG
21432
21433 _LT_EOF
21434
21435 cat <<'_LT_EOF' >> "$cfgfile"
21436
21437 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21438
21439 # func_munge_path_list VARIABLE PATH
21440 # -----------------------------------
21441 # VARIABLE is name of variable containing _space_ separated list of
21442 # directories to be munged by the contents of PATH, which is string
21443 # having a format:
21444 # "DIR[:DIR]:"
21445 # string "DIR[ DIR]" will be prepended to VARIABLE
21446 # ":DIR[:DIR]"
21447 # string "DIR[ DIR]" will be appended to VARIABLE
21448 # "DIRP[:DIRP]::[DIRA:]DIRA"
21449 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21450 # "DIRA[ DIRA]" will be appended to VARIABLE
21451 # "DIR[:DIR]"
21452 # VARIABLE will be replaced by "DIR[ DIR]"
21453 func_munge_path_list ()
21454 {
21455 case x$2 in
21456 x)
21457 ;;
21458 *:)
21459 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21460 ;;
21461 x:*)
21462 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21463 ;;
21464 *::*)
21465 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21466 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21467 ;;
21468 *)
21469 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21470 ;;
21471 esac
21472 }
21473
21474
21475 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21476 func_cc_basename ()
21477 {
21478 for cc_temp in $*""; do
21479 case $cc_temp in
21480 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21481 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21482 \-*) ;;
21483 *) break;;
21484 esac
21485 done
21486 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21487 }
21488
21489
21490 # ### END FUNCTIONS SHARED WITH CONFIGURE
21491
21492 _LT_EOF
21493
21494 case $host_os in
21495 aix3*)
21496 cat <<\_LT_EOF >> "$cfgfile"
21497 # AIX sometimes has problems with the GCC collect2 program. For some
21498 # reason, if we set the COLLECT_NAMES environment variable, the problems
21499 # vanish in a puff of smoke.
21500 if test set != "${COLLECT_NAMES+set}"; then
21501 COLLECT_NAMES=
21502 export COLLECT_NAMES
21503 fi
21504 _LT_EOF
21505 ;;
21506 esac
21507
21508
21509
21510 ltmain=$ac_aux_dir/ltmain.sh
21511
21512
21513 # We use sed instead of cat because bash on DJGPP gets confused if
21514 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21515 # text mode, it properly converts lines to CR/LF. This bash problem
21516 # is reportedly fixed, but why not run on old versions too?
21517 sed '$q' "$ltmain" >> "$cfgfile" \
21518 || (rm -f "$cfgfile"; exit 1)
21519
21520 mv -f "$cfgfile" "$ofile" ||
21521 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21522 chmod +x "$ofile"
21523
21524
21525 cat <<_LT_EOF >> "$ofile"
21526
21527 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21528
21529 # The linker used to build libraries.
21530 LD=$lt_LD_CXX
21531
21532 # How to create reloadable object files.
21533 reload_flag=$lt_reload_flag_CXX
21534 reload_cmds=$lt_reload_cmds_CXX
21535
21536 # Commands used to build an old-style archive.
21537 old_archive_cmds=$lt_old_archive_cmds_CXX
21538
21539 # A language specific compiler.
21540 CC=$lt_compiler_CXX
21541
21542 # Is the compiler the GNU compiler?
21543 with_gcc=$GCC_CXX
21544
21545 # Compiler flag to turn off builtin functions.
21546 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21547
21548 # Additional compiler flags for building library objects.
21549 pic_flag=$lt_lt_prog_compiler_pic_CXX
21550
21551 # How to pass a linker flag through the compiler.
21552 wl=$lt_lt_prog_compiler_wl_CXX
21553
21554 # Compiler flag to prevent dynamic linking.
21555 link_static_flag=$lt_lt_prog_compiler_static_CXX
21556
21557 # Does compiler simultaneously support -c and -o options?
21558 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21559
21560 # Whether or not to add -lc for building shared libraries.
21561 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21562
21563 # Whether or not to disallow shared libs when runtime libs are static.
21564 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21565
21566 # Compiler flag to allow reflexive dlopens.
21567 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21568
21569 # Compiler flag to generate shared objects directly from archives.
21570 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21571
21572 # Whether the compiler copes with passing no objects directly.
21573 compiler_needs_object=$lt_compiler_needs_object_CXX
21574
21575 # Create an old-style archive from a shared archive.
21576 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21577
21578 # Create a temporary old-style archive to link instead of a shared archive.
21579 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21580
21581 # Commands used to build a shared archive.
21582 archive_cmds=$lt_archive_cmds_CXX
21583 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21584
21585 # Commands used to build a loadable module if different from building
21586 # a shared archive.
21587 module_cmds=$lt_module_cmds_CXX
21588 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21589
21590 # Whether we are building with GNU ld or not.
21591 with_gnu_ld=$lt_with_gnu_ld_CXX
21592
21593 # Flag that allows shared libraries with undefined symbols to be built.
21594 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21595
21596 # Flag that enforces no undefined symbols.
21597 no_undefined_flag=$lt_no_undefined_flag_CXX
21598
21599 # Flag to hardcode \$libdir into a binary during linking.
21600 # This must work even if \$libdir does not exist
21601 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21602
21603 # Whether we need a single "-rpath" flag with a separated argument.
21604 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21605
21606 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21607 # DIR into the resulting binary.
21608 hardcode_direct=$hardcode_direct_CXX
21609
21610 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21611 # DIR into the resulting binary and the resulting library dependency is
21612 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21613 # library is relocated.
21614 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21615
21616 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21617 # into the resulting binary.
21618 hardcode_minus_L=$hardcode_minus_L_CXX
21619
21620 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21621 # into the resulting binary.
21622 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21623
21624 # Set to "yes" if building a shared library automatically hardcodes DIR
21625 # into the library and all subsequent libraries and executables linked
21626 # against it.
21627 hardcode_automatic=$hardcode_automatic_CXX
21628
21629 # Set to yes if linker adds runtime paths of dependent libraries
21630 # to runtime path list.
21631 inherit_rpath=$inherit_rpath_CXX
21632
21633 # Whether libtool must link a program against all its dependency libraries.
21634 link_all_deplibs=$link_all_deplibs_CXX
21635
21636 # Set to "yes" if exported symbols are required.
21637 always_export_symbols=$always_export_symbols_CXX
21638
21639 # The commands to list exported symbols.
21640 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21641
21642 # Symbols that should not be listed in the preloaded symbols.
21643 exclude_expsyms=$lt_exclude_expsyms_CXX
21644
21645 # Symbols that must always be exported.
21646 include_expsyms=$lt_include_expsyms_CXX
21647
21648 # Commands necessary for linking programs (against libraries) with templates.
21649 prelink_cmds=$lt_prelink_cmds_CXX
21650
21651 # Commands necessary for finishing linking programs.
21652 postlink_cmds=$lt_postlink_cmds_CXX
21653
21654 # Specify filename containing input files.
21655 file_list_spec=$lt_file_list_spec_CXX
21656
21657 # How to hardcode a shared library path into an executable.
21658 hardcode_action=$hardcode_action_CXX
21659
21660 # The directories searched by this compiler when creating a shared library.
21661 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21662
21663 # Dependencies to place before and after the objects being linked to
21664 # create a shared library.
21665 predep_objects=$lt_predep_objects_CXX
21666 postdep_objects=$lt_postdep_objects_CXX
21667 predeps=$lt_predeps_CXX
21668 postdeps=$lt_postdeps_CXX
21669
21670 # The library search path used internally by the compiler when linking
21671 # a shared library.
21672 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21673
21674 # ### END LIBTOOL TAG CONFIG: CXX
21675 _LT_EOF
21676
21677 ;;
21678
21679 esac
21680 done # for ac_tag
21681
21682
21683 as_fn_exit 0
21684 _ACEOF
21685 ac_clean_files=$ac_clean_files_save
21686
21687 test $ac_write_fail = 0 ||
21688 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21689
21690
21691 # configure is writing to config.log, and then calls config.status.
21692 # config.status does its own redirection, appending to config.log.
21693 # Unfortunately, on DOS this fails, as config.log is still kept open
21694 # by configure, so config.status won't be able to write to it; its
21695 # output is simply discarded. So we exec the FD to /dev/null,
21696 # effectively closing config.log, so it can be properly (re)opened and
21697 # appended to by config.status. When coming back to configure, we
21698 # need to make the FD available again.
21699 if test "$no_create" != yes; then
21700 ac_cs_success=:
21701 ac_config_status_args=
21702 test "$silent" = yes &&
21703 ac_config_status_args="$ac_config_status_args --quiet"
21704 exec 5>/dev/null
21705 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21706 exec 5>>config.log
21707 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21708 # would make configure fail if this is the last instruction.
21709 $ac_cs_success || as_fn_exit 1
21710 fi
21711 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21713 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21714 fi
21715
21716 echo "***************************************************
21717 ${PACKAGE_NAME} version ${PACKAGE_VERSION}
21718 Host CPU.............: $host_cpu
21719 Host OS:.............: $host_os
21720 Prefix:..............: ${prefix}
21721 Debug Build..........: $debug
21722 C++ wrapper tests....: ${cpp_wrapper:-no}
21723 Internal unit tests..: ${internal_test} ${internal_test_msg}
21724 Shared Library.......: $enable_shared
21725 C Compiler...........: ${CC} ${CFLAGS} ${CPPFLAGS}
21726 C++ Compiler.........: ${CXX} ${CXXFLAGS}
21727 Linker...............: $LD $LDFLAGS $LIBS
21728 Doxygen..............: ${DOXYGEN:-NONE}
21729 ***************************************************
21730 "
21731