Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for libabw 0.1.4.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19 then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else case e in #(
27 e) case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as 'sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed 'exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142 then :
143 emulate sh
144 NULLCMD=:
145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146 # is contrary to our usage. Disable this feature.
147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 setopt NO_GLOB_SUBST
149 else case e in #(
150 e) case \`(set -o) 2>/dev/null\` in #(
151 *posix*) :
152 set -o posix ;; #(
153 *) :
154 ;;
155 esac ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else case e in #(
174 e) exitcode=1; echo positional parameters were not saved. ;;
175 esac
176 fi
177 test x\$exitcode = x0 || exit 1
178 blah=\$(echo \$(echo blah))
179 test x\"\$blah\" = xblah || exit 1
180 test -x / || exit 1"
181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
185
186 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
187 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
188 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 PATH=/empty FPATH=/empty; export PATH FPATH
191 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
192 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
193 test \$(( 1 + 1 )) = 2 || exit 1"
194 if (eval "$as_required") 2>/dev/null
195 then :
196 as_have_required=yes
197 else case e in #(
198 e) as_have_required=no ;;
199 esac
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else case e in #(
205 e) 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 case e in #(
239 e) 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 esac
245 fi
246
247
248 if test "x$CONFIG_SHELL" != x
249 then :
250 export CONFIG_SHELL
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259 *v*x* | *x*v* ) as_opts=-vx ;;
260 *v* ) as_opts=-v ;;
261 *x* ) as_opts=-x ;;
262 * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed 'exec'.
267 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271 if test x$as_have_required = xno
272 then :
273 printf "%s\n" "$0: This script requires a shell more modern than all"
274 printf "%s\n" "$0: the shells that I found on your system."
275 if test ${ZSH_VERSION+y} ; then
276 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 printf "%s\n" "$0: Please tell [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 esac
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303 { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307
308 # as_fn_set_status STATUS
309 # -----------------------
310 # Set $? to STATUS, without forking.
311 as_fn_set_status ()
312 {
313 return $1
314 } # as_fn_set_status
315
316 # as_fn_exit STATUS
317 # -----------------
318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 as_fn_exit ()
320 {
321 set +e
322 as_fn_set_status $1
323 exit $1
324 } # as_fn_exit
325
326 # as_fn_mkdir_p
327 # -------------
328 # Create "$as_dir" as a directory, including parents if necessary.
329 as_fn_mkdir_p ()
330 {
331
332 case $as_dir in #(
333 -*) as_dir=./$as_dir;;
334 esac
335 test -d "$as_dir" || eval $as_mkdir_p || {
336 as_dirs=
337 while :; do
338 case $as_dir in #(
339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 *) as_qdir=$as_dir;;
341 esac
342 as_dirs="'$as_qdir' $as_dirs"
343 as_dir=`$as_dirname -- "$as_dir" ||
344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345 X"$as_dir" : 'X\(//\)[^/]' \| \
346 X"$as_dir" : 'X\(//\)$' \| \
347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348 printf "%s\n" X"$as_dir" |
349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)[^/].*/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\).*/{
362 s//\1/
363 q
364 }
365 s/.*/./; q'`
366 test -d "$as_dir" && break
367 done
368 test -z "$as_dirs" || eval "mkdir $as_dirs"
369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372 } # as_fn_mkdir_p
373
374 # as_fn_executable_p FILE
375 # -----------------------
376 # Test if FILE is an executable regular file.
377 as_fn_executable_p ()
378 {
379 test -f "$1" && test -x "$1"
380 } # as_fn_executable_p
381 # as_fn_append VAR VALUE
382 # ----------------------
383 # Append the text in VALUE to the end of the definition contained in VAR. Take
384 # advantage of any shell optimizations that allow amortized linear growth over
385 # repeated appends, instead of the typical quadratic growth present in naive
386 # implementations.
387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388 then :
389 eval 'as_fn_append ()
390 {
391 eval $1+=\$2
392 }'
393 else case e in #(
394 e) as_fn_append ()
395 {
396 eval $1=\$$1\$2
397 } ;;
398 esac
399 fi # as_fn_append
400
401 # as_fn_arith ARG...
402 # ------------------
403 # Perform arithmetic evaluation on the ARGs, and store the result in the
404 # global $as_val. Take advantage of shells that can avoid forks. The arguments
405 # must be portable across $(()) and expr.
406 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
407 then :
408 eval 'as_fn_arith ()
409 {
410 as_val=$(( $* ))
411 }'
412 else case e in #(
413 e) as_fn_arith ()
414 {
415 as_val=`expr "$@" || test $? -eq 1`
416 } ;;
417 esac
418 fi # as_fn_arith
419
420
421 # as_fn_error STATUS ERROR [LINENO LOG_FD]
422 # ----------------------------------------
423 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
424 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
425 # script with STATUS, using 1 if that was 0.
426 as_fn_error ()
427 {
428 as_status=$1; test $as_status -eq 0 && as_status=1
429 if test "$4"; then
430 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
432 fi
433 printf "%s\n" "$as_me: error: $2" >&2
434 as_fn_exit $as_status
435 } # as_fn_error
436
437 if expr a : '\(a\)' >/dev/null 2>&1 &&
438 test "X`expr 00001 : '.*\(...\)'`" = X001; then
439 as_expr=expr
440 else
441 as_expr=false
442 fi
443
444 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
445 as_basename=basename
446 else
447 as_basename=false
448 fi
449
450 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
451 as_dirname=dirname
452 else
453 as_dirname=false
454 fi
455
456 as_me=`$as_basename -- "$0" ||
457 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
458 X"$0" : 'X\(//\)$' \| \
459 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
460 printf "%s\n" X/"$0" |
461 sed '/^.*\/\([^/][^/]*\)\/*$/{
462 s//\1/
463 q
464 }
465 /^X\/\(\/\/\)$/{
466 s//\1/
467 q
468 }
469 /^X\/\(\/\).*/{
470 s//\1/
471 q
472 }
473 s/.*/./; q'`
474
475 # Avoid depending upon Character Ranges.
476 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
477 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
478 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
479 as_cr_digits='0123456789'
480 as_cr_alnum=$as_cr_Letters$as_cr_digits
481
482
483 as_lineno_1=$LINENO as_lineno_1a=$LINENO
484 as_lineno_2=$LINENO as_lineno_2a=$LINENO
485 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
486 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
487 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
488 sed -n '
489 p
490 /[$]LINENO/=
491 ' <$as_myself |
492 sed '
493 t clear
494 :clear
495 s/[$]LINENO.*/&-/
496 t lineno
497 b
498 :lineno
499 N
500 :loop
501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
502 t loop
503 s/-\n.*//
504 ' >$as_me.lineno &&
505 chmod +x "$as_me.lineno" ||
506 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
507
508 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509 # already done that, so ensure we don't try to do so again and fall
510 # in an infinite loop. This has already happened in practice.
511 _as_can_reexec=no; export _as_can_reexec
512 # Don't try to exec as it changes $[0], causing all sort of problems
513 # (the dirname of $[0] is not the place where we might find the
514 # original and so on. Autoconf is especially sensitive to this).
515 . "./$as_me.lineno"
516 # Exit status is that of the last command.
517 exit
518 }
519
520
521 # Determine whether it's possible to make 'echo' print without a newline.
522 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523 # for compatibility with existing Makefiles.
524 ECHO_C= ECHO_N= ECHO_T=
525 case `echo -n x` in #(((((
526 -n*)
527 case `echo 'xy\c'` in
528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
529 xy) ECHO_C='\c';;
530 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
531 ECHO_T=' ';;
532 esac;;
533 *)
534 ECHO_N='-n';;
535 esac
536
537 # For backward compatibility with old third-party macros, we provide
538 # the shell variables $as_echo and $as_echo_n. New code should use
539 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540 as_echo='printf %s\n'
541 as_echo_n='printf %s'
542
543 rm -f conf$$ conf$$.exe conf$$.file
544 if test -d conf$$.dir; then
545 rm -f conf$$.dir/conf$$.file
546 else
547 rm -f conf$$.dir
548 mkdir conf$$.dir 2>/dev/null
549 fi
550 if (echo >conf$$.file) 2>/dev/null; then
551 if ln -s conf$$.file conf$$ 2>/dev/null; then
552 as_ln_s='ln -s'
553 # ... but there are two gotchas:
554 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
555 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
556 # In both cases, we have to default to 'cp -pR'.
557 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
558 as_ln_s='cp -pR'
559 elif ln conf$$.file conf$$ 2>/dev/null; then
560 as_ln_s=ln
561 else
562 as_ln_s='cp -pR'
563 fi
564 else
565 as_ln_s='cp -pR'
566 fi
567 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
568 rmdir conf$$.dir 2>/dev/null
569
570 if mkdir -p . 2>/dev/null; then
571 as_mkdir_p='mkdir -p "$as_dir"'
572 else
573 test -d ./-p && rmdir ./-p
574 as_mkdir_p=false
575 fi
576
577 as_test_x='test -x'
578 as_executable_p=as_fn_executable_p
579
580 # Sed expression to map a string onto a valid CPP name.
581 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
582 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
583
584 # Sed expression to map a string onto a valid variable name.
585 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
586 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
587
588 SHELL=${CONFIG_SHELL-/bin/sh}
589
590
591 test -n "$DJDIR" || exec 7<&0 </dev/null
592 exec 6>&1
593
594 # Name of the host.
595 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596 # so uname gets run too.
597 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
598
599 #
600 # Initializations.
601 #
602 ac_default_prefix=/usr/local
603 ac_clean_files=
604 ac_config_libobj_dir=.
605 LIBOBJS=
606 cross_compiling=no
607 subdirs=
608 MFLAGS=
609 MAKEFLAGS=
610
611 # Identity of this package.
612 PACKAGE_NAME='libabw'
613 PACKAGE_TARNAME='libabw'
614 PACKAGE_VERSION='0.1.4'
615 PACKAGE_STRING='libabw 0.1.4'
616 PACKAGE_BUGREPORT=''
617 PACKAGE_URL=''
618
619 # Factoring default headers for most tests.
620 ac_includes_default="\
621 #include <stddef.h>
622 #ifdef HAVE_STDIO_H
623 # include <stdio.h>
624 #endif
625 #ifdef HAVE_STDLIB_H
626 # include <stdlib.h>
627 #endif
628 #ifdef HAVE_STRING_H
629 # include <string.h>
630 #endif
631 #ifdef HAVE_INTTYPES_H
632 # include <inttypes.h>
633 #endif
634 #ifdef HAVE_STDINT_H
635 # include <stdint.h>
636 #endif
637 #ifdef HAVE_STRINGS_H
638 # include <strings.h>
639 #endif
640 #ifdef HAVE_SYS_TYPES_H
641 # include <sys/types.h>
642 #endif
643 #ifdef HAVE_SYS_STAT_H
644 # include <sys/stat.h>
645 #endif
646 #ifdef HAVE_UNISTD_H
647 # include <unistd.h>
648 #endif"
649
650 ac_header_c_list=
651 ac_subst_vars='am__EXEEXT_FALSE
652 am__EXEEXT_TRUE
653 LTLIBOBJS
654 LIBOBJS
655 REVENGE_STREAM_LIBS
656 REVENGE_STREAM_CFLAGS
657 REVENGE_GENERATORS_LIBS
658 REVENGE_GENERATORS_CFLAGS
659 BUILD_FUZZERS_FALSE
660 BUILD_FUZZERS_TRUE
661 BUILD_TOOLS_FALSE
662 BUILD_TOOLS_TRUE
663 ZLIB_LIBS
664 ZLIB_CFLAGS
665 LIBXML_LIBS
666 LIBXML_CFLAGS
667 REVENGE_LIBS
668 REVENGE_CFLAGS
669 PKG_CONFIG_LIBDIR
670 PKG_CONFIG_PATH
671 PKG_CONFIG
672 PERL
673 GPERF
674 WITH_LIBABW_DOCS_FALSE
675 WITH_LIBABW_DOCS_TRUE
676 DOXYGEN
677 DEBUG_CXXFLAGS
678 WINDRES
679 PLATFORM_DARWIN_FALSE
680 PLATFORM_DARWIN_TRUE
681 PLATFORM_WIN32_FALSE
682 PLATFORM_WIN32_TRUE
683 ABW2RAW_WIN32_RESOURCE
684 ABW2TEXT_WIN32_RESOURCE
685 ABW2HTML_WIN32_RESOURCE
686 LIBABW_WIN32_RESOURCE
687 OS_WIN32_FALSE
688 OS_WIN32_TRUE
689 LT_AGE
690 LT_REVISION
691 LT_CURRENT
692 ABW_VERSION
693 ABW_MICRO_VERSION
694 ABW_MINOR_VERSION
695 ABW_MAJOR_VERSION
696 HAVE_CXX11
697 CXXCPP
698 LT_SYS_LIBRARY_PATH
699 OTOOL64
700 OTOOL
701 LIPO
702 NMEDIT
703 DSYMUTIL
704 MANIFEST_TOOL
705 RANLIB
706 FILECMD
707 NM
708 ac_ct_DUMPBIN
709 DUMPBIN
710 LD
711 FGREP
712 EGREP
713 GREP
714 SED
715 host_os
716 host_vendor
717 host_cpu
718 host
719 build_os
720 build_vendor
721 build_cpu
722 build
723 LIBTOOL
724 OBJDUMP
725 DLLTOOL
726 AS
727 LN_S
728 am__fastdepCXX_FALSE
729 am__fastdepCXX_TRUE
730 CXXDEPMODE
731 ac_ct_CXX
732 CXXFLAGS
733 CXX
734 CPP
735 am__fastdepCC_FALSE
736 am__fastdepCC_TRUE
737 CCDEPMODE
738 am__nodep
739 AMDEPBACKSLASH
740 AMDEP_FALSE
741 AMDEP_TRUE
742 am__include
743 DEPDIR
744 OBJEXT
745 EXEEXT
746 ac_ct_CC
747 CPPFLAGS
748 LDFLAGS
749 CFLAGS
750 CC
751 ac_ct_AR
752 AR
753 am__xargs_n
754 am__rm_f_notfound
755 AM_BACKSLASH
756 AM_DEFAULT_VERBOSITY
757 AM_DEFAULT_V
758 AM_V
759 CSCOPE
760 ETAGS
761 CTAGS
762 am__untar
763 am__tar
764 AMTAR
765 am__leading_dot
766 SET_MAKE
767 AWK
768 mkdir_p
769 MKDIR_P
770 INSTALL_STRIP_PROGRAM
771 STRIP
772 install_sh
773 MAKEINFO
774 AUTOHEADER
775 AUTOMAKE
776 AUTOCONF
777 ACLOCAL
778 VERSION
779 PACKAGE
780 CYGPATH_W
781 am__isrc
782 INSTALL_DATA
783 INSTALL_SCRIPT
784 INSTALL_PROGRAM
785 target_alias
786 host_alias
787 build_alias
788 LIBS
789 ECHO_T
790 ECHO_N
791 ECHO_C
792 DEFS
793 mandir
794 localedir
795 libdir
796 psdir
797 pdfdir
798 dvidir
799 htmldir
800 infodir
801 docdir
802 oldincludedir
803 includedir
804 runstatedir
805 localstatedir
806 sharedstatedir
807 sysconfdir
808 datadir
809 datarootdir
810 libexecdir
811 sbindir
812 bindir
813 program_transform_name
814 prefix
815 exec_prefix
816 PACKAGE_URL
817 PACKAGE_BUGREPORT
818 PACKAGE_STRING
819 PACKAGE_VERSION
820 PACKAGE_TARNAME
821 PACKAGE_NAME
822 PATH_SEPARATOR
823 SHELL
824 am__quote'
825 ac_subst_files=''
826 ac_user_opts='
827 enable_option_checking
828 enable_silent_rules
829 enable_dependency_tracking
830 enable_static
831 enable_pic
832 with_pic
833 enable_shared
834 enable_fast_install
835 enable_aix_soname
836 with_aix_soname
837 with_gnu_ld
838 with_sysroot
839 enable_libtool_lock
840 enable_werror
841 enable_weffc
842 enable_wparanoic
843 enable_debug
844 with_docs
845 enable_tools
846 enable_fuzzers
847 '
848 ac_precious_vars='build_alias
849 host_alias
850 target_alias
851 CC
852 CFLAGS
853 LDFLAGS
854 LIBS
855 CPPFLAGS
856 CPP
857 CXX
858 CXXFLAGS
859 CCC
860 LT_SYS_LIBRARY_PATH
861 CXXCPP
862 PKG_CONFIG
863 PKG_CONFIG_PATH
864 PKG_CONFIG_LIBDIR
865 REVENGE_CFLAGS
866 REVENGE_LIBS
867 LIBXML_CFLAGS
868 LIBXML_LIBS
869 ZLIB_CFLAGS
870 ZLIB_LIBS
871 REVENGE_GENERATORS_CFLAGS
872 REVENGE_GENERATORS_LIBS
873 REVENGE_STREAM_CFLAGS
874 REVENGE_STREAM_LIBS'
875
876
877 # Initialize some variables set by options.
878 ac_init_help=
879 ac_init_version=false
880 ac_unrecognized_opts=
881 ac_unrecognized_sep=
882 # The variables have the same names as the options, with
883 # dashes changed to underlines.
884 cache_file=/dev/null
885 exec_prefix=NONE
886 no_create=
887 no_recursion=
888 prefix=NONE
889 program_prefix=NONE
890 program_suffix=NONE
891 program_transform_name=s,x,x,
892 silent=
893 site=
894 srcdir=
895 verbose=
896 x_includes=NONE
897 x_libraries=NONE
898
899 # Installation directory options.
900 # These are left unexpanded so users can "make install exec_prefix=/foo"
901 # and all the variables that are supposed to be based on exec_prefix
902 # by default will actually change.
903 # Use braces instead of parens because sh, perl, etc. also accept them.
904 # (The list follows the same order as the GNU Coding Standards.)
905 bindir='${exec_prefix}/bin'
906 sbindir='${exec_prefix}/sbin'
907 libexecdir='${exec_prefix}/libexec'
908 datarootdir='${prefix}/share'
909 datadir='${datarootdir}'
910 sysconfdir='${prefix}/etc'
911 sharedstatedir='${prefix}/com'
912 localstatedir='${prefix}/var'
913 runstatedir='${localstatedir}/run'
914 includedir='${prefix}/include'
915 oldincludedir='/usr/include'
916 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
917 infodir='${datarootdir}/info'
918 htmldir='${docdir}'
919 dvidir='${docdir}'
920 pdfdir='${docdir}'
921 psdir='${docdir}'
922 libdir='${exec_prefix}/lib'
923 localedir='${datarootdir}/locale'
924 mandir='${datarootdir}/man'
925
926 ac_prev=
927 ac_dashdash=
928 for ac_option
929 do
930 # If the previous option needs an argument, assign it.
931 if test -n "$ac_prev"; then
932 eval $ac_prev=\$ac_option
933 ac_prev=
934 continue
935 fi
936
937 case $ac_option in
938 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
939 *=) ac_optarg= ;;
940 *) ac_optarg=yes ;;
941 esac
942
943 case $ac_dashdash$ac_option in
944 --)
945 ac_dashdash=yes ;;
946
947 -bindir | --bindir | --bindi | --bind | --bin | --bi)
948 ac_prev=bindir ;;
949 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
950 bindir=$ac_optarg ;;
951
952 -build | --build | --buil | --bui | --bu)
953 ac_prev=build_alias ;;
954 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
955 build_alias=$ac_optarg ;;
956
957 -cache-file | --cache-file | --cache-fil | --cache-fi \
958 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
959 ac_prev=cache_file ;;
960 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
961 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
962 cache_file=$ac_optarg ;;
963
964 --config-cache | -C)
965 cache_file=config.cache ;;
966
967 -datadir | --datadir | --datadi | --datad)
968 ac_prev=datadir ;;
969 -datadir=* | --datadir=* | --datadi=* | --datad=*)
970 datadir=$ac_optarg ;;
971
972 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
973 | --dataroo | --dataro | --datar)
974 ac_prev=datarootdir ;;
975 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
976 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
977 datarootdir=$ac_optarg ;;
978
979 -disable-* | --disable-*)
980 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
981 # Reject names that are not valid shell variable names.
982 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
983 as_fn_error $? "invalid feature name: '$ac_useropt'"
984 ac_useropt_orig=$ac_useropt
985 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
986 case $ac_user_opts in
987 *"
988 "enable_$ac_useropt"
989 "*) ;;
990 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
991 ac_unrecognized_sep=', ';;
992 esac
993 eval enable_$ac_useropt=no ;;
994
995 -docdir | --docdir | --docdi | --doc | --do)
996 ac_prev=docdir ;;
997 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
998 docdir=$ac_optarg ;;
999
1000 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1001 ac_prev=dvidir ;;
1002 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1003 dvidir=$ac_optarg ;;
1004
1005 -enable-* | --enable-*)
1006 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1007 # Reject names that are not valid shell variable names.
1008 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1009 as_fn_error $? "invalid feature name: '$ac_useropt'"
1010 ac_useropt_orig=$ac_useropt
1011 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1012 case $ac_user_opts in
1013 *"
1014 "enable_$ac_useropt"
1015 "*) ;;
1016 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1017 ac_unrecognized_sep=', ';;
1018 esac
1019 eval enable_$ac_useropt=\$ac_optarg ;;
1020
1021 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1022 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1023 | --exec | --exe | --ex)
1024 ac_prev=exec_prefix ;;
1025 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1026 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1027 | --exec=* | --exe=* | --ex=*)
1028 exec_prefix=$ac_optarg ;;
1029
1030 -gas | --gas | --ga | --g)
1031 # Obsolete; use --with-gas.
1032 with_gas=yes ;;
1033
1034 -help | --help | --hel | --he | -h)
1035 ac_init_help=long ;;
1036 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1037 ac_init_help=recursive ;;
1038 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1039 ac_init_help=short ;;
1040
1041 -host | --host | --hos | --ho)
1042 ac_prev=host_alias ;;
1043 -host=* | --host=* | --hos=* | --ho=*)
1044 host_alias=$ac_optarg ;;
1045
1046 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1047 ac_prev=htmldir ;;
1048 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1049 | --ht=*)
1050 htmldir=$ac_optarg ;;
1051
1052 -includedir | --includedir | --includedi | --included | --include \
1053 | --includ | --inclu | --incl | --inc)
1054 ac_prev=includedir ;;
1055 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1056 | --includ=* | --inclu=* | --incl=* | --inc=*)
1057 includedir=$ac_optarg ;;
1058
1059 -infodir | --infodir | --infodi | --infod | --info | --inf)
1060 ac_prev=infodir ;;
1061 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1062 infodir=$ac_optarg ;;
1063
1064 -libdir | --libdir | --libdi | --libd)
1065 ac_prev=libdir ;;
1066 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1067 libdir=$ac_optarg ;;
1068
1069 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1070 | --libexe | --libex | --libe)
1071 ac_prev=libexecdir ;;
1072 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1073 | --libexe=* | --libex=* | --libe=*)
1074 libexecdir=$ac_optarg ;;
1075
1076 -localedir | --localedir | --localedi | --localed | --locale)
1077 ac_prev=localedir ;;
1078 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1079 localedir=$ac_optarg ;;
1080
1081 -localstatedir | --localstatedir | --localstatedi | --localstated \
1082 | --localstate | --localstat | --localsta | --localst | --locals)
1083 ac_prev=localstatedir ;;
1084 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1085 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1086 localstatedir=$ac_optarg ;;
1087
1088 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1089 ac_prev=mandir ;;
1090 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1091 mandir=$ac_optarg ;;
1092
1093 -nfp | --nfp | --nf)
1094 # Obsolete; use --without-fp.
1095 with_fp=no ;;
1096
1097 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1098 | --no-cr | --no-c | -n)
1099 no_create=yes ;;
1100
1101 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1102 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1103 no_recursion=yes ;;
1104
1105 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1106 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1107 | --oldin | --oldi | --old | --ol | --o)
1108 ac_prev=oldincludedir ;;
1109 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1110 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1111 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1112 oldincludedir=$ac_optarg ;;
1113
1114 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1115 ac_prev=prefix ;;
1116 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1117 prefix=$ac_optarg ;;
1118
1119 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1120 | --program-pre | --program-pr | --program-p)
1121 ac_prev=program_prefix ;;
1122 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1123 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1124 program_prefix=$ac_optarg ;;
1125
1126 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1127 | --program-suf | --program-su | --program-s)
1128 ac_prev=program_suffix ;;
1129 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1130 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1131 program_suffix=$ac_optarg ;;
1132
1133 -program-transform-name | --program-transform-name \
1134 | --program-transform-nam | --program-transform-na \
1135 | --program-transform-n | --program-transform- \
1136 | --program-transform | --program-transfor \
1137 | --program-transfo | --program-transf \
1138 | --program-trans | --program-tran \
1139 | --progr-tra | --program-tr | --program-t)
1140 ac_prev=program_transform_name ;;
1141 -program-transform-name=* | --program-transform-name=* \
1142 | --program-transform-nam=* | --program-transform-na=* \
1143 | --program-transform-n=* | --program-transform-=* \
1144 | --program-transform=* | --program-transfor=* \
1145 | --program-transfo=* | --program-transf=* \
1146 | --program-trans=* | --program-tran=* \
1147 | --progr-tra=* | --program-tr=* | --program-t=*)
1148 program_transform_name=$ac_optarg ;;
1149
1150 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1151 ac_prev=pdfdir ;;
1152 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1153 pdfdir=$ac_optarg ;;
1154
1155 -psdir | --psdir | --psdi | --psd | --ps)
1156 ac_prev=psdir ;;
1157 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1158 psdir=$ac_optarg ;;
1159
1160 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1161 | -silent | --silent | --silen | --sile | --sil)
1162 silent=yes ;;
1163
1164 -runstatedir | --runstatedir | --runstatedi | --runstated \
1165 | --runstate | --runstat | --runsta | --runst | --runs \
1166 | --run | --ru | --r)
1167 ac_prev=runstatedir ;;
1168 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1169 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1170 | --run=* | --ru=* | --r=*)
1171 runstatedir=$ac_optarg ;;
1172
1173 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1174 ac_prev=sbindir ;;
1175 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1176 | --sbi=* | --sb=*)
1177 sbindir=$ac_optarg ;;
1178
1179 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1180 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1181 | --sharedst | --shareds | --shared | --share | --shar \
1182 | --sha | --sh)
1183 ac_prev=sharedstatedir ;;
1184 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1185 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1186 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1187 | --sha=* | --sh=*)
1188 sharedstatedir=$ac_optarg ;;
1189
1190 -site | --site | --sit)
1191 ac_prev=site ;;
1192 -site=* | --site=* | --sit=*)
1193 site=$ac_optarg ;;
1194
1195 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1196 ac_prev=srcdir ;;
1197 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1198 srcdir=$ac_optarg ;;
1199
1200 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1201 | --syscon | --sysco | --sysc | --sys | --sy)
1202 ac_prev=sysconfdir ;;
1203 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1204 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1205 sysconfdir=$ac_optarg ;;
1206
1207 -target | --target | --targe | --targ | --tar | --ta | --t)
1208 ac_prev=target_alias ;;
1209 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1210 target_alias=$ac_optarg ;;
1211
1212 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1213 verbose=yes ;;
1214
1215 -version | --version | --versio | --versi | --vers | -V)
1216 ac_init_version=: ;;
1217
1218 -with-* | --with-*)
1219 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1220 # Reject names that are not valid shell variable names.
1221 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1222 as_fn_error $? "invalid package name: '$ac_useropt'"
1223 ac_useropt_orig=$ac_useropt
1224 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1225 case $ac_user_opts in
1226 *"
1227 "with_$ac_useropt"
1228 "*) ;;
1229 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1230 ac_unrecognized_sep=', ';;
1231 esac
1232 eval with_$ac_useropt=\$ac_optarg ;;
1233
1234 -without-* | --without-*)
1235 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1236 # Reject names that are not valid shell variable names.
1237 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238 as_fn_error $? "invalid package name: '$ac_useropt'"
1239 ac_useropt_orig=$ac_useropt
1240 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1241 case $ac_user_opts in
1242 *"
1243 "with_$ac_useropt"
1244 "*) ;;
1245 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1246 ac_unrecognized_sep=', ';;
1247 esac
1248 eval with_$ac_useropt=no ;;
1249
1250 --x)
1251 # Obsolete; use --with-x.
1252 with_x=yes ;;
1253
1254 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1255 | --x-incl | --x-inc | --x-in | --x-i)
1256 ac_prev=x_includes ;;
1257 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1258 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1259 x_includes=$ac_optarg ;;
1260
1261 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1262 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1263 ac_prev=x_libraries ;;
1264 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1265 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1266 x_libraries=$ac_optarg ;;
1267
1268 -*) as_fn_error $? "unrecognized option: '$ac_option'
1269 Try '$0 --help' for more information"
1270 ;;
1271
1272 *=*)
1273 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1274 # Reject names that are not valid shell variable names.
1275 case $ac_envvar in #(
1276 '' | [0-9]* | *[!_$as_cr_alnum]* )
1277 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1278 esac
1279 eval $ac_envvar=\$ac_optarg
1280 export $ac_envvar ;;
1281
1282 *)
1283 # FIXME: should be removed in autoconf 3.0.
1284 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1285 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1286 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1287 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1288 ;;
1289
1290 esac
1291 done
1292
1293 if test -n "$ac_prev"; then
1294 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1295 as_fn_error $? "missing argument to $ac_option"
1296 fi
1297
1298 if test -n "$ac_unrecognized_opts"; then
1299 case $enable_option_checking in
1300 no) ;;
1301 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1302 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1303 esac
1304 fi
1305
1306 # Check all directory arguments for consistency.
1307 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1308 datadir sysconfdir sharedstatedir localstatedir includedir \
1309 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1310 libdir localedir mandir runstatedir
1311 do
1312 eval ac_val=\$$ac_var
1313 # Remove trailing slashes.
1314 case $ac_val in
1315 */ )
1316 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1317 eval $ac_var=\$ac_val;;
1318 esac
1319 # Be sure to have absolute directory names.
1320 case $ac_val in
1321 [\\/$]* | ?:[\\/]* ) continue;;
1322 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1323 esac
1324 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1325 done
1326
1327 # There might be people who depend on the old broken behavior: '$host'
1328 # used to hold the argument of --host etc.
1329 # FIXME: To remove some day.
1330 build=$build_alias
1331 host=$host_alias
1332 target=$target_alias
1333
1334 # FIXME: To remove some day.
1335 if test "x$host_alias" != x; then
1336 if test "x$build_alias" = x; then
1337 cross_compiling=maybe
1338 elif test "x$build_alias" != "x$host_alias"; then
1339 cross_compiling=yes
1340 fi
1341 fi
1342
1343 ac_tool_prefix=
1344 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1345
1346 test "$silent" = yes && exec 6>/dev/null
1347
1348
1349 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1350 ac_ls_di=`ls -di .` &&
1351 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1352 as_fn_error $? "working directory cannot be determined"
1353 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1354 as_fn_error $? "pwd does not report name of working directory"
1355
1356
1357 # Find the source files, if location was not specified.
1358 if test -z "$srcdir"; then
1359 ac_srcdir_defaulted=yes
1360 # Try the directory containing this script, then the parent directory.
1361 ac_confdir=`$as_dirname -- "$as_myself" ||
1362 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1363 X"$as_myself" : 'X\(//\)[^/]' \| \
1364 X"$as_myself" : 'X\(//\)$' \| \
1365 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1366 printf "%s\n" X"$as_myself" |
1367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1368 s//\1/
1369 q
1370 }
1371 /^X\(\/\/\)[^/].*/{
1372 s//\1/
1373 q
1374 }
1375 /^X\(\/\/\)$/{
1376 s//\1/
1377 q
1378 }
1379 /^X\(\/\).*/{
1380 s//\1/
1381 q
1382 }
1383 s/.*/./; q'`
1384 srcdir=$ac_confdir
1385 if test ! -r "$srcdir/$ac_unique_file"; then
1386 srcdir=..
1387 fi
1388 else
1389 ac_srcdir_defaulted=no
1390 fi
1391 if test ! -r "$srcdir/$ac_unique_file"; then
1392 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1393 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1394 fi
1395 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1396 ac_abs_confdir=`(
1397 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1398 pwd)`
1399 # When building in place, set srcdir=.
1400 if test "$ac_abs_confdir" = "$ac_pwd"; then
1401 srcdir=.
1402 fi
1403 # Remove unnecessary trailing slashes from srcdir.
1404 # Double slashes in file names in object file debugging info
1405 # mess up M-x gdb in Emacs.
1406 case $srcdir in
1407 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1408 esac
1409 for ac_var in $ac_precious_vars; do
1410 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1411 eval ac_env_${ac_var}_value=\$${ac_var}
1412 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1413 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1414 done
1415
1416 #
1417 # Report the --help message.
1418 #
1419 if test "$ac_init_help" = "long"; then
1420 # Omit some internal or obsolete options to make the list less imposing.
1421 # This message is too long to be a string in the A/UX 3.1 sh.
1422 cat <<_ACEOF
1423 'configure' configures libabw 0.1.4 to adapt to many kinds of systems.
1424
1425 Usage: $0 [OPTION]... [VAR=VALUE]...
1426
1427 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1428 VAR=VALUE. See below for descriptions of some of the useful variables.
1429
1430 Defaults for the options are specified in brackets.
1431
1432 Configuration:
1433 -h, --help display this help and exit
1434 --help=short display options specific to this package
1435 --help=recursive display the short help of all the included packages
1436 -V, --version display version information and exit
1437 -q, --quiet, --silent do not print 'checking ...' messages
1438 --cache-file=FILE cache test results in FILE [disabled]
1439 -C, --config-cache alias for '--cache-file=config.cache'
1440 -n, --no-create do not create output files
1441 --srcdir=DIR find the sources in DIR [configure dir or '..']
1442
1443 Installation directories:
1444 --prefix=PREFIX install architecture-independent files in PREFIX
1445 [$ac_default_prefix]
1446 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1447 [PREFIX]
1448
1449 By default, 'make install' will install all the files in
1450 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1451 an installation prefix other than '$ac_default_prefix' using '--prefix',
1452 for instance '--prefix=\$HOME'.
1453
1454 For better control, use the options below.
1455
1456 Fine tuning of the installation directories:
1457 --bindir=DIR user executables [EPREFIX/bin]
1458 --sbindir=DIR system admin executables [EPREFIX/sbin]
1459 --libexecdir=DIR program executables [EPREFIX/libexec]
1460 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1461 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1462 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1463 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1464 --libdir=DIR object code libraries [EPREFIX/lib]
1465 --includedir=DIR C header files [PREFIX/include]
1466 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1467 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1468 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1469 --infodir=DIR info documentation [DATAROOTDIR/info]
1470 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1471 --mandir=DIR man documentation [DATAROOTDIR/man]
1472 --docdir=DIR documentation root [DATAROOTDIR/doc/libabw]
1473 --htmldir=DIR html documentation [DOCDIR]
1474 --dvidir=DIR dvi documentation [DOCDIR]
1475 --pdfdir=DIR pdf documentation [DOCDIR]
1476 --psdir=DIR ps documentation [DOCDIR]
1477 _ACEOF
1478
1479 cat <<\_ACEOF
1480
1481 Program names:
1482 --program-prefix=PREFIX prepend PREFIX to installed program names
1483 --program-suffix=SUFFIX append SUFFIX to installed program names
1484 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1485
1486 System types:
1487 --build=BUILD configure for building on BUILD [guessed]
1488 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1489 _ACEOF
1490 fi
1491
1492 if test -n "$ac_init_help"; then
1493 case $ac_init_help in
1494 short | recursive ) echo "Configuration of libabw 0.1.4:";;
1495 esac
1496 cat <<\_ACEOF
1497
1498 Optional Features:
1499 --disable-option-checking ignore unrecognized --enable/--with options
1500 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1501 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1502 --enable-silent-rules less verbose build output (undo: "make V=1")
1503 --disable-silent-rules verbose build output (undo: "make V=0")
1504 --enable-dependency-tracking
1505 do not reject slow dependency extractors
1506 --disable-dependency-tracking
1507 speeds up one-time build
1508 --enable-static[=PKGS] build static libraries [default=no]
1509 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1510 both]
1511 --enable-shared[=PKGS] build shared libraries [default=yes]
1512 --enable-fast-install[=PKGS]
1513 optimize for fast installation [default=yes]
1514 --enable-aix-soname=aix|svr4|both
1515 shared library versioning (aka "SONAME") variant to
1516 provide on AIX, [default=aix].
1517 --disable-libtool-lock avoid locking (might break parallel builds)
1518 --enable-werror Treat all warnings as errors, useful for development
1519 --disable-weffc Disable -Weffc++ warnings, useful when using an old
1520 version of gcc or of boost
1521 --enable-wparanoic Enable a lot of warnings...
1522 --enable-debug Turn on debugging
1523 --disable-tools Build conversion tools
1524 --enable-fuzzers Build fuzzer(s)
1525
1526 Optional Packages:
1527 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1528 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1529 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1530 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1531 compiler's sysroot if not specified).
1532 --without-docs Do not build documentation
1533
1534 Some influential environment variables:
1535 CC C compiler command
1536 CFLAGS C compiler flags
1537 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1538 nonstandard directory <lib dir>
1539 LIBS libraries to pass to the linker, e.g. -l<library>
1540 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1541 you have headers in a nonstandard directory <include dir>
1542 CPP C preprocessor
1543 CXX C++ compiler command
1544 CXXFLAGS C++ compiler flags
1545 LT_SYS_LIBRARY_PATH
1546 User-defined run-time library search path.
1547 CXXCPP C++ preprocessor
1548 PKG_CONFIG path to pkg-config utility
1549 PKG_CONFIG_PATH
1550 directories to add to pkg-config's search path
1551 PKG_CONFIG_LIBDIR
1552 path overriding pkg-config's built-in search path
1553 REVENGE_CFLAGS
1554 C compiler flags for REVENGE, overriding pkg-config
1555 REVENGE_LIBS
1556 linker flags for REVENGE, overriding pkg-config
1557 LIBXML_CFLAGS
1558 C compiler flags for LIBXML, overriding pkg-config
1559 LIBXML_LIBS linker flags for LIBXML, overriding pkg-config
1560 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1561 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config
1562 REVENGE_GENERATORS_CFLAGS
1563 C compiler flags for REVENGE_GENERATORS, overriding pkg-config
1564 REVENGE_GENERATORS_LIBS
1565 linker flags for REVENGE_GENERATORS, overriding pkg-config
1566 REVENGE_STREAM_CFLAGS
1567 C compiler flags for REVENGE_STREAM, overriding pkg-config
1568 REVENGE_STREAM_LIBS
1569 linker flags for REVENGE_STREAM, overriding pkg-config
1570
1571 Use these variables to override the choices made by 'configure' or to help
1572 it to find libraries and programs with nonstandard names/locations.
1573
1574 Report bugs to the package provider.
1575 _ACEOF
1576 ac_status=$?
1577 fi
1578
1579 if test "$ac_init_help" = "recursive"; then
1580 # If there are subdirs, report their specific --help.
1581 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1582 test -d "$ac_dir" ||
1583 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1584 continue
1585 ac_builddir=.
1586
1587 case "$ac_dir" in
1588 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589 *)
1590 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1591 # A ".." for each directory in $ac_dir_suffix.
1592 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1593 case $ac_top_builddir_sub in
1594 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1595 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1596 esac ;;
1597 esac
1598 ac_abs_top_builddir=$ac_pwd
1599 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1600 # for backward compatibility:
1601 ac_top_builddir=$ac_top_build_prefix
1602
1603 case $srcdir in
1604 .) # We are building in place.
1605 ac_srcdir=.
1606 ac_top_srcdir=$ac_top_builddir_sub
1607 ac_abs_top_srcdir=$ac_pwd ;;
1608 [\\/]* | ?:[\\/]* ) # Absolute name.
1609 ac_srcdir=$srcdir$ac_dir_suffix;
1610 ac_top_srcdir=$srcdir
1611 ac_abs_top_srcdir=$srcdir ;;
1612 *) # Relative name.
1613 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1614 ac_top_srcdir=$ac_top_build_prefix$srcdir
1615 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1616 esac
1617 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1618
1619 cd "$ac_dir" || { ac_status=$?; continue; }
1620 # Check for configure.gnu first; this name is used for a wrapper for
1621 # Metaconfig's "Configure" on case-insensitive file systems.
1622 if test -f "$ac_srcdir/configure.gnu"; then
1623 echo &&
1624 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1625 elif test -f "$ac_srcdir/configure"; then
1626 echo &&
1627 $SHELL "$ac_srcdir/configure" --help=recursive
1628 else
1629 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1630 fi || ac_status=$?
1631 cd "$ac_pwd" || { ac_status=$?; break; }
1632 done
1633 fi
1634
1635 test -n "$ac_init_help" && exit $ac_status
1636 if $ac_init_version; then
1637 cat <<\_ACEOF
1638 libabw configure 0.1.4
1639 generated by GNU Autoconf 2.72
1640
1641 Copyright (C) 2023 Free Software Foundation, Inc.
1642 This configure script is free software; the Free Software Foundation
1643 gives unlimited permission to copy, distribute and modify it.
1644 _ACEOF
1645 exit
1646 fi
1647
1648 ## ------------------------ ##
1649 ## Autoconf initialization. ##
1650 ## ------------------------ ##
1651
1652 # ac_fn_c_try_compile LINENO
1653 # --------------------------
1654 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1655 ac_fn_c_try_compile ()
1656 {
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 rm -f conftest.$ac_objext conftest.beam
1659 if { { ac_try="$ac_compile"
1660 case "(($ac_try" in
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1663 esac
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 printf "%s\n" "$ac_try_echo"; } >&5
1666 (eval "$ac_compile") 2>conftest.err
1667 ac_status=$?
1668 if test -s conftest.err; then
1669 grep -v '^ *+' conftest.err >conftest.er1
1670 cat conftest.er1 >&5
1671 mv -f conftest.er1 conftest.err
1672 fi
1673 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; } && {
1675 test -z "$ac_c_werror_flag" ||
1676 test ! -s conftest.err
1677 } && test -s conftest.$ac_objext
1678 then :
1679 ac_retval=0
1680 else case e in #(
1681 e) printf "%s\n" "$as_me: failed program was:" >&5
1682 sed 's/^/| /' conftest.$ac_ext >&5
1683
1684 ac_retval=1 ;;
1685 esac
1686 fi
1687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688 as_fn_set_status $ac_retval
1689
1690 } # ac_fn_c_try_compile
1691
1692 # ac_fn_c_try_cpp LINENO
1693 # ----------------------
1694 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1695 ac_fn_c_try_cpp ()
1696 {
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 if { { ac_try="$ac_cpp conftest.$ac_ext"
1699 case "(($ac_try" in
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1702 esac
1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 printf "%s\n" "$ac_try_echo"; } >&5
1705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1706 ac_status=$?
1707 if test -s conftest.err; then
1708 grep -v '^ *+' conftest.err >conftest.er1
1709 cat conftest.er1 >&5
1710 mv -f conftest.er1 conftest.err
1711 fi
1712 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } > conftest.i && {
1714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1715 test ! -s conftest.err
1716 }
1717 then :
1718 ac_retval=0
1719 else case e in #(
1720 e) printf "%s\n" "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1722
1723 ac_retval=1 ;;
1724 esac
1725 fi
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727 as_fn_set_status $ac_retval
1728
1729 } # ac_fn_c_try_cpp
1730
1731 # ac_fn_cxx_try_compile LINENO
1732 # ----------------------------
1733 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1734 ac_fn_cxx_try_compile ()
1735 {
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 rm -f conftest.$ac_objext conftest.beam
1738 if { { ac_try="$ac_compile"
1739 case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742 esac
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 printf "%s\n" "$ac_try_echo"; } >&5
1745 (eval "$ac_compile") 2>conftest.err
1746 ac_status=$?
1747 if test -s conftest.err; then
1748 grep -v '^ *+' conftest.err >conftest.er1
1749 cat conftest.er1 >&5
1750 mv -f conftest.er1 conftest.err
1751 fi
1752 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; } && {
1754 test -z "$ac_cxx_werror_flag" ||
1755 test ! -s conftest.err
1756 } && test -s conftest.$ac_objext
1757 then :
1758 ac_retval=0
1759 else case e in #(
1760 e) printf "%s\n" "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1762
1763 ac_retval=1 ;;
1764 esac
1765 fi
1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767 as_fn_set_status $ac_retval
1768
1769 } # ac_fn_cxx_try_compile
1770
1771 # ac_fn_c_try_link LINENO
1772 # -----------------------
1773 # Try to link conftest.$ac_ext, and return whether this succeeded.
1774 ac_fn_c_try_link ()
1775 {
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1778 if { { ac_try="$ac_link"
1779 case "(($ac_try" in
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1782 esac
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 printf "%s\n" "$ac_try_echo"; } >&5
1785 (eval "$ac_link") 2>conftest.err
1786 ac_status=$?
1787 if test -s conftest.err; then
1788 grep -v '^ *+' conftest.err >conftest.er1
1789 cat conftest.er1 >&5
1790 mv -f conftest.er1 conftest.err
1791 fi
1792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; } && {
1794 test -z "$ac_c_werror_flag" ||
1795 test ! -s conftest.err
1796 } && test -s conftest$ac_exeext && {
1797 test "$cross_compiling" = yes ||
1798 test -x conftest$ac_exeext
1799 }
1800 then :
1801 ac_retval=0
1802 else case e in #(
1803 e) printf "%s\n" "$as_me: failed program was:" >&5
1804 sed 's/^/| /' conftest.$ac_ext >&5
1805
1806 ac_retval=1 ;;
1807 esac
1808 fi
1809 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1810 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1811 # interfere with the next link command; also delete a directory that is
1812 # left behind by Apple's compiler. We do this before executing the actions.
1813 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1815 as_fn_set_status $ac_retval
1816
1817 } # ac_fn_c_try_link
1818
1819 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1820 # -------------------------------------------------------
1821 # Tests whether HEADER exists and can be compiled using the include files in
1822 # INCLUDES, setting the cache variable VAR accordingly.
1823 ac_fn_c_check_header_compile ()
1824 {
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1827 printf %s "checking for $2... " >&6; }
1828 if eval test \${$3+y}
1829 then :
1830 printf %s "(cached) " >&6
1831 else case e in #(
1832 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833 /* end confdefs.h. */
1834 $4
1835 #include <$2>
1836 _ACEOF
1837 if ac_fn_c_try_compile "$LINENO"
1838 then :
1839 eval "$3=yes"
1840 else case e in #(
1841 e) eval "$3=no" ;;
1842 esac
1843 fi
1844 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1845 esac
1846 fi
1847 eval ac_res=\$$3
1848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1849 printf "%s\n" "$ac_res" >&6; }
1850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1851
1852 } # ac_fn_c_check_header_compile
1853
1854 # ac_fn_c_check_func LINENO FUNC VAR
1855 # ----------------------------------
1856 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1857 ac_fn_c_check_func ()
1858 {
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861 printf %s "checking for $2... " >&6; }
1862 if eval test \${$3+y}
1863 then :
1864 printf %s "(cached) " >&6
1865 else case e in #(
1866 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h. */
1868 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1870 #define $2 innocuous_$2
1871
1872 /* System header to define __stub macros and hopefully few prototypes,
1873 which can conflict with char $2 (void); below. */
1874
1875 #include <limits.h>
1876 #undef $2
1877
1878 /* Override any GCC internal prototype to avoid an error.
1879 Use char because int might match the return type of a GCC
1880 builtin and then its argument prototype would still apply. */
1881 #ifdef __cplusplus
1882 extern "C"
1883 #endif
1884 char $2 (void);
1885 /* The GNU C library defines this for functions which it implements
1886 to always fail with ENOSYS. Some functions are actually named
1887 something starting with __ and the normal name is an alias. */
1888 #if defined __stub_$2 || defined __stub___$2
1889 choke me
1890 #endif
1891
1892 int
1893 main (void)
1894 {
1895 return $2 ();
1896 ;
1897 return 0;
1898 }
1899 _ACEOF
1900 if ac_fn_c_try_link "$LINENO"
1901 then :
1902 eval "$3=yes"
1903 else case e in #(
1904 e) eval "$3=no" ;;
1905 esac
1906 fi
1907 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1908 conftest$ac_exeext conftest.$ac_ext ;;
1909 esac
1910 fi
1911 eval ac_res=\$$3
1912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913 printf "%s\n" "$ac_res" >&6; }
1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915
1916 } # ac_fn_c_check_func
1917
1918 # ac_fn_cxx_try_cpp LINENO
1919 # ------------------------
1920 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1921 ac_fn_cxx_try_cpp ()
1922 {
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 if { { ac_try="$ac_cpp conftest.$ac_ext"
1925 case "(($ac_try" in
1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927 *) ac_try_echo=$ac_try;;
1928 esac
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 printf "%s\n" "$ac_try_echo"; } >&5
1931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1932 ac_status=$?
1933 if test -s conftest.err; then
1934 grep -v '^ *+' conftest.err >conftest.er1
1935 cat conftest.er1 >&5
1936 mv -f conftest.er1 conftest.err
1937 fi
1938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939 test $ac_status = 0; } > conftest.i && {
1940 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1941 test ! -s conftest.err
1942 }
1943 then :
1944 ac_retval=0
1945 else case e in #(
1946 e) printf "%s\n" "$as_me: failed program was:" >&5
1947 sed 's/^/| /' conftest.$ac_ext >&5
1948
1949 ac_retval=1 ;;
1950 esac
1951 fi
1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953 as_fn_set_status $ac_retval
1954
1955 } # ac_fn_cxx_try_cpp
1956
1957 # ac_fn_cxx_try_link LINENO
1958 # -------------------------
1959 # Try to link conftest.$ac_ext, and return whether this succeeded.
1960 ac_fn_cxx_try_link ()
1961 {
1962 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1964 if { { ac_try="$ac_link"
1965 case "(($ac_try" in
1966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1967 *) ac_try_echo=$ac_try;;
1968 esac
1969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1970 printf "%s\n" "$ac_try_echo"; } >&5
1971 (eval "$ac_link") 2>conftest.err
1972 ac_status=$?
1973 if test -s conftest.err; then
1974 grep -v '^ *+' conftest.err >conftest.er1
1975 cat conftest.er1 >&5
1976 mv -f conftest.er1 conftest.err
1977 fi
1978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1979 test $ac_status = 0; } && {
1980 test -z "$ac_cxx_werror_flag" ||
1981 test ! -s conftest.err
1982 } && test -s conftest$ac_exeext && {
1983 test "$cross_compiling" = yes ||
1984 test -x conftest$ac_exeext
1985 }
1986 then :
1987 ac_retval=0
1988 else case e in #(
1989 e) printf "%s\n" "$as_me: failed program was:" >&5
1990 sed 's/^/| /' conftest.$ac_ext >&5
1991
1992 ac_retval=1 ;;
1993 esac
1994 fi
1995 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1996 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1997 # interfere with the next link command; also delete a directory that is
1998 # left behind by Apple's compiler. We do this before executing the actions.
1999 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2000 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2001 as_fn_set_status $ac_retval
2002
2003 } # ac_fn_cxx_try_link
2004
2005 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2006 # ---------------------------------------------------------
2007 # Tests whether HEADER exists and can be compiled using the include files in
2008 # INCLUDES, setting the cache variable VAR accordingly.
2009 ac_fn_cxx_check_header_compile ()
2010 {
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013 printf %s "checking for $2... " >&6; }
2014 if eval test \${$3+y}
2015 then :
2016 printf %s "(cached) " >&6
2017 else case e in #(
2018 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2020 $4
2021 #include <$2>
2022 _ACEOF
2023 if ac_fn_cxx_try_compile "$LINENO"
2024 then :
2025 eval "$3=yes"
2026 else case e in #(
2027 e) eval "$3=no" ;;
2028 esac
2029 fi
2030 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2031 esac
2032 fi
2033 eval ac_res=\$$3
2034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2035 printf "%s\n" "$ac_res" >&6; }
2036 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2037
2038 } # ac_fn_cxx_check_header_compile
2039 ac_configure_args_raw=
2040 for ac_arg
2041 do
2042 case $ac_arg in
2043 *\'*)
2044 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2045 esac
2046 as_fn_append ac_configure_args_raw " '$ac_arg'"
2047 done
2048
2049 case $ac_configure_args_raw in
2050 *$as_nl*)
2051 ac_safe_unquote= ;;
2052 *)
2053 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2054 ac_unsafe_a="$ac_unsafe_z#~"
2055 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2056 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2057 esac
2058
2059 cat >config.log <<_ACEOF
2060 This file contains any messages produced by compilers while
2061 running configure, to aid debugging if configure makes a mistake.
2062
2063 It was created by libabw $as_me 0.1.4, which was
2064 generated by GNU Autoconf 2.72. Invocation command line was
2065
2066 $ $0$ac_configure_args_raw
2067
2068 _ACEOF
2069 exec 5>>config.log
2070 {
2071 cat <<_ASUNAME
2072 ## --------- ##
2073 ## Platform. ##
2074 ## --------- ##
2075
2076 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2077 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2078 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2079 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2080 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2081
2082 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2083 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2084
2085 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2086 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2087 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2088 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2089 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2090 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2091 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2092
2093 _ASUNAME
2094
2095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2096 for as_dir in $PATH
2097 do
2098 IFS=$as_save_IFS
2099 case $as_dir in #(((
2100 '') as_dir=./ ;;
2101 */) ;;
2102 *) as_dir=$as_dir/ ;;
2103 esac
2104 printf "%s\n" "PATH: $as_dir"
2105 done
2106 IFS=$as_save_IFS
2107
2108 } >&5
2109
2110 cat >&5 <<_ACEOF
2111
2112
2113 ## ----------- ##
2114 ## Core tests. ##
2115 ## ----------- ##
2116
2117 _ACEOF
2118
2119
2120 # Keep a trace of the command line.
2121 # Strip out --no-create and --no-recursion so they do not pile up.
2122 # Strip out --silent because we don't want to record it for future runs.
2123 # Also quote any args containing shell meta-characters.
2124 # Make two passes to allow for proper duplicate-argument suppression.
2125 ac_configure_args=
2126 ac_configure_args0=
2127 ac_configure_args1=
2128 ac_must_keep_next=false
2129 for ac_pass in 1 2
2130 do
2131 for ac_arg
2132 do
2133 case $ac_arg in
2134 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2136 | -silent | --silent | --silen | --sile | --sil)
2137 continue ;;
2138 *\'*)
2139 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2140 esac
2141 case $ac_pass in
2142 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2143 2)
2144 as_fn_append ac_configure_args1 " '$ac_arg'"
2145 if test $ac_must_keep_next = true; then
2146 ac_must_keep_next=false # Got value, back to normal.
2147 else
2148 case $ac_arg in
2149 *=* | --config-cache | -C | -disable-* | --disable-* \
2150 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2151 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2152 | -with-* | --with-* | -without-* | --without-* | --x)
2153 case "$ac_configure_args0 " in
2154 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2155 esac
2156 ;;
2157 -* ) ac_must_keep_next=true ;;
2158 esac
2159 fi
2160 as_fn_append ac_configure_args " '$ac_arg'"
2161 ;;
2162 esac
2163 done
2164 done
2165 { ac_configure_args0=; unset ac_configure_args0;}
2166 { ac_configure_args1=; unset ac_configure_args1;}
2167
2168 # When interrupted or exit'd, cleanup temporary files, and complete
2169 # config.log. We remove comments because anyway the quotes in there
2170 # would cause problems or look ugly.
2171 # WARNING: Use '\'' to represent an apostrophe within the trap.
2172 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2173 trap 'exit_status=$?
2174 # Sanitize IFS.
2175 IFS=" "" $as_nl"
2176 # Save into config.log some information that might help in debugging.
2177 {
2178 echo
2179
2180 printf "%s\n" "## ---------------- ##
2181 ## Cache variables. ##
2182 ## ---------------- ##"
2183 echo
2184 # The following way of writing the cache mishandles newlines in values,
2185 (
2186 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2187 eval ac_val=\$$ac_var
2188 case $ac_val in #(
2189 *${as_nl}*)
2190 case $ac_var in #(
2191 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2192 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2193 esac
2194 case $ac_var in #(
2195 _ | IFS | as_nl) ;; #(
2196 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2197 *) { eval $ac_var=; unset $ac_var;} ;;
2198 esac ;;
2199 esac
2200 done
2201 (set) 2>&1 |
2202 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2203 *${as_nl}ac_space=\ *)
2204 sed -n \
2205 "s/'\''/'\''\\\\'\'''\''/g;
2206 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2207 ;; #(
2208 *)
2209 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2210 ;;
2211 esac |
2212 sort
2213 )
2214 echo
2215
2216 printf "%s\n" "## ----------------- ##
2217 ## Output variables. ##
2218 ## ----------------- ##"
2219 echo
2220 for ac_var in $ac_subst_vars
2221 do
2222 eval ac_val=\$$ac_var
2223 case $ac_val in
2224 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2225 esac
2226 printf "%s\n" "$ac_var='\''$ac_val'\''"
2227 done | sort
2228 echo
2229
2230 if test -n "$ac_subst_files"; then
2231 printf "%s\n" "## ------------------- ##
2232 ## File substitutions. ##
2233 ## ------------------- ##"
2234 echo
2235 for ac_var in $ac_subst_files
2236 do
2237 eval ac_val=\$$ac_var
2238 case $ac_val in
2239 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2240 esac
2241 printf "%s\n" "$ac_var='\''$ac_val'\''"
2242 done | sort
2243 echo
2244 fi
2245
2246 if test -s confdefs.h; then
2247 printf "%s\n" "## ----------- ##
2248 ## confdefs.h. ##
2249 ## ----------- ##"
2250 echo
2251 cat confdefs.h
2252 echo
2253 fi
2254 test "$ac_signal" != 0 &&
2255 printf "%s\n" "$as_me: caught signal $ac_signal"
2256 printf "%s\n" "$as_me: exit $exit_status"
2257 } >&5
2258 rm -f core *.core core.conftest.* &&
2259 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2260 exit $exit_status
2261 ' 0
2262 for ac_signal in 1 2 13 15; do
2263 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2264 done
2265 ac_signal=0
2266
2267 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2268 rm -f -r conftest* confdefs.h
2269
2270 printf "%s\n" "/* confdefs.h */" > confdefs.h
2271
2272 # Predefined preprocessor variables.
2273
2274 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2275
2276 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2277
2278 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2279
2280 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2281
2282 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2283
2284 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2285
2286
2287 # Let the site file select an alternate cache file if it wants to.
2288 # Prefer an explicitly selected file to automatically selected ones.
2289 if test -n "$CONFIG_SITE"; then
2290 ac_site_files="$CONFIG_SITE"
2291 elif test "x$prefix" != xNONE; then
2292 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2293 else
2294 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2295 fi
2296
2297 for ac_site_file in $ac_site_files
2298 do
2299 case $ac_site_file in #(
2300 */*) :
2301 ;; #(
2302 *) :
2303 ac_site_file=./$ac_site_file ;;
2304 esac
2305 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2307 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2308 sed 's/^/| /' "$ac_site_file" >&5
2309 . "$ac_site_file" \
2310 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2311 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2312 as_fn_error $? "failed to load site script $ac_site_file
2313 See 'config.log' for more details" "$LINENO" 5; }
2314 fi
2315 done
2316
2317 if test -r "$cache_file"; then
2318 # Some versions of bash will fail to source /dev/null (special files
2319 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2320 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2322 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2323 case $cache_file in
2324 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2325 *) . "./$cache_file";;
2326 esac
2327 fi
2328 else
2329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2330 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2331 >$cache_file
2332 fi
2333
2334 # Test code for whether the C compiler supports C89 (global declarations)
2335 ac_c_conftest_c89_globals='
2336 /* Does the compiler advertise C89 conformance?
2337 Do not test the value of __STDC__, because some compilers set it to 0
2338 while being otherwise adequately conformant. */
2339 #if !defined __STDC__
2340 # error "Compiler does not advertise C89 conformance"
2341 #endif
2342
2343 #include <stddef.h>
2344 #include <stdarg.h>
2345 struct stat;
2346 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2347 struct buf { int x; };
2348 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2349 static char *e (char **p, int i)
2350 {
2351 return p[i];
2352 }
2353 static char *f (char * (*g) (char **, int), char **p, ...)
2354 {
2355 char *s;
2356 va_list v;
2357 va_start (v,p);
2358 s = g (p, va_arg (v,int));
2359 va_end (v);
2360 return s;
2361 }
2362
2363 /* C89 style stringification. */
2364 #define noexpand_stringify(a) #a
2365 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2366
2367 /* C89 style token pasting. Exercises some of the corner cases that
2368 e.g. old MSVC gets wrong, but not very hard. */
2369 #define noexpand_concat(a,b) a##b
2370 #define expand_concat(a,b) noexpand_concat(a,b)
2371 extern int vA;
2372 extern int vbee;
2373 #define aye A
2374 #define bee B
2375 int *pvA = &expand_concat(v,aye);
2376 int *pvbee = &noexpand_concat(v,bee);
2377
2378 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2379 function prototypes and stuff, but not \xHH hex character constants.
2380 These do not provoke an error unfortunately, instead are silently treated
2381 as an "x". The following induces an error, until -std is added to get
2382 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2383 array size at least. It is necessary to write \x00 == 0 to get something
2384 that is true only with -std. */
2385 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2386
2387 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2388 inside strings and character constants. */
2389 #define FOO(x) '\''x'\''
2390 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2391
2392 int test (int i, double x);
2393 struct s1 {int (*f) (int a);};
2394 struct s2 {int (*f) (double a);};
2395 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2396 int, int);'
2397
2398 # Test code for whether the C compiler supports C89 (body of main).
2399 ac_c_conftest_c89_main='
2400 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2401 '
2402
2403 # Test code for whether the C compiler supports C99 (global declarations)
2404 ac_c_conftest_c99_globals='
2405 /* Does the compiler advertise C99 conformance? */
2406 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2407 # error "Compiler does not advertise C99 conformance"
2408 #endif
2409
2410 // See if C++-style comments work.
2411
2412 #include <stdbool.h>
2413 extern int puts (const char *);
2414 extern int printf (const char *, ...);
2415 extern int dprintf (int, const char *, ...);
2416 extern void *malloc (size_t);
2417 extern void free (void *);
2418
2419 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2420 // dprintf is used instead of fprintf to avoid needing to declare
2421 // FILE and stderr.
2422 #define debug(...) dprintf (2, __VA_ARGS__)
2423 #define showlist(...) puts (#__VA_ARGS__)
2424 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2425 static void
2426 test_varargs_macros (void)
2427 {
2428 int x = 1234;
2429 int y = 5678;
2430 debug ("Flag");
2431 debug ("X = %d\n", x);
2432 showlist (The first, second, and third items.);
2433 report (x>y, "x is %d but y is %d", x, y);
2434 }
2435
2436 // Check long long types.
2437 #define BIG64 18446744073709551615ull
2438 #define BIG32 4294967295ul
2439 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2440 #if !BIG_OK
2441 #error "your preprocessor is broken"
2442 #endif
2443 #if BIG_OK
2444 #else
2445 #error "your preprocessor is broken"
2446 #endif
2447 static long long int bignum = -9223372036854775807LL;
2448 static unsigned long long int ubignum = BIG64;
2449
2450 struct incomplete_array
2451 {
2452 int datasize;
2453 double data[];
2454 };
2455
2456 struct named_init {
2457 int number;
2458 const wchar_t *name;
2459 double average;
2460 };
2461
2462 typedef const char *ccp;
2463
2464 static inline int
2465 test_restrict (ccp restrict text)
2466 {
2467 // Iterate through items via the restricted pointer.
2468 // Also check for declarations in for loops.
2469 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2470 continue;
2471 return 0;
2472 }
2473
2474 // Check varargs and va_copy.
2475 static bool
2476 test_varargs (const char *format, ...)
2477 {
2478 va_list args;
2479 va_start (args, format);
2480 va_list args_copy;
2481 va_copy (args_copy, args);
2482
2483 const char *str = "";
2484 int number = 0;
2485 float fnumber = 0;
2486
2487 while (*format)
2488 {
2489 switch (*format++)
2490 {
2491 case '\''s'\'': // string
2492 str = va_arg (args_copy, const char *);
2493 break;
2494 case '\''d'\'': // int
2495 number = va_arg (args_copy, int);
2496 break;
2497 case '\''f'\'': // float
2498 fnumber = va_arg (args_copy, double);
2499 break;
2500 default:
2501 break;
2502 }
2503 }
2504 va_end (args_copy);
2505 va_end (args);
2506
2507 return *str && number && fnumber;
2508 }
2509 '
2510
2511 # Test code for whether the C compiler supports C99 (body of main).
2512 ac_c_conftest_c99_main='
2513 // Check bool.
2514 _Bool success = false;
2515 success |= (argc != 0);
2516
2517 // Check restrict.
2518 if (test_restrict ("String literal") == 0)
2519 success = true;
2520 char *restrict newvar = "Another string";
2521
2522 // Check varargs.
2523 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2524 test_varargs_macros ();
2525
2526 // Check flexible array members.
2527 struct incomplete_array *ia =
2528 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2529 ia->datasize = 10;
2530 for (int i = 0; i < ia->datasize; ++i)
2531 ia->data[i] = i * 1.234;
2532 // Work around memory leak warnings.
2533 free (ia);
2534
2535 // Check named initializers.
2536 struct named_init ni = {
2537 .number = 34,
2538 .name = L"Test wide string",
2539 .average = 543.34343,
2540 };
2541
2542 ni.number = 58;
2543
2544 int dynamic_array[ni.number];
2545 dynamic_array[0] = argv[0][0];
2546 dynamic_array[ni.number - 1] = 543;
2547
2548 // work around unused variable warnings
2549 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2550 || dynamic_array[ni.number - 1] != 543);
2551 '
2552
2553 # Test code for whether the C compiler supports C11 (global declarations)
2554 ac_c_conftest_c11_globals='
2555 /* Does the compiler advertise C11 conformance? */
2556 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2557 # error "Compiler does not advertise C11 conformance"
2558 #endif
2559
2560 // Check _Alignas.
2561 char _Alignas (double) aligned_as_double;
2562 char _Alignas (0) no_special_alignment;
2563 extern char aligned_as_int;
2564 char _Alignas (0) _Alignas (int) aligned_as_int;
2565
2566 // Check _Alignof.
2567 enum
2568 {
2569 int_alignment = _Alignof (int),
2570 int_array_alignment = _Alignof (int[100]),
2571 char_alignment = _Alignof (char)
2572 };
2573 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2574
2575 // Check _Noreturn.
2576 int _Noreturn does_not_return (void) { for (;;) continue; }
2577
2578 // Check _Static_assert.
2579 struct test_static_assert
2580 {
2581 int x;
2582 _Static_assert (sizeof (int) <= sizeof (long int),
2583 "_Static_assert does not work in struct");
2584 long int y;
2585 };
2586
2587 // Check UTF-8 literals.
2588 #define u8 syntax error!
2589 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2590
2591 // Check duplicate typedefs.
2592 typedef long *long_ptr;
2593 typedef long int *long_ptr;
2594 typedef long_ptr long_ptr;
2595
2596 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2597 struct anonymous
2598 {
2599 union {
2600 struct { int i; int j; };
2601 struct { int k; long int l; } w;
2602 };
2603 int m;
2604 } v1;
2605 '
2606
2607 # Test code for whether the C compiler supports C11 (body of main).
2608 ac_c_conftest_c11_main='
2609 _Static_assert ((offsetof (struct anonymous, i)
2610 == offsetof (struct anonymous, w.k)),
2611 "Anonymous union alignment botch");
2612 v1.i = 2;
2613 v1.w.k = 5;
2614 ok |= v1.i != 5;
2615 '
2616
2617 # Test code for whether the C compiler supports C11 (complete).
2618 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2619 ${ac_c_conftest_c99_globals}
2620 ${ac_c_conftest_c11_globals}
2621
2622 int
2623 main (int argc, char **argv)
2624 {
2625 int ok = 0;
2626 ${ac_c_conftest_c89_main}
2627 ${ac_c_conftest_c99_main}
2628 ${ac_c_conftest_c11_main}
2629 return ok;
2630 }
2631 "
2632
2633 # Test code for whether the C compiler supports C99 (complete).
2634 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2635 ${ac_c_conftest_c99_globals}
2636
2637 int
2638 main (int argc, char **argv)
2639 {
2640 int ok = 0;
2641 ${ac_c_conftest_c89_main}
2642 ${ac_c_conftest_c99_main}
2643 return ok;
2644 }
2645 "
2646
2647 # Test code for whether the C compiler supports C89 (complete).
2648 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2649
2650 int
2651 main (int argc, char **argv)
2652 {
2653 int ok = 0;
2654 ${ac_c_conftest_c89_main}
2655 return ok;
2656 }
2657 "
2658
2659 # Test code for whether the C++ compiler supports C++98 (global declarations)
2660 ac_cxx_conftest_cxx98_globals='
2661 // Does the compiler advertise C++98 conformance?
2662 #if !defined __cplusplus || __cplusplus < 199711L
2663 # error "Compiler does not advertise C++98 conformance"
2664 #endif
2665
2666 // These inclusions are to reject old compilers that
2667 // lack the unsuffixed header files.
2668 #include <cstdlib>
2669 #include <exception>
2670
2671 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2672 extern void assert (int);
2673 namespace std {
2674 extern int strcmp (const char *, const char *);
2675 }
2676
2677 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2678 using std::exception;
2679 using std::strcmp;
2680
2681 namespace {
2682
2683 void test_exception_syntax()
2684 {
2685 try {
2686 throw "test";
2687 } catch (const char *s) {
2688 // Extra parentheses suppress a warning when building autoconf itself,
2689 // due to lint rules shared with more typical C programs.
2690 assert (!(strcmp) (s, "test"));
2691 }
2692 }
2693
2694 template <typename T> struct test_template
2695 {
2696 T const val;
2697 explicit test_template(T t) : val(t) {}
2698 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2699 };
2700
2701 } // anonymous namespace
2702 '
2703
2704 # Test code for whether the C++ compiler supports C++98 (body of main)
2705 ac_cxx_conftest_cxx98_main='
2706 assert (argc);
2707 assert (! argv[0]);
2708 {
2709 test_exception_syntax ();
2710 test_template<double> tt (2.0);
2711 assert (tt.add (4) == 6.0);
2712 assert (true && !false);
2713 }
2714 '
2715
2716 # Test code for whether the C++ compiler supports C++11 (global declarations)
2717 ac_cxx_conftest_cxx11_globals='
2718 // Does the compiler advertise C++ 2011 conformance?
2719 #if !defined __cplusplus || __cplusplus < 201103L
2720 # error "Compiler does not advertise C++11 conformance"
2721 #endif
2722
2723 namespace cxx11test
2724 {
2725 constexpr int get_val() { return 20; }
2726
2727 struct testinit
2728 {
2729 int i;
2730 double d;
2731 };
2732
2733 class delegate
2734 {
2735 public:
2736 delegate(int n) : n(n) {}
2737 delegate(): delegate(2354) {}
2738
2739 virtual int getval() { return this->n; };
2740 protected:
2741 int n;
2742 };
2743
2744 class overridden : public delegate
2745 {
2746 public:
2747 overridden(int n): delegate(n) {}
2748 virtual int getval() override final { return this->n * 2; }
2749 };
2750
2751 class nocopy
2752 {
2753 public:
2754 nocopy(int i): i(i) {}
2755 nocopy() = default;
2756 nocopy(const nocopy&) = delete;
2757 nocopy & operator=(const nocopy&) = delete;
2758 private:
2759 int i;
2760 };
2761
2762 // for testing lambda expressions
2763 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2764 {
2765 return f(v);
2766 }
2767
2768 // for testing variadic templates and trailing return types
2769 template <typename V> auto sum(V first) -> V
2770 {
2771 return first;
2772 }
2773 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2774 {
2775 return first + sum(rest...);
2776 }
2777 }
2778 '
2779
2780 # Test code for whether the C++ compiler supports C++11 (body of main)
2781 ac_cxx_conftest_cxx11_main='
2782 {
2783 // Test auto and decltype
2784 auto a1 = 6538;
2785 auto a2 = 48573953.4;
2786 auto a3 = "String literal";
2787
2788 int total = 0;
2789 for (auto i = a3; *i; ++i) { total += *i; }
2790
2791 decltype(a2) a4 = 34895.034;
2792 }
2793 {
2794 // Test constexpr
2795 short sa[cxx11test::get_val()] = { 0 };
2796 }
2797 {
2798 // Test initializer lists
2799 cxx11test::testinit il = { 4323, 435234.23544 };
2800 }
2801 {
2802 // Test range-based for
2803 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2804 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2805 for (auto &x : array) { x += 23; }
2806 }
2807 {
2808 // Test lambda expressions
2809 using cxx11test::eval;
2810 assert (eval ([](int x) { return x*2; }, 21) == 42);
2811 double d = 2.0;
2812 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2813 assert (d == 5.0);
2814 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2815 assert (d == 5.0);
2816 }
2817 {
2818 // Test use of variadic templates
2819 using cxx11test::sum;
2820 auto a = sum(1);
2821 auto b = sum(1, 2);
2822 auto c = sum(1.0, 2.0, 3.0);
2823 }
2824 {
2825 // Test constructor delegation
2826 cxx11test::delegate d1;
2827 cxx11test::delegate d2();
2828 cxx11test::delegate d3(45);
2829 }
2830 {
2831 // Test override and final
2832 cxx11test::overridden o1(55464);
2833 }
2834 {
2835 // Test nullptr
2836 char *c = nullptr;
2837 }
2838 {
2839 // Test template brackets
2840 test_template<::test_template<int>> v(test_template<int>(12));
2841 }
2842 {
2843 // Unicode literals
2844 char const *utf8 = u8"UTF-8 string \u2500";
2845 char16_t const *utf16 = u"UTF-8 string \u2500";
2846 char32_t const *utf32 = U"UTF-32 string \u2500";
2847 }
2848 '
2849
2850 # Test code for whether the C compiler supports C++11 (complete).
2851 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2852 ${ac_cxx_conftest_cxx11_globals}
2853
2854 int
2855 main (int argc, char **argv)
2856 {
2857 int ok = 0;
2858 ${ac_cxx_conftest_cxx98_main}
2859 ${ac_cxx_conftest_cxx11_main}
2860 return ok;
2861 }
2862 "
2863
2864 # Test code for whether the C compiler supports C++98 (complete).
2865 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2866 int
2867 main (int argc, char **argv)
2868 {
2869 int ok = 0;
2870 ${ac_cxx_conftest_cxx98_main}
2871 return ok;
2872 }
2873 "
2874
2875 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2876 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2877 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2878 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2879 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2880 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2881 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2882 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2883 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2884
2885 # Auxiliary files required by this configure script.
2886 ac_aux_files="config.guess config.sub ltmain.sh compile ar-lib missing install-sh"
2887
2888 # Locations in which to look for auxiliary files.
2889 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2890
2891 # Search for a directory containing all of the required auxiliary files,
2892 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2893 # If we don't find one directory that contains all the files we need,
2894 # we report the set of missing files from the *first* directory in
2895 # $ac_aux_dir_candidates and give up.
2896 ac_missing_aux_files=""
2897 ac_first_candidate=:
2898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 as_found=false
2901 for as_dir in $ac_aux_dir_candidates
2902 do
2903 IFS=$as_save_IFS
2904 case $as_dir in #(((
2905 '') as_dir=./ ;;
2906 */) ;;
2907 *) as_dir=$as_dir/ ;;
2908 esac
2909 as_found=:
2910
2911 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2912 ac_aux_dir_found=yes
2913 ac_install_sh=
2914 for ac_aux in $ac_aux_files
2915 do
2916 # As a special case, if "install-sh" is required, that requirement
2917 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2918 # and $ac_install_sh is set appropriately for whichever one is found.
2919 if test x"$ac_aux" = x"install-sh"
2920 then
2921 if test -f "${as_dir}install-sh"; then
2922 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2923 ac_install_sh="${as_dir}install-sh -c"
2924 elif test -f "${as_dir}install.sh"; then
2925 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2926 ac_install_sh="${as_dir}install.sh -c"
2927 elif test -f "${as_dir}shtool"; then
2928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2929 ac_install_sh="${as_dir}shtool install -c"
2930 else
2931 ac_aux_dir_found=no
2932 if $ac_first_candidate; then
2933 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2934 else
2935 break
2936 fi
2937 fi
2938 else
2939 if test -f "${as_dir}${ac_aux}"; then
2940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2941 else
2942 ac_aux_dir_found=no
2943 if $ac_first_candidate; then
2944 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2945 else
2946 break
2947 fi
2948 fi
2949 fi
2950 done
2951 if test "$ac_aux_dir_found" = yes; then
2952 ac_aux_dir="$as_dir"
2953 break
2954 fi
2955 ac_first_candidate=false
2956
2957 as_found=false
2958 done
2959 IFS=$as_save_IFS
2960 if $as_found
2961 then :
2962
2963 else case e in #(
2964 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2965 esac
2966 fi
2967
2968
2969 # These three variables are undocumented and unsupported,
2970 # and are intended to be withdrawn in a future Autoconf release.
2971 # They can cause serious problems if a builder's source tree is in a directory
2972 # whose full name contains unusual characters.
2973 if test -f "${ac_aux_dir}config.guess"; then
2974 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2975 fi
2976 if test -f "${ac_aux_dir}config.sub"; then
2977 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2978 fi
2979 if test -f "$ac_aux_dir/configure"; then
2980 ac_configure="$SHELL ${ac_aux_dir}configure"
2981 fi
2982
2983 # Check that the precious variables saved in the cache have kept the same
2984 # value.
2985 ac_cache_corrupted=false
2986 for ac_var in $ac_precious_vars; do
2987 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2988 eval ac_new_set=\$ac_env_${ac_var}_set
2989 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2990 eval ac_new_val=\$ac_env_${ac_var}_value
2991 case $ac_old_set,$ac_new_set in
2992 set,)
2993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2994 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2995 ac_cache_corrupted=: ;;
2996 ,set)
2997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2998 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2999 ac_cache_corrupted=: ;;
3000 ,);;
3001 *)
3002 if test "x$ac_old_val" != "x$ac_new_val"; then
3003 # differences in whitespace do not lead to failure.
3004 ac_old_val_w=`echo x $ac_old_val`
3005 ac_new_val_w=`echo x $ac_new_val`
3006 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3008 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3009 ac_cache_corrupted=:
3010 else
3011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3012 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3013 eval $ac_var=\$ac_old_val
3014 fi
3015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3016 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
3017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3018 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
3019 fi;;
3020 esac
3021 # Pass precious variables to config.status.
3022 if test "$ac_new_set" = set; then
3023 case $ac_new_val in
3024 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3025 *) ac_arg=$ac_var=$ac_new_val ;;
3026 esac
3027 case " $ac_configure_args " in
3028 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3029 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3030 esac
3031 fi
3032 done
3033 if $ac_cache_corrupted; then
3034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3035 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3037 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3038 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3039 and start over" "$LINENO" 5
3040 fi
3041 ## -------------------- ##
3042 ## Main body of script. ##
3043 ## -------------------- ##
3044
3045 ac_ext=c
3046 ac_cpp='$CPP $CPPFLAGS'
3047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3050
3051
3052
3053 ac_config_headers="$ac_config_headers config.h"
3054
3055 am__api_version='1.17'
3056
3057
3058
3059 # Find a good install program. We prefer a C program (faster),
3060 # so one script is as good as another. But avoid the broken or
3061 # incompatible versions:
3062 # SysV /etc/install, /usr/sbin/install
3063 # SunOS /usr/etc/install
3064 # IRIX /sbin/install
3065 # AIX /bin/install
3066 # AmigaOS /C/install, which installs bootblocks on floppy discs
3067 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3068 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3069 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3070 # OS/2's system install, which has a completely different semantic
3071 # ./install, which can be erroneously created by make from ./install.sh.
3072 # Reject install programs that cannot install multiple files.
3073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3074 printf %s "checking for a BSD-compatible install... " >&6; }
3075 if test -z "$INSTALL"; then
3076 if test ${ac_cv_path_install+y}
3077 then :
3078 printf %s "(cached) " >&6
3079 else case e in #(
3080 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081 for as_dir in $PATH
3082 do
3083 IFS=$as_save_IFS
3084 case $as_dir in #(((
3085 '') as_dir=./ ;;
3086 */) ;;
3087 *) as_dir=$as_dir/ ;;
3088 esac
3089 # Account for fact that we put trailing slashes in our PATH walk.
3090 case $as_dir in #((
3091 ./ | /[cC]/* | \
3092 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3093 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3094 /usr/ucb/* ) ;;
3095 *)
3096 # OSF1 and SCO ODT 3.0 have their own names for install.
3097 # Don't use installbsd from OSF since it installs stuff as root
3098 # by default.
3099 for ac_prog in ginstall scoinst install; do
3100 for ac_exec_ext in '' $ac_executable_extensions; do
3101 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3102 if test $ac_prog = install &&
3103 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3104 # AIX install. It has an incompatible calling convention.
3105 :
3106 elif test $ac_prog = install &&
3107 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3108 # program-specific install script used by HP pwplus--don't use.
3109 :
3110 else
3111 rm -rf conftest.one conftest.two conftest.dir
3112 echo one > conftest.one
3113 echo two > conftest.two
3114 mkdir conftest.dir
3115 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3116 test -s conftest.one && test -s conftest.two &&
3117 test -s conftest.dir/conftest.one &&
3118 test -s conftest.dir/conftest.two
3119 then
3120 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3121 break 3
3122 fi
3123 fi
3124 fi
3125 done
3126 done
3127 ;;
3128 esac
3129
3130 done
3131 IFS=$as_save_IFS
3132
3133 rm -rf conftest.one conftest.two conftest.dir
3134 ;;
3135 esac
3136 fi
3137 if test ${ac_cv_path_install+y}; then
3138 INSTALL=$ac_cv_path_install
3139 else
3140 # As a last resort, use the slow shell script. Don't cache a
3141 # value for INSTALL within a source directory, because that will
3142 # break other packages using the cache if that directory is
3143 # removed, or if the value is a relative name.
3144 INSTALL=$ac_install_sh
3145 fi
3146 fi
3147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3148 printf "%s\n" "$INSTALL" >&6; }
3149
3150 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3151 # It thinks the first close brace ends the variable substitution.
3152 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3153
3154 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3155
3156 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3157
3158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3159 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3160 if test ${am_cv_sleep_fractional_seconds+y}
3161 then :
3162 printf %s "(cached) " >&6
3163 else case e in #(
3164 e) if sleep 0.001 2>/dev/null
3165 then :
3166 am_cv_sleep_fractional_seconds=yes
3167 else case e in #(
3168 e) am_cv_sleep_fractional_seconds=no ;;
3169 esac
3170 fi
3171 ;;
3172 esac
3173 fi
3174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3175 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3176
3177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3178 printf %s "checking filesystem timestamp resolution... " >&6; }
3179 if test ${am_cv_filesystem_timestamp_resolution+y}
3180 then :
3181 printf %s "(cached) " >&6
3182 else case e in #(
3183 e) # Default to the worst case.
3184 am_cv_filesystem_timestamp_resolution=2
3185
3186 # Only try to go finer than 1 sec if sleep can do it.
3187 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3188 # - 1 sec is not much of a win compared to 2 sec, and
3189 # - it takes 2 seconds to perform the test whether 1 sec works.
3190 #
3191 # Instead, just use the default 2s on platforms that have 1s resolution,
3192 # accept the extra 1s delay when using $sleep in the Automake tests, in
3193 # exchange for not incurring the 2s delay for running the test for all
3194 # packages.
3195 #
3196 am_try_resolutions=
3197 if test "$am_cv_sleep_fractional_seconds" = yes; then
3198 # Even a millisecond often causes a bunch of false positives,
3199 # so just try a hundredth of a second. The time saved between .001 and
3200 # .01 is not terribly consequential.
3201 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3202 fi
3203
3204 # In order to catch current-generation FAT out, we must *modify* files
3205 # that already exist; the *creation* timestamp is finer. Use names
3206 # that make ls -t sort them differently when they have equal
3207 # timestamps than when they have distinct timestamps, keeping
3208 # in mind that ls -t prints the *newest* file first.
3209 rm -f conftest.ts?
3210 : > conftest.ts1
3211 : > conftest.ts2
3212 : > conftest.ts3
3213
3214 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3215 # clobber the current shell's arguments. (Outer-level square brackets
3216 # are removed by m4; they're present so that m4 does not expand
3217 # <dollar><star>; be careful, easy to get confused.)
3218 if (
3219 set X `ls -t conftest.ts[12]` &&
3220 {
3221 test "$*" != "X conftest.ts1 conftest.ts2" ||
3222 test "$*" != "X conftest.ts2 conftest.ts1";
3223 }
3224 ); then :; else
3225 # If neither matched, then we have a broken ls. This can happen
3226 # if, for instance, CONFIG_SHELL is bash and it inherits a
3227 # broken ls alias from the environment. This has actually
3228 # happened. Such a system could not be considered "sane".
3229 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3230 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3231 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3232 as_fn_error $? "ls -t produces unexpected output.
3233 Make sure there is not a broken ls alias in your environment.
3234 See 'config.log' for more details" "$LINENO" 5; }
3235 fi
3236
3237 for am_try_res in $am_try_resolutions; do
3238 # Any one fine-grained sleep might happen to cross the boundary
3239 # between two values of a coarser actual resolution, but if we do
3240 # two fine-grained sleeps in a row, at least one of them will fall
3241 # entirely within a coarse interval.
3242 echo alpha > conftest.ts1
3243 sleep $am_try_res
3244 echo beta > conftest.ts2
3245 sleep $am_try_res
3246 echo gamma > conftest.ts3
3247
3248 # We assume that 'ls -t' will make use of high-resolution
3249 # timestamps if the operating system supports them at all.
3250 if (set X `ls -t conftest.ts?` &&
3251 test "$2" = conftest.ts3 &&
3252 test "$3" = conftest.ts2 &&
3253 test "$4" = conftest.ts1); then
3254 #
3255 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3256 # because we don't need to test make.
3257 make_ok=true
3258 if test $am_try_res != 1; then
3259 # But if we've succeeded so far with a subsecond resolution, we
3260 # have one more thing to check: make. It can happen that
3261 # everything else supports the subsecond mtimes, but make doesn't;
3262 # notably on macOS, which ships make 3.81 from 2006 (the last one
3263 # released under GPLv2). https://bugs.gnu.org/68808
3264 #
3265 # We test $MAKE if it is defined in the environment, else "make".
3266 # It might get overridden later, but our hope is that in practice
3267 # it does not matter: it is the system "make" which is (by far)
3268 # the most likely to be broken, whereas if the user overrides it,
3269 # probably they did so with a better, or at least not worse, make.
3270 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3271 #
3272 # Create a Makefile (real tab character here):
3273 rm -f conftest.mk
3274 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3275 echo ' touch conftest.ts2' >>conftest.mk
3276 #
3277 # Now, running
3278 # touch conftest.ts1; touch conftest.ts2; make
3279 # should touch ts1 because ts2 is newer. This could happen by luck,
3280 # but most often, it will fail if make's support is insufficient. So
3281 # test for several consecutive successes.
3282 #
3283 # (We reuse conftest.ts[12] because we still want to modify existing
3284 # files, not create new ones, per above.)
3285 n=0
3286 make=${MAKE-make}
3287 until test $n -eq 3; do
3288 echo one > conftest.ts1
3289 sleep $am_try_res
3290 echo two > conftest.ts2 # ts2 should now be newer than ts1
3291 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3292 make_ok=false
3293 break # out of $n loop
3294 fi
3295 n=`expr $n + 1`
3296 done
3297 fi
3298 #
3299 if $make_ok; then
3300 # Everything we know to check worked out, so call this resolution good.
3301 am_cv_filesystem_timestamp_resolution=$am_try_res
3302 break # out of $am_try_res loop
3303 fi
3304 # Otherwise, we'll go on to check the next resolution.
3305 fi
3306 done
3307 rm -f conftest.ts?
3308 # (end _am_filesystem_timestamp_resolution)
3309 ;;
3310 esac
3311 fi
3312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3313 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3314
3315 # This check should not be cached, as it may vary across builds of
3316 # different projects.
3317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3318 printf %s "checking whether build environment is sane... " >&6; }
3319 # Reject unsafe characters in $srcdir or the absolute working directory
3320 # name. Accept space and tab only in the latter.
3321 am_lf='
3322 '
3323 case `pwd` in
3324 *[\\\"\#\$\&\'\`$am_lf]*)
3325 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3326 esac
3327 case $srcdir in
3328 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3329 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3330 esac
3331
3332 # Do 'set' in a subshell so we don't clobber the current shell's
3333 # arguments. Must try -L first in case configure is actually a
3334 # symlink; some systems play weird games with the mod time of symlinks
3335 # (eg FreeBSD returns the mod time of the symlink's containing
3336 # directory).
3337 am_build_env_is_sane=no
3338 am_has_slept=no
3339 rm -f conftest.file
3340 for am_try in 1 2; do
3341 echo "timestamp, slept: $am_has_slept" > conftest.file
3342 if (
3343 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3344 if test "$*" = "X"; then
3345 # -L didn't work.
3346 set X `ls -t "$srcdir/configure" conftest.file`
3347 fi
3348 test "$2" = conftest.file
3349 ); then
3350 am_build_env_is_sane=yes
3351 break
3352 fi
3353 # Just in case.
3354 sleep "$am_cv_filesystem_timestamp_resolution"
3355 am_has_slept=yes
3356 done
3357
3358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3359 printf "%s\n" "$am_build_env_is_sane" >&6; }
3360 if test "$am_build_env_is_sane" = no; then
3361 as_fn_error $? "newly created file is older than distributed files!
3362 Check your system clock" "$LINENO" 5
3363 fi
3364
3365 # If we didn't sleep, we still need to ensure time stamps of config.status and
3366 # generated files are strictly newer.
3367 am_sleep_pid=
3368 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3369 then :
3370
3371 else case e in #(
3372 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3373 am_sleep_pid=$!
3374 ;;
3375 esac
3376 fi
3377
3378 rm -f conftest.file
3379
3380 test "$program_prefix" != NONE &&
3381 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3382 # Use a double $ so make ignores it.
3383 test "$program_suffix" != NONE &&
3384 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3385 # Double any \ or $.
3386 # By default was 's,x,x', remove it if useless.
3387 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3388 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3389
3390
3391 # Expand $ac_aux_dir to an absolute path.
3392 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3393
3394
3395 if test x"${MISSING+set}" != xset; then
3396 MISSING="\${SHELL} '$am_aux_dir/missing'"
3397 fi
3398 # Use eval to expand $SHELL
3399 if eval "$MISSING --is-lightweight"; then
3400 am_missing_run="$MISSING "
3401 else
3402 am_missing_run=
3403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3404 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3405 fi
3406
3407 if test x"${install_sh+set}" != xset; then
3408 case $am_aux_dir in
3409 *\ * | *\ *)
3410 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3411 *)
3412 install_sh="\${SHELL} $am_aux_dir/install-sh"
3413 esac
3414 fi
3415
3416 # Installed binaries are usually stripped using 'strip' when the user
3417 # run "make install-strip". However 'strip' might not be the right
3418 # tool to use in cross-compilation environments, therefore Automake
3419 # will honor the 'STRIP' environment variable to overrule this program.
3420 if test "$cross_compiling" != no; then
3421 if test -n "$ac_tool_prefix"; then
3422 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3423 set dummy ${ac_tool_prefix}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_STRIP+y}
3427 then :
3428 printf %s "(cached) " >&6
3429 else case e in #(
3430 e) if test -n "$STRIP"; then
3431 ac_cv_prog_STRIP="$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_STRIP="${ac_tool_prefix}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 esac
3454 fi
3455 STRIP=$ac_cv_prog_STRIP
3456 if test -n "$STRIP"; then
3457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3458 printf "%s\n" "$STRIP" >&6; }
3459 else
3460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3461 printf "%s\n" "no" >&6; }
3462 fi
3463
3464
3465 fi
3466 if test -z "$ac_cv_prog_STRIP"; then
3467 ac_ct_STRIP=$STRIP
3468 # Extract the first word of "strip", so it can be a program name with args.
3469 set dummy strip; ac_word=$2
3470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3471 printf %s "checking for $ac_word... " >&6; }
3472 if test ${ac_cv_prog_ac_ct_STRIP+y}
3473 then :
3474 printf %s "(cached) " >&6
3475 else case e in #(
3476 e) if test -n "$ac_ct_STRIP"; then
3477 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3478 else
3479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480 for as_dir in $PATH
3481 do
3482 IFS=$as_save_IFS
3483 case $as_dir in #(((
3484 '') as_dir=./ ;;
3485 */) ;;
3486 *) as_dir=$as_dir/ ;;
3487 esac
3488 for ac_exec_ext in '' $ac_executable_extensions; do
3489 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3490 ac_cv_prog_ac_ct_STRIP="strip"
3491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3492 break 2
3493 fi
3494 done
3495 done
3496 IFS=$as_save_IFS
3497
3498 fi ;;
3499 esac
3500 fi
3501 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3502 if test -n "$ac_ct_STRIP"; then
3503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3504 printf "%s\n" "$ac_ct_STRIP" >&6; }
3505 else
3506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3507 printf "%s\n" "no" >&6; }
3508 fi
3509
3510 if test "x$ac_ct_STRIP" = x; then
3511 STRIP=":"
3512 else
3513 case $cross_compiling:$ac_tool_warned in
3514 yes:)
3515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3516 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3517 ac_tool_warned=yes ;;
3518 esac
3519 STRIP=$ac_ct_STRIP
3520 fi
3521 else
3522 STRIP="$ac_cv_prog_STRIP"
3523 fi
3524
3525 fi
3526 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3527
3528
3529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3530 printf %s "checking for a race-free mkdir -p... " >&6; }
3531 if test -z "$MKDIR_P"; then
3532 if test ${ac_cv_path_mkdir+y}
3533 then :
3534 printf %s "(cached) " >&6
3535 else case e in #(
3536 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3538 do
3539 IFS=$as_save_IFS
3540 case $as_dir in #(((
3541 '') as_dir=./ ;;
3542 */) ;;
3543 *) as_dir=$as_dir/ ;;
3544 esac
3545 for ac_prog in mkdir gmkdir; do
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3548 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3549 'mkdir ('*'coreutils) '* | \
3550 *'BusyBox '* | \
3551 'mkdir (fileutils) '4.1*)
3552 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3553 break 3;;
3554 esac
3555 done
3556 done
3557 done
3558 IFS=$as_save_IFS
3559 ;;
3560 esac
3561 fi
3562
3563 test -d ./--version && rmdir ./--version
3564 if test ${ac_cv_path_mkdir+y}; then
3565 MKDIR_P="$ac_cv_path_mkdir -p"
3566 else
3567 # As a last resort, use plain mkdir -p,
3568 # in the hope it doesn't have the bugs of ancient mkdir.
3569 MKDIR_P='mkdir -p'
3570 fi
3571 fi
3572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3573 printf "%s\n" "$MKDIR_P" >&6; }
3574
3575 for ac_prog in gawk mawk nawk awk
3576 do
3577 # Extract the first word of "$ac_prog", so it can be a program name with args.
3578 set dummy $ac_prog; ac_word=$2
3579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3580 printf %s "checking for $ac_word... " >&6; }
3581 if test ${ac_cv_prog_AWK+y}
3582 then :
3583 printf %s "(cached) " >&6
3584 else case e in #(
3585 e) if test -n "$AWK"; then
3586 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3587 else
3588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589 for as_dir in $PATH
3590 do
3591 IFS=$as_save_IFS
3592 case $as_dir in #(((
3593 '') as_dir=./ ;;
3594 */) ;;
3595 *) as_dir=$as_dir/ ;;
3596 esac
3597 for ac_exec_ext in '' $ac_executable_extensions; do
3598 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3599 ac_cv_prog_AWK="$ac_prog"
3600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3601 break 2
3602 fi
3603 done
3604 done
3605 IFS=$as_save_IFS
3606
3607 fi ;;
3608 esac
3609 fi
3610 AWK=$ac_cv_prog_AWK
3611 if test -n "$AWK"; then
3612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3613 printf "%s\n" "$AWK" >&6; }
3614 else
3615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3616 printf "%s\n" "no" >&6; }
3617 fi
3618
3619
3620 test -n "$AWK" && break
3621 done
3622
3623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3624 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3625 set x ${MAKE-make}
3626 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3627 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3628 then :
3629 printf %s "(cached) " >&6
3630 else case e in #(
3631 e) cat >conftest.make <<\_ACEOF
3632 SHELL = /bin/sh
3633 all:
3634 @echo '@@@%%%=$(MAKE)=@@@%%%'
3635 _ACEOF
3636 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3637 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3638 *@@@%%%=?*=@@@%%%*)
3639 eval ac_cv_prog_make_${ac_make}_set=yes;;
3640 *)
3641 eval ac_cv_prog_make_${ac_make}_set=no;;
3642 esac
3643 rm -f conftest.make ;;
3644 esac
3645 fi
3646 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3648 printf "%s\n" "yes" >&6; }
3649 SET_MAKE=
3650 else
3651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3652 printf "%s\n" "no" >&6; }
3653 SET_MAKE="MAKE=${MAKE-make}"
3654 fi
3655
3656 rm -rf .tst 2>/dev/null
3657 mkdir .tst 2>/dev/null
3658 if test -d .tst; then
3659 am__leading_dot=.
3660 else
3661 am__leading_dot=_
3662 fi
3663 rmdir .tst 2>/dev/null
3664
3665 AM_DEFAULT_VERBOSITY=1
3666 # Check whether --enable-silent-rules was given.
3667 if test ${enable_silent_rules+y}
3668 then :
3669 enableval=$enable_silent_rules;
3670 fi
3671
3672 am_make=${MAKE-make}
3673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3674 printf %s "checking whether $am_make supports nested variables... " >&6; }
3675 if test ${am_cv_make_support_nested_variables+y}
3676 then :
3677 printf %s "(cached) " >&6
3678 else case e in #(
3679 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3680 BAR0=false
3681 BAR1=true
3682 V=1
3683 am__doit:
3684 @$(TRUE)
3685 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3686 am_cv_make_support_nested_variables=yes
3687 else
3688 am_cv_make_support_nested_variables=no
3689 fi ;;
3690 esac
3691 fi
3692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3693 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3694 AM_BACKSLASH='\'
3695
3696 am__rm_f_notfound=
3697 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3698 then :
3699
3700 else case e in #(
3701 e) am__rm_f_notfound='""' ;;
3702 esac
3703 fi
3704
3705
3706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3707 printf %s "checking xargs -n works... " >&6; }
3708 if test ${am_cv_xargs_n_works+y}
3709 then :
3710 printf %s "(cached) " >&6
3711 else case e in #(
3712 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3713 3"
3714 then :
3715 am_cv_xargs_n_works=yes
3716 else case e in #(
3717 e) am_cv_xargs_n_works=no ;;
3718 esac
3719 fi ;;
3720 esac
3721 fi
3722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3723 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3724 if test "$am_cv_xargs_n_works" = yes
3725 then :
3726 am__xargs_n='xargs -n'
3727 else case e in #(
3728 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3729 ;;
3730 esac
3731 fi
3732
3733 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3734 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3735 # is not polluted with repeated "-I."
3736 am__isrc=' -I$(srcdir)'
3737 # test to see if srcdir already configured
3738 if test -f $srcdir/config.status; then
3739 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3740 fi
3741 fi
3742
3743 # test whether we have cygpath
3744 if test -z "$CYGPATH_W"; then
3745 if (cygpath --version) >/dev/null 2>/dev/null; then
3746 CYGPATH_W='cygpath -w'
3747 else
3748 CYGPATH_W=echo
3749 fi
3750 fi
3751
3752
3753 # Define the identity of the package.
3754 PACKAGE='libabw'
3755 VERSION='0.1.4'
3756
3757
3758 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3759
3760
3761 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3762
3763 # Some tools Automake needs.
3764
3765 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3766
3767
3768 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3769
3770
3771 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3772
3773
3774 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3775
3776
3777 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3778
3779 # For better backward compatibility. To be removed once Automake 1.9.x
3780 # dies out for good. For more background, see:
3781 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3782 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3783 mkdir_p='$(MKDIR_P)'
3784
3785 # We need awk for the "check" target (and possibly the TAP driver). The
3786 # system "awk" is bad on some platforms.
3787 # Always define AMTAR for backward compatibility. Yes, it's still used
3788 # in the wild :-( We should find a proper way to deprecate it ...
3789 AMTAR='$${TAR-tar}'
3790
3791
3792 # We'll loop over all known methods to create a tar archive until one works.
3793 _am_tools='gnutar pax cpio none'
3794
3795 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3796
3797
3798
3799
3800
3801 # Variables for tags utilities; see am/tags.am
3802 if test -z "$CTAGS"; then
3803 CTAGS=ctags
3804 fi
3805
3806 if test -z "$ETAGS"; then
3807 ETAGS=etags
3808 fi
3809
3810 if test -z "$CSCOPE"; then
3811 CSCOPE=cscope
3812 fi
3813
3814
3815
3816
3817
3818
3819
3820
3821 AM_DEFAULT_VERBOSITY=0
3822 ac_ext=cpp
3823 ac_cpp='$CXXCPP $CPPFLAGS'
3824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3827
3828
3829 # ===========================
3830 # Find required base packages
3831 # ===========================
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841 DEPDIR="${am__leading_dot}deps"
3842
3843 ac_config_commands="$ac_config_commands depfiles"
3844
3845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3846 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3847 cat > confinc.mk << 'END'
3848 am__doit:
3849 @echo this is the am__doit target >confinc.out
3850 .PHONY: am__doit
3851 END
3852 am__include="#"
3853 am__quote=
3854 # BSD make does it like this.
3855 echo '.include "confinc.mk" # ignored' > confmf.BSD
3856 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3857 echo 'include confinc.mk # ignored' > confmf.GNU
3858 _am_result=no
3859 for s in GNU BSD; do
3860 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3861 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3862 ac_status=$?
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); }
3865 case $?:`cat confinc.out 2>/dev/null` in #(
3866 '0:this is the am__doit target') :
3867 case $s in #(
3868 BSD) :
3869 am__include='.include' am__quote='"' ;; #(
3870 *) :
3871 am__include='include' am__quote='' ;;
3872 esac ;; #(
3873 *) :
3874 ;;
3875 esac
3876 if test "$am__include" != "#"; then
3877 _am_result="yes ($s style)"
3878 break
3879 fi
3880 done
3881 rm -f confinc.* confmf.*
3882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3883 printf "%s\n" "${_am_result}" >&6; }
3884
3885 # Check whether --enable-dependency-tracking was given.
3886 if test ${enable_dependency_tracking+y}
3887 then :
3888 enableval=$enable_dependency_tracking;
3889 fi
3890
3891 if test "x$enable_dependency_tracking" != xno; then
3892 am_depcomp="$ac_aux_dir/depcomp"
3893 AMDEPBACKSLASH='\'
3894 am__nodep='_no'
3895 fi
3896 if test "x$enable_dependency_tracking" != xno; then
3897 AMDEP_TRUE=
3898 AMDEP_FALSE='#'
3899 else
3900 AMDEP_TRUE='#'
3901 AMDEP_FALSE=
3902 fi
3903
3904
3905 ac_ext=c
3906 ac_cpp='$CPP $CPPFLAGS'
3907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3910 if test -n "$ac_tool_prefix"; then
3911 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3912 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3914 printf %s "checking for $ac_word... " >&6; }
3915 if test ${ac_cv_prog_CC+y}
3916 then :
3917 printf %s "(cached) " >&6
3918 else case e in #(
3919 e) if test -n "$CC"; then
3920 ac_cv_prog_CC="$CC" # Let the user override the test.
3921 else
3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923 for as_dir in $PATH
3924 do
3925 IFS=$as_save_IFS
3926 case $as_dir in #(((
3927 '') as_dir=./ ;;
3928 */) ;;
3929 *) as_dir=$as_dir/ ;;
3930 esac
3931 for ac_exec_ext in '' $ac_executable_extensions; do
3932 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3933 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3935 break 2
3936 fi
3937 done
3938 done
3939 IFS=$as_save_IFS
3940
3941 fi ;;
3942 esac
3943 fi
3944 CC=$ac_cv_prog_CC
3945 if test -n "$CC"; then
3946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3947 printf "%s\n" "$CC" >&6; }
3948 else
3949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3950 printf "%s\n" "no" >&6; }
3951 fi
3952
3953
3954 fi
3955 if test -z "$ac_cv_prog_CC"; then
3956 ac_ct_CC=$CC
3957 # Extract the first word of "gcc", so it can be a program name with args.
3958 set dummy gcc; ac_word=$2
3959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3960 printf %s "checking for $ac_word... " >&6; }
3961 if test ${ac_cv_prog_ac_ct_CC+y}
3962 then :
3963 printf %s "(cached) " >&6
3964 else case e in #(
3965 e) if test -n "$ac_ct_CC"; then
3966 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3967 else
3968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969 for as_dir in $PATH
3970 do
3971 IFS=$as_save_IFS
3972 case $as_dir in #(((
3973 '') as_dir=./ ;;
3974 */) ;;
3975 *) as_dir=$as_dir/ ;;
3976 esac
3977 for ac_exec_ext in '' $ac_executable_extensions; do
3978 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3979 ac_cv_prog_ac_ct_CC="gcc"
3980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3981 break 2
3982 fi
3983 done
3984 done
3985 IFS=$as_save_IFS
3986
3987 fi ;;
3988 esac
3989 fi
3990 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3991 if test -n "$ac_ct_CC"; then
3992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3993 printf "%s\n" "$ac_ct_CC" >&6; }
3994 else
3995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3996 printf "%s\n" "no" >&6; }
3997 fi
3998
3999 if test "x$ac_ct_CC" = x; then
4000 CC=""
4001 else
4002 case $cross_compiling:$ac_tool_warned in
4003 yes:)
4004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4005 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4006 ac_tool_warned=yes ;;
4007 esac
4008 CC=$ac_ct_CC
4009 fi
4010 else
4011 CC="$ac_cv_prog_CC"
4012 fi
4013
4014 if test -z "$CC"; then
4015 if test -n "$ac_tool_prefix"; then
4016 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4017 set dummy ${ac_tool_prefix}cc; ac_word=$2
4018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4019 printf %s "checking for $ac_word... " >&6; }
4020 if test ${ac_cv_prog_CC+y}
4021 then :
4022 printf %s "(cached) " >&6
4023 else case e in #(
4024 e) if test -n "$CC"; then
4025 ac_cv_prog_CC="$CC" # Let the user override the test.
4026 else
4027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4028 for as_dir in $PATH
4029 do
4030 IFS=$as_save_IFS
4031 case $as_dir in #(((
4032 '') as_dir=./ ;;
4033 */) ;;
4034 *) as_dir=$as_dir/ ;;
4035 esac
4036 for ac_exec_ext in '' $ac_executable_extensions; do
4037 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4038 ac_cv_prog_CC="${ac_tool_prefix}cc"
4039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4040 break 2
4041 fi
4042 done
4043 done
4044 IFS=$as_save_IFS
4045
4046 fi ;;
4047 esac
4048 fi
4049 CC=$ac_cv_prog_CC
4050 if test -n "$CC"; then
4051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4052 printf "%s\n" "$CC" >&6; }
4053 else
4054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4055 printf "%s\n" "no" >&6; }
4056 fi
4057
4058
4059 fi
4060 fi
4061 if test -z "$CC"; then
4062 # Extract the first word of "cc", so it can be a program name with args.
4063 set dummy cc; ac_word=$2
4064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4065 printf %s "checking for $ac_word... " >&6; }
4066 if test ${ac_cv_prog_CC+y}
4067 then :
4068 printf %s "(cached) " >&6
4069 else case e in #(
4070 e) if test -n "$CC"; then
4071 ac_cv_prog_CC="$CC" # Let the user override the test.
4072 else
4073 ac_prog_rejected=no
4074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4075 for as_dir in $PATH
4076 do
4077 IFS=$as_save_IFS
4078 case $as_dir in #(((
4079 '') as_dir=./ ;;
4080 */) ;;
4081 *) as_dir=$as_dir/ ;;
4082 esac
4083 for ac_exec_ext in '' $ac_executable_extensions; do
4084 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4085 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4086 ac_prog_rejected=yes
4087 continue
4088 fi
4089 ac_cv_prog_CC="cc"
4090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4091 break 2
4092 fi
4093 done
4094 done
4095 IFS=$as_save_IFS
4096
4097 if test $ac_prog_rejected = yes; then
4098 # We found a bogon in the path, so make sure we never use it.
4099 set dummy $ac_cv_prog_CC
4100 shift
4101 if test $# != 0; then
4102 # We chose a different compiler from the bogus one.
4103 # However, it has the same basename, so the bogon will be chosen
4104 # first if we set CC to just the basename; use the full file name.
4105 shift
4106 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4107 fi
4108 fi
4109 fi ;;
4110 esac
4111 fi
4112 CC=$ac_cv_prog_CC
4113 if test -n "$CC"; then
4114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4115 printf "%s\n" "$CC" >&6; }
4116 else
4117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4118 printf "%s\n" "no" >&6; }
4119 fi
4120
4121
4122 fi
4123 if test -z "$CC"; then
4124 if test -n "$ac_tool_prefix"; then
4125 for ac_prog in cl.exe
4126 do
4127 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4128 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4130 printf %s "checking for $ac_word... " >&6; }
4131 if test ${ac_cv_prog_CC+y}
4132 then :
4133 printf %s "(cached) " >&6
4134 else case e in #(
4135 e) if test -n "$CC"; then
4136 ac_cv_prog_CC="$CC" # Let the user override the test.
4137 else
4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 for as_dir in $PATH
4140 do
4141 IFS=$as_save_IFS
4142 case $as_dir in #(((
4143 '') as_dir=./ ;;
4144 */) ;;
4145 *) as_dir=$as_dir/ ;;
4146 esac
4147 for ac_exec_ext in '' $ac_executable_extensions; do
4148 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4149 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4151 break 2
4152 fi
4153 done
4154 done
4155 IFS=$as_save_IFS
4156
4157 fi ;;
4158 esac
4159 fi
4160 CC=$ac_cv_prog_CC
4161 if test -n "$CC"; then
4162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4163 printf "%s\n" "$CC" >&6; }
4164 else
4165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4166 printf "%s\n" "no" >&6; }
4167 fi
4168
4169
4170 test -n "$CC" && break
4171 done
4172 fi
4173 if test -z "$CC"; then
4174 ac_ct_CC=$CC
4175 for ac_prog in cl.exe
4176 do
4177 # Extract the first word of "$ac_prog", so it can be a program name with args.
4178 set dummy $ac_prog; ac_word=$2
4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4180 printf %s "checking for $ac_word... " >&6; }
4181 if test ${ac_cv_prog_ac_ct_CC+y}
4182 then :
4183 printf %s "(cached) " >&6
4184 else case e in #(
4185 e) if test -n "$ac_ct_CC"; then
4186 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4187 else
4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 for as_dir in $PATH
4190 do
4191 IFS=$as_save_IFS
4192 case $as_dir in #(((
4193 '') as_dir=./ ;;
4194 */) ;;
4195 *) as_dir=$as_dir/ ;;
4196 esac
4197 for ac_exec_ext in '' $ac_executable_extensions; do
4198 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4199 ac_cv_prog_ac_ct_CC="$ac_prog"
4200 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4201 break 2
4202 fi
4203 done
4204 done
4205 IFS=$as_save_IFS
4206
4207 fi ;;
4208 esac
4209 fi
4210 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4211 if test -n "$ac_ct_CC"; then
4212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4213 printf "%s\n" "$ac_ct_CC" >&6; }
4214 else
4215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4216 printf "%s\n" "no" >&6; }
4217 fi
4218
4219
4220 test -n "$ac_ct_CC" && break
4221 done
4222
4223 if test "x$ac_ct_CC" = x; then
4224 CC=""
4225 else
4226 case $cross_compiling:$ac_tool_warned in
4227 yes:)
4228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4229 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4230 ac_tool_warned=yes ;;
4231 esac
4232 CC=$ac_ct_CC
4233 fi
4234 fi
4235
4236 fi
4237 if test -z "$CC"; then
4238 if test -n "$ac_tool_prefix"; then
4239 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4240 set dummy ${ac_tool_prefix}clang; ac_word=$2
4241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4242 printf %s "checking for $ac_word... " >&6; }
4243 if test ${ac_cv_prog_CC+y}
4244 then :
4245 printf %s "(cached) " >&6
4246 else case e in #(
4247 e) if test -n "$CC"; then
4248 ac_cv_prog_CC="$CC" # Let the user override the test.
4249 else
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251 for as_dir in $PATH
4252 do
4253 IFS=$as_save_IFS
4254 case $as_dir in #(((
4255 '') as_dir=./ ;;
4256 */) ;;
4257 *) as_dir=$as_dir/ ;;
4258 esac
4259 for ac_exec_ext in '' $ac_executable_extensions; do
4260 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4261 ac_cv_prog_CC="${ac_tool_prefix}clang"
4262 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4263 break 2
4264 fi
4265 done
4266 done
4267 IFS=$as_save_IFS
4268
4269 fi ;;
4270 esac
4271 fi
4272 CC=$ac_cv_prog_CC
4273 if test -n "$CC"; then
4274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4275 printf "%s\n" "$CC" >&6; }
4276 else
4277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4278 printf "%s\n" "no" >&6; }
4279 fi
4280
4281
4282 fi
4283 if test -z "$ac_cv_prog_CC"; then
4284 ac_ct_CC=$CC
4285 # Extract the first word of "clang", so it can be a program name with args.
4286 set dummy clang; ac_word=$2
4287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4288 printf %s "checking for $ac_word... " >&6; }
4289 if test ${ac_cv_prog_ac_ct_CC+y}
4290 then :
4291 printf %s "(cached) " >&6
4292 else case e in #(
4293 e) if test -n "$ac_ct_CC"; then
4294 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4295 else
4296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 for as_dir in $PATH
4298 do
4299 IFS=$as_save_IFS
4300 case $as_dir in #(((
4301 '') as_dir=./ ;;
4302 */) ;;
4303 *) as_dir=$as_dir/ ;;
4304 esac
4305 for ac_exec_ext in '' $ac_executable_extensions; do
4306 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4307 ac_cv_prog_ac_ct_CC="clang"
4308 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4309 break 2
4310 fi
4311 done
4312 done
4313 IFS=$as_save_IFS
4314
4315 fi ;;
4316 esac
4317 fi
4318 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4319 if test -n "$ac_ct_CC"; then
4320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4321 printf "%s\n" "$ac_ct_CC" >&6; }
4322 else
4323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4324 printf "%s\n" "no" >&6; }
4325 fi
4326
4327 if test "x$ac_ct_CC" = x; then
4328 CC=""
4329 else
4330 case $cross_compiling:$ac_tool_warned in
4331 yes:)
4332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4333 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4334 ac_tool_warned=yes ;;
4335 esac
4336 CC=$ac_ct_CC
4337 fi
4338 else
4339 CC="$ac_cv_prog_CC"
4340 fi
4341
4342 fi
4343
4344
4345 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4346 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4347 as_fn_error $? "no acceptable C compiler found in \$PATH
4348 See 'config.log' for more details" "$LINENO" 5; }
4349
4350 # Provide some information about the compiler.
4351 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4352 set X $ac_compile
4353 ac_compiler=$2
4354 for ac_option in --version -v -V -qversion -version; do
4355 { { ac_try="$ac_compiler $ac_option >&5"
4356 case "(($ac_try" in
4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4359 esac
4360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4361 printf "%s\n" "$ac_try_echo"; } >&5
4362 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4363 ac_status=$?
4364 if test -s conftest.err; then
4365 sed '10a\
4366 ... rest of stderr output deleted ...
4367 10q' conftest.err >conftest.er1
4368 cat conftest.er1 >&5
4369 fi
4370 rm -f conftest.er1 conftest.err
4371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4372 test $ac_status = 0; }
4373 done
4374
4375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h. */
4377
4378 int
4379 main (void)
4380 {
4381
4382 ;
4383 return 0;
4384 }
4385 _ACEOF
4386 ac_clean_files_save=$ac_clean_files
4387 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4388 # Try to create an executable without -o first, disregard a.out.
4389 # It will help us diagnose broken compilers, and finding out an intuition
4390 # of exeext.
4391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4392 printf %s "checking whether the C compiler works... " >&6; }
4393 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4394
4395 # The possible output files:
4396 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4397
4398 ac_rmfiles=
4399 for ac_file in $ac_files
4400 do
4401 case $ac_file in
4402 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4403 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4404 esac
4405 done
4406 rm -f $ac_rmfiles
4407
4408 if { { ac_try="$ac_link_default"
4409 case "(($ac_try" in
4410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411 *) ac_try_echo=$ac_try;;
4412 esac
4413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4414 printf "%s\n" "$ac_try_echo"; } >&5
4415 (eval "$ac_link_default") 2>&5
4416 ac_status=$?
4417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4418 test $ac_status = 0; }
4419 then :
4420 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4421 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4422 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4423 # so that the user can short-circuit this test for compilers unknown to
4424 # Autoconf.
4425 for ac_file in $ac_files ''
4426 do
4427 test -f "$ac_file" || continue
4428 case $ac_file in
4429 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4430 ;;
4431 [ab].out )
4432 # We found the default executable, but exeext='' is most
4433 # certainly right.
4434 break;;
4435 *.* )
4436 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4437 then :; else
4438 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4439 fi
4440 # We set ac_cv_exeext here because the later test for it is not
4441 # safe: cross compilers may not add the suffix if given an '-o'
4442 # argument, so we may need to know it at that point already.
4443 # Even if this section looks crufty: it has the advantage of
4444 # actually working.
4445 break;;
4446 * )
4447 break;;
4448 esac
4449 done
4450 test "$ac_cv_exeext" = no && ac_cv_exeext=
4451
4452 else case e in #(
4453 e) ac_file='' ;;
4454 esac
4455 fi
4456 if test -z "$ac_file"
4457 then :
4458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4459 printf "%s\n" "no" >&6; }
4460 printf "%s\n" "$as_me: failed program was:" >&5
4461 sed 's/^/| /' conftest.$ac_ext >&5
4462
4463 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4464 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4465 as_fn_error 77 "C compiler cannot create executables
4466 See 'config.log' for more details" "$LINENO" 5; }
4467 else case e in #(
4468 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4469 printf "%s\n" "yes" >&6; } ;;
4470 esac
4471 fi
4472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4473 printf %s "checking for C compiler default output file name... " >&6; }
4474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4475 printf "%s\n" "$ac_file" >&6; }
4476 ac_exeext=$ac_cv_exeext
4477
4478 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4479 ac_clean_files=$ac_clean_files_save
4480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4481 printf %s "checking for suffix of executables... " >&6; }
4482 if { { ac_try="$ac_link"
4483 case "(($ac_try" in
4484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485 *) ac_try_echo=$ac_try;;
4486 esac
4487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4488 printf "%s\n" "$ac_try_echo"; } >&5
4489 (eval "$ac_link") 2>&5
4490 ac_status=$?
4491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4492 test $ac_status = 0; }
4493 then :
4494 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4495 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4496 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4497 # 'rm'.
4498 for ac_file in conftest.exe conftest conftest.*; do
4499 test -f "$ac_file" || continue
4500 case $ac_file in
4501 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4502 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4503 break;;
4504 * ) break;;
4505 esac
4506 done
4507 else case e in #(
4508 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4509 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4510 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4511 See 'config.log' for more details" "$LINENO" 5; } ;;
4512 esac
4513 fi
4514 rm -f conftest conftest$ac_cv_exeext
4515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4516 printf "%s\n" "$ac_cv_exeext" >&6; }
4517
4518 rm -f conftest.$ac_ext
4519 EXEEXT=$ac_cv_exeext
4520 ac_exeext=$EXEEXT
4521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4522 /* end confdefs.h. */
4523 #include <stdio.h>
4524 int
4525 main (void)
4526 {
4527 FILE *f = fopen ("conftest.out", "w");
4528 if (!f)
4529 return 1;
4530 return ferror (f) || fclose (f) != 0;
4531
4532 ;
4533 return 0;
4534 }
4535 _ACEOF
4536 ac_clean_files="$ac_clean_files conftest.out"
4537 # Check that the compiler produces executables we can run. If not, either
4538 # the compiler is broken, or we cross compile.
4539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4540 printf %s "checking whether we are cross compiling... " >&6; }
4541 if test "$cross_compiling" != yes; then
4542 { { ac_try="$ac_link"
4543 case "(($ac_try" in
4544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545 *) ac_try_echo=$ac_try;;
4546 esac
4547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4548 printf "%s\n" "$ac_try_echo"; } >&5
4549 (eval "$ac_link") 2>&5
4550 ac_status=$?
4551 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4552 test $ac_status = 0; }
4553 if { ac_try='./conftest$ac_cv_exeext'
4554 { { case "(($ac_try" in
4555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556 *) ac_try_echo=$ac_try;;
4557 esac
4558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4559 printf "%s\n" "$ac_try_echo"; } >&5
4560 (eval "$ac_try") 2>&5
4561 ac_status=$?
4562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4563 test $ac_status = 0; }; }; then
4564 cross_compiling=no
4565 else
4566 if test "$cross_compiling" = maybe; then
4567 cross_compiling=yes
4568 else
4569 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4570 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4571 as_fn_error 77 "cannot run C compiled programs.
4572 If you meant to cross compile, use '--host'.
4573 See 'config.log' for more details" "$LINENO" 5; }
4574 fi
4575 fi
4576 fi
4577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4578 printf "%s\n" "$cross_compiling" >&6; }
4579
4580 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4581 conftest.o conftest.obj conftest.out
4582 ac_clean_files=$ac_clean_files_save
4583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4584 printf %s "checking for suffix of object files... " >&6; }
4585 if test ${ac_cv_objext+y}
4586 then :
4587 printf %s "(cached) " >&6
4588 else case e in #(
4589 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590 /* end confdefs.h. */
4591
4592 int
4593 main (void)
4594 {
4595
4596 ;
4597 return 0;
4598 }
4599 _ACEOF
4600 rm -f conftest.o conftest.obj
4601 if { { ac_try="$ac_compile"
4602 case "(($ac_try" in
4603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4604 *) ac_try_echo=$ac_try;;
4605 esac
4606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4607 printf "%s\n" "$ac_try_echo"; } >&5
4608 (eval "$ac_compile") 2>&5
4609 ac_status=$?
4610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4611 test $ac_status = 0; }
4612 then :
4613 for ac_file in conftest.o conftest.obj conftest.*; do
4614 test -f "$ac_file" || continue;
4615 case $ac_file in
4616 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4617 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4618 break;;
4619 esac
4620 done
4621 else case e in #(
4622 e) printf "%s\n" "$as_me: failed program was:" >&5
4623 sed 's/^/| /' conftest.$ac_ext >&5
4624
4625 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4626 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4627 as_fn_error $? "cannot compute suffix of object files: cannot compile
4628 See 'config.log' for more details" "$LINENO" 5; } ;;
4629 esac
4630 fi
4631 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4632 esac
4633 fi
4634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4635 printf "%s\n" "$ac_cv_objext" >&6; }
4636 OBJEXT=$ac_cv_objext
4637 ac_objext=$OBJEXT
4638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4639 printf %s "checking whether the compiler supports GNU C... " >&6; }
4640 if test ${ac_cv_c_compiler_gnu+y}
4641 then :
4642 printf %s "(cached) " >&6
4643 else case e in #(
4644 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4645 /* end confdefs.h. */
4646
4647 int
4648 main (void)
4649 {
4650 #ifndef __GNUC__
4651 choke me
4652 #endif
4653
4654 ;
4655 return 0;
4656 }
4657 _ACEOF
4658 if ac_fn_c_try_compile "$LINENO"
4659 then :
4660 ac_compiler_gnu=yes
4661 else case e in #(
4662 e) ac_compiler_gnu=no ;;
4663 esac
4664 fi
4665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4666 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4667 ;;
4668 esac
4669 fi
4670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4671 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4673
4674 if test $ac_compiler_gnu = yes; then
4675 GCC=yes
4676 else
4677 GCC=
4678 fi
4679 ac_test_CFLAGS=${CFLAGS+y}
4680 ac_save_CFLAGS=$CFLAGS
4681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4682 printf %s "checking whether $CC accepts -g... " >&6; }
4683 if test ${ac_cv_prog_cc_g+y}
4684 then :
4685 printf %s "(cached) " >&6
4686 else case e in #(
4687 e) ac_save_c_werror_flag=$ac_c_werror_flag
4688 ac_c_werror_flag=yes
4689 ac_cv_prog_cc_g=no
4690 CFLAGS="-g"
4691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4692 /* end confdefs.h. */
4693
4694 int
4695 main (void)
4696 {
4697
4698 ;
4699 return 0;
4700 }
4701 _ACEOF
4702 if ac_fn_c_try_compile "$LINENO"
4703 then :
4704 ac_cv_prog_cc_g=yes
4705 else case e in #(
4706 e) CFLAGS=""
4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708 /* end confdefs.h. */
4709
4710 int
4711 main (void)
4712 {
4713
4714 ;
4715 return 0;
4716 }
4717 _ACEOF
4718 if ac_fn_c_try_compile "$LINENO"
4719 then :
4720
4721 else case e in #(
4722 e) ac_c_werror_flag=$ac_save_c_werror_flag
4723 CFLAGS="-g"
4724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4725 /* end confdefs.h. */
4726
4727 int
4728 main (void)
4729 {
4730
4731 ;
4732 return 0;
4733 }
4734 _ACEOF
4735 if ac_fn_c_try_compile "$LINENO"
4736 then :
4737 ac_cv_prog_cc_g=yes
4738 fi
4739 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4740 esac
4741 fi
4742 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4743 esac
4744 fi
4745 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4746 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4747 esac
4748 fi
4749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4750 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4751 if test $ac_test_CFLAGS; then
4752 CFLAGS=$ac_save_CFLAGS
4753 elif test $ac_cv_prog_cc_g = yes; then
4754 if test "$GCC" = yes; then
4755 CFLAGS="-g -O2"
4756 else
4757 CFLAGS="-g"
4758 fi
4759 else
4760 if test "$GCC" = yes; then
4761 CFLAGS="-O2"
4762 else
4763 CFLAGS=
4764 fi
4765 fi
4766 ac_prog_cc_stdc=no
4767 if test x$ac_prog_cc_stdc = xno
4768 then :
4769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4770 printf %s "checking for $CC option to enable C11 features... " >&6; }
4771 if test ${ac_cv_prog_cc_c11+y}
4772 then :
4773 printf %s "(cached) " >&6
4774 else case e in #(
4775 e) ac_cv_prog_cc_c11=no
4776 ac_save_CC=$CC
4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778 /* end confdefs.h. */
4779 $ac_c_conftest_c11_program
4780 _ACEOF
4781 for ac_arg in '' -std=gnu11
4782 do
4783 CC="$ac_save_CC $ac_arg"
4784 if ac_fn_c_try_compile "$LINENO"
4785 then :
4786 ac_cv_prog_cc_c11=$ac_arg
4787 fi
4788 rm -f core conftest.err conftest.$ac_objext conftest.beam
4789 test "x$ac_cv_prog_cc_c11" != "xno" && break
4790 done
4791 rm -f conftest.$ac_ext
4792 CC=$ac_save_CC ;;
4793 esac
4794 fi
4795
4796 if test "x$ac_cv_prog_cc_c11" = xno
4797 then :
4798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4799 printf "%s\n" "unsupported" >&6; }
4800 else case e in #(
4801 e) if test "x$ac_cv_prog_cc_c11" = x
4802 then :
4803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4804 printf "%s\n" "none needed" >&6; }
4805 else case e in #(
4806 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4807 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4808 CC="$CC $ac_cv_prog_cc_c11" ;;
4809 esac
4810 fi
4811 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4812 ac_prog_cc_stdc=c11 ;;
4813 esac
4814 fi
4815 fi
4816 if test x$ac_prog_cc_stdc = xno
4817 then :
4818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4819 printf %s "checking for $CC option to enable C99 features... " >&6; }
4820 if test ${ac_cv_prog_cc_c99+y}
4821 then :
4822 printf %s "(cached) " >&6
4823 else case e in #(
4824 e) ac_cv_prog_cc_c99=no
4825 ac_save_CC=$CC
4826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4827 /* end confdefs.h. */
4828 $ac_c_conftest_c99_program
4829 _ACEOF
4830 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4831 do
4832 CC="$ac_save_CC $ac_arg"
4833 if ac_fn_c_try_compile "$LINENO"
4834 then :
4835 ac_cv_prog_cc_c99=$ac_arg
4836 fi
4837 rm -f core conftest.err conftest.$ac_objext conftest.beam
4838 test "x$ac_cv_prog_cc_c99" != "xno" && break
4839 done
4840 rm -f conftest.$ac_ext
4841 CC=$ac_save_CC ;;
4842 esac
4843 fi
4844
4845 if test "x$ac_cv_prog_cc_c99" = xno
4846 then :
4847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4848 printf "%s\n" "unsupported" >&6; }
4849 else case e in #(
4850 e) if test "x$ac_cv_prog_cc_c99" = x
4851 then :
4852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4853 printf "%s\n" "none needed" >&6; }
4854 else case e in #(
4855 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4856 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4857 CC="$CC $ac_cv_prog_cc_c99" ;;
4858 esac
4859 fi
4860 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4861 ac_prog_cc_stdc=c99 ;;
4862 esac
4863 fi
4864 fi
4865 if test x$ac_prog_cc_stdc = xno
4866 then :
4867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4868 printf %s "checking for $CC option to enable C89 features... " >&6; }
4869 if test ${ac_cv_prog_cc_c89+y}
4870 then :
4871 printf %s "(cached) " >&6
4872 else case e in #(
4873 e) ac_cv_prog_cc_c89=no
4874 ac_save_CC=$CC
4875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4876 /* end confdefs.h. */
4877 $ac_c_conftest_c89_program
4878 _ACEOF
4879 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4880 do
4881 CC="$ac_save_CC $ac_arg"
4882 if ac_fn_c_try_compile "$LINENO"
4883 then :
4884 ac_cv_prog_cc_c89=$ac_arg
4885 fi
4886 rm -f core conftest.err conftest.$ac_objext conftest.beam
4887 test "x$ac_cv_prog_cc_c89" != "xno" && break
4888 done
4889 rm -f conftest.$ac_ext
4890 CC=$ac_save_CC ;;
4891 esac
4892 fi
4893
4894 if test "x$ac_cv_prog_cc_c89" = xno
4895 then :
4896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4897 printf "%s\n" "unsupported" >&6; }
4898 else case e in #(
4899 e) if test "x$ac_cv_prog_cc_c89" = x
4900 then :
4901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4902 printf "%s\n" "none needed" >&6; }
4903 else case e in #(
4904 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4905 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4906 CC="$CC $ac_cv_prog_cc_c89" ;;
4907 esac
4908 fi
4909 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4910 ac_prog_cc_stdc=c89 ;;
4911 esac
4912 fi
4913 fi
4914
4915 ac_ext=c
4916 ac_cpp='$CPP $CPPFLAGS'
4917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4920
4921
4922 ac_ext=c
4923 ac_cpp='$CPP $CPPFLAGS'
4924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4928 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4929 if test ${am_cv_prog_cc_c_o+y}
4930 then :
4931 printf %s "(cached) " >&6
4932 else case e in #(
4933 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4934 /* end confdefs.h. */
4935
4936 int
4937 main (void)
4938 {
4939
4940 ;
4941 return 0;
4942 }
4943 _ACEOF
4944 # Make sure it works both with $CC and with simple cc.
4945 # Following AC_PROG_CC_C_O, we do the test twice because some
4946 # compilers refuse to overwrite an existing .o file with -o,
4947 # though they will create one.
4948 am_cv_prog_cc_c_o=yes
4949 for am_i in 1 2; do
4950 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4951 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4952 ac_status=$?
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); } \
4955 && test -f conftest2.$ac_objext; then
4956 : OK
4957 else
4958 am_cv_prog_cc_c_o=no
4959 break
4960 fi
4961 done
4962 rm -f core conftest*
4963 unset am_i ;;
4964 esac
4965 fi
4966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4967 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4968 if test "$am_cv_prog_cc_c_o" != yes; then
4969 # Losing compiler, so override with the script.
4970 # FIXME: It is wrong to rewrite CC.
4971 # But if we don't then we get into trouble of one sort or another.
4972 # A longer-term fix would be to have automake use am__CC in this case,
4973 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4974 CC="$am_aux_dir/compile $CC"
4975 fi
4976 ac_ext=c
4977 ac_cpp='$CPP $CPPFLAGS'
4978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4981
4982
4983 depcc="$CC" am_compiler_list=
4984
4985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4986 printf %s "checking dependency style of $depcc... " >&6; }
4987 if test ${am_cv_CC_dependencies_compiler_type+y}
4988 then :
4989 printf %s "(cached) " >&6
4990 else case e in #(
4991 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4992 # We make a subdir and do the tests there. Otherwise we can end up
4993 # making bogus files that we don't know about and never remove. For
4994 # instance it was reported that on HP-UX the gcc test will end up
4995 # making a dummy file named 'D' -- because '-MD' means "put the output
4996 # in D".
4997 rm -rf conftest.dir
4998 mkdir conftest.dir
4999 # Copy depcomp to subdir because otherwise we won't find it if we're
5000 # using a relative directory.
5001 cp "$am_depcomp" conftest.dir
5002 cd conftest.dir
5003 # We will build objects and dependencies in a subdirectory because
5004 # it helps to detect inapplicable dependency modes. For instance
5005 # both Tru64's cc and ICC support -MD to output dependencies as a
5006 # side effect of compilation, but ICC will put the dependencies in
5007 # the current directory while Tru64 will put them in the object
5008 # directory.
5009 mkdir sub
5010
5011 am_cv_CC_dependencies_compiler_type=none
5012 if test "$am_compiler_list" = ""; then
5013 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5014 fi
5015 am__universal=false
5016 case " $depcc " in #(
5017 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5018 esac
5019
5020 for depmode in $am_compiler_list; do
5021 # Setup a source with many dependencies, because some compilers
5022 # like to wrap large dependency lists on column 80 (with \), and
5023 # we should not choose a depcomp mode which is confused by this.
5024 #
5025 # We need to recreate these files for each test, as the compiler may
5026 # overwrite some of them when testing with obscure command lines.
5027 # This happens at least with the AIX C compiler.
5028 : > sub/conftest.c
5029 for i in 1 2 3 4 5 6; do
5030 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5031 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5032 # Solaris 10 /bin/sh.
5033 echo '/* dummy */' > sub/conftst$i.h
5034 done
5035 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5036
5037 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5038 # mode. It turns out that the SunPro C++ compiler does not properly
5039 # handle '-M -o', and we need to detect this. Also, some Intel
5040 # versions had trouble with output in subdirs.
5041 am__obj=sub/conftest.${OBJEXT-o}
5042 am__minus_obj="-o $am__obj"
5043 case $depmode in
5044 gcc)
5045 # This depmode causes a compiler race in universal mode.
5046 test "$am__universal" = false || continue
5047 ;;
5048 nosideeffect)
5049 # After this tag, mechanisms are not by side-effect, so they'll
5050 # only be used when explicitly requested.
5051 if test "x$enable_dependency_tracking" = xyes; then
5052 continue
5053 else
5054 break
5055 fi
5056 ;;
5057 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5058 # This compiler won't grok '-c -o', but also, the minuso test has
5059 # not run yet. These depmodes are late enough in the game, and
5060 # so weak that their functioning should not be impacted.
5061 am__obj=conftest.${OBJEXT-o}
5062 am__minus_obj=
5063 ;;
5064 none) break ;;
5065 esac
5066 if depmode=$depmode \
5067 source=sub/conftest.c object=$am__obj \
5068 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5069 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5070 >/dev/null 2>conftest.err &&
5071 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5072 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5073 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5074 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5075 # icc doesn't choke on unknown options, it will just issue warnings
5076 # or remarks (even with -Werror). So we grep stderr for any message
5077 # that says an option was ignored or not supported.
5078 # When given -MP, icc 7.0 and 7.1 complain thus:
5079 # icc: Command line warning: ignoring option '-M'; no argument required
5080 # The diagnosis changed in icc 8.0:
5081 # icc: Command line remark: option '-MP' not supported
5082 if (grep 'ignoring option' conftest.err ||
5083 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5084 am_cv_CC_dependencies_compiler_type=$depmode
5085 break
5086 fi
5087 fi
5088 done
5089
5090 cd ..
5091 rm -rf conftest.dir
5092 else
5093 am_cv_CC_dependencies_compiler_type=none
5094 fi
5095 ;;
5096 esac
5097 fi
5098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5099 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5100 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5101
5102 if
5103 test "x$enable_dependency_tracking" != xno \
5104 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5105 am__fastdepCC_TRUE=
5106 am__fastdepCC_FALSE='#'
5107 else
5108 am__fastdepCC_TRUE='#'
5109 am__fastdepCC_FALSE=
5110 fi
5111
5112
5113
5114
5115 if test -n "$ac_tool_prefix"; then
5116 for ac_prog in ar lib "link -lib"
5117 do
5118 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5119 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5121 printf %s "checking for $ac_word... " >&6; }
5122 if test ${ac_cv_prog_AR+y}
5123 then :
5124 printf %s "(cached) " >&6
5125 else case e in #(
5126 e) if test -n "$AR"; then
5127 ac_cv_prog_AR="$AR" # Let the user override the test.
5128 else
5129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130 for as_dir in $PATH
5131 do
5132 IFS=$as_save_IFS
5133 case $as_dir in #(((
5134 '') as_dir=./ ;;
5135 */) ;;
5136 *) as_dir=$as_dir/ ;;
5137 esac
5138 for ac_exec_ext in '' $ac_executable_extensions; do
5139 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5140 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5142 break 2
5143 fi
5144 done
5145 done
5146 IFS=$as_save_IFS
5147
5148 fi ;;
5149 esac
5150 fi
5151 AR=$ac_cv_prog_AR
5152 if test -n "$AR"; then
5153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5154 printf "%s\n" "$AR" >&6; }
5155 else
5156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5157 printf "%s\n" "no" >&6; }
5158 fi
5159
5160
5161 test -n "$AR" && break
5162 done
5163 fi
5164 if test -z "$AR"; then
5165 ac_ct_AR=$AR
5166 for ac_prog in ar lib "link -lib"
5167 do
5168 # Extract the first word of "$ac_prog", so it can be a program name with args.
5169 set dummy $ac_prog; ac_word=$2
5170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5171 printf %s "checking for $ac_word... " >&6; }
5172 if test ${ac_cv_prog_ac_ct_AR+y}
5173 then :
5174 printf %s "(cached) " >&6
5175 else case e in #(
5176 e) if test -n "$ac_ct_AR"; then
5177 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5178 else
5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180 for as_dir in $PATH
5181 do
5182 IFS=$as_save_IFS
5183 case $as_dir in #(((
5184 '') as_dir=./ ;;
5185 */) ;;
5186 *) as_dir=$as_dir/ ;;
5187 esac
5188 for ac_exec_ext in '' $ac_executable_extensions; do
5189 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5190 ac_cv_prog_ac_ct_AR="$ac_prog"
5191 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5192 break 2
5193 fi
5194 done
5195 done
5196 IFS=$as_save_IFS
5197
5198 fi ;;
5199 esac
5200 fi
5201 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5202 if test -n "$ac_ct_AR"; then
5203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5204 printf "%s\n" "$ac_ct_AR" >&6; }
5205 else
5206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5207 printf "%s\n" "no" >&6; }
5208 fi
5209
5210
5211 test -n "$ac_ct_AR" && break
5212 done
5213
5214 if test "x$ac_ct_AR" = x; then
5215 AR="false"
5216 else
5217 case $cross_compiling:$ac_tool_warned in
5218 yes:)
5219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5220 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5221 ac_tool_warned=yes ;;
5222 esac
5223 AR=$ac_ct_AR
5224 fi
5225 fi
5226
5227 : ${AR=ar}
5228 : ${ARFLAGS=cr}
5229
5230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5231 printf %s "checking the archiver ($AR) interface... " >&6; }
5232 if test ${am_cv_ar_interface+y}
5233 then :
5234 printf %s "(cached) " >&6
5235 else case e in #(
5236 e) ac_ext=c
5237 ac_cpp='$CPP $CPPFLAGS'
5238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5241
5242 am_cv_ar_interface=ar
5243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244 /* end confdefs.h. */
5245 int some_variable = 0;
5246 _ACEOF
5247 if ac_fn_c_try_compile "$LINENO"
5248 then :
5249 am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5'
5250 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5251 (eval $am_ar_try) 2>&5
5252 ac_status=$?
5253 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5254 test $ac_status = 0; }
5255 if test "$ac_status" -eq 0; then
5256 am_cv_ar_interface=ar
5257 else
5258 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5259 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5260 (eval $am_ar_try) 2>&5
5261 ac_status=$?
5262 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5263 test $ac_status = 0; }
5264 if test "$ac_status" -eq 0; then
5265 am_cv_ar_interface=lib
5266 else
5267 am_cv_ar_interface=unknown
5268 fi
5269 fi
5270 rm -f conftest.lib libconftest.a
5271
5272 fi
5273 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5274 ac_ext=cpp
5275 ac_cpp='$CXXCPP $CPPFLAGS'
5276 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5277 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5278 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5279 ;;
5280 esac
5281 fi
5282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5283 printf "%s\n" "$am_cv_ar_interface" >&6; }
5284
5285 case $am_cv_ar_interface in
5286 ar)
5287 ;;
5288 lib)
5289 # Microsoft lib, so override with the ar-lib wrapper script.
5290 # FIXME: It is wrong to rewrite AR.
5291 # But if we don't then we get into trouble of one sort or another.
5292 # A longer-term fix would be to have automake use am__AR in this case,
5293 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5294 # similar.
5295 AR="$am_aux_dir/ar-lib $AR"
5296 ;;
5297 unknown)
5298 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5299 ;;
5300 esac
5301
5302 ac_ext=c
5303 ac_cpp='$CPP $CPPFLAGS'
5304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5307 if test -n "$ac_tool_prefix"; then
5308 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5309 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5311 printf %s "checking for $ac_word... " >&6; }
5312 if test ${ac_cv_prog_CC+y}
5313 then :
5314 printf %s "(cached) " >&6
5315 else case e in #(
5316 e) if test -n "$CC"; then
5317 ac_cv_prog_CC="$CC" # Let the user override the test.
5318 else
5319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320 for as_dir in $PATH
5321 do
5322 IFS=$as_save_IFS
5323 case $as_dir in #(((
5324 '') as_dir=./ ;;
5325 */) ;;
5326 *) as_dir=$as_dir/ ;;
5327 esac
5328 for ac_exec_ext in '' $ac_executable_extensions; do
5329 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5330 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5331 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5332 break 2
5333 fi
5334 done
5335 done
5336 IFS=$as_save_IFS
5337
5338 fi ;;
5339 esac
5340 fi
5341 CC=$ac_cv_prog_CC
5342 if test -n "$CC"; then
5343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5344 printf "%s\n" "$CC" >&6; }
5345 else
5346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5347 printf "%s\n" "no" >&6; }
5348 fi
5349
5350
5351 fi
5352 if test -z "$ac_cv_prog_CC"; then
5353 ac_ct_CC=$CC
5354 # Extract the first word of "gcc", so it can be a program name with args.
5355 set dummy gcc; ac_word=$2
5356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5357 printf %s "checking for $ac_word... " >&6; }
5358 if test ${ac_cv_prog_ac_ct_CC+y}
5359 then :
5360 printf %s "(cached) " >&6
5361 else case e in #(
5362 e) if test -n "$ac_ct_CC"; then
5363 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5364 else
5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366 for as_dir in $PATH
5367 do
5368 IFS=$as_save_IFS
5369 case $as_dir in #(((
5370 '') as_dir=./ ;;
5371 */) ;;
5372 *) as_dir=$as_dir/ ;;
5373 esac
5374 for ac_exec_ext in '' $ac_executable_extensions; do
5375 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5376 ac_cv_prog_ac_ct_CC="gcc"
5377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5378 break 2
5379 fi
5380 done
5381 done
5382 IFS=$as_save_IFS
5383
5384 fi ;;
5385 esac
5386 fi
5387 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5388 if test -n "$ac_ct_CC"; then
5389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5390 printf "%s\n" "$ac_ct_CC" >&6; }
5391 else
5392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5393 printf "%s\n" "no" >&6; }
5394 fi
5395
5396 if test "x$ac_ct_CC" = x; then
5397 CC=""
5398 else
5399 case $cross_compiling:$ac_tool_warned in
5400 yes:)
5401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5402 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5403 ac_tool_warned=yes ;;
5404 esac
5405 CC=$ac_ct_CC
5406 fi
5407 else
5408 CC="$ac_cv_prog_CC"
5409 fi
5410
5411 if test -z "$CC"; then
5412 if test -n "$ac_tool_prefix"; then
5413 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5414 set dummy ${ac_tool_prefix}cc; ac_word=$2
5415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5416 printf %s "checking for $ac_word... " >&6; }
5417 if test ${ac_cv_prog_CC+y}
5418 then :
5419 printf %s "(cached) " >&6
5420 else case e in #(
5421 e) if test -n "$CC"; then
5422 ac_cv_prog_CC="$CC" # Let the user override the test.
5423 else
5424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5425 for as_dir in $PATH
5426 do
5427 IFS=$as_save_IFS
5428 case $as_dir in #(((
5429 '') as_dir=./ ;;
5430 */) ;;
5431 *) as_dir=$as_dir/ ;;
5432 esac
5433 for ac_exec_ext in '' $ac_executable_extensions; do
5434 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5435 ac_cv_prog_CC="${ac_tool_prefix}cc"
5436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5437 break 2
5438 fi
5439 done
5440 done
5441 IFS=$as_save_IFS
5442
5443 fi ;;
5444 esac
5445 fi
5446 CC=$ac_cv_prog_CC
5447 if test -n "$CC"; then
5448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5449 printf "%s\n" "$CC" >&6; }
5450 else
5451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5452 printf "%s\n" "no" >&6; }
5453 fi
5454
5455
5456 fi
5457 fi
5458 if test -z "$CC"; then
5459 # Extract the first word of "cc", so it can be a program name with args.
5460 set dummy cc; ac_word=$2
5461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5462 printf %s "checking for $ac_word... " >&6; }
5463 if test ${ac_cv_prog_CC+y}
5464 then :
5465 printf %s "(cached) " >&6
5466 else case e in #(
5467 e) if test -n "$CC"; then
5468 ac_cv_prog_CC="$CC" # Let the user override the test.
5469 else
5470 ac_prog_rejected=no
5471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5472 for as_dir in $PATH
5473 do
5474 IFS=$as_save_IFS
5475 case $as_dir in #(((
5476 '') as_dir=./ ;;
5477 */) ;;
5478 *) as_dir=$as_dir/ ;;
5479 esac
5480 for ac_exec_ext in '' $ac_executable_extensions; do
5481 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5482 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5483 ac_prog_rejected=yes
5484 continue
5485 fi
5486 ac_cv_prog_CC="cc"
5487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5488 break 2
5489 fi
5490 done
5491 done
5492 IFS=$as_save_IFS
5493
5494 if test $ac_prog_rejected = yes; then
5495 # We found a bogon in the path, so make sure we never use it.
5496 set dummy $ac_cv_prog_CC
5497 shift
5498 if test $# != 0; then
5499 # We chose a different compiler from the bogus one.
5500 # However, it has the same basename, so the bogon will be chosen
5501 # first if we set CC to just the basename; use the full file name.
5502 shift
5503 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5504 fi
5505 fi
5506 fi ;;
5507 esac
5508 fi
5509 CC=$ac_cv_prog_CC
5510 if test -n "$CC"; then
5511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5512 printf "%s\n" "$CC" >&6; }
5513 else
5514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5515 printf "%s\n" "no" >&6; }
5516 fi
5517
5518
5519 fi
5520 if test -z "$CC"; then
5521 if test -n "$ac_tool_prefix"; then
5522 for ac_prog in cl.exe
5523 do
5524 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5525 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5527 printf %s "checking for $ac_word... " >&6; }
5528 if test ${ac_cv_prog_CC+y}
5529 then :
5530 printf %s "(cached) " >&6
5531 else case e in #(
5532 e) if test -n "$CC"; then
5533 ac_cv_prog_CC="$CC" # Let the user override the test.
5534 else
5535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536 for as_dir in $PATH
5537 do
5538 IFS=$as_save_IFS
5539 case $as_dir in #(((
5540 '') as_dir=./ ;;
5541 */) ;;
5542 *) as_dir=$as_dir/ ;;
5543 esac
5544 for ac_exec_ext in '' $ac_executable_extensions; do
5545 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5546 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5547 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5548 break 2
5549 fi
5550 done
5551 done
5552 IFS=$as_save_IFS
5553
5554 fi ;;
5555 esac
5556 fi
5557 CC=$ac_cv_prog_CC
5558 if test -n "$CC"; then
5559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5560 printf "%s\n" "$CC" >&6; }
5561 else
5562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5563 printf "%s\n" "no" >&6; }
5564 fi
5565
5566
5567 test -n "$CC" && break
5568 done
5569 fi
5570 if test -z "$CC"; then
5571 ac_ct_CC=$CC
5572 for ac_prog in cl.exe
5573 do
5574 # Extract the first word of "$ac_prog", so it can be a program name with args.
5575 set dummy $ac_prog; ac_word=$2
5576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5577 printf %s "checking for $ac_word... " >&6; }
5578 if test ${ac_cv_prog_ac_ct_CC+y}
5579 then :
5580 printf %s "(cached) " >&6
5581 else case e in #(
5582 e) if test -n "$ac_ct_CC"; then
5583 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5584 else
5585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586 for as_dir in $PATH
5587 do
5588 IFS=$as_save_IFS
5589 case $as_dir in #(((
5590 '') as_dir=./ ;;
5591 */) ;;
5592 *) as_dir=$as_dir/ ;;
5593 esac
5594 for ac_exec_ext in '' $ac_executable_extensions; do
5595 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5596 ac_cv_prog_ac_ct_CC="$ac_prog"
5597 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5598 break 2
5599 fi
5600 done
5601 done
5602 IFS=$as_save_IFS
5603
5604 fi ;;
5605 esac
5606 fi
5607 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5608 if test -n "$ac_ct_CC"; then
5609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5610 printf "%s\n" "$ac_ct_CC" >&6; }
5611 else
5612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5613 printf "%s\n" "no" >&6; }
5614 fi
5615
5616
5617 test -n "$ac_ct_CC" && break
5618 done
5619
5620 if test "x$ac_ct_CC" = x; then
5621 CC=""
5622 else
5623 case $cross_compiling:$ac_tool_warned in
5624 yes:)
5625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5626 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5627 ac_tool_warned=yes ;;
5628 esac
5629 CC=$ac_ct_CC
5630 fi
5631 fi
5632
5633 fi
5634 if test -z "$CC"; then
5635 if test -n "$ac_tool_prefix"; then
5636 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5637 set dummy ${ac_tool_prefix}clang; ac_word=$2
5638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5639 printf %s "checking for $ac_word... " >&6; }
5640 if test ${ac_cv_prog_CC+y}
5641 then :
5642 printf %s "(cached) " >&6
5643 else case e in #(
5644 e) if test -n "$CC"; then
5645 ac_cv_prog_CC="$CC" # Let the user override the test.
5646 else
5647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648 for as_dir in $PATH
5649 do
5650 IFS=$as_save_IFS
5651 case $as_dir in #(((
5652 '') as_dir=./ ;;
5653 */) ;;
5654 *) as_dir=$as_dir/ ;;
5655 esac
5656 for ac_exec_ext in '' $ac_executable_extensions; do
5657 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5658 ac_cv_prog_CC="${ac_tool_prefix}clang"
5659 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5660 break 2
5661 fi
5662 done
5663 done
5664 IFS=$as_save_IFS
5665
5666 fi ;;
5667 esac
5668 fi
5669 CC=$ac_cv_prog_CC
5670 if test -n "$CC"; then
5671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5672 printf "%s\n" "$CC" >&6; }
5673 else
5674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5675 printf "%s\n" "no" >&6; }
5676 fi
5677
5678
5679 fi
5680 if test -z "$ac_cv_prog_CC"; then
5681 ac_ct_CC=$CC
5682 # Extract the first word of "clang", so it can be a program name with args.
5683 set dummy clang; ac_word=$2
5684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5685 printf %s "checking for $ac_word... " >&6; }
5686 if test ${ac_cv_prog_ac_ct_CC+y}
5687 then :
5688 printf %s "(cached) " >&6
5689 else case e in #(
5690 e) if test -n "$ac_ct_CC"; then
5691 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5692 else
5693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5694 for as_dir in $PATH
5695 do
5696 IFS=$as_save_IFS
5697 case $as_dir in #(((
5698 '') as_dir=./ ;;
5699 */) ;;
5700 *) as_dir=$as_dir/ ;;
5701 esac
5702 for ac_exec_ext in '' $ac_executable_extensions; do
5703 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5704 ac_cv_prog_ac_ct_CC="clang"
5705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5706 break 2
5707 fi
5708 done
5709 done
5710 IFS=$as_save_IFS
5711
5712 fi ;;
5713 esac
5714 fi
5715 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5716 if test -n "$ac_ct_CC"; then
5717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5718 printf "%s\n" "$ac_ct_CC" >&6; }
5719 else
5720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5721 printf "%s\n" "no" >&6; }
5722 fi
5723
5724 if test "x$ac_ct_CC" = x; then
5725 CC=""
5726 else
5727 case $cross_compiling:$ac_tool_warned in
5728 yes:)
5729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5730 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5731 ac_tool_warned=yes ;;
5732 esac
5733 CC=$ac_ct_CC
5734 fi
5735 else
5736 CC="$ac_cv_prog_CC"
5737 fi
5738
5739 fi
5740
5741
5742 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5743 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5744 as_fn_error $? "no acceptable C compiler found in \$PATH
5745 See 'config.log' for more details" "$LINENO" 5; }
5746
5747 # Provide some information about the compiler.
5748 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5749 set X $ac_compile
5750 ac_compiler=$2
5751 for ac_option in --version -v -V -qversion -version; do
5752 { { ac_try="$ac_compiler $ac_option >&5"
5753 case "(($ac_try" in
5754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755 *) ac_try_echo=$ac_try;;
5756 esac
5757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5758 printf "%s\n" "$ac_try_echo"; } >&5
5759 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5760 ac_status=$?
5761 if test -s conftest.err; then
5762 sed '10a\
5763 ... rest of stderr output deleted ...
5764 10q' conftest.err >conftest.er1
5765 cat conftest.er1 >&5
5766 fi
5767 rm -f conftest.er1 conftest.err
5768 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5769 test $ac_status = 0; }
5770 done
5771
5772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5773 printf %s "checking whether the compiler supports GNU C... " >&6; }
5774 if test ${ac_cv_c_compiler_gnu+y}
5775 then :
5776 printf %s "(cached) " >&6
5777 else case e in #(
5778 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5779 /* end confdefs.h. */
5780
5781 int
5782 main (void)
5783 {
5784 #ifndef __GNUC__
5785 choke me
5786 #endif
5787
5788 ;
5789 return 0;
5790 }
5791 _ACEOF
5792 if ac_fn_c_try_compile "$LINENO"
5793 then :
5794 ac_compiler_gnu=yes
5795 else case e in #(
5796 e) ac_compiler_gnu=no ;;
5797 esac
5798 fi
5799 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5800 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5801 ;;
5802 esac
5803 fi
5804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5805 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5807
5808 if test $ac_compiler_gnu = yes; then
5809 GCC=yes
5810 else
5811 GCC=
5812 fi
5813 ac_test_CFLAGS=${CFLAGS+y}
5814 ac_save_CFLAGS=$CFLAGS
5815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5816 printf %s "checking whether $CC accepts -g... " >&6; }
5817 if test ${ac_cv_prog_cc_g+y}
5818 then :
5819 printf %s "(cached) " >&6
5820 else case e in #(
5821 e) ac_save_c_werror_flag=$ac_c_werror_flag
5822 ac_c_werror_flag=yes
5823 ac_cv_prog_cc_g=no
5824 CFLAGS="-g"
5825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5826 /* end confdefs.h. */
5827
5828 int
5829 main (void)
5830 {
5831
5832 ;
5833 return 0;
5834 }
5835 _ACEOF
5836 if ac_fn_c_try_compile "$LINENO"
5837 then :
5838 ac_cv_prog_cc_g=yes
5839 else case e in #(
5840 e) CFLAGS=""
5841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5842 /* end confdefs.h. */
5843
5844 int
5845 main (void)
5846 {
5847
5848 ;
5849 return 0;
5850 }
5851 _ACEOF
5852 if ac_fn_c_try_compile "$LINENO"
5853 then :
5854
5855 else case e in #(
5856 e) ac_c_werror_flag=$ac_save_c_werror_flag
5857 CFLAGS="-g"
5858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859 /* end confdefs.h. */
5860
5861 int
5862 main (void)
5863 {
5864
5865 ;
5866 return 0;
5867 }
5868 _ACEOF
5869 if ac_fn_c_try_compile "$LINENO"
5870 then :
5871 ac_cv_prog_cc_g=yes
5872 fi
5873 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5874 esac
5875 fi
5876 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5877 esac
5878 fi
5879 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5880 ac_c_werror_flag=$ac_save_c_werror_flag ;;
5881 esac
5882 fi
5883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5884 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5885 if test $ac_test_CFLAGS; then
5886 CFLAGS=$ac_save_CFLAGS
5887 elif test $ac_cv_prog_cc_g = yes; then
5888 if test "$GCC" = yes; then
5889 CFLAGS="-g -O2"
5890 else
5891 CFLAGS="-g"
5892 fi
5893 else
5894 if test "$GCC" = yes; then
5895 CFLAGS="-O2"
5896 else
5897 CFLAGS=
5898 fi
5899 fi
5900 ac_prog_cc_stdc=no
5901 if test x$ac_prog_cc_stdc = xno
5902 then :
5903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5904 printf %s "checking for $CC option to enable C11 features... " >&6; }
5905 if test ${ac_cv_prog_cc_c11+y}
5906 then :
5907 printf %s "(cached) " >&6
5908 else case e in #(
5909 e) ac_cv_prog_cc_c11=no
5910 ac_save_CC=$CC
5911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5912 /* end confdefs.h. */
5913 $ac_c_conftest_c11_program
5914 _ACEOF
5915 for ac_arg in '' -std=gnu11
5916 do
5917 CC="$ac_save_CC $ac_arg"
5918 if ac_fn_c_try_compile "$LINENO"
5919 then :
5920 ac_cv_prog_cc_c11=$ac_arg
5921 fi
5922 rm -f core conftest.err conftest.$ac_objext conftest.beam
5923 test "x$ac_cv_prog_cc_c11" != "xno" && break
5924 done
5925 rm -f conftest.$ac_ext
5926 CC=$ac_save_CC ;;
5927 esac
5928 fi
5929
5930 if test "x$ac_cv_prog_cc_c11" = xno
5931 then :
5932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5933 printf "%s\n" "unsupported" >&6; }
5934 else case e in #(
5935 e) if test "x$ac_cv_prog_cc_c11" = x
5936 then :
5937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5938 printf "%s\n" "none needed" >&6; }
5939 else case e in #(
5940 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5941 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5942 CC="$CC $ac_cv_prog_cc_c11" ;;
5943 esac
5944 fi
5945 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5946 ac_prog_cc_stdc=c11 ;;
5947 esac
5948 fi
5949 fi
5950 if test x$ac_prog_cc_stdc = xno
5951 then :
5952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5953 printf %s "checking for $CC option to enable C99 features... " >&6; }
5954 if test ${ac_cv_prog_cc_c99+y}
5955 then :
5956 printf %s "(cached) " >&6
5957 else case e in #(
5958 e) ac_cv_prog_cc_c99=no
5959 ac_save_CC=$CC
5960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5961 /* end confdefs.h. */
5962 $ac_c_conftest_c99_program
5963 _ACEOF
5964 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5965 do
5966 CC="$ac_save_CC $ac_arg"
5967 if ac_fn_c_try_compile "$LINENO"
5968 then :
5969 ac_cv_prog_cc_c99=$ac_arg
5970 fi
5971 rm -f core conftest.err conftest.$ac_objext conftest.beam
5972 test "x$ac_cv_prog_cc_c99" != "xno" && break
5973 done
5974 rm -f conftest.$ac_ext
5975 CC=$ac_save_CC ;;
5976 esac
5977 fi
5978
5979 if test "x$ac_cv_prog_cc_c99" = xno
5980 then :
5981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5982 printf "%s\n" "unsupported" >&6; }
5983 else case e in #(
5984 e) if test "x$ac_cv_prog_cc_c99" = x
5985 then :
5986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5987 printf "%s\n" "none needed" >&6; }
5988 else case e in #(
5989 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5990 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5991 CC="$CC $ac_cv_prog_cc_c99" ;;
5992 esac
5993 fi
5994 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5995 ac_prog_cc_stdc=c99 ;;
5996 esac
5997 fi
5998 fi
5999 if test x$ac_prog_cc_stdc = xno
6000 then :
6001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
6002 printf %s "checking for $CC option to enable C89 features... " >&6; }
6003 if test ${ac_cv_prog_cc_c89+y}
6004 then :
6005 printf %s "(cached) " >&6
6006 else case e in #(
6007 e) ac_cv_prog_cc_c89=no
6008 ac_save_CC=$CC
6009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6010 /* end confdefs.h. */
6011 $ac_c_conftest_c89_program
6012 _ACEOF
6013 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6014 do
6015 CC="$ac_save_CC $ac_arg"
6016 if ac_fn_c_try_compile "$LINENO"
6017 then :
6018 ac_cv_prog_cc_c89=$ac_arg
6019 fi
6020 rm -f core conftest.err conftest.$ac_objext conftest.beam
6021 test "x$ac_cv_prog_cc_c89" != "xno" && break
6022 done
6023 rm -f conftest.$ac_ext
6024 CC=$ac_save_CC ;;
6025 esac
6026 fi
6027
6028 if test "x$ac_cv_prog_cc_c89" = xno
6029 then :
6030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6031 printf "%s\n" "unsupported" >&6; }
6032 else case e in #(
6033 e) if test "x$ac_cv_prog_cc_c89" = x
6034 then :
6035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6036 printf "%s\n" "none needed" >&6; }
6037 else case e in #(
6038 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6039 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
6040 CC="$CC $ac_cv_prog_cc_c89" ;;
6041 esac
6042 fi
6043 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6044 ac_prog_cc_stdc=c89 ;;
6045 esac
6046 fi
6047 fi
6048
6049 ac_ext=cpp
6050 ac_cpp='$CXXCPP $CPPFLAGS'
6051 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6052 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6053 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6054
6055
6056 ac_ext=c
6057 ac_cpp='$CPP $CPPFLAGS'
6058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6062 printf %s "checking whether $CC understands -c and -o together... " >&6; }
6063 if test ${am_cv_prog_cc_c_o+y}
6064 then :
6065 printf %s "(cached) " >&6
6066 else case e in #(
6067 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6068 /* end confdefs.h. */
6069
6070 int
6071 main (void)
6072 {
6073
6074 ;
6075 return 0;
6076 }
6077 _ACEOF
6078 # Make sure it works both with $CC and with simple cc.
6079 # Following AC_PROG_CC_C_O, we do the test twice because some
6080 # compilers refuse to overwrite an existing .o file with -o,
6081 # though they will create one.
6082 am_cv_prog_cc_c_o=yes
6083 for am_i in 1 2; do
6084 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6085 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6086 ac_status=$?
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); } \
6089 && test -f conftest2.$ac_objext; then
6090 : OK
6091 else
6092 am_cv_prog_cc_c_o=no
6093 break
6094 fi
6095 done
6096 rm -f core conftest*
6097 unset am_i ;;
6098 esac
6099 fi
6100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6101 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
6102 if test "$am_cv_prog_cc_c_o" != yes; then
6103 # Losing compiler, so override with the script.
6104 # FIXME: It is wrong to rewrite CC.
6105 # But if we don't then we get into trouble of one sort or another.
6106 # A longer-term fix would be to have automake use am__CC in this case,
6107 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6108 CC="$am_aux_dir/compile $CC"
6109 fi
6110 ac_ext=cpp
6111 ac_cpp='$CXXCPP $CPPFLAGS'
6112 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6113 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6114 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6115
6116
6117 depcc="$CC" am_compiler_list=
6118
6119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6120 printf %s "checking dependency style of $depcc... " >&6; }
6121 if test ${am_cv_CC_dependencies_compiler_type+y}
6122 then :
6123 printf %s "(cached) " >&6
6124 else case e in #(
6125 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6126 # We make a subdir and do the tests there. Otherwise we can end up
6127 # making bogus files that we don't know about and never remove. For
6128 # instance it was reported that on HP-UX the gcc test will end up
6129 # making a dummy file named 'D' -- because '-MD' means "put the output
6130 # in D".
6131 rm -rf conftest.dir
6132 mkdir conftest.dir
6133 # Copy depcomp to subdir because otherwise we won't find it if we're
6134 # using a relative directory.
6135 cp "$am_depcomp" conftest.dir
6136 cd conftest.dir
6137 # We will build objects and dependencies in a subdirectory because
6138 # it helps to detect inapplicable dependency modes. For instance
6139 # both Tru64's cc and ICC support -MD to output dependencies as a
6140 # side effect of compilation, but ICC will put the dependencies in
6141 # the current directory while Tru64 will put them in the object
6142 # directory.
6143 mkdir sub
6144
6145 am_cv_CC_dependencies_compiler_type=none
6146 if test "$am_compiler_list" = ""; then
6147 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6148 fi
6149 am__universal=false
6150 case " $depcc " in #(
6151 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6152 esac
6153
6154 for depmode in $am_compiler_list; do
6155 # Setup a source with many dependencies, because some compilers
6156 # like to wrap large dependency lists on column 80 (with \), and
6157 # we should not choose a depcomp mode which is confused by this.
6158 #
6159 # We need to recreate these files for each test, as the compiler may
6160 # overwrite some of them when testing with obscure command lines.
6161 # This happens at least with the AIX C compiler.
6162 : > sub/conftest.c
6163 for i in 1 2 3 4 5 6; do
6164 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6165 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6166 # Solaris 10 /bin/sh.
6167 echo '/* dummy */' > sub/conftst$i.h
6168 done
6169 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6170
6171 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6172 # mode. It turns out that the SunPro C++ compiler does not properly
6173 # handle '-M -o', and we need to detect this. Also, some Intel
6174 # versions had trouble with output in subdirs.
6175 am__obj=sub/conftest.${OBJEXT-o}
6176 am__minus_obj="-o $am__obj"
6177 case $depmode in
6178 gcc)
6179 # This depmode causes a compiler race in universal mode.
6180 test "$am__universal" = false || continue
6181 ;;
6182 nosideeffect)
6183 # After this tag, mechanisms are not by side-effect, so they'll
6184 # only be used when explicitly requested.
6185 if test "x$enable_dependency_tracking" = xyes; then
6186 continue
6187 else
6188 break
6189 fi
6190 ;;
6191 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6192 # This compiler won't grok '-c -o', but also, the minuso test has
6193 # not run yet. These depmodes are late enough in the game, and
6194 # so weak that their functioning should not be impacted.
6195 am__obj=conftest.${OBJEXT-o}
6196 am__minus_obj=
6197 ;;
6198 none) break ;;
6199 esac
6200 if depmode=$depmode \
6201 source=sub/conftest.c object=$am__obj \
6202 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6203 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6204 >/dev/null 2>conftest.err &&
6205 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6206 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6207 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6208 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6209 # icc doesn't choke on unknown options, it will just issue warnings
6210 # or remarks (even with -Werror). So we grep stderr for any message
6211 # that says an option was ignored or not supported.
6212 # When given -MP, icc 7.0 and 7.1 complain thus:
6213 # icc: Command line warning: ignoring option '-M'; no argument required
6214 # The diagnosis changed in icc 8.0:
6215 # icc: Command line remark: option '-MP' not supported
6216 if (grep 'ignoring option' conftest.err ||
6217 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6218 am_cv_CC_dependencies_compiler_type=$depmode
6219 break
6220 fi
6221 fi
6222 done
6223
6224 cd ..
6225 rm -rf conftest.dir
6226 else
6227 am_cv_CC_dependencies_compiler_type=none
6228 fi
6229 ;;
6230 esac
6231 fi
6232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6233 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6234 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6235
6236 if
6237 test "x$enable_dependency_tracking" != xno \
6238 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6239 am__fastdepCC_TRUE=
6240 am__fastdepCC_FALSE='#'
6241 else
6242 am__fastdepCC_TRUE='#'
6243 am__fastdepCC_FALSE=
6244 fi
6245
6246
6247 ac_ext=c
6248 ac_cpp='$CPP $CPPFLAGS'
6249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6253 printf %s "checking how to run the C preprocessor... " >&6; }
6254 # On Suns, sometimes $CPP names a directory.
6255 if test -n "$CPP" && test -d "$CPP"; then
6256 CPP=
6257 fi
6258 if test -z "$CPP"; then
6259 if test ${ac_cv_prog_CPP+y}
6260 then :
6261 printf %s "(cached) " >&6
6262 else case e in #(
6263 e) # Double quotes because $CC needs to be expanded
6264 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
6265 do
6266 ac_preproc_ok=false
6267 for ac_c_preproc_warn_flag in '' yes
6268 do
6269 # Use a header file that comes with gcc, so configuring glibc
6270 # with a fresh cross-compiler works.
6271 # On the NeXT, cc -E runs the code through the compiler's parser,
6272 # not just through cpp. "Syntax error" is here to catch this case.
6273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6274 /* end confdefs.h. */
6275 #include <limits.h>
6276 Syntax error
6277 _ACEOF
6278 if ac_fn_c_try_cpp "$LINENO"
6279 then :
6280
6281 else case e in #(
6282 e) # Broken: fails on valid input.
6283 continue ;;
6284 esac
6285 fi
6286 rm -f conftest.err conftest.i conftest.$ac_ext
6287
6288 # OK, works on sane cases. Now check whether nonexistent headers
6289 # can be detected and how.
6290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6291 /* end confdefs.h. */
6292 #include <ac_nonexistent.h>
6293 _ACEOF
6294 if ac_fn_c_try_cpp "$LINENO"
6295 then :
6296 # Broken: success on invalid input.
6297 continue
6298 else case e in #(
6299 e) # Passes both tests.
6300 ac_preproc_ok=:
6301 break ;;
6302 esac
6303 fi
6304 rm -f conftest.err conftest.i conftest.$ac_ext
6305
6306 done
6307 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6308 rm -f conftest.i conftest.err conftest.$ac_ext
6309 if $ac_preproc_ok
6310 then :
6311 break
6312 fi
6313
6314 done
6315 ac_cv_prog_CPP=$CPP
6316 ;;
6317 esac
6318 fi
6319 CPP=$ac_cv_prog_CPP
6320 else
6321 ac_cv_prog_CPP=$CPP
6322 fi
6323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6324 printf "%s\n" "$CPP" >&6; }
6325 ac_preproc_ok=false
6326 for ac_c_preproc_warn_flag in '' yes
6327 do
6328 # Use a header file that comes with gcc, so configuring glibc
6329 # with a fresh cross-compiler works.
6330 # On the NeXT, cc -E runs the code through the compiler's parser,
6331 # not just through cpp. "Syntax error" is here to catch this case.
6332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6333 /* end confdefs.h. */
6334 #include <limits.h>
6335 Syntax error
6336 _ACEOF
6337 if ac_fn_c_try_cpp "$LINENO"
6338 then :
6339
6340 else case e in #(
6341 e) # Broken: fails on valid input.
6342 continue ;;
6343 esac
6344 fi
6345 rm -f conftest.err conftest.i conftest.$ac_ext
6346
6347 # OK, works on sane cases. Now check whether nonexistent headers
6348 # can be detected and how.
6349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350 /* end confdefs.h. */
6351 #include <ac_nonexistent.h>
6352 _ACEOF
6353 if ac_fn_c_try_cpp "$LINENO"
6354 then :
6355 # Broken: success on invalid input.
6356 continue
6357 else case e in #(
6358 e) # Passes both tests.
6359 ac_preproc_ok=:
6360 break ;;
6361 esac
6362 fi
6363 rm -f conftest.err conftest.i conftest.$ac_ext
6364
6365 done
6366 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6367 rm -f conftest.i conftest.err conftest.$ac_ext
6368 if $ac_preproc_ok
6369 then :
6370
6371 else case e in #(
6372 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
6373 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
6374 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6375 See 'config.log' for more details" "$LINENO" 5; } ;;
6376 esac
6377 fi
6378
6379 ac_ext=cpp
6380 ac_cpp='$CXXCPP $CPPFLAGS'
6381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6384
6385
6386
6387
6388
6389
6390
6391 ac_ext=cpp
6392 ac_cpp='$CXXCPP $CPPFLAGS'
6393 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6394 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6395 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6396 if test -z "$CXX"; then
6397 if test -n "$CCC"; then
6398 CXX=$CCC
6399 else
6400 if test -n "$ac_tool_prefix"; then
6401 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
6402 do
6403 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6404 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6406 printf %s "checking for $ac_word... " >&6; }
6407 if test ${ac_cv_prog_CXX+y}
6408 then :
6409 printf %s "(cached) " >&6
6410 else case e in #(
6411 e) if test -n "$CXX"; then
6412 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6413 else
6414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415 for as_dir in $PATH
6416 do
6417 IFS=$as_save_IFS
6418 case $as_dir in #(((
6419 '') as_dir=./ ;;
6420 */) ;;
6421 *) as_dir=$as_dir/ ;;
6422 esac
6423 for ac_exec_ext in '' $ac_executable_extensions; do
6424 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6425 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6427 break 2
6428 fi
6429 done
6430 done
6431 IFS=$as_save_IFS
6432
6433 fi ;;
6434 esac
6435 fi
6436 CXX=$ac_cv_prog_CXX
6437 if test -n "$CXX"; then
6438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6439 printf "%s\n" "$CXX" >&6; }
6440 else
6441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6442 printf "%s\n" "no" >&6; }
6443 fi
6444
6445
6446 test -n "$CXX" && break
6447 done
6448 fi
6449 if test -z "$CXX"; then
6450 ac_ct_CXX=$CXX
6451 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
6452 do
6453 # Extract the first word of "$ac_prog", so it can be a program name with args.
6454 set dummy $ac_prog; ac_word=$2
6455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6456 printf %s "checking for $ac_word... " >&6; }
6457 if test ${ac_cv_prog_ac_ct_CXX+y}
6458 then :
6459 printf %s "(cached) " >&6
6460 else case e in #(
6461 e) if test -n "$ac_ct_CXX"; then
6462 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6463 else
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465 for as_dir in $PATH
6466 do
6467 IFS=$as_save_IFS
6468 case $as_dir in #(((
6469 '') as_dir=./ ;;
6470 */) ;;
6471 *) as_dir=$as_dir/ ;;
6472 esac
6473 for ac_exec_ext in '' $ac_executable_extensions; do
6474 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6475 ac_cv_prog_ac_ct_CXX="$ac_prog"
6476 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6477 break 2
6478 fi
6479 done
6480 done
6481 IFS=$as_save_IFS
6482
6483 fi ;;
6484 esac
6485 fi
6486 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6487 if test -n "$ac_ct_CXX"; then
6488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6489 printf "%s\n" "$ac_ct_CXX" >&6; }
6490 else
6491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492 printf "%s\n" "no" >&6; }
6493 fi
6494
6495
6496 test -n "$ac_ct_CXX" && break
6497 done
6498
6499 if test "x$ac_ct_CXX" = x; then
6500 CXX="g++"
6501 else
6502 case $cross_compiling:$ac_tool_warned in
6503 yes:)
6504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6505 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6506 ac_tool_warned=yes ;;
6507 esac
6508 CXX=$ac_ct_CXX
6509 fi
6510 fi
6511
6512 fi
6513 fi
6514 # Provide some information about the compiler.
6515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6516 set X $ac_compile
6517 ac_compiler=$2
6518 for ac_option in --version -v -V -qversion; do
6519 { { ac_try="$ac_compiler $ac_option >&5"
6520 case "(($ac_try" in
6521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6522 *) ac_try_echo=$ac_try;;
6523 esac
6524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6525 printf "%s\n" "$ac_try_echo"; } >&5
6526 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6527 ac_status=$?
6528 if test -s conftest.err; then
6529 sed '10a\
6530 ... rest of stderr output deleted ...
6531 10q' conftest.err >conftest.er1
6532 cat conftest.er1 >&5
6533 fi
6534 rm -f conftest.er1 conftest.err
6535 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6536 test $ac_status = 0; }
6537 done
6538
6539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
6540 printf %s "checking whether the compiler supports GNU C++... " >&6; }
6541 if test ${ac_cv_cxx_compiler_gnu+y}
6542 then :
6543 printf %s "(cached) " >&6
6544 else case e in #(
6545 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6546 /* end confdefs.h. */
6547
6548 int
6549 main (void)
6550 {
6551 #ifndef __GNUC__
6552 choke me
6553 #endif
6554
6555 ;
6556 return 0;
6557 }
6558 _ACEOF
6559 if ac_fn_cxx_try_compile "$LINENO"
6560 then :
6561 ac_compiler_gnu=yes
6562 else case e in #(
6563 e) ac_compiler_gnu=no ;;
6564 esac
6565 fi
6566 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6567 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6568 ;;
6569 esac
6570 fi
6571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6572 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
6573 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6574
6575 if test $ac_compiler_gnu = yes; then
6576 GXX=yes
6577 else
6578 GXX=
6579 fi
6580 ac_test_CXXFLAGS=${CXXFLAGS+y}
6581 ac_save_CXXFLAGS=$CXXFLAGS
6582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6583 printf %s "checking whether $CXX accepts -g... " >&6; }
6584 if test ${ac_cv_prog_cxx_g+y}
6585 then :
6586 printf %s "(cached) " >&6
6587 else case e in #(
6588 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6589 ac_cxx_werror_flag=yes
6590 ac_cv_prog_cxx_g=no
6591 CXXFLAGS="-g"
6592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6593 /* end confdefs.h. */
6594
6595 int
6596 main (void)
6597 {
6598
6599 ;
6600 return 0;
6601 }
6602 _ACEOF
6603 if ac_fn_cxx_try_compile "$LINENO"
6604 then :
6605 ac_cv_prog_cxx_g=yes
6606 else case e in #(
6607 e) CXXFLAGS=""
6608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6609 /* end confdefs.h. */
6610
6611 int
6612 main (void)
6613 {
6614
6615 ;
6616 return 0;
6617 }
6618 _ACEOF
6619 if ac_fn_cxx_try_compile "$LINENO"
6620 then :
6621
6622 else case e in #(
6623 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6624 CXXFLAGS="-g"
6625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6626 /* end confdefs.h. */
6627
6628 int
6629 main (void)
6630 {
6631
6632 ;
6633 return 0;
6634 }
6635 _ACEOF
6636 if ac_fn_cxx_try_compile "$LINENO"
6637 then :
6638 ac_cv_prog_cxx_g=yes
6639 fi
6640 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6641 esac
6642 fi
6643 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6644 esac
6645 fi
6646 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6647 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
6648 esac
6649 fi
6650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6651 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
6652 if test $ac_test_CXXFLAGS; then
6653 CXXFLAGS=$ac_save_CXXFLAGS
6654 elif test $ac_cv_prog_cxx_g = yes; then
6655 if test "$GXX" = yes; then
6656 CXXFLAGS="-g -O2"
6657 else
6658 CXXFLAGS="-g"
6659 fi
6660 else
6661 if test "$GXX" = yes; then
6662 CXXFLAGS="-O2"
6663 else
6664 CXXFLAGS=
6665 fi
6666 fi
6667 ac_prog_cxx_stdcxx=no
6668 if test x$ac_prog_cxx_stdcxx = xno
6669 then :
6670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
6671 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
6672 if test ${ac_cv_prog_cxx_cxx11+y}
6673 then :
6674 printf %s "(cached) " >&6
6675 else case e in #(
6676 e) ac_cv_prog_cxx_cxx11=no
6677 ac_save_CXX=$CXX
6678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6679 /* end confdefs.h. */
6680 $ac_cxx_conftest_cxx11_program
6681 _ACEOF
6682 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
6683 do
6684 CXX="$ac_save_CXX $ac_arg"
6685 if ac_fn_cxx_try_compile "$LINENO"
6686 then :
6687 ac_cv_prog_cxx_cxx11=$ac_arg
6688 fi
6689 rm -f core conftest.err conftest.$ac_objext conftest.beam
6690 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
6691 done
6692 rm -f conftest.$ac_ext
6693 CXX=$ac_save_CXX ;;
6694 esac
6695 fi
6696
6697 if test "x$ac_cv_prog_cxx_cxx11" = xno
6698 then :
6699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6700 printf "%s\n" "unsupported" >&6; }
6701 else case e in #(
6702 e) if test "x$ac_cv_prog_cxx_cxx11" = x
6703 then :
6704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6705 printf "%s\n" "none needed" >&6; }
6706 else case e in #(
6707 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
6708 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
6709 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
6710 esac
6711 fi
6712 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
6713 ac_prog_cxx_stdcxx=cxx11 ;;
6714 esac
6715 fi
6716 fi
6717 if test x$ac_prog_cxx_stdcxx = xno
6718 then :
6719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
6720 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
6721 if test ${ac_cv_prog_cxx_cxx98+y}
6722 then :
6723 printf %s "(cached) " >&6
6724 else case e in #(
6725 e) ac_cv_prog_cxx_cxx98=no
6726 ac_save_CXX=$CXX
6727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6728 /* end confdefs.h. */
6729 $ac_cxx_conftest_cxx98_program
6730 _ACEOF
6731 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
6732 do
6733 CXX="$ac_save_CXX $ac_arg"
6734 if ac_fn_cxx_try_compile "$LINENO"
6735 then :
6736 ac_cv_prog_cxx_cxx98=$ac_arg
6737 fi
6738 rm -f core conftest.err conftest.$ac_objext conftest.beam
6739 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
6740 done
6741 rm -f conftest.$ac_ext
6742 CXX=$ac_save_CXX ;;
6743 esac
6744 fi
6745
6746 if test "x$ac_cv_prog_cxx_cxx98" = xno
6747 then :
6748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6749 printf "%s\n" "unsupported" >&6; }
6750 else case e in #(
6751 e) if test "x$ac_cv_prog_cxx_cxx98" = x
6752 then :
6753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6754 printf "%s\n" "none needed" >&6; }
6755 else case e in #(
6756 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
6757 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
6758 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
6759 esac
6760 fi
6761 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
6762 ac_prog_cxx_stdcxx=cxx98 ;;
6763 esac
6764 fi
6765 fi
6766
6767 ac_ext=cpp
6768 ac_cpp='$CXXCPP $CPPFLAGS'
6769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6772
6773 depcc="$CXX" am_compiler_list=
6774
6775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6776 printf %s "checking dependency style of $depcc... " >&6; }
6777 if test ${am_cv_CXX_dependencies_compiler_type+y}
6778 then :
6779 printf %s "(cached) " >&6
6780 else case e in #(
6781 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6782 # We make a subdir and do the tests there. Otherwise we can end up
6783 # making bogus files that we don't know about and never remove. For
6784 # instance it was reported that on HP-UX the gcc test will end up
6785 # making a dummy file named 'D' -- because '-MD' means "put the output
6786 # in D".
6787 rm -rf conftest.dir
6788 mkdir conftest.dir
6789 # Copy depcomp to subdir because otherwise we won't find it if we're
6790 # using a relative directory.
6791 cp "$am_depcomp" conftest.dir
6792 cd conftest.dir
6793 # We will build objects and dependencies in a subdirectory because
6794 # it helps to detect inapplicable dependency modes. For instance
6795 # both Tru64's cc and ICC support -MD to output dependencies as a
6796 # side effect of compilation, but ICC will put the dependencies in
6797 # the current directory while Tru64 will put them in the object
6798 # directory.
6799 mkdir sub
6800
6801 am_cv_CXX_dependencies_compiler_type=none
6802 if test "$am_compiler_list" = ""; then
6803 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6804 fi
6805 am__universal=false
6806 case " $depcc " in #(
6807 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6808 esac
6809
6810 for depmode in $am_compiler_list; do
6811 # Setup a source with many dependencies, because some compilers
6812 # like to wrap large dependency lists on column 80 (with \), and
6813 # we should not choose a depcomp mode which is confused by this.
6814 #
6815 # We need to recreate these files for each test, as the compiler may
6816 # overwrite some of them when testing with obscure command lines.
6817 # This happens at least with the AIX C compiler.
6818 : > sub/conftest.c
6819 for i in 1 2 3 4 5 6; do
6820 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6821 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6822 # Solaris 10 /bin/sh.
6823 echo '/* dummy */' > sub/conftst$i.h
6824 done
6825 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6826
6827 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6828 # mode. It turns out that the SunPro C++ compiler does not properly
6829 # handle '-M -o', and we need to detect this. Also, some Intel
6830 # versions had trouble with output in subdirs.
6831 am__obj=sub/conftest.${OBJEXT-o}
6832 am__minus_obj="-o $am__obj"
6833 case $depmode in
6834 gcc)
6835 # This depmode causes a compiler race in universal mode.
6836 test "$am__universal" = false || continue
6837 ;;
6838 nosideeffect)
6839 # After this tag, mechanisms are not by side-effect, so they'll
6840 # only be used when explicitly requested.
6841 if test "x$enable_dependency_tracking" = xyes; then
6842 continue
6843 else
6844 break
6845 fi
6846 ;;
6847 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6848 # This compiler won't grok '-c -o', but also, the minuso test has
6849 # not run yet. These depmodes are late enough in the game, and
6850 # so weak that their functioning should not be impacted.
6851 am__obj=conftest.${OBJEXT-o}
6852 am__minus_obj=
6853 ;;
6854 none) break ;;
6855 esac
6856 if depmode=$depmode \
6857 source=sub/conftest.c object=$am__obj \
6858 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6859 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6860 >/dev/null 2>conftest.err &&
6861 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6862 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6863 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6864 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6865 # icc doesn't choke on unknown options, it will just issue warnings
6866 # or remarks (even with -Werror). So we grep stderr for any message
6867 # that says an option was ignored or not supported.
6868 # When given -MP, icc 7.0 and 7.1 complain thus:
6869 # icc: Command line warning: ignoring option '-M'; no argument required
6870 # The diagnosis changed in icc 8.0:
6871 # icc: Command line remark: option '-MP' not supported
6872 if (grep 'ignoring option' conftest.err ||
6873 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6874 am_cv_CXX_dependencies_compiler_type=$depmode
6875 break
6876 fi
6877 fi
6878 done
6879
6880 cd ..
6881 rm -rf conftest.dir
6882 else
6883 am_cv_CXX_dependencies_compiler_type=none
6884 fi
6885 ;;
6886 esac
6887 fi
6888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6889 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
6890 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6891
6892 if
6893 test "x$enable_dependency_tracking" != xno \
6894 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6895 am__fastdepCXX_TRUE=
6896 am__fastdepCXX_FALSE='#'
6897 else
6898 am__fastdepCXX_TRUE='#'
6899 am__fastdepCXX_FALSE=
6900 fi
6901
6902
6903
6904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6905 printf %s "checking whether ln -s works... " >&6; }
6906 LN_S=$as_ln_s
6907 if test "$LN_S" = "ln -s"; then
6908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6909 printf "%s\n" "yes" >&6; }
6910 else
6911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6912 printf "%s\n" "no, using $LN_S" >&6; }
6913 fi
6914
6915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6916 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6917 set x ${MAKE-make}
6918 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6919 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
6920 then :
6921 printf %s "(cached) " >&6
6922 else case e in #(
6923 e) cat >conftest.make <<\_ACEOF
6924 SHELL = /bin/sh
6925 all:
6926 @echo '@@@%%%=$(MAKE)=@@@%%%'
6927 _ACEOF
6928 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6929 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6930 *@@@%%%=?*=@@@%%%*)
6931 eval ac_cv_prog_make_${ac_make}_set=yes;;
6932 *)
6933 eval ac_cv_prog_make_${ac_make}_set=no;;
6934 esac
6935 rm -f conftest.make ;;
6936 esac
6937 fi
6938 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6940 printf "%s\n" "yes" >&6; }
6941 SET_MAKE=
6942 else
6943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6944 printf "%s\n" "no" >&6; }
6945 SET_MAKE="MAKE=${MAKE-make}"
6946 fi
6947
6948 case `pwd` in
6949 *\ * | *\ *)
6950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6951 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6952 esac
6953
6954
6955
6956 macro_version='2.5.4'
6957 macro_revision='2.5.4'
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972 ltmain=$ac_aux_dir/ltmain.sh
6973
6974
6975
6976 # Make sure we can run config.sub.
6977 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6978 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6979
6980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6981 printf %s "checking build system type... " >&6; }
6982 if test ${ac_cv_build+y}
6983 then :
6984 printf %s "(cached) " >&6
6985 else case e in #(
6986 e) ac_build_alias=$build_alias
6987 test "x$ac_build_alias" = x &&
6988 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6989 test "x$ac_build_alias" = x &&
6990 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6991 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6992 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6993 ;;
6994 esac
6995 fi
6996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6997 printf "%s\n" "$ac_cv_build" >&6; }
6998 case $ac_cv_build in
6999 *-*-*) ;;
7000 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
7001 esac
7002 build=$ac_cv_build
7003 ac_save_IFS=$IFS; IFS='-'
7004 set x $ac_cv_build
7005 shift
7006 build_cpu=$1
7007 build_vendor=$2
7008 shift; shift
7009 # Remember, the first character of IFS is used to create $*,
7010 # except with old shells:
7011 build_os=$*
7012 IFS=$ac_save_IFS
7013 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7014
7015
7016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7017 printf %s "checking host system type... " >&6; }
7018 if test ${ac_cv_host+y}
7019 then :
7020 printf %s "(cached) " >&6
7021 else case e in #(
7022 e) if test "x$host_alias" = x; then
7023 ac_cv_host=$ac_cv_build
7024 else
7025 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
7026 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
7027 fi
7028 ;;
7029 esac
7030 fi
7031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7032 printf "%s\n" "$ac_cv_host" >&6; }
7033 case $ac_cv_host in
7034 *-*-*) ;;
7035 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7036 esac
7037 host=$ac_cv_host
7038 ac_save_IFS=$IFS; IFS='-'
7039 set x $ac_cv_host
7040 shift
7041 host_cpu=$1
7042 host_vendor=$2
7043 shift; shift
7044 # Remember, the first character of IFS is used to create $*,
7045 # except with old shells:
7046 host_os=$*
7047 IFS=$ac_save_IFS
7048 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7049
7050
7051 # Backslashify metacharacters that are still active within
7052 # double-quoted strings.
7053 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7054
7055 # Same as above, but do not quote variable references.
7056 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7057
7058 # Sed substitution to delay expansion of an escaped shell variable in a
7059 # double_quote_subst'ed string.
7060 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7061
7062 # Sed substitution to delay expansion of an escaped single quote.
7063 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7064
7065 # Sed substitution to avoid accidental globbing in evaled expressions
7066 no_glob_subst='s/\*/\\\*/g'
7067
7068 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7069 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7070 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7071
7072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7073 printf %s "checking how to print strings... " >&6; }
7074 # Test print first, because it will be a builtin if present.
7075 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7076 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7077 ECHO='print -r --'
7078 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7079 ECHO='printf %s\n'
7080 else
7081 # Use this function as a fallback that always works.
7082 func_fallback_echo ()
7083 {
7084 eval 'cat <<_LTECHO_EOF
7085 $1
7086 _LTECHO_EOF'
7087 }
7088 ECHO='func_fallback_echo'
7089 fi
7090
7091 # func_echo_all arg...
7092 # Invoke $ECHO with all args, space-separated.
7093 func_echo_all ()
7094 {
7095 $ECHO ""
7096 }
7097
7098 case $ECHO in
7099 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7100 printf "%s\n" "printf" >&6; } ;;
7101 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7102 printf "%s\n" "print -r" >&6; } ;;
7103 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7104 printf "%s\n" "cat" >&6; } ;;
7105 esac
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7121 printf %s "checking for a sed that does not truncate output... " >&6; }
7122 if test ${ac_cv_path_SED+y}
7123 then :
7124 printf %s "(cached) " >&6
7125 else case e in #(
7126 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7127 for ac_i in 1 2 3 4 5 6 7; do
7128 ac_script="$ac_script$as_nl$ac_script"
7129 done
7130 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7131 { ac_script=; unset ac_script;}
7132 if test -z "$SED"; then
7133 ac_path_SED_found=false
7134 # Loop through the user's path and test for each of PROGNAME-LIST
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 for as_dir in $PATH
7137 do
7138 IFS=$as_save_IFS
7139 case $as_dir in #(((
7140 '') as_dir=./ ;;
7141 */) ;;
7142 *) as_dir=$as_dir/ ;;
7143 esac
7144 for ac_prog in sed gsed
7145 do
7146 for ac_exec_ext in '' $ac_executable_extensions; do
7147 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
7148 as_fn_executable_p "$ac_path_SED" || continue
7149 # Check for GNU ac_path_SED and select it if it is found.
7150 # Check for GNU $ac_path_SED
7151 case `"$ac_path_SED" --version 2>&1` in #(
7152 *GNU*)
7153 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7154 #(
7155 *)
7156 ac_count=0
7157 printf %s 0123456789 >"conftest.in"
7158 while :
7159 do
7160 cat "conftest.in" "conftest.in" >"conftest.tmp"
7161 mv "conftest.tmp" "conftest.in"
7162 cp "conftest.in" "conftest.nl"
7163 printf "%s\n" '' >> "conftest.nl"
7164 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7165 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7166 as_fn_arith $ac_count + 1 && ac_count=$as_val
7167 if test $ac_count -gt ${ac_path_SED_max-0}; then
7168 # Best one so far, save it but keep looking for a better one
7169 ac_cv_path_SED="$ac_path_SED"
7170 ac_path_SED_max=$ac_count
7171 fi
7172 # 10*(2^10) chars as input seems more than enough
7173 test $ac_count -gt 10 && break
7174 done
7175 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7176 esac
7177
7178 $ac_path_SED_found && break 3
7179 done
7180 done
7181 done
7182 IFS=$as_save_IFS
7183 if test -z "$ac_cv_path_SED"; then
7184 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7185 fi
7186 else
7187 ac_cv_path_SED=$SED
7188 fi
7189 ;;
7190 esac
7191 fi
7192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7193 printf "%s\n" "$ac_cv_path_SED" >&6; }
7194 SED="$ac_cv_path_SED"
7195 rm -f conftest.sed
7196
7197 test -z "$SED" && SED=sed
7198 Xsed="$SED -e 1s/^X//"
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7211 printf %s "checking for grep that handles long lines and -e... " >&6; }
7212 if test ${ac_cv_path_GREP+y}
7213 then :
7214 printf %s "(cached) " >&6
7215 else case e in #(
7216 e) if test -z "$GREP"; then
7217 ac_path_GREP_found=false
7218 # Loop through the user's path and test for each of PROGNAME-LIST
7219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7221 do
7222 IFS=$as_save_IFS
7223 case $as_dir in #(((
7224 '') as_dir=./ ;;
7225 */) ;;
7226 *) as_dir=$as_dir/ ;;
7227 esac
7228 for ac_prog in grep ggrep
7229 do
7230 for ac_exec_ext in '' $ac_executable_extensions; do
7231 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7232 as_fn_executable_p "$ac_path_GREP" || continue
7233 # Check for GNU ac_path_GREP and select it if it is found.
7234 # Check for GNU $ac_path_GREP
7235 case `"$ac_path_GREP" --version 2>&1` in #(
7236 *GNU*)
7237 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7238 #(
7239 *)
7240 ac_count=0
7241 printf %s 0123456789 >"conftest.in"
7242 while :
7243 do
7244 cat "conftest.in" "conftest.in" >"conftest.tmp"
7245 mv "conftest.tmp" "conftest.in"
7246 cp "conftest.in" "conftest.nl"
7247 printf "%s\n" 'GREP' >> "conftest.nl"
7248 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7249 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7250 as_fn_arith $ac_count + 1 && ac_count=$as_val
7251 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7252 # Best one so far, save it but keep looking for a better one
7253 ac_cv_path_GREP="$ac_path_GREP"
7254 ac_path_GREP_max=$ac_count
7255 fi
7256 # 10*(2^10) chars as input seems more than enough
7257 test $ac_count -gt 10 && break
7258 done
7259 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7260 esac
7261
7262 $ac_path_GREP_found && break 3
7263 done
7264 done
7265 done
7266 IFS=$as_save_IFS
7267 if test -z "$ac_cv_path_GREP"; then
7268 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7269 fi
7270 else
7271 ac_cv_path_GREP=$GREP
7272 fi
7273 ;;
7274 esac
7275 fi
7276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7277 printf "%s\n" "$ac_cv_path_GREP" >&6; }
7278 GREP="$ac_cv_path_GREP"
7279
7280
7281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7282 printf %s "checking for egrep... " >&6; }
7283 if test ${ac_cv_path_EGREP+y}
7284 then :
7285 printf %s "(cached) " >&6
7286 else case e in #(
7287 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7288 then ac_cv_path_EGREP="$GREP -E"
7289 else
7290 if test -z "$EGREP"; then
7291 ac_path_EGREP_found=false
7292 # Loop through the user's path and test for each of PROGNAME-LIST
7293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7295 do
7296 IFS=$as_save_IFS
7297 case $as_dir in #(((
7298 '') as_dir=./ ;;
7299 */) ;;
7300 *) as_dir=$as_dir/ ;;
7301 esac
7302 for ac_prog in egrep
7303 do
7304 for ac_exec_ext in '' $ac_executable_extensions; do
7305 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7306 as_fn_executable_p "$ac_path_EGREP" || continue
7307 # Check for GNU ac_path_EGREP and select it if it is found.
7308 # Check for GNU $ac_path_EGREP
7309 case `"$ac_path_EGREP" --version 2>&1` in #(
7310 *GNU*)
7311 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7312 #(
7313 *)
7314 ac_count=0
7315 printf %s 0123456789 >"conftest.in"
7316 while :
7317 do
7318 cat "conftest.in" "conftest.in" >"conftest.tmp"
7319 mv "conftest.tmp" "conftest.in"
7320 cp "conftest.in" "conftest.nl"
7321 printf "%s\n" 'EGREP' >> "conftest.nl"
7322 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7323 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7324 as_fn_arith $ac_count + 1 && ac_count=$as_val
7325 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7326 # Best one so far, save it but keep looking for a better one
7327 ac_cv_path_EGREP="$ac_path_EGREP"
7328 ac_path_EGREP_max=$ac_count
7329 fi
7330 # 10*(2^10) chars as input seems more than enough
7331 test $ac_count -gt 10 && break
7332 done
7333 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7334 esac
7335
7336 $ac_path_EGREP_found && break 3
7337 done
7338 done
7339 done
7340 IFS=$as_save_IFS
7341 if test -z "$ac_cv_path_EGREP"; then
7342 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7343 fi
7344 else
7345 ac_cv_path_EGREP=$EGREP
7346 fi
7347
7348 fi ;;
7349 esac
7350 fi
7351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7352 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7353 EGREP="$ac_cv_path_EGREP"
7354
7355 EGREP_TRADITIONAL=$EGREP
7356 ac_cv_path_EGREP_TRADITIONAL=$EGREP
7357
7358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7359 printf %s "checking for fgrep... " >&6; }
7360 if test ${ac_cv_path_FGREP+y}
7361 then :
7362 printf %s "(cached) " >&6
7363 else case e in #(
7364 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7365 then ac_cv_path_FGREP="$GREP -F"
7366 else
7367 if test -z "$FGREP"; then
7368 ac_path_FGREP_found=false
7369 # Loop through the user's path and test for each of PROGNAME-LIST
7370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7372 do
7373 IFS=$as_save_IFS
7374 case $as_dir in #(((
7375 '') as_dir=./ ;;
7376 */) ;;
7377 *) as_dir=$as_dir/ ;;
7378 esac
7379 for ac_prog in fgrep
7380 do
7381 for ac_exec_ext in '' $ac_executable_extensions; do
7382 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
7383 as_fn_executable_p "$ac_path_FGREP" || continue
7384 # Check for GNU ac_path_FGREP and select it if it is found.
7385 # Check for GNU $ac_path_FGREP
7386 case `"$ac_path_FGREP" --version 2>&1` in #(
7387 *GNU*)
7388 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7389 #(
7390 *)
7391 ac_count=0
7392 printf %s 0123456789 >"conftest.in"
7393 while :
7394 do
7395 cat "conftest.in" "conftest.in" >"conftest.tmp"
7396 mv "conftest.tmp" "conftest.in"
7397 cp "conftest.in" "conftest.nl"
7398 printf "%s\n" 'FGREP' >> "conftest.nl"
7399 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7400 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7401 as_fn_arith $ac_count + 1 && ac_count=$as_val
7402 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7403 # Best one so far, save it but keep looking for a better one
7404 ac_cv_path_FGREP="$ac_path_FGREP"
7405 ac_path_FGREP_max=$ac_count
7406 fi
7407 # 10*(2^10) chars as input seems more than enough
7408 test $ac_count -gt 10 && break
7409 done
7410 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7411 esac
7412
7413 $ac_path_FGREP_found && break 3
7414 done
7415 done
7416 done
7417 IFS=$as_save_IFS
7418 if test -z "$ac_cv_path_FGREP"; then
7419 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7420 fi
7421 else
7422 ac_cv_path_FGREP=$FGREP
7423 fi
7424
7425 fi ;;
7426 esac
7427 fi
7428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7429 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
7430 FGREP="$ac_cv_path_FGREP"
7431
7432
7433 test -z "$GREP" && GREP=grep
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453 # Check whether --with-gnu-ld was given.
7454 if test ${with_gnu_ld+y}
7455 then :
7456 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7457 else case e in #(
7458 e) with_gnu_ld=no ;;
7459 esac
7460 fi
7461
7462 ac_prog=ld
7463 if test yes = "$GCC"; then
7464 # Check if gcc -print-prog-name=ld gives a path.
7465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7466 printf %s "checking for ld used by $CC... " >&6; }
7467 case $host in
7468 *-*-mingw* | *-*-windows*)
7469 # gcc leaves a trailing carriage return, which upsets mingw
7470 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7471 *)
7472 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7473 esac
7474 case $ac_prog in
7475 # Accept absolute paths.
7476 [\\/]* | ?:[\\/]*)
7477 re_direlt='/[^/][^/]*/\.\./'
7478 # Canonicalize the pathname of ld
7479 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7480 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7481 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7482 done
7483 test -z "$LD" && LD=$ac_prog
7484 ;;
7485 "")
7486 # If it fails, then pretend we aren't using GCC.
7487 ac_prog=ld
7488 ;;
7489 *)
7490 # If it is relative, then search for the first ld in PATH.
7491 with_gnu_ld=unknown
7492 ;;
7493 esac
7494 elif test yes = "$with_gnu_ld"; then
7495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7496 printf %s "checking for GNU ld... " >&6; }
7497 else
7498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7499 printf %s "checking for non-GNU ld... " >&6; }
7500 fi
7501 if test ${lt_cv_path_LD+y}
7502 then :
7503 printf %s "(cached) " >&6
7504 else case e in #(
7505 e) if test -z "$LD"; then
7506 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7507 for ac_dir in $PATH; do
7508 IFS=$lt_save_ifs
7509 test -z "$ac_dir" && ac_dir=.
7510 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7511 lt_cv_path_LD=$ac_dir/$ac_prog
7512 # Check to see if the program is GNU ld. I'd rather use --version,
7513 # but apparently some variants of GNU ld only accept -v.
7514 # Break only if it was the GNU/non-GNU ld that we prefer.
7515 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7516 *GNU* | *'with BFD'*)
7517 test no != "$with_gnu_ld" && break
7518 ;;
7519 *)
7520 test yes != "$with_gnu_ld" && break
7521 ;;
7522 esac
7523 fi
7524 done
7525 IFS=$lt_save_ifs
7526 else
7527 lt_cv_path_LD=$LD # Let the user override the test with a path.
7528 fi ;;
7529 esac
7530 fi
7531
7532 LD=$lt_cv_path_LD
7533 if test -n "$LD"; then
7534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7535 printf "%s\n" "$LD" >&6; }
7536 else
7537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7538 printf "%s\n" "no" >&6; }
7539 fi
7540 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7542 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
7543 if test ${lt_cv_prog_gnu_ld+y}
7544 then :
7545 printf %s "(cached) " >&6
7546 else case e in #(
7547 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
7548 case `$LD -v 2>&1 </dev/null` in
7549 *GNU* | *'with BFD'*)
7550 lt_cv_prog_gnu_ld=yes
7551 ;;
7552 *)
7553 lt_cv_prog_gnu_ld=no
7554 ;;
7555 esac ;;
7556 esac
7557 fi
7558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7559 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
7560 with_gnu_ld=$lt_cv_prog_gnu_ld
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7571 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7572 if test ${lt_cv_path_NM+y}
7573 then :
7574 printf %s "(cached) " >&6
7575 else case e in #(
7576 e) if test -n "$NM"; then
7577 # Let the user override the test.
7578 lt_cv_path_NM=$NM
7579 else
7580 lt_nm_to_check=${ac_tool_prefix}nm
7581 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7582 lt_nm_to_check="$lt_nm_to_check nm"
7583 fi
7584 for lt_tmp_nm in $lt_nm_to_check; do
7585 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7586 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7587 IFS=$lt_save_ifs
7588 test -z "$ac_dir" && ac_dir=.
7589 tmp_nm=$ac_dir/$lt_tmp_nm
7590 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7591 # Check to see if the nm accepts a BSD-compat flag.
7592 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7593 # nm: unknown option "B" ignored
7594 # Tru64's nm complains that /dev/null is an invalid object file
7595 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7596 case $build_os in
7597 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
7598 *) lt_bad_file=/dev/null ;;
7599 esac
7600 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
7601 *$lt_bad_file* | *'Invalid file or object type'*)
7602 lt_cv_path_NM="$tmp_nm -B"
7603 break 2
7604 ;;
7605 *)
7606 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
7607 */dev/null*)
7608 lt_cv_path_NM="$tmp_nm -p"
7609 break 2
7610 ;;
7611 *)
7612 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7613 continue # so that we can try to find one that supports BSD flags
7614 ;;
7615 esac
7616 ;;
7617 esac
7618 fi
7619 done
7620 IFS=$lt_save_ifs
7621 done
7622 : ${lt_cv_path_NM=no}
7623 fi ;;
7624 esac
7625 fi
7626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7627 printf "%s\n" "$lt_cv_path_NM" >&6; }
7628 if test no != "$lt_cv_path_NM"; then
7629 NM=$lt_cv_path_NM
7630 else
7631 # Didn't find any BSD compatible name lister, look for dumpbin.
7632 if test -n "$DUMPBIN"; then :
7633 # Let the user override the test.
7634 else
7635 if test -n "$ac_tool_prefix"; then
7636 for ac_prog in dumpbin "link -dump"
7637 do
7638 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7639 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7641 printf %s "checking for $ac_word... " >&6; }
7642 if test ${ac_cv_prog_DUMPBIN+y}
7643 then :
7644 printf %s "(cached) " >&6
7645 else case e in #(
7646 e) if test -n "$DUMPBIN"; then
7647 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7648 else
7649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7650 for as_dir in $PATH
7651 do
7652 IFS=$as_save_IFS
7653 case $as_dir in #(((
7654 '') as_dir=./ ;;
7655 */) ;;
7656 *) as_dir=$as_dir/ ;;
7657 esac
7658 for ac_exec_ext in '' $ac_executable_extensions; do
7659 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7660 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7662 break 2
7663 fi
7664 done
7665 done
7666 IFS=$as_save_IFS
7667
7668 fi ;;
7669 esac
7670 fi
7671 DUMPBIN=$ac_cv_prog_DUMPBIN
7672 if test -n "$DUMPBIN"; then
7673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7674 printf "%s\n" "$DUMPBIN" >&6; }
7675 else
7676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7677 printf "%s\n" "no" >&6; }
7678 fi
7679
7680
7681 test -n "$DUMPBIN" && break
7682 done
7683 fi
7684 if test -z "$DUMPBIN"; then
7685 ac_ct_DUMPBIN=$DUMPBIN
7686 for ac_prog in dumpbin "link -dump"
7687 do
7688 # Extract the first word of "$ac_prog", so it can be a program name with args.
7689 set dummy $ac_prog; ac_word=$2
7690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7691 printf %s "checking for $ac_word... " >&6; }
7692 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
7693 then :
7694 printf %s "(cached) " >&6
7695 else case e in #(
7696 e) if test -n "$ac_ct_DUMPBIN"; then
7697 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7698 else
7699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7700 for as_dir in $PATH
7701 do
7702 IFS=$as_save_IFS
7703 case $as_dir in #(((
7704 '') as_dir=./ ;;
7705 */) ;;
7706 *) as_dir=$as_dir/ ;;
7707 esac
7708 for ac_exec_ext in '' $ac_executable_extensions; do
7709 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7710 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7711 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7712 break 2
7713 fi
7714 done
7715 done
7716 IFS=$as_save_IFS
7717
7718 fi ;;
7719 esac
7720 fi
7721 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7722 if test -n "$ac_ct_DUMPBIN"; then
7723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7724 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
7725 else
7726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7727 printf "%s\n" "no" >&6; }
7728 fi
7729
7730
7731 test -n "$ac_ct_DUMPBIN" && break
7732 done
7733
7734 if test "x$ac_ct_DUMPBIN" = x; then
7735 DUMPBIN=":"
7736 else
7737 case $cross_compiling:$ac_tool_warned in
7738 yes:)
7739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7740 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7741 ac_tool_warned=yes ;;
7742 esac
7743 DUMPBIN=$ac_ct_DUMPBIN
7744 fi
7745 fi
7746
7747 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
7748 *COFF*)
7749 DUMPBIN="$DUMPBIN -symbols -headers"
7750 ;;
7751 *)
7752 DUMPBIN=:
7753 ;;
7754 esac
7755 fi
7756
7757 if test : != "$DUMPBIN"; then
7758 NM=$DUMPBIN
7759 fi
7760 fi
7761 test -z "$NM" && NM=nm
7762
7763
7764
7765
7766
7767
7768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7769 printf %s "checking the name lister ($NM) interface... " >&6; }
7770 if test ${lt_cv_nm_interface+y}
7771 then :
7772 printf %s "(cached) " >&6
7773 else case e in #(
7774 e) lt_cv_nm_interface="BSD nm"
7775 echo "int some_variable = 0;" > conftest.$ac_ext
7776 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7777 (eval "$ac_compile" 2>conftest.err)
7778 cat conftest.err >&5
7779 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7780 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7781 cat conftest.err >&5
7782 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7783 cat conftest.out >&5
7784 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7785 lt_cv_nm_interface="MS dumpbin"
7786 fi
7787 rm -f conftest* ;;
7788 esac
7789 fi
7790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7791 printf "%s\n" "$lt_cv_nm_interface" >&6; }
7792
7793 # find the maximum length of command line arguments
7794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7795 printf %s "checking the maximum length of command line arguments... " >&6; }
7796 if test ${lt_cv_sys_max_cmd_len+y}
7797 then :
7798 printf %s "(cached) " >&6
7799 else case e in #(
7800 e) i=0
7801 teststring=ABCD
7802
7803 case $build_os in
7804 msdosdjgpp*)
7805 # On DJGPP, this test can blow up pretty badly due to problems in libc
7806 # (any single argument exceeding 2000 bytes causes a buffer overrun
7807 # during glob expansion). Even if it were fixed, the result of this
7808 # check would be larger than it should be.
7809 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7810 ;;
7811
7812 gnu* | ironclad*)
7813 # Under GNU Hurd and Ironclad, this test is not required because there
7814 # is no limit to the length of command line arguments.
7815 # Libtool will interpret -1 as no limit whatsoever
7816 lt_cv_sys_max_cmd_len=-1;
7817 ;;
7818
7819 cygwin* | mingw* | windows* | cegcc*)
7820 # On Win9x/ME, this test blows up -- it succeeds, but takes
7821 # about 5 minutes as the teststring grows exponentially.
7822 # Worse, since 9x/ME are not pre-emptively multitasking,
7823 # you end up with a "frozen" computer, even though with patience
7824 # the test eventually succeeds (with a max line length of 256k).
7825 # Instead, let's just punt: use the minimum linelength reported by
7826 # all of the supported platforms: 8192 (on NT/2K/XP).
7827 lt_cv_sys_max_cmd_len=8192;
7828 ;;
7829
7830 mint*)
7831 # On MiNT this can take a long time and run out of memory.
7832 lt_cv_sys_max_cmd_len=8192;
7833 ;;
7834
7835 amigaos*)
7836 # On AmigaOS with pdksh, this test takes hours, literally.
7837 # So we just punt and use a minimum line length of 8192.
7838 lt_cv_sys_max_cmd_len=8192;
7839 ;;
7840
7841 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
7842 # This has been around since 386BSD, at least. Likely further.
7843 if test -x /sbin/sysctl; then
7844 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7845 elif test -x /usr/sbin/sysctl; then
7846 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7847 else
7848 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7849 fi
7850 # And add a safety zone
7851 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7852 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7853 ;;
7854
7855 interix*)
7856 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7857 lt_cv_sys_max_cmd_len=196608
7858 ;;
7859
7860 os2*)
7861 # The test takes a long time on OS/2.
7862 lt_cv_sys_max_cmd_len=8192
7863 ;;
7864
7865 osf*)
7866 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7867 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7868 # nice to cause kernel panics so lets avoid the loop below.
7869 # First set a reasonable default.
7870 lt_cv_sys_max_cmd_len=16384
7871 #
7872 if test -x /sbin/sysconfig; then
7873 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7874 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7875 esac
7876 fi
7877 ;;
7878 sco3.2v5*)
7879 lt_cv_sys_max_cmd_len=102400
7880 ;;
7881 sysv5* | sco5v6* | sysv4.2uw2*)
7882 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7883 if test -n "$kargmax"; then
7884 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
7885 else
7886 lt_cv_sys_max_cmd_len=32768
7887 fi
7888 ;;
7889 *)
7890 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7891 if test -n "$lt_cv_sys_max_cmd_len" && \
7892 test undefined != "$lt_cv_sys_max_cmd_len"; then
7893 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7894 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7895 else
7896 # Make teststring a little bigger before we do anything with it.
7897 # a 1K string should be a reasonable start.
7898 for i in 1 2 3 4 5 6 7 8; do
7899 teststring=$teststring$teststring
7900 done
7901 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7902 # If test is not a shell built-in, we'll probably end up computing a
7903 # maximum length that is only half of the actual maximum length, but
7904 # we can't tell.
7905 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7906 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7907 test 17 != "$i" # 1/2 MB should be enough
7908 do
7909 i=`expr $i + 1`
7910 teststring=$teststring$teststring
7911 done
7912 # Only check the string length outside the loop.
7913 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7914 teststring=
7915 # Add a significant safety factor because C++ compilers can tack on
7916 # massive amounts of additional arguments before passing them to the
7917 # linker. It appears as though 1/2 is a usable value.
7918 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7919 fi
7920 ;;
7921 esac
7922 ;;
7923 esac
7924 fi
7925
7926 if test -n "$lt_cv_sys_max_cmd_len"; then
7927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7928 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
7929 else
7930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
7931 printf "%s\n" "none" >&6; }
7932 fi
7933 max_cmd_len=$lt_cv_sys_max_cmd_len
7934
7935
7936
7937
7938
7939
7940 : ${CP="cp -f"}
7941 : ${MV="mv -f"}
7942 : ${RM="rm -f"}
7943
7944 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7945 lt_unset=unset
7946 else
7947 lt_unset=false
7948 fi
7949
7950
7951
7952
7953
7954 # test EBCDIC or ASCII
7955 case `echo X|tr X '\101'` in
7956 A) # ASCII based system
7957 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7958 lt_SP2NL='tr \040 \012'
7959 lt_NL2SP='tr \015\012 \040\040'
7960 ;;
7961 *) # EBCDIC based system
7962 lt_SP2NL='tr \100 \n'
7963 lt_NL2SP='tr \r\n \100\100'
7964 ;;
7965 esac
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7976 printf %s "checking how to convert $build file names to $host format... " >&6; }
7977 if test ${lt_cv_to_host_file_cmd+y}
7978 then :
7979 printf %s "(cached) " >&6
7980 else case e in #(
7981 e) case $host in
7982 *-*-mingw* )
7983 case $build in
7984 *-*-mingw* | *-*-windows* ) # actually msys
7985 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7986 ;;
7987 *-*-cygwin* )
7988 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7989 ;;
7990 * ) # otherwise, assume *nix
7991 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7992 ;;
7993 esac
7994 ;;
7995 *-*-cygwin* )
7996 case $build in
7997 *-*-mingw* | *-*-windows* ) # actually msys
7998 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7999 ;;
8000 *-*-cygwin* )
8001 lt_cv_to_host_file_cmd=func_convert_file_noop
8002 ;;
8003 * ) # otherwise, assume *nix
8004 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8005 ;;
8006 esac
8007 ;;
8008 * ) # unhandled hosts (and "normal" native builds)
8009 lt_cv_to_host_file_cmd=func_convert_file_noop
8010 ;;
8011 esac
8012 ;;
8013 esac
8014 fi
8015
8016 to_host_file_cmd=$lt_cv_to_host_file_cmd
8017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8018 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
8019
8020
8021
8022
8023
8024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8025 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
8026 if test ${lt_cv_to_tool_file_cmd+y}
8027 then :
8028 printf %s "(cached) " >&6
8029 else case e in #(
8030 e) #assume ordinary cross tools, or native build.
8031 lt_cv_to_tool_file_cmd=func_convert_file_noop
8032 case $host in
8033 *-*-mingw* | *-*-windows* )
8034 case $build in
8035 *-*-mingw* | *-*-windows* ) # actually msys
8036 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8037 ;;
8038 esac
8039 ;;
8040 esac
8041 ;;
8042 esac
8043 fi
8044
8045 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8047 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
8048
8049
8050
8051
8052
8053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8054 printf %s "checking for $LD option to reload object files... " >&6; }
8055 if test ${lt_cv_ld_reload_flag+y}
8056 then :
8057 printf %s "(cached) " >&6
8058 else case e in #(
8059 e) lt_cv_ld_reload_flag='-r' ;;
8060 esac
8061 fi
8062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8063 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
8064 reload_flag=$lt_cv_ld_reload_flag
8065 case $reload_flag in
8066 "" | " "*) ;;
8067 *) reload_flag=" $reload_flag" ;;
8068 esac
8069 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8070 case $host_os in
8071 cygwin* | mingw* | windows* | pw32* | cegcc*)
8072 if test yes != "$GCC"; then
8073 reload_cmds=false
8074 fi
8075 ;;
8076 darwin*)
8077 if test yes = "$GCC"; then
8078 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8079 else
8080 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8081 fi
8082 ;;
8083 esac
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093 # Extract the first word of "file", so it can be a program name with args.
8094 set dummy file; ac_word=$2
8095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8096 printf %s "checking for $ac_word... " >&6; }
8097 if test ${ac_cv_prog_FILECMD+y}
8098 then :
8099 printf %s "(cached) " >&6
8100 else case e in #(
8101 e) if test -n "$FILECMD"; then
8102 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
8103 else
8104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8105 for as_dir in $PATH
8106 do
8107 IFS=$as_save_IFS
8108 case $as_dir in #(((
8109 '') as_dir=./ ;;
8110 */) ;;
8111 *) as_dir=$as_dir/ ;;
8112 esac
8113 for ac_exec_ext in '' $ac_executable_extensions; do
8114 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8115 ac_cv_prog_FILECMD="file"
8116 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8117 break 2
8118 fi
8119 done
8120 done
8121 IFS=$as_save_IFS
8122
8123 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
8124 fi ;;
8125 esac
8126 fi
8127 FILECMD=$ac_cv_prog_FILECMD
8128 if test -n "$FILECMD"; then
8129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
8130 printf "%s\n" "$FILECMD" >&6; }
8131 else
8132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8133 printf "%s\n" "no" >&6; }
8134 fi
8135
8136
8137
8138
8139
8140
8141
8142
8143 if test -n "$ac_tool_prefix"; then
8144 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8145 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8147 printf %s "checking for $ac_word... " >&6; }
8148 if test ${ac_cv_prog_OBJDUMP+y}
8149 then :
8150 printf %s "(cached) " >&6
8151 else case e in #(
8152 e) if test -n "$OBJDUMP"; then
8153 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8154 else
8155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8156 for as_dir in $PATH
8157 do
8158 IFS=$as_save_IFS
8159 case $as_dir in #(((
8160 '') as_dir=./ ;;
8161 */) ;;
8162 *) as_dir=$as_dir/ ;;
8163 esac
8164 for ac_exec_ext in '' $ac_executable_extensions; do
8165 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8166 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8167 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8168 break 2
8169 fi
8170 done
8171 done
8172 IFS=$as_save_IFS
8173
8174 fi ;;
8175 esac
8176 fi
8177 OBJDUMP=$ac_cv_prog_OBJDUMP
8178 if test -n "$OBJDUMP"; then
8179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8180 printf "%s\n" "$OBJDUMP" >&6; }
8181 else
8182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8183 printf "%s\n" "no" >&6; }
8184 fi
8185
8186
8187 fi
8188 if test -z "$ac_cv_prog_OBJDUMP"; then
8189 ac_ct_OBJDUMP=$OBJDUMP
8190 # Extract the first word of "objdump", so it can be a program name with args.
8191 set dummy objdump; 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_ac_ct_OBJDUMP+y}
8195 then :
8196 printf %s "(cached) " >&6
8197 else case e in #(
8198 e) if test -n "$ac_ct_OBJDUMP"; then
8199 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # 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_ac_ct_OBJDUMP="objdump"
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 esac
8222 fi
8223 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8224 if test -n "$ac_ct_OBJDUMP"; then
8225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8226 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
8227 else
8228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8229 printf "%s\n" "no" >&6; }
8230 fi
8231
8232 if test "x$ac_ct_OBJDUMP" = x; then
8233 OBJDUMP="false"
8234 else
8235 case $cross_compiling:$ac_tool_warned in
8236 yes:)
8237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8238 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8239 ac_tool_warned=yes ;;
8240 esac
8241 OBJDUMP=$ac_ct_OBJDUMP
8242 fi
8243 else
8244 OBJDUMP="$ac_cv_prog_OBJDUMP"
8245 fi
8246
8247 test -z "$OBJDUMP" && OBJDUMP=objdump
8248
8249
8250
8251
8252
8253
8254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8255 printf %s "checking how to recognize dependent libraries... " >&6; }
8256 if test ${lt_cv_deplibs_check_method+y}
8257 then :
8258 printf %s "(cached) " >&6
8259 else case e in #(
8260 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
8261 lt_cv_file_magic_test_file=
8262 lt_cv_deplibs_check_method='unknown'
8263 # Need to set the preceding variable on all platforms that support
8264 # interlibrary dependencies.
8265 # 'none' -- dependencies not supported.
8266 # 'unknown' -- same as none, but documents that we really don't know.
8267 # 'pass_all' -- all dependencies passed with no checks.
8268 # 'file_magic [[regex]]' -- check by looking for files in library path
8269 # that responds to the $file_magic_cmd with a given extended regex.
8270 # If you have 'file' or equivalent on your system and you're not sure
8271 # whether 'pass_all' will *always* work, you probably want this one.
8272
8273 case $host_os in
8274 aix[4-9]*)
8275 lt_cv_deplibs_check_method=pass_all
8276 ;;
8277
8278 beos*)
8279 lt_cv_deplibs_check_method=pass_all
8280 ;;
8281
8282 bsdi[45]*)
8283 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8284 lt_cv_file_magic_cmd='$FILECMD -L'
8285 lt_cv_file_magic_test_file=/shlib/libc.so
8286 ;;
8287
8288 cygwin*)
8289 # func_win32_libid is a shell function defined in ltmain.sh
8290 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8291 lt_cv_file_magic_cmd='func_win32_libid'
8292 ;;
8293
8294 mingw* | windows* | pw32*)
8295 # Base MSYS/MinGW do not provide the 'file' command needed by
8296 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8297 # unless we find 'file', for example because we are cross-compiling.
8298 if ( file / ) >/dev/null 2>&1; then
8299 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8300 lt_cv_file_magic_cmd='func_win32_libid'
8301 else
8302 # Keep this pattern in sync with the one in func_win32_libid.
8303 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
8304 lt_cv_file_magic_cmd='$OBJDUMP -f'
8305 fi
8306 ;;
8307
8308 cegcc*)
8309 # use the weaker test based on 'objdump'. See mingw*.
8310 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8311 lt_cv_file_magic_cmd='$OBJDUMP -f'
8312 ;;
8313
8314 darwin* | rhapsody*)
8315 lt_cv_deplibs_check_method=pass_all
8316 ;;
8317
8318 freebsd* | dragonfly* | midnightbsd*)
8319 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8320 case $host_cpu in
8321 i*86 )
8322 # Not sure whether the presence of OpenBSD here was a mistake.
8323 # Let's accept both of them until this is cleared up.
8324 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8325 lt_cv_file_magic_cmd=$FILECMD
8326 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8327 ;;
8328 esac
8329 else
8330 lt_cv_deplibs_check_method=pass_all
8331 fi
8332 ;;
8333
8334 haiku*)
8335 lt_cv_deplibs_check_method=pass_all
8336 ;;
8337
8338 hpux10.20* | hpux11*)
8339 lt_cv_file_magic_cmd=$FILECMD
8340 case $host_cpu in
8341 ia64*)
8342 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8343 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8344 ;;
8345 hppa*64*)
8346 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]'
8347 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8348 ;;
8349 *)
8350 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8351 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8352 ;;
8353 esac
8354 ;;
8355
8356 interix[3-9]*)
8357 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8358 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8359 ;;
8360
8361 irix5* | irix6* | nonstopux*)
8362 case $LD in
8363 *-32|*"-32 ") libmagic=32-bit;;
8364 *-n32|*"-n32 ") libmagic=N32;;
8365 *-64|*"-64 ") libmagic=64-bit;;
8366 *) libmagic=never-match;;
8367 esac
8368 lt_cv_deplibs_check_method=pass_all
8369 ;;
8370
8371 # This must be glibc/ELF.
8372 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8373 lt_cv_deplibs_check_method=pass_all
8374 ;;
8375
8376 *-mlibc)
8377 lt_cv_deplibs_check_method=pass_all
8378 ;;
8379
8380 netbsd* | netbsdelf*-gnu)
8381 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8382 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8383 else
8384 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8385 fi
8386 ;;
8387
8388 newos6*)
8389 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8390 lt_cv_file_magic_cmd=$FILECMD
8391 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8392 ;;
8393
8394 *nto* | *qnx*)
8395 lt_cv_deplibs_check_method=pass_all
8396 ;;
8397
8398 openbsd*)
8399 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8400 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8401 else
8402 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8403 fi
8404 ;;
8405
8406 osf3* | osf4* | osf5*)
8407 lt_cv_deplibs_check_method=pass_all
8408 ;;
8409
8410 rdos*)
8411 lt_cv_deplibs_check_method=pass_all
8412 ;;
8413
8414 serenity*)
8415 lt_cv_deplibs_check_method=pass_all
8416 ;;
8417
8418 solaris*)
8419 lt_cv_deplibs_check_method=pass_all
8420 ;;
8421
8422 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8423 lt_cv_deplibs_check_method=pass_all
8424 ;;
8425
8426 sysv4 | sysv4.3*)
8427 case $host_vendor in
8428 motorola)
8429 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]'
8430 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8431 ;;
8432 ncr)
8433 lt_cv_deplibs_check_method=pass_all
8434 ;;
8435 sequent)
8436 lt_cv_file_magic_cmd='/bin/file'
8437 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8438 ;;
8439 sni)
8440 lt_cv_file_magic_cmd='/bin/file'
8441 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8442 lt_cv_file_magic_test_file=/lib/libc.so
8443 ;;
8444 siemens)
8445 lt_cv_deplibs_check_method=pass_all
8446 ;;
8447 pc)
8448 lt_cv_deplibs_check_method=pass_all
8449 ;;
8450 esac
8451 ;;
8452
8453 tpf*)
8454 lt_cv_deplibs_check_method=pass_all
8455 ;;
8456 os2*)
8457 lt_cv_deplibs_check_method=pass_all
8458 ;;
8459 esac
8460 ;;
8461 esac
8462 fi
8463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8464 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
8465
8466 file_magic_glob=
8467 want_nocaseglob=no
8468 if test "$build" = "$host"; then
8469 case $host_os in
8470 mingw* | windows* | pw32*)
8471 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8472 want_nocaseglob=yes
8473 else
8474 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8475 fi
8476 ;;
8477 esac
8478 fi
8479
8480 file_magic_cmd=$lt_cv_file_magic_cmd
8481 deplibs_check_method=$lt_cv_deplibs_check_method
8482 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505 if test -n "$ac_tool_prefix"; then
8506 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8507 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8509 printf %s "checking for $ac_word... " >&6; }
8510 if test ${ac_cv_prog_DLLTOOL+y}
8511 then :
8512 printf %s "(cached) " >&6
8513 else case e in #(
8514 e) if test -n "$DLLTOOL"; then
8515 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8516 else
8517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8518 for as_dir in $PATH
8519 do
8520 IFS=$as_save_IFS
8521 case $as_dir in #(((
8522 '') as_dir=./ ;;
8523 */) ;;
8524 *) as_dir=$as_dir/ ;;
8525 esac
8526 for ac_exec_ext in '' $ac_executable_extensions; do
8527 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8528 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8529 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8530 break 2
8531 fi
8532 done
8533 done
8534 IFS=$as_save_IFS
8535
8536 fi ;;
8537 esac
8538 fi
8539 DLLTOOL=$ac_cv_prog_DLLTOOL
8540 if test -n "$DLLTOOL"; then
8541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8542 printf "%s\n" "$DLLTOOL" >&6; }
8543 else
8544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8545 printf "%s\n" "no" >&6; }
8546 fi
8547
8548
8549 fi
8550 if test -z "$ac_cv_prog_DLLTOOL"; then
8551 ac_ct_DLLTOOL=$DLLTOOL
8552 # Extract the first word of "dlltool", so it can be a program name with args.
8553 set dummy dlltool; ac_word=$2
8554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8555 printf %s "checking for $ac_word... " >&6; }
8556 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
8557 then :
8558 printf %s "(cached) " >&6
8559 else case e in #(
8560 e) if test -n "$ac_ct_DLLTOOL"; then
8561 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8562 else
8563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8564 for as_dir in $PATH
8565 do
8566 IFS=$as_save_IFS
8567 case $as_dir in #(((
8568 '') as_dir=./ ;;
8569 */) ;;
8570 *) as_dir=$as_dir/ ;;
8571 esac
8572 for ac_exec_ext in '' $ac_executable_extensions; do
8573 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8574 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8575 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8576 break 2
8577 fi
8578 done
8579 done
8580 IFS=$as_save_IFS
8581
8582 fi ;;
8583 esac
8584 fi
8585 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8586 if test -n "$ac_ct_DLLTOOL"; then
8587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8588 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
8589 else
8590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591 printf "%s\n" "no" >&6; }
8592 fi
8593
8594 if test "x$ac_ct_DLLTOOL" = x; then
8595 DLLTOOL="false"
8596 else
8597 case $cross_compiling:$ac_tool_warned in
8598 yes:)
8599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8600 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8601 ac_tool_warned=yes ;;
8602 esac
8603 DLLTOOL=$ac_ct_DLLTOOL
8604 fi
8605 else
8606 DLLTOOL="$ac_cv_prog_DLLTOOL"
8607 fi
8608
8609 test -z "$DLLTOOL" && DLLTOOL=dlltool
8610
8611
8612
8613
8614
8615
8616
8617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8618 printf %s "checking how to associate runtime and link libraries... " >&6; }
8619 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
8620 then :
8621 printf %s "(cached) " >&6
8622 else case e in #(
8623 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
8624
8625 case $host_os in
8626 cygwin* | mingw* | windows* | pw32* | cegcc*)
8627 # two different shell functions defined in ltmain.sh;
8628 # decide which one to use based on capabilities of $DLLTOOL
8629 case `$DLLTOOL --help 2>&1` in
8630 *--identify-strict*)
8631 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8632 ;;
8633 *)
8634 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8635 ;;
8636 esac
8637 ;;
8638 *)
8639 # fallback: assume linklib IS sharedlib
8640 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8641 ;;
8642 esac
8643 ;;
8644 esac
8645 fi
8646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8647 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8648 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8649 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8650
8651
8652
8653
8654
8655
8656
8657
8658 if test -n "$ac_tool_prefix"; then
8659 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8660 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8662 printf %s "checking for $ac_word... " >&6; }
8663 if test ${ac_cv_prog_RANLIB+y}
8664 then :
8665 printf %s "(cached) " >&6
8666 else case e in #(
8667 e) if test -n "$RANLIB"; then
8668 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8669 else
8670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8671 for as_dir in $PATH
8672 do
8673 IFS=$as_save_IFS
8674 case $as_dir in #(((
8675 '') as_dir=./ ;;
8676 */) ;;
8677 *) as_dir=$as_dir/ ;;
8678 esac
8679 for ac_exec_ext in '' $ac_executable_extensions; do
8680 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8681 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8683 break 2
8684 fi
8685 done
8686 done
8687 IFS=$as_save_IFS
8688
8689 fi ;;
8690 esac
8691 fi
8692 RANLIB=$ac_cv_prog_RANLIB
8693 if test -n "$RANLIB"; then
8694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8695 printf "%s\n" "$RANLIB" >&6; }
8696 else
8697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8698 printf "%s\n" "no" >&6; }
8699 fi
8700
8701
8702 fi
8703 if test -z "$ac_cv_prog_RANLIB"; then
8704 ac_ct_RANLIB=$RANLIB
8705 # Extract the first word of "ranlib", so it can be a program name with args.
8706 set dummy ranlib; ac_word=$2
8707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8708 printf %s "checking for $ac_word... " >&6; }
8709 if test ${ac_cv_prog_ac_ct_RANLIB+y}
8710 then :
8711 printf %s "(cached) " >&6
8712 else case e in #(
8713 e) if test -n "$ac_ct_RANLIB"; then
8714 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8715 else
8716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8717 for as_dir in $PATH
8718 do
8719 IFS=$as_save_IFS
8720 case $as_dir in #(((
8721 '') as_dir=./ ;;
8722 */) ;;
8723 *) as_dir=$as_dir/ ;;
8724 esac
8725 for ac_exec_ext in '' $ac_executable_extensions; do
8726 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8727 ac_cv_prog_ac_ct_RANLIB="ranlib"
8728 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8729 break 2
8730 fi
8731 done
8732 done
8733 IFS=$as_save_IFS
8734
8735 fi ;;
8736 esac
8737 fi
8738 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8739 if test -n "$ac_ct_RANLIB"; then
8740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8741 printf "%s\n" "$ac_ct_RANLIB" >&6; }
8742 else
8743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8744 printf "%s\n" "no" >&6; }
8745 fi
8746
8747 if test "x$ac_ct_RANLIB" = x; then
8748 RANLIB=":"
8749 else
8750 case $cross_compiling:$ac_tool_warned in
8751 yes:)
8752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8753 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8754 ac_tool_warned=yes ;;
8755 esac
8756 RANLIB=$ac_ct_RANLIB
8757 fi
8758 else
8759 RANLIB="$ac_cv_prog_RANLIB"
8760 fi
8761
8762 if test -n "$ac_tool_prefix"; then
8763 for ac_prog in ar
8764 do
8765 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8766 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8768 printf %s "checking for $ac_word... " >&6; }
8769 if test ${ac_cv_prog_AR+y}
8770 then :
8771 printf %s "(cached) " >&6
8772 else case e in #(
8773 e) if test -n "$AR"; then
8774 ac_cv_prog_AR="$AR" # Let the user override the test.
8775 else
8776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8777 for as_dir in $PATH
8778 do
8779 IFS=$as_save_IFS
8780 case $as_dir in #(((
8781 '') as_dir=./ ;;
8782 */) ;;
8783 *) as_dir=$as_dir/ ;;
8784 esac
8785 for ac_exec_ext in '' $ac_executable_extensions; do
8786 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8787 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8788 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8789 break 2
8790 fi
8791 done
8792 done
8793 IFS=$as_save_IFS
8794
8795 fi ;;
8796 esac
8797 fi
8798 AR=$ac_cv_prog_AR
8799 if test -n "$AR"; then
8800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8801 printf "%s\n" "$AR" >&6; }
8802 else
8803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8804 printf "%s\n" "no" >&6; }
8805 fi
8806
8807
8808 test -n "$AR" && break
8809 done
8810 fi
8811 if test -z "$AR"; then
8812 ac_ct_AR=$AR
8813 for ac_prog in ar
8814 do
8815 # Extract the first word of "$ac_prog", so it can be a program name with args.
8816 set dummy $ac_prog; ac_word=$2
8817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8818 printf %s "checking for $ac_word... " >&6; }
8819 if test ${ac_cv_prog_ac_ct_AR+y}
8820 then :
8821 printf %s "(cached) " >&6
8822 else case e in #(
8823 e) if test -n "$ac_ct_AR"; then
8824 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8825 else
8826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8827 for as_dir in $PATH
8828 do
8829 IFS=$as_save_IFS
8830 case $as_dir in #(((
8831 '') as_dir=./ ;;
8832 */) ;;
8833 *) as_dir=$as_dir/ ;;
8834 esac
8835 for ac_exec_ext in '' $ac_executable_extensions; do
8836 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8837 ac_cv_prog_ac_ct_AR="$ac_prog"
8838 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8839 break 2
8840 fi
8841 done
8842 done
8843 IFS=$as_save_IFS
8844
8845 fi ;;
8846 esac
8847 fi
8848 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8849 if test -n "$ac_ct_AR"; then
8850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8851 printf "%s\n" "$ac_ct_AR" >&6; }
8852 else
8853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8854 printf "%s\n" "no" >&6; }
8855 fi
8856
8857
8858 test -n "$ac_ct_AR" && break
8859 done
8860
8861 if test "x$ac_ct_AR" = x; then
8862 AR="false"
8863 else
8864 case $cross_compiling:$ac_tool_warned in
8865 yes:)
8866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8867 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8868 ac_tool_warned=yes ;;
8869 esac
8870 AR=$ac_ct_AR
8871 fi
8872 fi
8873
8874 : ${AR=ar}
8875
8876
8877
8878
8879
8880
8881 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
8882 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
8883 # higher priority because that's what people were doing historically (setting
8884 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
8885 # variable obsoleted/removed.
8886
8887 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
8888 lt_ar_flags=$AR_FLAGS
8889
8890
8891
8892
8893
8894
8895 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
8896 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
8897
8898
8899
8900
8901
8902
8903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8904 printf %s "checking for archiver @FILE support... " >&6; }
8905 if test ${lt_cv_ar_at_file+y}
8906 then :
8907 printf %s "(cached) " >&6
8908 else case e in #(
8909 e) lt_cv_ar_at_file=no
8910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8911 /* end confdefs.h. */
8912
8913 int
8914 main (void)
8915 {
8916
8917 ;
8918 return 0;
8919 }
8920 _ACEOF
8921 if ac_fn_cxx_try_compile "$LINENO"
8922 then :
8923 echo conftest.$ac_objext > conftest.lst
8924 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8926 (eval $lt_ar_try) 2>&5
8927 ac_status=$?
8928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8929 test $ac_status = 0; }
8930 if test 0 -eq "$ac_status"; then
8931 # Ensure the archiver fails upon bogus file names.
8932 rm -f conftest.$ac_objext libconftest.a
8933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8934 (eval $lt_ar_try) 2>&5
8935 ac_status=$?
8936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8937 test $ac_status = 0; }
8938 if test 0 -ne "$ac_status"; then
8939 lt_cv_ar_at_file=@
8940 fi
8941 fi
8942 rm -f conftest.* libconftest.a
8943
8944 fi
8945 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8946 ;;
8947 esac
8948 fi
8949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8950 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
8951
8952 if test no = "$lt_cv_ar_at_file"; then
8953 archiver_list_spec=
8954 else
8955 archiver_list_spec=$lt_cv_ar_at_file
8956 fi
8957
8958
8959
8960
8961
8962
8963
8964 if test -n "$ac_tool_prefix"; then
8965 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8966 set dummy ${ac_tool_prefix}strip; ac_word=$2
8967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8968 printf %s "checking for $ac_word... " >&6; }
8969 if test ${ac_cv_prog_STRIP+y}
8970 then :
8971 printf %s "(cached) " >&6
8972 else case e in #(
8973 e) if test -n "$STRIP"; then
8974 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8975 else
8976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8977 for as_dir in $PATH
8978 do
8979 IFS=$as_save_IFS
8980 case $as_dir in #(((
8981 '') as_dir=./ ;;
8982 */) ;;
8983 *) as_dir=$as_dir/ ;;
8984 esac
8985 for ac_exec_ext in '' $ac_executable_extensions; do
8986 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8987 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8988 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8989 break 2
8990 fi
8991 done
8992 done
8993 IFS=$as_save_IFS
8994
8995 fi ;;
8996 esac
8997 fi
8998 STRIP=$ac_cv_prog_STRIP
8999 if test -n "$STRIP"; then
9000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9001 printf "%s\n" "$STRIP" >&6; }
9002 else
9003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9004 printf "%s\n" "no" >&6; }
9005 fi
9006
9007
9008 fi
9009 if test -z "$ac_cv_prog_STRIP"; then
9010 ac_ct_STRIP=$STRIP
9011 # Extract the first word of "strip", so it can be a program name with args.
9012 set dummy strip; ac_word=$2
9013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9014 printf %s "checking for $ac_word... " >&6; }
9015 if test ${ac_cv_prog_ac_ct_STRIP+y}
9016 then :
9017 printf %s "(cached) " >&6
9018 else case e in #(
9019 e) if test -n "$ac_ct_STRIP"; then
9020 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9021 else
9022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9023 for as_dir in $PATH
9024 do
9025 IFS=$as_save_IFS
9026 case $as_dir in #(((
9027 '') as_dir=./ ;;
9028 */) ;;
9029 *) as_dir=$as_dir/ ;;
9030 esac
9031 for ac_exec_ext in '' $ac_executable_extensions; do
9032 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9033 ac_cv_prog_ac_ct_STRIP="strip"
9034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9035 break 2
9036 fi
9037 done
9038 done
9039 IFS=$as_save_IFS
9040
9041 fi ;;
9042 esac
9043 fi
9044 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9045 if test -n "$ac_ct_STRIP"; then
9046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9047 printf "%s\n" "$ac_ct_STRIP" >&6; }
9048 else
9049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9050 printf "%s\n" "no" >&6; }
9051 fi
9052
9053 if test "x$ac_ct_STRIP" = x; then
9054 STRIP=":"
9055 else
9056 case $cross_compiling:$ac_tool_warned in
9057 yes:)
9058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9059 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9060 ac_tool_warned=yes ;;
9061 esac
9062 STRIP=$ac_ct_STRIP
9063 fi
9064 else
9065 STRIP="$ac_cv_prog_STRIP"
9066 fi
9067
9068 test -z "$STRIP" && STRIP=:
9069
9070
9071
9072
9073
9074
9075
9076 test -z "$RANLIB" && RANLIB=:
9077
9078
9079
9080
9081
9082
9083 # Determine commands to create old-style static archives.
9084 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9085 old_postinstall_cmds='chmod 644 $oldlib'
9086 old_postuninstall_cmds=
9087
9088 if test -n "$RANLIB"; then
9089 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9090 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9091 fi
9092
9093 case $host_os in
9094 darwin*)
9095 lock_old_archive_extraction=yes ;;
9096 *)
9097 lock_old_archive_extraction=no ;;
9098 esac
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138 # If no C compiler was specified, use CC.
9139 LTCC=${LTCC-"$CC"}
9140
9141 # If no C compiler flags were specified, use CFLAGS.
9142 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9143
9144 # Allow CC to be a program name with arguments.
9145 compiler=$CC
9146
9147
9148 # Check for command to grab the raw symbol name followed by C symbol from nm.
9149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9150 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
9151 if test ${lt_cv_sys_global_symbol_pipe+y}
9152 then :
9153 printf %s "(cached) " >&6
9154 else case e in #(
9155 e)
9156 # These are sane defaults that work on at least a few old systems.
9157 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9158
9159 # Character class describing NM global symbol codes.
9160 symcode='[BCDEGRST]'
9161
9162 # Regexp to match symbols that can be accessed directly from C.
9163 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9164
9165 # Define system-specific variables.
9166 case $host_os in
9167 aix*)
9168 symcode='[BCDT]'
9169 ;;
9170 cygwin* | mingw* | windows* | pw32* | cegcc*)
9171 symcode='[ABCDGISTW]'
9172 ;;
9173 hpux*)
9174 if test ia64 = "$host_cpu"; then
9175 symcode='[ABCDEGRST]'
9176 fi
9177 ;;
9178 irix* | nonstopux*)
9179 symcode='[BCDEGRST]'
9180 ;;
9181 osf*)
9182 symcode='[BCDEGQRST]'
9183 ;;
9184 solaris*)
9185 symcode='[BCDRT]'
9186 ;;
9187 sco3.2v5*)
9188 symcode='[DT]'
9189 ;;
9190 sysv4.2uw2*)
9191 symcode='[DT]'
9192 ;;
9193 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9194 symcode='[ABDT]'
9195 ;;
9196 sysv4)
9197 symcode='[DFNSTU]'
9198 ;;
9199 esac
9200
9201 # If we're using GNU nm, then use its standard symbol codes.
9202 case `$NM -V 2>&1` in
9203 *GNU* | *'with BFD'*)
9204 symcode='[ABCDGIRSTW]' ;;
9205 esac
9206
9207 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9208 # Gets list of data symbols to import.
9209 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
9210 # Adjust the below global symbol transforms to fixup imported variables.
9211 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9212 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9213 lt_c_name_lib_hook="\
9214 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9215 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9216 else
9217 # Disable hooks by default.
9218 lt_cv_sys_global_symbol_to_import=
9219 lt_cdecl_hook=
9220 lt_c_name_hook=
9221 lt_c_name_lib_hook=
9222 fi
9223
9224 # Transform an extracted symbol line into a proper C declaration.
9225 # Some systems (esp. on ia64) link data and code symbols differently,
9226 # so use this general approach.
9227 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
9228 $lt_cdecl_hook\
9229 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9230 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9231
9232 # Transform an extracted symbol line into symbol name and symbol address
9233 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
9234 $lt_c_name_hook\
9235 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9236 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9237
9238 # Transform an extracted symbol line into symbol name with lib prefix and
9239 # symbol address.
9240 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
9241 $lt_c_name_lib_hook\
9242 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9243 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9244 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9245
9246 # Handle CRLF in mingw tool chain
9247 opt_cr=
9248 case $build_os in
9249 mingw* | windows*)
9250 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9251 ;;
9252 esac
9253
9254 # Try without a prefix underscore, then with it.
9255 for ac_symprfx in "" "_"; do
9256
9257 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9258 symxfrm="\\1 $ac_symprfx\\2 \\2"
9259
9260 # Write the raw and C identifiers.
9261 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9262 # Fake it for dumpbin and say T for any non-static function,
9263 # D for any global variable and I for any imported variable.
9264 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
9265 # which start with @ or ?.
9266 lt_cv_sys_global_symbol_pipe="$AWK '"\
9267 " {last_section=section; section=\$ 3};"\
9268 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9269 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9270 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9271 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9272 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9273 " \$ 0!~/External *\|/{next};"\
9274 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9275 " {if(hide[section]) next};"\
9276 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9277 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9278 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9279 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9280 " ' prfx=^$ac_symprfx"
9281 else
9282 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9283 fi
9284 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
9285
9286 # Check to see that the pipe works correctly.
9287 pipe_works=no
9288
9289 rm -f conftest*
9290 cat > conftest.$ac_ext <<_LT_EOF
9291 #ifdef __cplusplus
9292 extern "C" {
9293 #endif
9294 char nm_test_var;
9295 void nm_test_func(void);
9296 void nm_test_func(void){}
9297 #ifdef __cplusplus
9298 }
9299 #endif
9300 int main(void){nm_test_var='a';nm_test_func();return(0);}
9301 _LT_EOF
9302
9303 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9304 (eval $ac_compile) 2>&5
9305 ac_status=$?
9306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9307 test $ac_status = 0; }; then
9308 # Now try to grab the symbols.
9309 nlist=conftest.nm
9310 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
9311 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
9312 # Try sorting and uniquifying the output.
9313 if sort "$nlist" | uniq > "$nlist"T; then
9314 mv -f "$nlist"T "$nlist"
9315 else
9316 rm -f "$nlist"T
9317 fi
9318
9319 # Make sure that we snagged all the symbols we need.
9320 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9321 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9322 cat <<_LT_EOF > conftest.$ac_ext
9323 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9324 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9325 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9326 relocations are performed -- see ld's documentation on pseudo-relocs. */
9327 # define LT_DLSYM_CONST
9328 #elif defined __osf__
9329 /* This system does not cope well with relocations in const data. */
9330 # define LT_DLSYM_CONST
9331 #else
9332 # define LT_DLSYM_CONST const
9333 #endif
9334
9335 #ifdef __cplusplus
9336 extern "C" {
9337 #endif
9338
9339 _LT_EOF
9340 # Now generate the symbol file.
9341 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9342
9343 cat <<_LT_EOF >> conftest.$ac_ext
9344
9345 /* The mapping between symbol names and symbols. */
9346 LT_DLSYM_CONST struct {
9347 const char *name;
9348 void *address;
9349 }
9350 lt__PROGRAM__LTX_preloaded_symbols[] =
9351 {
9352 { "@PROGRAM@", (void *) 0 },
9353 _LT_EOF
9354 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9355 cat <<\_LT_EOF >> conftest.$ac_ext
9356 {0, (void *) 0}
9357 };
9358
9359 /* This works around a problem in FreeBSD linker */
9360 #ifdef FREEBSD_WORKAROUND
9361 static const void *lt_preloaded_setup() {
9362 return lt__PROGRAM__LTX_preloaded_symbols;
9363 }
9364 #endif
9365
9366 #ifdef __cplusplus
9367 }
9368 #endif
9369 _LT_EOF
9370 # Now try linking the two files.
9371 mv conftest.$ac_objext conftstm.$ac_objext
9372 lt_globsym_save_LIBS=$LIBS
9373 lt_globsym_save_CFLAGS=$CFLAGS
9374 LIBS=conftstm.$ac_objext
9375 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9377 (eval $ac_link) 2>&5
9378 ac_status=$?
9379 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9380 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9381 pipe_works=yes
9382 fi
9383 LIBS=$lt_globsym_save_LIBS
9384 CFLAGS=$lt_globsym_save_CFLAGS
9385 else
9386 echo "cannot find nm_test_func in $nlist" >&5
9387 fi
9388 else
9389 echo "cannot find nm_test_var in $nlist" >&5
9390 fi
9391 else
9392 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9393 fi
9394 else
9395 echo "$progname: failed program was:" >&5
9396 cat conftest.$ac_ext >&5
9397 fi
9398 rm -rf conftest* conftst*
9399
9400 # Do not use the global_symbol_pipe unless it works.
9401 if test yes = "$pipe_works"; then
9402 break
9403 else
9404 lt_cv_sys_global_symbol_pipe=
9405 fi
9406 done
9407 ;;
9408 esac
9409 fi
9410
9411 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9412 lt_cv_sys_global_symbol_to_cdecl=
9413 fi
9414 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9416 printf "%s\n" "failed" >&6; }
9417 else
9418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9419 printf "%s\n" "ok" >&6; }
9420 fi
9421
9422 # Response file support.
9423 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9424 nm_file_list_spec='@'
9425 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9426 nm_file_list_spec='@'
9427 fi
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9466 printf %s "checking for sysroot... " >&6; }
9467
9468 # Check whether --with-sysroot was given.
9469 if test ${with_sysroot+y}
9470 then :
9471 withval=$with_sysroot;
9472 else case e in #(
9473 e) with_sysroot=no ;;
9474 esac
9475 fi
9476
9477
9478 lt_sysroot=
9479 case $with_sysroot in #(
9480 yes)
9481 if test yes = "$GCC"; then
9482 # Trim trailing / since we'll always append absolute paths and we want
9483 # to avoid //, if only for less confusing output for the user.
9484 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
9485 fi
9486 ;; #(
9487 /*)
9488 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
9489 ;; #(
9490 no|'')
9491 ;; #(
9492 *)
9493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9494 printf "%s\n" "$with_sysroot" >&6; }
9495 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9496 ;;
9497 esac
9498
9499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9500 printf "%s\n" "${lt_sysroot:-no}" >&6; }
9501
9502
9503
9504
9505
9506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9507 printf %s "checking for a working dd... " >&6; }
9508 if test ${ac_cv_path_lt_DD+y}
9509 then :
9510 printf %s "(cached) " >&6
9511 else case e in #(
9512 e) printf 0123456789abcdef0123456789abcdef >conftest.i
9513 cat conftest.i conftest.i >conftest2.i
9514 : ${lt_DD:=$DD}
9515 if test -z "$lt_DD"; then
9516 ac_path_lt_DD_found=false
9517 # Loop through the user's path and test for each of PROGNAME-LIST
9518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9519 for as_dir in $PATH
9520 do
9521 IFS=$as_save_IFS
9522 case $as_dir in #(((
9523 '') as_dir=./ ;;
9524 */) ;;
9525 *) as_dir=$as_dir/ ;;
9526 esac
9527 for ac_prog in dd
9528 do
9529 for ac_exec_ext in '' $ac_executable_extensions; do
9530 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
9531 as_fn_executable_p "$ac_path_lt_DD" || continue
9532 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9533 cmp -s conftest.i conftest.out \
9534 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9535 fi
9536 $ac_path_lt_DD_found && break 3
9537 done
9538 done
9539 done
9540 IFS=$as_save_IFS
9541 if test -z "$ac_cv_path_lt_DD"; then
9542 :
9543 fi
9544 else
9545 ac_cv_path_lt_DD=$lt_DD
9546 fi
9547
9548 rm -f conftest.i conftest2.i conftest.out ;;
9549 esac
9550 fi
9551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9552 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
9553
9554
9555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9556 printf %s "checking how to truncate binary pipes... " >&6; }
9557 if test ${lt_cv_truncate_bin+y}
9558 then :
9559 printf %s "(cached) " >&6
9560 else case e in #(
9561 e) printf 0123456789abcdef0123456789abcdef >conftest.i
9562 cat conftest.i conftest.i >conftest2.i
9563 lt_cv_truncate_bin=
9564 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9565 cmp -s conftest.i conftest.out \
9566 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9567 fi
9568 rm -f conftest.i conftest2.i conftest.out
9569 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
9570 esac
9571 fi
9572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9573 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
9574
9575
9576
9577
9578
9579
9580
9581 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9582 func_cc_basename ()
9583 {
9584 for cc_temp in $*""; do
9585 case $cc_temp in
9586 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9587 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9588 \-*) ;;
9589 *) break;;
9590 esac
9591 done
9592 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9593 }
9594
9595 # Check whether --enable-libtool-lock was given.
9596 if test ${enable_libtool_lock+y}
9597 then :
9598 enableval=$enable_libtool_lock;
9599 fi
9600
9601 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9602
9603 # Some flags need to be propagated to the compiler or linker for good
9604 # libtool support.
9605 case $host in
9606 ia64-*-hpux*)
9607 # Find out what ABI is being produced by ac_compile, and set mode
9608 # options accordingly.
9609 echo 'int i;' > conftest.$ac_ext
9610 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9611 (eval $ac_compile) 2>&5
9612 ac_status=$?
9613 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9614 test $ac_status = 0; }; then
9615 case `$FILECMD conftest.$ac_objext` in
9616 *ELF-32*)
9617 HPUX_IA64_MODE=32
9618 ;;
9619 *ELF-64*)
9620 HPUX_IA64_MODE=64
9621 ;;
9622 esac
9623 fi
9624 rm -rf conftest*
9625 ;;
9626 *-*-irix6*)
9627 # Find out what ABI is being produced by ac_compile, and set linker
9628 # options accordingly.
9629 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9631 (eval $ac_compile) 2>&5
9632 ac_status=$?
9633 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9634 test $ac_status = 0; }; then
9635 if test yes = "$lt_cv_prog_gnu_ld"; then
9636 case `$FILECMD conftest.$ac_objext` in
9637 *32-bit*)
9638 LD="${LD-ld} -melf32bsmip"
9639 ;;
9640 *N32*)
9641 LD="${LD-ld} -melf32bmipn32"
9642 ;;
9643 *64-bit*)
9644 LD="${LD-ld} -melf64bmip"
9645 ;;
9646 esac
9647 else
9648 case `$FILECMD conftest.$ac_objext` in
9649 *32-bit*)
9650 LD="${LD-ld} -32"
9651 ;;
9652 *N32*)
9653 LD="${LD-ld} -n32"
9654 ;;
9655 *64-bit*)
9656 LD="${LD-ld} -64"
9657 ;;
9658 esac
9659 fi
9660 fi
9661 rm -rf conftest*
9662 ;;
9663
9664 mips64*-*linux*)
9665 # Find out what ABI is being produced by ac_compile, and set linker
9666 # options accordingly.
9667 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9669 (eval $ac_compile) 2>&5
9670 ac_status=$?
9671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9672 test $ac_status = 0; }; then
9673 emul=elf
9674 case `$FILECMD conftest.$ac_objext` in
9675 *32-bit*)
9676 emul="${emul}32"
9677 ;;
9678 *64-bit*)
9679 emul="${emul}64"
9680 ;;
9681 esac
9682 case `$FILECMD conftest.$ac_objext` in
9683 *MSB*)
9684 emul="${emul}btsmip"
9685 ;;
9686 *LSB*)
9687 emul="${emul}ltsmip"
9688 ;;
9689 esac
9690 case `$FILECMD conftest.$ac_objext` in
9691 *N32*)
9692 emul="${emul}n32"
9693 ;;
9694 esac
9695 LD="${LD-ld} -m $emul"
9696 fi
9697 rm -rf conftest*
9698 ;;
9699
9700 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9701 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
9702 # Find out what ABI is being produced by ac_compile, and set linker
9703 # options accordingly. Note that the listed cases only cover the
9704 # situations where additional linker options are needed (such as when
9705 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9706 # vice versa); the common cases where no linker options are needed do
9707 # not appear in the list.
9708 echo 'int i;' > conftest.$ac_ext
9709 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9710 (eval $ac_compile) 2>&5
9711 ac_status=$?
9712 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9713 test $ac_status = 0; }; then
9714 case `$FILECMD conftest.o` in
9715 *32-bit*)
9716 case $host in
9717 x86_64-*kfreebsd*-gnu)
9718 LD="${LD-ld} -m elf_i386_fbsd"
9719 ;;
9720 x86_64-*linux*|x86_64-gnu*)
9721 case `$FILECMD conftest.o` in
9722 *x86-64*)
9723 LD="${LD-ld} -m elf32_x86_64"
9724 ;;
9725 *)
9726 LD="${LD-ld} -m elf_i386"
9727 ;;
9728 esac
9729 ;;
9730 powerpc64le-*linux*)
9731 LD="${LD-ld} -m elf32lppclinux"
9732 ;;
9733 powerpc64-*linux*)
9734 LD="${LD-ld} -m elf32ppclinux"
9735 ;;
9736 s390x-*linux*)
9737 LD="${LD-ld} -m elf_s390"
9738 ;;
9739 sparc64-*linux*)
9740 LD="${LD-ld} -m elf32_sparc"
9741 ;;
9742 esac
9743 ;;
9744 *64-bit*)
9745 case $host in
9746 x86_64-*kfreebsd*-gnu)
9747 LD="${LD-ld} -m elf_x86_64_fbsd"
9748 ;;
9749 x86_64-*linux*|x86_64-gnu*)
9750 LD="${LD-ld} -m elf_x86_64"
9751 ;;
9752 powerpcle-*linux*)
9753 LD="${LD-ld} -m elf64lppc"
9754 ;;
9755 powerpc-*linux*)
9756 LD="${LD-ld} -m elf64ppc"
9757 ;;
9758 s390*-*linux*|s390*-*tpf*)
9759 LD="${LD-ld} -m elf64_s390"
9760 ;;
9761 sparc*-*linux*)
9762 LD="${LD-ld} -m elf64_sparc"
9763 ;;
9764 esac
9765 ;;
9766 esac
9767 fi
9768 rm -rf conftest*
9769 ;;
9770
9771 *-*-sco3.2v5*)
9772 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9773 SAVE_CFLAGS=$CFLAGS
9774 CFLAGS="$CFLAGS -belf"
9775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9776 printf %s "checking whether the C compiler needs -belf... " >&6; }
9777 if test ${lt_cv_cc_needs_belf+y}
9778 then :
9779 printf %s "(cached) " >&6
9780 else case e in #(
9781 e) ac_ext=c
9782 ac_cpp='$CPP $CPPFLAGS'
9783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9786
9787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9788 /* end confdefs.h. */
9789
9790 int
9791 main (void)
9792 {
9793
9794 ;
9795 return 0;
9796 }
9797 _ACEOF
9798 if ac_fn_c_try_link "$LINENO"
9799 then :
9800 lt_cv_cc_needs_belf=yes
9801 else case e in #(
9802 e) lt_cv_cc_needs_belf=no ;;
9803 esac
9804 fi
9805 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9806 conftest$ac_exeext conftest.$ac_ext
9807 ac_ext=c
9808 ac_cpp='$CPP $CPPFLAGS'
9809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9812 ;;
9813 esac
9814 fi
9815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9816 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
9817 if test yes != "$lt_cv_cc_needs_belf"; then
9818 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9819 CFLAGS=$SAVE_CFLAGS
9820 fi
9821 ;;
9822 *-*solaris*)
9823 # Find out what ABI is being produced by ac_compile, and set linker
9824 # options accordingly.
9825 echo 'int i;' > conftest.$ac_ext
9826 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9827 (eval $ac_compile) 2>&5
9828 ac_status=$?
9829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9830 test $ac_status = 0; }; then
9831 case `$FILECMD conftest.o` in
9832 *64-bit*)
9833 case $lt_cv_prog_gnu_ld in
9834 yes*)
9835 case $host in
9836 i?86-*-solaris*|x86_64-*-solaris*)
9837 LD="${LD-ld} -m elf_x86_64"
9838 ;;
9839 sparc*-*-solaris*)
9840 LD="${LD-ld} -m elf64_sparc"
9841 ;;
9842 esac
9843 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9844 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9845 LD=${LD-ld}_sol2
9846 fi
9847 ;;
9848 *)
9849 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9850 LD="${LD-ld} -64"
9851 fi
9852 ;;
9853 esac
9854 ;;
9855 esac
9856 fi
9857 rm -rf conftest*
9858 ;;
9859 esac
9860
9861 need_locks=$enable_libtool_lock
9862
9863 if test -n "$ac_tool_prefix"; then
9864 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9865 set dummy ${ac_tool_prefix}mt; ac_word=$2
9866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9867 printf %s "checking for $ac_word... " >&6; }
9868 if test ${ac_cv_prog_MANIFEST_TOOL+y}
9869 then :
9870 printf %s "(cached) " >&6
9871 else case e in #(
9872 e) if test -n "$MANIFEST_TOOL"; then
9873 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9874 else
9875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9876 for as_dir in $PATH
9877 do
9878 IFS=$as_save_IFS
9879 case $as_dir in #(((
9880 '') as_dir=./ ;;
9881 */) ;;
9882 *) as_dir=$as_dir/ ;;
9883 esac
9884 for ac_exec_ext in '' $ac_executable_extensions; do
9885 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9886 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9887 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9888 break 2
9889 fi
9890 done
9891 done
9892 IFS=$as_save_IFS
9893
9894 fi ;;
9895 esac
9896 fi
9897 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9898 if test -n "$MANIFEST_TOOL"; then
9899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9900 printf "%s\n" "$MANIFEST_TOOL" >&6; }
9901 else
9902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9903 printf "%s\n" "no" >&6; }
9904 fi
9905
9906
9907 fi
9908 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9909 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9910 # Extract the first word of "mt", so it can be a program name with args.
9911 set dummy mt; ac_word=$2
9912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9913 printf %s "checking for $ac_word... " >&6; }
9914 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
9915 then :
9916 printf %s "(cached) " >&6
9917 else case e in #(
9918 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
9919 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9920 else
9921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9922 for as_dir in $PATH
9923 do
9924 IFS=$as_save_IFS
9925 case $as_dir in #(((
9926 '') as_dir=./ ;;
9927 */) ;;
9928 *) as_dir=$as_dir/ ;;
9929 esac
9930 for ac_exec_ext in '' $ac_executable_extensions; do
9931 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9932 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9934 break 2
9935 fi
9936 done
9937 done
9938 IFS=$as_save_IFS
9939
9940 fi ;;
9941 esac
9942 fi
9943 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9944 if test -n "$ac_ct_MANIFEST_TOOL"; then
9945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9946 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
9947 else
9948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9949 printf "%s\n" "no" >&6; }
9950 fi
9951
9952 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9953 MANIFEST_TOOL=":"
9954 else
9955 case $cross_compiling:$ac_tool_warned in
9956 yes:)
9957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9958 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9959 ac_tool_warned=yes ;;
9960 esac
9961 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9962 fi
9963 else
9964 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9965 fi
9966
9967 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9969 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9970 if test ${lt_cv_path_manifest_tool+y}
9971 then :
9972 printf %s "(cached) " >&6
9973 else case e in #(
9974 e) lt_cv_path_manifest_tool=no
9975 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9976 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9977 cat conftest.err >&5
9978 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9979 lt_cv_path_manifest_tool=yes
9980 fi
9981 rm -f conftest* ;;
9982 esac
9983 fi
9984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
9985 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
9986 if test yes != "$lt_cv_path_manifest_tool"; then
9987 MANIFEST_TOOL=:
9988 fi
9989
9990
9991
9992
9993
9994
9995 case $host_os in
9996 rhapsody* | darwin*)
9997 if test -n "$ac_tool_prefix"; then
9998 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9999 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10001 printf %s "checking for $ac_word... " >&6; }
10002 if test ${ac_cv_prog_DSYMUTIL+y}
10003 then :
10004 printf %s "(cached) " >&6
10005 else case e in #(
10006 e) if test -n "$DSYMUTIL"; then
10007 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10008 else
10009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10010 for as_dir in $PATH
10011 do
10012 IFS=$as_save_IFS
10013 case $as_dir in #(((
10014 '') as_dir=./ ;;
10015 */) ;;
10016 *) as_dir=$as_dir/ ;;
10017 esac
10018 for ac_exec_ext in '' $ac_executable_extensions; do
10019 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10020 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10021 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10022 break 2
10023 fi
10024 done
10025 done
10026 IFS=$as_save_IFS
10027
10028 fi ;;
10029 esac
10030 fi
10031 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10032 if test -n "$DSYMUTIL"; then
10033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10034 printf "%s\n" "$DSYMUTIL" >&6; }
10035 else
10036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10037 printf "%s\n" "no" >&6; }
10038 fi
10039
10040
10041 fi
10042 if test -z "$ac_cv_prog_DSYMUTIL"; then
10043 ac_ct_DSYMUTIL=$DSYMUTIL
10044 # Extract the first word of "dsymutil", so it can be a program name with args.
10045 set dummy dsymutil; ac_word=$2
10046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10047 printf %s "checking for $ac_word... " >&6; }
10048 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
10049 then :
10050 printf %s "(cached) " >&6
10051 else case e in #(
10052 e) if test -n "$ac_ct_DSYMUTIL"; then
10053 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10054 else
10055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10056 for as_dir in $PATH
10057 do
10058 IFS=$as_save_IFS
10059 case $as_dir in #(((
10060 '') as_dir=./ ;;
10061 */) ;;
10062 *) as_dir=$as_dir/ ;;
10063 esac
10064 for ac_exec_ext in '' $ac_executable_extensions; do
10065 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10066 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10067 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10068 break 2
10069 fi
10070 done
10071 done
10072 IFS=$as_save_IFS
10073
10074 fi ;;
10075 esac
10076 fi
10077 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10078 if test -n "$ac_ct_DSYMUTIL"; then
10079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10080 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
10081 else
10082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10083 printf "%s\n" "no" >&6; }
10084 fi
10085
10086 if test "x$ac_ct_DSYMUTIL" = x; then
10087 DSYMUTIL=":"
10088 else
10089 case $cross_compiling:$ac_tool_warned in
10090 yes:)
10091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10092 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10093 ac_tool_warned=yes ;;
10094 esac
10095 DSYMUTIL=$ac_ct_DSYMUTIL
10096 fi
10097 else
10098 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10099 fi
10100
10101 if test -n "$ac_tool_prefix"; then
10102 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10103 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10105 printf %s "checking for $ac_word... " >&6; }
10106 if test ${ac_cv_prog_NMEDIT+y}
10107 then :
10108 printf %s "(cached) " >&6
10109 else case e in #(
10110 e) if test -n "$NMEDIT"; then
10111 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10112 else
10113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10114 for as_dir in $PATH
10115 do
10116 IFS=$as_save_IFS
10117 case $as_dir in #(((
10118 '') as_dir=./ ;;
10119 */) ;;
10120 *) as_dir=$as_dir/ ;;
10121 esac
10122 for ac_exec_ext in '' $ac_executable_extensions; do
10123 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10124 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10126 break 2
10127 fi
10128 done
10129 done
10130 IFS=$as_save_IFS
10131
10132 fi ;;
10133 esac
10134 fi
10135 NMEDIT=$ac_cv_prog_NMEDIT
10136 if test -n "$NMEDIT"; then
10137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10138 printf "%s\n" "$NMEDIT" >&6; }
10139 else
10140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10141 printf "%s\n" "no" >&6; }
10142 fi
10143
10144
10145 fi
10146 if test -z "$ac_cv_prog_NMEDIT"; then
10147 ac_ct_NMEDIT=$NMEDIT
10148 # Extract the first word of "nmedit", so it can be a program name with args.
10149 set dummy nmedit; ac_word=$2
10150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10151 printf %s "checking for $ac_word... " >&6; }
10152 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
10153 then :
10154 printf %s "(cached) " >&6
10155 else case e in #(
10156 e) if test -n "$ac_ct_NMEDIT"; then
10157 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10158 else
10159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10160 for as_dir in $PATH
10161 do
10162 IFS=$as_save_IFS
10163 case $as_dir in #(((
10164 '') as_dir=./ ;;
10165 */) ;;
10166 *) as_dir=$as_dir/ ;;
10167 esac
10168 for ac_exec_ext in '' $ac_executable_extensions; do
10169 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10170 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10172 break 2
10173 fi
10174 done
10175 done
10176 IFS=$as_save_IFS
10177
10178 fi ;;
10179 esac
10180 fi
10181 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10182 if test -n "$ac_ct_NMEDIT"; then
10183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10184 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
10185 else
10186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10187 printf "%s\n" "no" >&6; }
10188 fi
10189
10190 if test "x$ac_ct_NMEDIT" = x; then
10191 NMEDIT=":"
10192 else
10193 case $cross_compiling:$ac_tool_warned in
10194 yes:)
10195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10196 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10197 ac_tool_warned=yes ;;
10198 esac
10199 NMEDIT=$ac_ct_NMEDIT
10200 fi
10201 else
10202 NMEDIT="$ac_cv_prog_NMEDIT"
10203 fi
10204
10205 if test -n "$ac_tool_prefix"; then
10206 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10207 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10209 printf %s "checking for $ac_word... " >&6; }
10210 if test ${ac_cv_prog_LIPO+y}
10211 then :
10212 printf %s "(cached) " >&6
10213 else case e in #(
10214 e) if test -n "$LIPO"; then
10215 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10216 else
10217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10218 for as_dir in $PATH
10219 do
10220 IFS=$as_save_IFS
10221 case $as_dir in #(((
10222 '') as_dir=./ ;;
10223 */) ;;
10224 *) as_dir=$as_dir/ ;;
10225 esac
10226 for ac_exec_ext in '' $ac_executable_extensions; do
10227 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10228 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10229 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10230 break 2
10231 fi
10232 done
10233 done
10234 IFS=$as_save_IFS
10235
10236 fi ;;
10237 esac
10238 fi
10239 LIPO=$ac_cv_prog_LIPO
10240 if test -n "$LIPO"; then
10241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10242 printf "%s\n" "$LIPO" >&6; }
10243 else
10244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10245 printf "%s\n" "no" >&6; }
10246 fi
10247
10248
10249 fi
10250 if test -z "$ac_cv_prog_LIPO"; then
10251 ac_ct_LIPO=$LIPO
10252 # Extract the first word of "lipo", so it can be a program name with args.
10253 set dummy lipo; ac_word=$2
10254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10255 printf %s "checking for $ac_word... " >&6; }
10256 if test ${ac_cv_prog_ac_ct_LIPO+y}
10257 then :
10258 printf %s "(cached) " >&6
10259 else case e in #(
10260 e) if test -n "$ac_ct_LIPO"; then
10261 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10262 else
10263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10264 for as_dir in $PATH
10265 do
10266 IFS=$as_save_IFS
10267 case $as_dir in #(((
10268 '') as_dir=./ ;;
10269 */) ;;
10270 *) as_dir=$as_dir/ ;;
10271 esac
10272 for ac_exec_ext in '' $ac_executable_extensions; do
10273 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10274 ac_cv_prog_ac_ct_LIPO="lipo"
10275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10276 break 2
10277 fi
10278 done
10279 done
10280 IFS=$as_save_IFS
10281
10282 fi ;;
10283 esac
10284 fi
10285 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10286 if test -n "$ac_ct_LIPO"; then
10287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10288 printf "%s\n" "$ac_ct_LIPO" >&6; }
10289 else
10290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10291 printf "%s\n" "no" >&6; }
10292 fi
10293
10294 if test "x$ac_ct_LIPO" = x; then
10295 LIPO=":"
10296 else
10297 case $cross_compiling:$ac_tool_warned in
10298 yes:)
10299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10300 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10301 ac_tool_warned=yes ;;
10302 esac
10303 LIPO=$ac_ct_LIPO
10304 fi
10305 else
10306 LIPO="$ac_cv_prog_LIPO"
10307 fi
10308
10309 if test -n "$ac_tool_prefix"; then
10310 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10311 set dummy ${ac_tool_prefix}otool; ac_word=$2
10312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10313 printf %s "checking for $ac_word... " >&6; }
10314 if test ${ac_cv_prog_OTOOL+y}
10315 then :
10316 printf %s "(cached) " >&6
10317 else case e in #(
10318 e) if test -n "$OTOOL"; then
10319 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10320 else
10321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10322 for as_dir in $PATH
10323 do
10324 IFS=$as_save_IFS
10325 case $as_dir in #(((
10326 '') as_dir=./ ;;
10327 */) ;;
10328 *) as_dir=$as_dir/ ;;
10329 esac
10330 for ac_exec_ext in '' $ac_executable_extensions; do
10331 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10332 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10333 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10334 break 2
10335 fi
10336 done
10337 done
10338 IFS=$as_save_IFS
10339
10340 fi ;;
10341 esac
10342 fi
10343 OTOOL=$ac_cv_prog_OTOOL
10344 if test -n "$OTOOL"; then
10345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10346 printf "%s\n" "$OTOOL" >&6; }
10347 else
10348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10349 printf "%s\n" "no" >&6; }
10350 fi
10351
10352
10353 fi
10354 if test -z "$ac_cv_prog_OTOOL"; then
10355 ac_ct_OTOOL=$OTOOL
10356 # Extract the first word of "otool", so it can be a program name with args.
10357 set dummy otool; ac_word=$2
10358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10359 printf %s "checking for $ac_word... " >&6; }
10360 if test ${ac_cv_prog_ac_ct_OTOOL+y}
10361 then :
10362 printf %s "(cached) " >&6
10363 else case e in #(
10364 e) if test -n "$ac_ct_OTOOL"; then
10365 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10366 else
10367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10368 for as_dir in $PATH
10369 do
10370 IFS=$as_save_IFS
10371 case $as_dir in #(((
10372 '') as_dir=./ ;;
10373 */) ;;
10374 *) as_dir=$as_dir/ ;;
10375 esac
10376 for ac_exec_ext in '' $ac_executable_extensions; do
10377 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10378 ac_cv_prog_ac_ct_OTOOL="otool"
10379 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10380 break 2
10381 fi
10382 done
10383 done
10384 IFS=$as_save_IFS
10385
10386 fi ;;
10387 esac
10388 fi
10389 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10390 if test -n "$ac_ct_OTOOL"; then
10391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10392 printf "%s\n" "$ac_ct_OTOOL" >&6; }
10393 else
10394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10395 printf "%s\n" "no" >&6; }
10396 fi
10397
10398 if test "x$ac_ct_OTOOL" = x; then
10399 OTOOL=":"
10400 else
10401 case $cross_compiling:$ac_tool_warned in
10402 yes:)
10403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10404 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10405 ac_tool_warned=yes ;;
10406 esac
10407 OTOOL=$ac_ct_OTOOL
10408 fi
10409 else
10410 OTOOL="$ac_cv_prog_OTOOL"
10411 fi
10412
10413 if test -n "$ac_tool_prefix"; then
10414 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10415 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10417 printf %s "checking for $ac_word... " >&6; }
10418 if test ${ac_cv_prog_OTOOL64+y}
10419 then :
10420 printf %s "(cached) " >&6
10421 else case e in #(
10422 e) if test -n "$OTOOL64"; then
10423 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10424 else
10425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10426 for as_dir in $PATH
10427 do
10428 IFS=$as_save_IFS
10429 case $as_dir in #(((
10430 '') as_dir=./ ;;
10431 */) ;;
10432 *) as_dir=$as_dir/ ;;
10433 esac
10434 for ac_exec_ext in '' $ac_executable_extensions; do
10435 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10436 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10438 break 2
10439 fi
10440 done
10441 done
10442 IFS=$as_save_IFS
10443
10444 fi ;;
10445 esac
10446 fi
10447 OTOOL64=$ac_cv_prog_OTOOL64
10448 if test -n "$OTOOL64"; then
10449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10450 printf "%s\n" "$OTOOL64" >&6; }
10451 else
10452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10453 printf "%s\n" "no" >&6; }
10454 fi
10455
10456
10457 fi
10458 if test -z "$ac_cv_prog_OTOOL64"; then
10459 ac_ct_OTOOL64=$OTOOL64
10460 # Extract the first word of "otool64", so it can be a program name with args.
10461 set dummy otool64; ac_word=$2
10462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10463 printf %s "checking for $ac_word... " >&6; }
10464 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
10465 then :
10466 printf %s "(cached) " >&6
10467 else case e in #(
10468 e) if test -n "$ac_ct_OTOOL64"; then
10469 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10470 else
10471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10472 for as_dir in $PATH
10473 do
10474 IFS=$as_save_IFS
10475 case $as_dir in #(((
10476 '') as_dir=./ ;;
10477 */) ;;
10478 *) as_dir=$as_dir/ ;;
10479 esac
10480 for ac_exec_ext in '' $ac_executable_extensions; do
10481 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10482 ac_cv_prog_ac_ct_OTOOL64="otool64"
10483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10484 break 2
10485 fi
10486 done
10487 done
10488 IFS=$as_save_IFS
10489
10490 fi ;;
10491 esac
10492 fi
10493 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10494 if test -n "$ac_ct_OTOOL64"; then
10495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10496 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
10497 else
10498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10499 printf "%s\n" "no" >&6; }
10500 fi
10501
10502 if test "x$ac_ct_OTOOL64" = x; then
10503 OTOOL64=":"
10504 else
10505 case $cross_compiling:$ac_tool_warned in
10506 yes:)
10507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10508 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10509 ac_tool_warned=yes ;;
10510 esac
10511 OTOOL64=$ac_ct_OTOOL64
10512 fi
10513 else
10514 OTOOL64="$ac_cv_prog_OTOOL64"
10515 fi
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10544 printf %s "checking for -single_module linker flag... " >&6; }
10545 if test ${lt_cv_apple_cc_single_mod+y}
10546 then :
10547 printf %s "(cached) " >&6
10548 else case e in #(
10549 e) lt_cv_apple_cc_single_mod=no
10550 if test -z "$LT_MULTI_MODULE"; then
10551 # By default we will add the -single_module flag. You can override
10552 # by either setting the environment variable LT_MULTI_MODULE
10553 # non-empty at configure time, or by adding -multi_module to the
10554 # link flags.
10555 rm -rf libconftest.dylib*
10556 echo "int foo(void){return 1;}" > conftest.c
10557 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10558 -dynamiclib -Wl,-single_module conftest.c" >&5
10559 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10560 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10561 _lt_result=$?
10562 # If there is a non-empty error log, and "single_module"
10563 # appears in it, assume the flag caused a linker warning
10564 if test -s conftest.err && $GREP single_module conftest.err; then
10565 cat conftest.err >&5
10566 # Otherwise, if the output was created with a 0 exit code from
10567 # the compiler, it worked.
10568 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10569 lt_cv_apple_cc_single_mod=yes
10570 else
10571 cat conftest.err >&5
10572 fi
10573 rm -rf libconftest.dylib*
10574 rm -f conftest.*
10575 fi ;;
10576 esac
10577 fi
10578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10579 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
10580
10581 # Feature test to disable chained fixups since it is not
10582 # compatible with '-undefined dynamic_lookup'
10583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
10584 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
10585 if test ${lt_cv_support_no_fixup_chains+y}
10586 then :
10587 printf %s "(cached) " >&6
10588 else case e in #(
10589 e) save_LDFLAGS=$LDFLAGS
10590 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
10591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10592 /* end confdefs.h. */
10593
10594 int
10595 main (void)
10596 {
10597
10598 ;
10599 return 0;
10600 }
10601 _ACEOF
10602 if ac_fn_c_try_link "$LINENO"
10603 then :
10604 lt_cv_support_no_fixup_chains=yes
10605 else case e in #(
10606 e) lt_cv_support_no_fixup_chains=no
10607 ;;
10608 esac
10609 fi
10610 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10611 conftest$ac_exeext conftest.$ac_ext
10612 LDFLAGS=$save_LDFLAGS
10613
10614 ;;
10615 esac
10616 fi
10617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
10618 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
10619
10620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10621 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
10622 if test ${lt_cv_ld_exported_symbols_list+y}
10623 then :
10624 printf %s "(cached) " >&6
10625 else case e in #(
10626 e) lt_cv_ld_exported_symbols_list=no
10627 save_LDFLAGS=$LDFLAGS
10628 echo "_main" > conftest.sym
10629 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10631 /* end confdefs.h. */
10632
10633 int
10634 main (void)
10635 {
10636
10637 ;
10638 return 0;
10639 }
10640 _ACEOF
10641 if ac_fn_c_try_link "$LINENO"
10642 then :
10643 lt_cv_ld_exported_symbols_list=yes
10644 else case e in #(
10645 e) lt_cv_ld_exported_symbols_list=no ;;
10646 esac
10647 fi
10648 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10649 conftest$ac_exeext conftest.$ac_ext
10650 LDFLAGS=$save_LDFLAGS
10651 ;;
10652 esac
10653 fi
10654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10655 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
10656
10657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10658 printf %s "checking for -force_load linker flag... " >&6; }
10659 if test ${lt_cv_ld_force_load+y}
10660 then :
10661 printf %s "(cached) " >&6
10662 else case e in #(
10663 e) lt_cv_ld_force_load=no
10664 cat > conftest.c << _LT_EOF
10665 int forced_loaded() { return 2;}
10666 _LT_EOF
10667 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10668 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10669 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
10670 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
10671 echo "$RANLIB libconftest.a" >&5
10672 $RANLIB libconftest.a 2>&5
10673 cat > conftest.c << _LT_EOF
10674 int main(void) { return 0;}
10675 _LT_EOF
10676 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10677 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10678 _lt_result=$?
10679 if test -s conftest.err && $GREP force_load conftest.err; then
10680 cat conftest.err >&5
10681 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10682 lt_cv_ld_force_load=yes
10683 else
10684 cat conftest.err >&5
10685 fi
10686 rm -f conftest.err libconftest.a conftest conftest.c
10687 rm -rf conftest.dSYM
10688 ;;
10689 esac
10690 fi
10691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10692 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
10693 case $host_os in
10694 rhapsody* | darwin1.[012])
10695 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10696 darwin1.*)
10697 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10698 darwin*)
10699 case $MACOSX_DEPLOYMENT_TARGET,$host in
10700 10.[012],*|,*powerpc*-darwin[5-8]*)
10701 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10702 *)
10703 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
10704 if test yes = "$lt_cv_support_no_fixup_chains"; then
10705 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
10706 fi
10707 ;;
10708 esac
10709 ;;
10710 esac
10711 if test yes = "$lt_cv_apple_cc_single_mod"; then
10712 _lt_dar_single_mod='$single_module'
10713 fi
10714 _lt_dar_needs_single_mod=no
10715 case $host_os in
10716 rhapsody* | darwin1.*)
10717 _lt_dar_needs_single_mod=yes ;;
10718 darwin*)
10719 # When targeting Mac OS X 10.4 (darwin 8) or later,
10720 # -single_module is the default and -multi_module is unsupported.
10721 # The toolchain on macOS 10.14 (darwin 18) and later cannot
10722 # target any OS version that needs -single_module.
10723 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10724 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
10725 _lt_dar_needs_single_mod=yes ;;
10726 esac
10727 ;;
10728 esac
10729 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10730 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10731 else
10732 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10733 fi
10734 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10735 _lt_dsymutil='~$DSYMUTIL $lib || :'
10736 else
10737 _lt_dsymutil=
10738 fi
10739 ;;
10740 esac
10741
10742 # func_munge_path_list VARIABLE PATH
10743 # -----------------------------------
10744 # VARIABLE is name of variable containing _space_ separated list of
10745 # directories to be munged by the contents of PATH, which is string
10746 # having a format:
10747 # "DIR[:DIR]:"
10748 # string "DIR[ DIR]" will be prepended to VARIABLE
10749 # ":DIR[:DIR]"
10750 # string "DIR[ DIR]" will be appended to VARIABLE
10751 # "DIRP[:DIRP]::[DIRA:]DIRA"
10752 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10753 # "DIRA[ DIRA]" will be appended to VARIABLE
10754 # "DIR[:DIR]"
10755 # VARIABLE will be replaced by "DIR[ DIR]"
10756 func_munge_path_list ()
10757 {
10758 case x$2 in
10759 x)
10760 ;;
10761 *:)
10762 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10763 ;;
10764 x:*)
10765 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10766 ;;
10767 *::*)
10768 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10769 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10770 ;;
10771 *)
10772 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10773 ;;
10774 esac
10775 }
10776
10777 ac_header= ac_cache=
10778 for ac_item in $ac_header_c_list
10779 do
10780 if test $ac_cache; then
10781 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
10782 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
10783 printf "%s\n" "#define $ac_item 1" >> confdefs.h
10784 fi
10785 ac_header= ac_cache=
10786 elif test $ac_header; then
10787 ac_cache=$ac_item
10788 else
10789 ac_header=$ac_item
10790 fi
10791 done
10792
10793
10794
10795
10796
10797
10798
10799
10800 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
10801 then :
10802
10803 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
10804
10805 fi
10806 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10807 "
10808 if test "x$ac_cv_header_dlfcn_h" = xyes
10809 then :
10810 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
10811
10812 fi
10813
10814
10815
10816 func_stripname_cnf ()
10817 {
10818 case $2 in
10819 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
10820 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
10821 esac
10822 } # func_stripname_cnf
10823
10824
10825
10826
10827
10828 # Set options
10829 enable_win32_dll=yes
10830
10831 case $host in
10832 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
10833 if test -n "$ac_tool_prefix"; then
10834 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10835 set dummy ${ac_tool_prefix}as; ac_word=$2
10836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10837 printf %s "checking for $ac_word... " >&6; }
10838 if test ${ac_cv_prog_AS+y}
10839 then :
10840 printf %s "(cached) " >&6
10841 else case e in #(
10842 e) if test -n "$AS"; then
10843 ac_cv_prog_AS="$AS" # Let the user override the test.
10844 else
10845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10846 for as_dir in $PATH
10847 do
10848 IFS=$as_save_IFS
10849 case $as_dir in #(((
10850 '') as_dir=./ ;;
10851 */) ;;
10852 *) as_dir=$as_dir/ ;;
10853 esac
10854 for ac_exec_ext in '' $ac_executable_extensions; do
10855 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10856 ac_cv_prog_AS="${ac_tool_prefix}as"
10857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10858 break 2
10859 fi
10860 done
10861 done
10862 IFS=$as_save_IFS
10863
10864 fi ;;
10865 esac
10866 fi
10867 AS=$ac_cv_prog_AS
10868 if test -n "$AS"; then
10869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10870 printf "%s\n" "$AS" >&6; }
10871 else
10872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10873 printf "%s\n" "no" >&6; }
10874 fi
10875
10876
10877 fi
10878 if test -z "$ac_cv_prog_AS"; then
10879 ac_ct_AS=$AS
10880 # Extract the first word of "as", so it can be a program name with args.
10881 set dummy as; ac_word=$2
10882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10883 printf %s "checking for $ac_word... " >&6; }
10884 if test ${ac_cv_prog_ac_ct_AS+y}
10885 then :
10886 printf %s "(cached) " >&6
10887 else case e in #(
10888 e) if test -n "$ac_ct_AS"; then
10889 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10890 else
10891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10892 for as_dir in $PATH
10893 do
10894 IFS=$as_save_IFS
10895 case $as_dir in #(((
10896 '') as_dir=./ ;;
10897 */) ;;
10898 *) as_dir=$as_dir/ ;;
10899 esac
10900 for ac_exec_ext in '' $ac_executable_extensions; do
10901 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10902 ac_cv_prog_ac_ct_AS="as"
10903 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10904 break 2
10905 fi
10906 done
10907 done
10908 IFS=$as_save_IFS
10909
10910 fi ;;
10911 esac
10912 fi
10913 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10914 if test -n "$ac_ct_AS"; then
10915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10916 printf "%s\n" "$ac_ct_AS" >&6; }
10917 else
10918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10919 printf "%s\n" "no" >&6; }
10920 fi
10921
10922 if test "x$ac_ct_AS" = x; then
10923 AS="false"
10924 else
10925 case $cross_compiling:$ac_tool_warned in
10926 yes:)
10927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10928 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10929 ac_tool_warned=yes ;;
10930 esac
10931 AS=$ac_ct_AS
10932 fi
10933 else
10934 AS="$ac_cv_prog_AS"
10935 fi
10936
10937 if test -n "$ac_tool_prefix"; then
10938 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10939 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10941 printf %s "checking for $ac_word... " >&6; }
10942 if test ${ac_cv_prog_DLLTOOL+y}
10943 then :
10944 printf %s "(cached) " >&6
10945 else case e in #(
10946 e) if test -n "$DLLTOOL"; then
10947 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10948 else
10949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10950 for as_dir in $PATH
10951 do
10952 IFS=$as_save_IFS
10953 case $as_dir in #(((
10954 '') as_dir=./ ;;
10955 */) ;;
10956 *) as_dir=$as_dir/ ;;
10957 esac
10958 for ac_exec_ext in '' $ac_executable_extensions; do
10959 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10960 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10962 break 2
10963 fi
10964 done
10965 done
10966 IFS=$as_save_IFS
10967
10968 fi ;;
10969 esac
10970 fi
10971 DLLTOOL=$ac_cv_prog_DLLTOOL
10972 if test -n "$DLLTOOL"; then
10973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10974 printf "%s\n" "$DLLTOOL" >&6; }
10975 else
10976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10977 printf "%s\n" "no" >&6; }
10978 fi
10979
10980
10981 fi
10982 if test -z "$ac_cv_prog_DLLTOOL"; then
10983 ac_ct_DLLTOOL=$DLLTOOL
10984 # Extract the first word of "dlltool", so it can be a program name with args.
10985 set dummy dlltool; ac_word=$2
10986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10987 printf %s "checking for $ac_word... " >&6; }
10988 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
10989 then :
10990 printf %s "(cached) " >&6
10991 else case e in #(
10992 e) if test -n "$ac_ct_DLLTOOL"; then
10993 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10994 else
10995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10996 for as_dir in $PATH
10997 do
10998 IFS=$as_save_IFS
10999 case $as_dir in #(((
11000 '') as_dir=./ ;;
11001 */) ;;
11002 *) as_dir=$as_dir/ ;;
11003 esac
11004 for ac_exec_ext in '' $ac_executable_extensions; do
11005 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11006 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11008 break 2
11009 fi
11010 done
11011 done
11012 IFS=$as_save_IFS
11013
11014 fi ;;
11015 esac
11016 fi
11017 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11018 if test -n "$ac_ct_DLLTOOL"; then
11019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11020 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
11021 else
11022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11023 printf "%s\n" "no" >&6; }
11024 fi
11025
11026 if test "x$ac_ct_DLLTOOL" = x; then
11027 DLLTOOL="false"
11028 else
11029 case $cross_compiling:$ac_tool_warned in
11030 yes:)
11031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11032 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11033 ac_tool_warned=yes ;;
11034 esac
11035 DLLTOOL=$ac_ct_DLLTOOL
11036 fi
11037 else
11038 DLLTOOL="$ac_cv_prog_DLLTOOL"
11039 fi
11040
11041 if test -n "$ac_tool_prefix"; then
11042 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11043 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11045 printf %s "checking for $ac_word... " >&6; }
11046 if test ${ac_cv_prog_OBJDUMP+y}
11047 then :
11048 printf %s "(cached) " >&6
11049 else case e in #(
11050 e) if test -n "$OBJDUMP"; then
11051 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11052 else
11053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11054 for as_dir in $PATH
11055 do
11056 IFS=$as_save_IFS
11057 case $as_dir in #(((
11058 '') as_dir=./ ;;
11059 */) ;;
11060 *) as_dir=$as_dir/ ;;
11061 esac
11062 for ac_exec_ext in '' $ac_executable_extensions; do
11063 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11064 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11066 break 2
11067 fi
11068 done
11069 done
11070 IFS=$as_save_IFS
11071
11072 fi ;;
11073 esac
11074 fi
11075 OBJDUMP=$ac_cv_prog_OBJDUMP
11076 if test -n "$OBJDUMP"; then
11077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11078 printf "%s\n" "$OBJDUMP" >&6; }
11079 else
11080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11081 printf "%s\n" "no" >&6; }
11082 fi
11083
11084
11085 fi
11086 if test -z "$ac_cv_prog_OBJDUMP"; then
11087 ac_ct_OBJDUMP=$OBJDUMP
11088 # Extract the first word of "objdump", so it can be a program name with args.
11089 set dummy objdump; ac_word=$2
11090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11091 printf %s "checking for $ac_word... " >&6; }
11092 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
11093 then :
11094 printf %s "(cached) " >&6
11095 else case e in #(
11096 e) if test -n "$ac_ct_OBJDUMP"; then
11097 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11098 else
11099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11100 for as_dir in $PATH
11101 do
11102 IFS=$as_save_IFS
11103 case $as_dir in #(((
11104 '') as_dir=./ ;;
11105 */) ;;
11106 *) as_dir=$as_dir/ ;;
11107 esac
11108 for ac_exec_ext in '' $ac_executable_extensions; do
11109 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11110 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11112 break 2
11113 fi
11114 done
11115 done
11116 IFS=$as_save_IFS
11117
11118 fi ;;
11119 esac
11120 fi
11121 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11122 if test -n "$ac_ct_OBJDUMP"; then
11123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11124 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
11125 else
11126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11127 printf "%s\n" "no" >&6; }
11128 fi
11129
11130 if test "x$ac_ct_OBJDUMP" = x; then
11131 OBJDUMP="false"
11132 else
11133 case $cross_compiling:$ac_tool_warned in
11134 yes:)
11135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11136 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11137 ac_tool_warned=yes ;;
11138 esac
11139 OBJDUMP=$ac_ct_OBJDUMP
11140 fi
11141 else
11142 OBJDUMP="$ac_cv_prog_OBJDUMP"
11143 fi
11144
11145 ;;
11146 esac
11147
11148 test -z "$AS" && AS=as
11149
11150
11151
11152
11153
11154 test -z "$DLLTOOL" && DLLTOOL=dlltool
11155
11156
11157
11158
11159
11160 test -z "$OBJDUMP" && OBJDUMP=objdump
11161
11162
11163
11164
11165 # Check whether --enable-static was given.
11166 if test ${enable_static+y}
11167 then :
11168 enableval=$enable_static; p=${PACKAGE-default}
11169 case $enableval in
11170 yes) enable_static=yes ;;
11171 no) enable_static=no ;;
11172 *)
11173 enable_static=no
11174 # Look at the argument we got. We use all the common list separators.
11175 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11176 for pkg in $enableval; do
11177 IFS=$lt_save_ifs
11178 if test "X$pkg" = "X$p"; then
11179 enable_static=yes
11180 fi
11181 done
11182 IFS=$lt_save_ifs
11183 ;;
11184 esac
11185 else case e in #(
11186 e) enable_static=no ;;
11187 esac
11188 fi
11189
11190
11191
11192
11193
11194
11195
11196 # Check whether --enable-pic was given.
11197 if test ${enable_pic+y}
11198 then :
11199 enableval=$enable_pic; lt_p=${PACKAGE-default}
11200 case $enableval in
11201 yes|no) pic_mode=$enableval ;;
11202 *)
11203 pic_mode=default
11204 # Look at the argument we got. We use all the common list separators.
11205 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11206 for lt_pkg in $enableval; do
11207 IFS=$lt_save_ifs
11208 if test "X$lt_pkg" = "X$lt_p"; then
11209 pic_mode=yes
11210 fi
11211 done
11212 IFS=$lt_save_ifs
11213 ;;
11214 esac
11215 else case e in #(
11216 e) # Check whether --with-pic was given.
11217 if test ${with_pic+y}
11218 then :
11219 withval=$with_pic; lt_p=${PACKAGE-default}
11220 case $withval in
11221 yes|no) pic_mode=$withval ;;
11222 *)
11223 pic_mode=default
11224 # Look at the argument we got. We use all the common list separators.
11225 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11226 for lt_pkg in $withval; do
11227 IFS=$lt_save_ifs
11228 if test "X$lt_pkg" = "X$lt_p"; then
11229 pic_mode=yes
11230 fi
11231 done
11232 IFS=$lt_save_ifs
11233 ;;
11234 esac
11235 else case e in #(
11236 e) pic_mode=yes ;;
11237 esac
11238 fi
11239
11240 ;;
11241 esac
11242 fi
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252 enable_dlopen=no
11253
11254
11255
11256 # Check whether --enable-shared was given.
11257 if test ${enable_shared+y}
11258 then :
11259 enableval=$enable_shared; p=${PACKAGE-default}
11260 case $enableval in
11261 yes) enable_shared=yes ;;
11262 no) enable_shared=no ;;
11263 *)
11264 enable_shared=no
11265 # Look at the argument we got. We use all the common list separators.
11266 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11267 for pkg in $enableval; do
11268 IFS=$lt_save_ifs
11269 if test "X$pkg" = "X$p"; then
11270 enable_shared=yes
11271 fi
11272 done
11273 IFS=$lt_save_ifs
11274 ;;
11275 esac
11276 else case e in #(
11277 e) enable_shared=yes ;;
11278 esac
11279 fi
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291 # Check whether --enable-fast-install was given.
11292 if test ${enable_fast_install+y}
11293 then :
11294 enableval=$enable_fast_install; p=${PACKAGE-default}
11295 case $enableval in
11296 yes) enable_fast_install=yes ;;
11297 no) enable_fast_install=no ;;
11298 *)
11299 enable_fast_install=no
11300 # Look at the argument we got. We use all the common list separators.
11301 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11302 for pkg in $enableval; do
11303 IFS=$lt_save_ifs
11304 if test "X$pkg" = "X$p"; then
11305 enable_fast_install=yes
11306 fi
11307 done
11308 IFS=$lt_save_ifs
11309 ;;
11310 esac
11311 else case e in #(
11312 e) enable_fast_install=yes ;;
11313 esac
11314 fi
11315
11316
11317
11318
11319
11320
11321
11322
11323 shared_archive_member_spec=
11324 case $host,$enable_shared in
11325 power*-*-aix[5-9]*,yes)
11326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11327 printf %s "checking which variant of shared library versioning to provide... " >&6; }
11328 # Check whether --enable-aix-soname was given.
11329 if test ${enable_aix_soname+y}
11330 then :
11331 enableval=$enable_aix_soname; case $enableval in
11332 aix|svr4|both)
11333 ;;
11334 *)
11335 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
11336 ;;
11337 esac
11338 lt_cv_with_aix_soname=$enable_aix_soname
11339 else case e in #(
11340 e) # Check whether --with-aix-soname was given.
11341 if test ${with_aix_soname+y}
11342 then :
11343 withval=$with_aix_soname; case $withval in
11344 aix|svr4|both)
11345 ;;
11346 *)
11347 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11348 ;;
11349 esac
11350 lt_cv_with_aix_soname=$with_aix_soname
11351 else case e in #(
11352 e) if test ${lt_cv_with_aix_soname+y}
11353 then :
11354 printf %s "(cached) " >&6
11355 else case e in #(
11356 e) lt_cv_with_aix_soname=aix ;;
11357 esac
11358 fi
11359 ;;
11360 esac
11361 fi
11362
11363 enable_aix_soname=$lt_cv_with_aix_soname ;;
11364 esac
11365 fi
11366
11367 with_aix_soname=$enable_aix_soname
11368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11369 printf "%s\n" "$with_aix_soname" >&6; }
11370 if test aix != "$with_aix_soname"; then
11371 # For the AIX way of multilib, we name the shared archive member
11372 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11373 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11374 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11375 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11376 if test 64 = "${OBJECT_MODE-32}"; then
11377 shared_archive_member_spec=shr_64
11378 else
11379 shared_archive_member_spec=shr
11380 fi
11381 fi
11382 ;;
11383 *)
11384 with_aix_soname=aix
11385 ;;
11386 esac
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397 # This can be used to rebuild libtool when needed
11398 LIBTOOL_DEPS=$ltmain
11399
11400 # Always use our own libtool.
11401 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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 test -z "$LN_S" && LN_S="ln -s"
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447 if test -n "${ZSH_VERSION+set}"; then
11448 setopt NO_GLOB_SUBST
11449 fi
11450
11451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11452 printf %s "checking for objdir... " >&6; }
11453 if test ${lt_cv_objdir+y}
11454 then :
11455 printf %s "(cached) " >&6
11456 else case e in #(
11457 e) rm -f .libs 2>/dev/null
11458 mkdir .libs 2>/dev/null
11459 if test -d .libs; then
11460 lt_cv_objdir=.libs
11461 else
11462 # MS-DOS does not allow filenames that begin with a dot.
11463 lt_cv_objdir=_libs
11464 fi
11465 rmdir .libs 2>/dev/null ;;
11466 esac
11467 fi
11468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11469 printf "%s\n" "$lt_cv_objdir" >&6; }
11470 objdir=$lt_cv_objdir
11471
11472
11473
11474
11475
11476 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
11477
11478
11479
11480
11481 case $host_os in
11482 aix3*)
11483 # AIX sometimes has problems with the GCC collect2 program. For some
11484 # reason, if we set the COLLECT_NAMES environment variable, the problems
11485 # vanish in a puff of smoke.
11486 if test set != "${COLLECT_NAMES+set}"; then
11487 COLLECT_NAMES=
11488 export COLLECT_NAMES
11489 fi
11490 ;;
11491 esac
11492
11493 # Global variables:
11494 ofile=libtool
11495 can_build_shared=yes
11496
11497 # All known linkers require a '.a' archive for static linking (except MSVC and
11498 # ICC, which need '.lib').
11499 libext=a
11500
11501 with_gnu_ld=$lt_cv_prog_gnu_ld
11502
11503 old_CC=$CC
11504 old_CFLAGS=$CFLAGS
11505
11506 # Set sane defaults for various variables
11507 test -z "$CC" && CC=cc
11508 test -z "$LTCC" && LTCC=$CC
11509 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11510 test -z "$LD" && LD=ld
11511 test -z "$ac_objext" && ac_objext=o
11512
11513 func_cc_basename $compiler
11514 cc_basename=$func_cc_basename_result
11515
11516
11517 # Only perform the check for file, if the check method requires it
11518 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11519 case $deplibs_check_method in
11520 file_magic*)
11521 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11523 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
11524 if test ${lt_cv_path_MAGIC_CMD+y}
11525 then :
11526 printf %s "(cached) " >&6
11527 else case e in #(
11528 e) case $MAGIC_CMD in
11529 [\\/*] | ?:[\\/]*)
11530 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11531 ;;
11532 *)
11533 lt_save_MAGIC_CMD=$MAGIC_CMD
11534 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11535 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11536 for ac_dir in $ac_dummy; do
11537 IFS=$lt_save_ifs
11538 test -z "$ac_dir" && ac_dir=.
11539 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11540 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11541 if test -n "$file_magic_test_file"; then
11542 case $deplibs_check_method in
11543 "file_magic "*)
11544 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11545 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11546 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11547 $EGREP "$file_magic_regex" > /dev/null; then
11548 :
11549 else
11550 cat <<_LT_EOF 1>&2
11551
11552 *** Warning: the command libtool uses to detect shared libraries,
11553 *** $file_magic_cmd, produces output that libtool cannot recognize.
11554 *** The result is that libtool may fail to recognize shared libraries
11555 *** as such. This will affect the creation of libtool libraries that
11556 *** depend on shared libraries, but programs linked with such libtool
11557 *** libraries will work regardless of this problem. Nevertheless, you
11558 *** may want to report the problem to your system manager and/or to
11559 *** [email protected]
11560
11561 _LT_EOF
11562 fi ;;
11563 esac
11564 fi
11565 break
11566 fi
11567 done
11568 IFS=$lt_save_ifs
11569 MAGIC_CMD=$lt_save_MAGIC_CMD
11570 ;;
11571 esac ;;
11572 esac
11573 fi
11574
11575 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11576 if test -n "$MAGIC_CMD"; then
11577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11578 printf "%s\n" "$MAGIC_CMD" >&6; }
11579 else
11580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11581 printf "%s\n" "no" >&6; }
11582 fi
11583
11584
11585
11586
11587
11588 if test -z "$lt_cv_path_MAGIC_CMD"; then
11589 if test -n "$ac_tool_prefix"; then
11590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11591 printf %s "checking for file... " >&6; }
11592 if test ${lt_cv_path_MAGIC_CMD+y}
11593 then :
11594 printf %s "(cached) " >&6
11595 else case e in #(
11596 e) case $MAGIC_CMD in
11597 [\\/*] | ?:[\\/]*)
11598 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11599 ;;
11600 *)
11601 lt_save_MAGIC_CMD=$MAGIC_CMD
11602 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11603 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11604 for ac_dir in $ac_dummy; do
11605 IFS=$lt_save_ifs
11606 test -z "$ac_dir" && ac_dir=.
11607 if test -f "$ac_dir/file"; then
11608 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11609 if test -n "$file_magic_test_file"; then
11610 case $deplibs_check_method in
11611 "file_magic "*)
11612 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11613 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11614 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11615 $EGREP "$file_magic_regex" > /dev/null; then
11616 :
11617 else
11618 cat <<_LT_EOF 1>&2
11619
11620 *** Warning: the command libtool uses to detect shared libraries,
11621 *** $file_magic_cmd, produces output that libtool cannot recognize.
11622 *** The result is that libtool may fail to recognize shared libraries
11623 *** as such. This will affect the creation of libtool libraries that
11624 *** depend on shared libraries, but programs linked with such libtool
11625 *** libraries will work regardless of this problem. Nevertheless, you
11626 *** may want to report the problem to your system manager and/or to
11627 *** [email protected]
11628
11629 _LT_EOF
11630 fi ;;
11631 esac
11632 fi
11633 break
11634 fi
11635 done
11636 IFS=$lt_save_ifs
11637 MAGIC_CMD=$lt_save_MAGIC_CMD
11638 ;;
11639 esac ;;
11640 esac
11641 fi
11642
11643 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11644 if test -n "$MAGIC_CMD"; then
11645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11646 printf "%s\n" "$MAGIC_CMD" >&6; }
11647 else
11648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11649 printf "%s\n" "no" >&6; }
11650 fi
11651
11652
11653 else
11654 MAGIC_CMD=:
11655 fi
11656 fi
11657
11658 fi
11659 ;;
11660 esac
11661
11662 # Use C for the default configuration in the libtool script
11663
11664 lt_save_CC=$CC
11665 ac_ext=c
11666 ac_cpp='$CPP $CPPFLAGS'
11667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11670
11671
11672 # Source file extension for C test sources.
11673 ac_ext=c
11674
11675 # Object file extension for compiled C test sources.
11676 objext=o
11677 objext=$objext
11678
11679 # Code to be used in simple compile tests
11680 lt_simple_compile_test_code="int some_variable = 0;"
11681
11682 # Code to be used in simple link tests
11683 lt_simple_link_test_code='int main(void){return(0);}'
11684
11685
11686
11687
11688
11689
11690
11691 # If no C compiler was specified, use CC.
11692 LTCC=${LTCC-"$CC"}
11693
11694 # If no C compiler flags were specified, use CFLAGS.
11695 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11696
11697 # Allow CC to be a program name with arguments.
11698 compiler=$CC
11699
11700 # Save the default compiler, since it gets overwritten when the other
11701 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11702 compiler_DEFAULT=$CC
11703
11704 # save warnings/boilerplate of simple test code
11705 ac_outfile=conftest.$ac_objext
11706 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11707 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11708 _lt_compiler_boilerplate=`cat conftest.err`
11709 $RM conftest*
11710
11711 ac_outfile=conftest.$ac_objext
11712 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11713 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11714 _lt_linker_boilerplate=`cat conftest.err`
11715 $RM -r conftest*
11716
11717
11718 ## CAVEAT EMPTOR:
11719 ## There is no encapsulation within the following macros, do not change
11720 ## the running order or otherwise move them around unless you know exactly
11721 ## what you are doing...
11722 if test -n "$compiler"; then
11723
11724 lt_prog_compiler_no_builtin_flag=
11725
11726 if test yes = "$GCC"; then
11727 case $cc_basename in
11728 nvcc*)
11729 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11730 *)
11731 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11732 esac
11733
11734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11735 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11736 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
11737 then :
11738 printf %s "(cached) " >&6
11739 else case e in #(
11740 e) lt_cv_prog_compiler_rtti_exceptions=no
11741 ac_outfile=conftest.$ac_objext
11742 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11743 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11744 # Insert the option either (1) after the last *FLAGS variable, or
11745 # (2) before a word containing "conftest.", or (3) at the end.
11746 # Note that $ac_compile itself does not contain backslashes and begins
11747 # with a dollar sign (not a hyphen), so the echo should work correctly.
11748 # The option is referenced via a variable to avoid confusing sed.
11749 lt_compile=`echo "$ac_compile" | $SED \
11750 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11751 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11752 -e 's:$: $lt_compiler_flag:'`
11753 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11754 (eval "$lt_compile" 2>conftest.err)
11755 ac_status=$?
11756 cat conftest.err >&5
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 if (exit $ac_status) && test -s "$ac_outfile"; then
11759 # The compiler can only warn and ignore the option if not recognized
11760 # So say no if there are warnings other than the usual output.
11761 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11762 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11763 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11764 lt_cv_prog_compiler_rtti_exceptions=yes
11765 fi
11766 fi
11767 $RM conftest*
11768 ;;
11769 esac
11770 fi
11771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11772 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11773
11774 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11775 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11776 else
11777 :
11778 fi
11779
11780 fi
11781
11782
11783
11784
11785
11786
11787 lt_prog_compiler_wl=
11788 lt_prog_compiler_pic=
11789 lt_prog_compiler_static=
11790
11791
11792 if test yes = "$GCC"; then
11793 lt_prog_compiler_wl='-Wl,'
11794 lt_prog_compiler_static='-static'
11795
11796 case $host_os in
11797 aix*)
11798 # All AIX code is PIC.
11799 if test ia64 = "$host_cpu"; then
11800 # AIX 5 now supports IA64 processor
11801 lt_prog_compiler_static='-Bstatic'
11802 fi
11803 lt_prog_compiler_pic='-fPIC'
11804 ;;
11805
11806 amigaos*)
11807 case $host_cpu in
11808 powerpc)
11809 # see comment about AmigaOS4 .so support
11810 lt_prog_compiler_pic='-fPIC'
11811 ;;
11812 m68k)
11813 # FIXME: we need at least 68020 code to build shared libraries, but
11814 # adding the '-m68020' flag to GCC prevents building anything better,
11815 # like '-m68040'.
11816 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11817 ;;
11818 esac
11819 ;;
11820
11821 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11822 # PIC is the default for these OSes.
11823 ;;
11824
11825 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
11826 # This hack is so that the source file can tell whether it is being
11827 # built for inclusion in a dll (and should export symbols for example).
11828 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11829 # (--disable-auto-import) libraries
11830 lt_prog_compiler_pic='-DDLL_EXPORT'
11831 case $host_os in
11832 os2*)
11833 lt_prog_compiler_static='$wl-static'
11834 ;;
11835 esac
11836 ;;
11837
11838 darwin* | rhapsody*)
11839 # PIC is the default on this platform
11840 # Common symbols not allowed in MH_DYLIB files
11841 lt_prog_compiler_pic='-fno-common'
11842 ;;
11843
11844 haiku*)
11845 # PIC is the default for Haiku.
11846 # The "-static" flag exists, but is broken.
11847 lt_prog_compiler_static=
11848 ;;
11849
11850 hpux*)
11851 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11852 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11853 # sets the default TLS model and affects inlining.
11854 case $host_cpu in
11855 hppa*64*)
11856 # +Z the default
11857 ;;
11858 *)
11859 lt_prog_compiler_pic='-fPIC'
11860 ;;
11861 esac
11862 ;;
11863
11864 interix[3-9]*)
11865 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11866 # Instead, we relocate shared libraries at runtime.
11867 ;;
11868
11869 msdosdjgpp*)
11870 # Just because we use GCC doesn't mean we suddenly get shared libraries
11871 # on systems that don't support them.
11872 lt_prog_compiler_can_build_shared=no
11873 enable_shared=no
11874 ;;
11875
11876 *nto* | *qnx*)
11877 # QNX uses GNU C++, but need to define -shared option too, otherwise
11878 # it will coredump.
11879 lt_prog_compiler_pic='-fPIC -shared'
11880 ;;
11881
11882 sysv4*MP*)
11883 if test -d /usr/nec; then
11884 lt_prog_compiler_pic=-Kconform_pic
11885 fi
11886 ;;
11887
11888 *)
11889 lt_prog_compiler_pic='-fPIC'
11890 ;;
11891 esac
11892
11893 case $cc_basename in
11894 nvcc*) # Cuda Compiler Driver 2.2
11895 lt_prog_compiler_wl='-Xlinker '
11896 if test -n "$lt_prog_compiler_pic"; then
11897 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11898 fi
11899 ;;
11900 esac
11901 else
11902 # PORTME Check for flag to pass linker flags through the system compiler.
11903 case $host_os in
11904 aix*)
11905 lt_prog_compiler_wl='-Wl,'
11906 if test ia64 = "$host_cpu"; then
11907 # AIX 5 now supports IA64 processor
11908 lt_prog_compiler_static='-Bstatic'
11909 else
11910 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11911 fi
11912 ;;
11913
11914 darwin* | rhapsody*)
11915 # PIC is the default on this platform
11916 # Common symbols not allowed in MH_DYLIB files
11917 lt_prog_compiler_pic='-fno-common'
11918 case $cc_basename in
11919 nagfor*)
11920 # NAG Fortran compiler
11921 lt_prog_compiler_wl='-Wl,-Wl,,'
11922 lt_prog_compiler_pic='-PIC'
11923 lt_prog_compiler_static='-Bstatic'
11924 ;;
11925 esac
11926 ;;
11927
11928 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
11929 # This hack is so that the source file can tell whether it is being
11930 # built for inclusion in a dll (and should export symbols for example).
11931 lt_prog_compiler_pic='-DDLL_EXPORT'
11932 case $host_os in
11933 os2*)
11934 lt_prog_compiler_static='$wl-static'
11935 ;;
11936 esac
11937 ;;
11938
11939 hpux9* | hpux10* | hpux11*)
11940 lt_prog_compiler_wl='-Wl,'
11941 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11942 # not for PA HP-UX.
11943 case $host_cpu in
11944 hppa*64*|ia64*)
11945 # +Z the default
11946 ;;
11947 *)
11948 lt_prog_compiler_pic='+Z'
11949 ;;
11950 esac
11951 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11952 lt_prog_compiler_static='$wl-a ${wl}archive'
11953 ;;
11954
11955 irix5* | irix6* | nonstopux*)
11956 lt_prog_compiler_wl='-Wl,'
11957 # PIC (with -KPIC) is the default.
11958 lt_prog_compiler_static='-non_shared'
11959 ;;
11960
11961 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11962 case $cc_basename in
11963 # old Intel for x86_64, which still supported -KPIC.
11964 ecc*)
11965 lt_prog_compiler_wl='-Wl,'
11966 lt_prog_compiler_pic='-KPIC'
11967 lt_prog_compiler_static='-static'
11968 ;;
11969 *flang* | ftn | f18* | f95*)
11970 # Flang compiler.
11971 lt_prog_compiler_wl='-Wl,'
11972 lt_prog_compiler_pic='-fPIC'
11973 lt_prog_compiler_static='-static'
11974 ;;
11975 # flang / f18. f95 an alias for gfortran or flang on Debian
11976 flang* | f18* | f95*)
11977 lt_prog_compiler_wl='-Wl,'
11978 lt_prog_compiler_pic='-fPIC'
11979 lt_prog_compiler_static='-static'
11980 ;;
11981 # icc used to be incompatible with GCC.
11982 # ICC 10 doesn't accept -KPIC any more.
11983 icc* | ifort*)
11984 lt_prog_compiler_wl='-Wl,'
11985 lt_prog_compiler_pic='-fPIC'
11986 lt_prog_compiler_static='-static'
11987 ;;
11988 # Lahey Fortran 8.1.
11989 lf95*)
11990 lt_prog_compiler_wl='-Wl,'
11991 lt_prog_compiler_pic='--shared'
11992 lt_prog_compiler_static='--static'
11993 ;;
11994 nagfor*)
11995 # NAG Fortran compiler
11996 lt_prog_compiler_wl='-Wl,-Wl,,'
11997 lt_prog_compiler_pic='-PIC'
11998 lt_prog_compiler_static='-Bstatic'
11999 ;;
12000 tcc*)
12001 # Fabrice Bellard et al's Tiny C Compiler
12002 lt_prog_compiler_wl='-Wl,'
12003 lt_prog_compiler_pic='-fPIC'
12004 lt_prog_compiler_static='-static'
12005 ;;
12006 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12007 # Portland Group compilers (*not* the Pentium gcc compiler,
12008 # which looks to be a dead project)
12009 lt_prog_compiler_wl='-Wl,'
12010 lt_prog_compiler_pic='-fpic'
12011 lt_prog_compiler_static='-Bstatic'
12012 ;;
12013 ccc*)
12014 lt_prog_compiler_wl='-Wl,'
12015 # All Alpha code is PIC.
12016 lt_prog_compiler_static='-non_shared'
12017 ;;
12018 xl* | bgxl* | bgf* | mpixl*)
12019 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12020 lt_prog_compiler_wl='-Wl,'
12021 lt_prog_compiler_pic='-qpic'
12022 lt_prog_compiler_static='-qstaticlink'
12023 ;;
12024 *)
12025 case `$CC -V 2>&1 | $SED 5q` in
12026 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12027 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12028 lt_prog_compiler_pic='-KPIC'
12029 lt_prog_compiler_static='-Bstatic'
12030 lt_prog_compiler_wl=''
12031 ;;
12032 *Sun\ F* | *Sun*Fortran*)
12033 lt_prog_compiler_pic='-KPIC'
12034 lt_prog_compiler_static='-Bstatic'
12035 lt_prog_compiler_wl='-Qoption ld '
12036 ;;
12037 *Sun\ C*)
12038 # Sun C 5.9
12039 lt_prog_compiler_pic='-KPIC'
12040 lt_prog_compiler_static='-Bstatic'
12041 lt_prog_compiler_wl='-Wl,'
12042 ;;
12043 *Intel*\ [CF]*Compiler*)
12044 lt_prog_compiler_wl='-Wl,'
12045 lt_prog_compiler_pic='-fPIC'
12046 lt_prog_compiler_static='-static'
12047 ;;
12048 *Portland\ Group*)
12049 lt_prog_compiler_wl='-Wl,'
12050 lt_prog_compiler_pic='-fpic'
12051 lt_prog_compiler_static='-Bstatic'
12052 ;;
12053 esac
12054 ;;
12055 esac
12056 ;;
12057
12058 newsos6)
12059 lt_prog_compiler_pic='-KPIC'
12060 lt_prog_compiler_static='-Bstatic'
12061 ;;
12062
12063 *-mlibc)
12064 lt_prog_compiler_wl='-Wl,'
12065 lt_prog_compiler_pic='-fPIC'
12066 lt_prog_compiler_static='-static'
12067 ;;
12068
12069 *nto* | *qnx*)
12070 # QNX uses GNU C++, but need to define -shared option too, otherwise
12071 # it will coredump.
12072 lt_prog_compiler_pic='-fPIC -shared'
12073 ;;
12074
12075 osf3* | osf4* | osf5*)
12076 lt_prog_compiler_wl='-Wl,'
12077 # All OSF/1 code is PIC.
12078 lt_prog_compiler_static='-non_shared'
12079 ;;
12080
12081 rdos*)
12082 lt_prog_compiler_static='-non_shared'
12083 ;;
12084
12085 serenity*)
12086 ;;
12087
12088 solaris*)
12089 lt_prog_compiler_pic='-KPIC'
12090 lt_prog_compiler_static='-Bstatic'
12091 case $cc_basename in
12092 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12093 lt_prog_compiler_wl='-Qoption ld ';;
12094 *)
12095 lt_prog_compiler_wl='-Wl,';;
12096 esac
12097 ;;
12098
12099 sunos4*)
12100 lt_prog_compiler_wl='-Qoption ld '
12101 lt_prog_compiler_pic='-PIC'
12102 lt_prog_compiler_static='-Bstatic'
12103 ;;
12104
12105 sysv4 | sysv4.2uw2* | sysv4.3*)
12106 lt_prog_compiler_wl='-Wl,'
12107 lt_prog_compiler_pic='-KPIC'
12108 lt_prog_compiler_static='-Bstatic'
12109 ;;
12110
12111 sysv4*MP*)
12112 if test -d /usr/nec; then
12113 lt_prog_compiler_pic='-Kconform_pic'
12114 lt_prog_compiler_static='-Bstatic'
12115 fi
12116 ;;
12117
12118 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12119 lt_prog_compiler_wl='-Wl,'
12120 lt_prog_compiler_pic='-KPIC'
12121 lt_prog_compiler_static='-Bstatic'
12122 ;;
12123
12124 unicos*)
12125 lt_prog_compiler_wl='-Wl,'
12126 lt_prog_compiler_can_build_shared=no
12127 ;;
12128
12129 uts4*)
12130 lt_prog_compiler_pic='-pic'
12131 lt_prog_compiler_static='-Bstatic'
12132 ;;
12133
12134 *)
12135 lt_prog_compiler_can_build_shared=no
12136 ;;
12137 esac
12138 fi
12139
12140 case $host_os in
12141 # For platforms that do not support PIC, -DPIC is meaningless:
12142 *djgpp*)
12143 lt_prog_compiler_pic=
12144 ;;
12145 *)
12146 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12147 ;;
12148 esac
12149
12150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12151 printf %s "checking for $compiler option to produce PIC... " >&6; }
12152 if test ${lt_cv_prog_compiler_pic+y}
12153 then :
12154 printf %s "(cached) " >&6
12155 else case e in #(
12156 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
12157 esac
12158 fi
12159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12160 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
12161 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12162
12163 #
12164 # Check to make sure the PIC flag actually works.
12165 #
12166 if test -n "$lt_prog_compiler_pic"; then
12167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12168 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12169 if test ${lt_cv_prog_compiler_pic_works+y}
12170 then :
12171 printf %s "(cached) " >&6
12172 else case e in #(
12173 e) lt_cv_prog_compiler_pic_works=no
12174 ac_outfile=conftest.$ac_objext
12175 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12176 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12177 # Insert the option either (1) after the last *FLAGS variable, or
12178 # (2) before a word containing "conftest.", or (3) at the end.
12179 # Note that $ac_compile itself does not contain backslashes and begins
12180 # with a dollar sign (not a hyphen), so the echo should work correctly.
12181 # The option is referenced via a variable to avoid confusing sed.
12182 lt_compile=`echo "$ac_compile" | $SED \
12183 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12184 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12185 -e 's:$: $lt_compiler_flag:'`
12186 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12187 (eval "$lt_compile" 2>conftest.err)
12188 ac_status=$?
12189 cat conftest.err >&5
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 if (exit $ac_status) && test -s "$ac_outfile"; then
12192 # The compiler can only warn and ignore the option if not recognized
12193 # So say no if there are warnings other than the usual output.
12194 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12195 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12196 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12197 lt_cv_prog_compiler_pic_works=yes
12198 fi
12199 fi
12200 $RM conftest*
12201 ;;
12202 esac
12203 fi
12204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12205 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
12206
12207 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12208 case $lt_prog_compiler_pic in
12209 "" | " "*) ;;
12210 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12211 esac
12212 else
12213 lt_prog_compiler_pic=
12214 lt_prog_compiler_can_build_shared=no
12215 fi
12216
12217 fi
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229 #
12230 # Check to make sure the static flag actually works.
12231 #
12232 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12234 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12235 if test ${lt_cv_prog_compiler_static_works+y}
12236 then :
12237 printf %s "(cached) " >&6
12238 else case e in #(
12239 e) lt_cv_prog_compiler_static_works=no
12240 save_LDFLAGS=$LDFLAGS
12241 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12242 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12243 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12244 # The linker can only warn and ignore the option if not recognized
12245 # So say no if there are warnings
12246 if test -s conftest.err; then
12247 # Append any errors to the config.log.
12248 cat conftest.err 1>&5
12249 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12250 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12251 if diff conftest.exp conftest.er2 >/dev/null; then
12252 lt_cv_prog_compiler_static_works=yes
12253 fi
12254 else
12255 lt_cv_prog_compiler_static_works=yes
12256 fi
12257 fi
12258 $RM -r conftest*
12259 LDFLAGS=$save_LDFLAGS
12260 ;;
12261 esac
12262 fi
12263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12264 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
12265
12266 if test yes = "$lt_cv_prog_compiler_static_works"; then
12267 :
12268 else
12269 lt_prog_compiler_static=
12270 fi
12271
12272
12273
12274
12275
12276
12277
12278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12279 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12280 if test ${lt_cv_prog_compiler_c_o+y}
12281 then :
12282 printf %s "(cached) " >&6
12283 else case e in #(
12284 e) lt_cv_prog_compiler_c_o=no
12285 $RM -r conftest 2>/dev/null
12286 mkdir conftest
12287 cd conftest
12288 mkdir out
12289 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12290
12291 lt_compiler_flag="-o out/conftest2.$ac_objext"
12292 # Insert the option either (1) after the last *FLAGS variable, or
12293 # (2) before a word containing "conftest.", or (3) at the end.
12294 # Note that $ac_compile itself does not contain backslashes and begins
12295 # with a dollar sign (not a hyphen), so the echo should work correctly.
12296 lt_compile=`echo "$ac_compile" | $SED \
12297 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12298 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12299 -e 's:$: $lt_compiler_flag:'`
12300 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12301 (eval "$lt_compile" 2>out/conftest.err)
12302 ac_status=$?
12303 cat out/conftest.err >&5
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12306 then
12307 # The compiler can only warn and ignore the option if not recognized
12308 # So say no if there are warnings
12309 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12310 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12311 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12312 lt_cv_prog_compiler_c_o=yes
12313 fi
12314 fi
12315 chmod u+w . 2>&5
12316 $RM conftest*
12317 # SGI C++ compiler will create directory out/ii_files/ for
12318 # template instantiation
12319 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12320 $RM out/* && rmdir out
12321 cd ..
12322 $RM -r conftest
12323 $RM conftest*
12324 ;;
12325 esac
12326 fi
12327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12328 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12329
12330
12331
12332
12333
12334
12335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12336 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12337 if test ${lt_cv_prog_compiler_c_o+y}
12338 then :
12339 printf %s "(cached) " >&6
12340 else case e in #(
12341 e) lt_cv_prog_compiler_c_o=no
12342 $RM -r conftest 2>/dev/null
12343 mkdir conftest
12344 cd conftest
12345 mkdir out
12346 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12347
12348 lt_compiler_flag="-o out/conftest2.$ac_objext"
12349 # Insert the option either (1) after the last *FLAGS variable, or
12350 # (2) before a word containing "conftest.", or (3) at the end.
12351 # Note that $ac_compile itself does not contain backslashes and begins
12352 # with a dollar sign (not a hyphen), so the echo should work correctly.
12353 lt_compile=`echo "$ac_compile" | $SED \
12354 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12355 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12356 -e 's:$: $lt_compiler_flag:'`
12357 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12358 (eval "$lt_compile" 2>out/conftest.err)
12359 ac_status=$?
12360 cat out/conftest.err >&5
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12363 then
12364 # The compiler can only warn and ignore the option if not recognized
12365 # So say no if there are warnings
12366 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12367 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12368 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12369 lt_cv_prog_compiler_c_o=yes
12370 fi
12371 fi
12372 chmod u+w . 2>&5
12373 $RM conftest*
12374 # SGI C++ compiler will create directory out/ii_files/ for
12375 # template instantiation
12376 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12377 $RM out/* && rmdir out
12378 cd ..
12379 $RM -r conftest
12380 $RM conftest*
12381 ;;
12382 esac
12383 fi
12384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12385 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12386
12387
12388
12389
12390 hard_links=nottested
12391 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12392 # do not overwrite the value of need_locks provided by the user
12393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12394 printf %s "checking if we can lock with hard links... " >&6; }
12395 hard_links=yes
12396 $RM conftest*
12397 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12398 touch conftest.a
12399 ln conftest.a conftest.b 2>&5 || hard_links=no
12400 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12402 printf "%s\n" "$hard_links" >&6; }
12403 if test no = "$hard_links"; then
12404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12405 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12406 need_locks=warn
12407 fi
12408 else
12409 need_locks=no
12410 fi
12411
12412
12413
12414
12415
12416
12417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12418 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12419
12420 runpath_var=
12421 allow_undefined_flag=
12422 always_export_symbols=no
12423 archive_cmds=
12424 archive_expsym_cmds=
12425 compiler_needs_object=no
12426 enable_shared_with_static_runtimes=no
12427 export_dynamic_flag_spec=
12428 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12429 hardcode_automatic=no
12430 hardcode_direct=no
12431 hardcode_direct_absolute=no
12432 hardcode_libdir_flag_spec=
12433 hardcode_libdir_separator=
12434 hardcode_minus_L=no
12435 hardcode_shlibpath_var=unsupported
12436 inherit_rpath=no
12437 link_all_deplibs=unknown
12438 module_cmds=
12439 module_expsym_cmds=
12440 old_archive_from_new_cmds=
12441 old_archive_from_expsyms_cmds=
12442 thread_safe_flag_spec=
12443 whole_archive_flag_spec=
12444 # include_expsyms should be a list of space-separated symbols to be *always*
12445 # included in the symbol list
12446 include_expsyms=
12447 # exclude_expsyms can be an extended regexp of symbols to exclude
12448 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12449 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12450 # as well as any symbol that contains 'd'.
12451 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12452 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12453 # platforms (ab)use it in PIC code, but their linkers get confused if
12454 # the symbol is explicitly referenced. Since portable code cannot
12455 # rely on this symbol name, it's probably fine to never include it in
12456 # preloaded symbol tables.
12457 # Exclude shared library initialization/finalization symbols.
12458 extract_expsyms_cmds=
12459
12460 case $host_os in
12461 cygwin* | mingw* | windows* | pw32* | cegcc*)
12462 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
12463 # When not using gcc, we currently assume that we are using
12464 # Microsoft Visual C++ or Intel C++ Compiler.
12465 if test yes != "$GCC"; then
12466 with_gnu_ld=no
12467 fi
12468 ;;
12469 interix*)
12470 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
12471 with_gnu_ld=yes
12472 ;;
12473 linux* | k*bsd*-gnu | gnu*)
12474 link_all_deplibs=no
12475 ;;
12476 esac
12477
12478 ld_shlibs=yes
12479
12480 # On some targets, GNU ld is compatible enough with the native linker
12481 # that we're better off using the native interface for both.
12482 lt_use_gnu_ld_interface=no
12483 if test yes = "$with_gnu_ld"; then
12484 case $host_os in
12485 aix*)
12486 # The AIX port of GNU ld has always aspired to compatibility
12487 # with the native linker. However, as the warning in the GNU ld
12488 # block says, versions before 2.19.5* couldn't really create working
12489 # shared libraries, regardless of the interface used.
12490 case `$LD -v 2>&1` in
12491 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12492 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12493 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12494 *)
12495 lt_use_gnu_ld_interface=yes
12496 ;;
12497 esac
12498 ;;
12499 *)
12500 lt_use_gnu_ld_interface=yes
12501 ;;
12502 esac
12503 fi
12504
12505 if test yes = "$lt_use_gnu_ld_interface"; then
12506 # If archive_cmds runs LD, not CC, wlarc should be empty
12507 wlarc='$wl'
12508
12509 # Set some defaults for GNU ld with shared library support. These
12510 # are reset later if shared libraries are not supported. Putting them
12511 # here allows them to be overridden if necessary.
12512 runpath_var=LD_RUN_PATH
12513 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12514 export_dynamic_flag_spec='$wl--export-dynamic'
12515 # ancient GNU ld didn't support --whole-archive et. al.
12516 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12517 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12518 else
12519 whole_archive_flag_spec=
12520 fi
12521 supports_anon_versioning=no
12522 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
12523 *GNU\ gold*) supports_anon_versioning=yes ;;
12524 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12525 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12526 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12527 *\ 2.11.*) ;; # other 2.11 versions
12528 *) supports_anon_versioning=yes ;;
12529 esac
12530
12531 # See if GNU ld supports shared libraries.
12532 case $host_os in
12533 aix[3-9]*)
12534 # On AIX/PPC, the GNU linker is very broken
12535 if test ia64 != "$host_cpu"; then
12536 ld_shlibs=no
12537 cat <<_LT_EOF 1>&2
12538
12539 *** Warning: the GNU linker, at least up to release 2.19, is reported
12540 *** to be unable to reliably create shared libraries on AIX.
12541 *** Therefore, libtool is disabling shared libraries support. If you
12542 *** really care for shared libraries, you may want to install binutils
12543 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12544 *** You will then need to restart the configuration process.
12545
12546 _LT_EOF
12547 fi
12548 ;;
12549
12550 amigaos*)
12551 case $host_cpu in
12552 powerpc)
12553 # see comment about AmigaOS4 .so support
12554 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12555 archive_expsym_cmds=''
12556 ;;
12557 m68k)
12558 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)'
12559 hardcode_libdir_flag_spec='-L$libdir'
12560 hardcode_minus_L=yes
12561 ;;
12562 esac
12563 ;;
12564
12565 beos*)
12566 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12567 allow_undefined_flag=unsupported
12568 # Joseph Beckenbach <[email protected]> says some releases of gcc
12569 # support --undefined. This deserves some investigation. FIXME
12570 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12571 else
12572 ld_shlibs=no
12573 fi
12574 ;;
12575
12576 cygwin* | mingw* | windows* | pw32* | cegcc*)
12577 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12578 # as there is no search path for DLLs.
12579 hardcode_libdir_flag_spec='-L$libdir'
12580 export_dynamic_flag_spec='$wl--export-all-symbols'
12581 allow_undefined_flag=unsupported
12582 always_export_symbols=no
12583 enable_shared_with_static_runtimes=yes
12584 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'
12585 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12586 file_list_spec='@'
12587
12588 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12589 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12590 # If the export-symbols file already is a .def file, use it as
12591 # is; otherwise, prepend EXPORTS...
12592 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12593 cp $export_symbols $output_objdir/$soname.def;
12594 else
12595 echo EXPORTS > $output_objdir/$soname.def;
12596 cat $export_symbols >> $output_objdir/$soname.def;
12597 fi~
12598 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12599 else
12600 ld_shlibs=no
12601 fi
12602 ;;
12603
12604 haiku*)
12605 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12606 link_all_deplibs=no
12607 ;;
12608
12609 os2*)
12610 hardcode_libdir_flag_spec='-L$libdir'
12611 hardcode_minus_L=yes
12612 allow_undefined_flag=unsupported
12613 shrext_cmds=.dll
12614 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12615 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12616 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12617 $ECHO EXPORTS >> $output_objdir/$libname.def~
12618 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12619 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12620 emximp -o $lib $output_objdir/$libname.def'
12621 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12622 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12623 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12624 $ECHO EXPORTS >> $output_objdir/$libname.def~
12625 prefix_cmds="$SED"~
12626 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12627 prefix_cmds="$prefix_cmds -e 1d";
12628 fi~
12629 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12630 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12631 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12632 emximp -o $lib $output_objdir/$libname.def'
12633 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12634 enable_shared_with_static_runtimes=yes
12635 file_list_spec='@'
12636 ;;
12637
12638 interix[3-9]*)
12639 hardcode_direct=no
12640 hardcode_shlibpath_var=no
12641 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12642 export_dynamic_flag_spec='$wl-E'
12643 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12644 # Instead, shared libraries are loaded at an image base (0x10000000 by
12645 # default) and relocated if they conflict, which is a slow very memory
12646 # consuming and fragmenting process. To avoid this, we pick a random,
12647 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12648 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12649 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12650 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'
12651 ;;
12652
12653 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12654 tmp_diet=no
12655 if test linux-dietlibc = "$host_os"; then
12656 case $cc_basename in
12657 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12658 esac
12659 fi
12660 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12661 && test no = "$tmp_diet"
12662 then
12663 tmp_addflag=' $pic_flag'
12664 tmp_sharedflag='-shared'
12665 case $cc_basename,$host_cpu in
12666 pgcc*) # Portland Group C compiler
12667 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'
12668 tmp_addflag=' $pic_flag'
12669 ;;
12670 pgf77* | pgf90* | pgf95* | pgfortran*)
12671 # Portland Group f77 and f90 compilers
12672 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'
12673 tmp_addflag=' $pic_flag -Mnomain' ;;
12674 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12675 tmp_addflag=' -i_dynamic' ;;
12676 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12677 tmp_addflag=' -i_dynamic -nofor_main' ;;
12678 ifc* | ifort*) # Intel Fortran compiler
12679 tmp_addflag=' -nofor_main' ;;
12680 lf95*) # Lahey Fortran 8.1
12681 whole_archive_flag_spec=
12682 tmp_sharedflag='--shared' ;;
12683 nagfor*) # NAGFOR 5.3
12684 tmp_sharedflag='-Wl,-shared' ;;
12685 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12686 tmp_sharedflag='-qmkshrobj'
12687 tmp_addflag= ;;
12688 nvcc*) # Cuda Compiler Driver 2.2
12689 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'
12690 compiler_needs_object=yes
12691 ;;
12692 esac
12693 case `$CC -V 2>&1 | $SED 5q` in
12694 *Sun\ C*) # Sun C 5.9
12695 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'
12696 compiler_needs_object=yes
12697 tmp_sharedflag='-G' ;;
12698 *Sun\ F*) # Sun Fortran 8.3
12699 tmp_sharedflag='-G' ;;
12700 esac
12701 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12702
12703 if test yes = "$supports_anon_versioning"; then
12704 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12705 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12706 echo "local: *; };" >> $output_objdir/$libname.ver~
12707 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12708 fi
12709
12710 case $cc_basename in
12711 tcc*)
12712 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12713 export_dynamic_flag_spec='-rdynamic'
12714 ;;
12715 xlf* | bgf* | bgxlf* | mpixlf*)
12716 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12717 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12718 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12719 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12720 if test yes = "$supports_anon_versioning"; then
12721 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12722 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12723 echo "local: *; };" >> $output_objdir/$libname.ver~
12724 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12725 fi
12726 ;;
12727 esac
12728 else
12729 ld_shlibs=no
12730 fi
12731 ;;
12732
12733 *-mlibc)
12734 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12735 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12736 ;;
12737
12738 netbsd* | netbsdelf*-gnu)
12739 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12740 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12741 wlarc=
12742 else
12743 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12744 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12745 fi
12746 ;;
12747
12748 solaris*)
12749 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12750 ld_shlibs=no
12751 cat <<_LT_EOF 1>&2
12752
12753 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12754 *** create shared libraries on Solaris systems. Therefore, libtool
12755 *** is disabling shared libraries support. We urge you to upgrade GNU
12756 *** binutils to release 2.9.1 or newer. Another option is to modify
12757 *** your PATH or compiler configuration so that the native linker is
12758 *** used, and then restart.
12759
12760 _LT_EOF
12761 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12762 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12763 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12764 else
12765 ld_shlibs=no
12766 fi
12767 ;;
12768
12769 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12770 case `$LD -v 2>&1` in
12771 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12772 ld_shlibs=no
12773 cat <<_LT_EOF 1>&2
12774
12775 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12776 *** reliably create shared libraries on SCO systems. Therefore, libtool
12777 *** is disabling shared libraries support. We urge you to upgrade GNU
12778 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12779 *** your PATH or compiler configuration so that the native linker is
12780 *** used, and then restart.
12781
12782 _LT_EOF
12783 ;;
12784 *)
12785 # For security reasons, it is highly recommended that you always
12786 # use absolute paths for naming shared libraries, and exclude the
12787 # DT_RUNPATH tag from executables and libraries. But doing so
12788 # requires that you compile everything twice, which is a pain.
12789 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12790 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12791 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12792 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12793 else
12794 ld_shlibs=no
12795 fi
12796 ;;
12797 esac
12798 ;;
12799
12800 sunos4*)
12801 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12802 wlarc=
12803 hardcode_direct=yes
12804 hardcode_shlibpath_var=no
12805 ;;
12806
12807 *)
12808 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12809 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12810 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12811 else
12812 ld_shlibs=no
12813 fi
12814 ;;
12815 esac
12816
12817 if test no = "$ld_shlibs"; then
12818 runpath_var=
12819 hardcode_libdir_flag_spec=
12820 export_dynamic_flag_spec=
12821 whole_archive_flag_spec=
12822 fi
12823 else
12824 # PORTME fill in a description of your system's linker (not GNU ld)
12825 case $host_os in
12826 aix3*)
12827 allow_undefined_flag=unsupported
12828 always_export_symbols=yes
12829 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'
12830 # Note: this linker hardcodes the directories in LIBPATH if there
12831 # are no directories specified by -L.
12832 hardcode_minus_L=yes
12833 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12834 # Neither direct hardcoding nor static linking is supported with a
12835 # broken collect2.
12836 hardcode_direct=unsupported
12837 fi
12838 ;;
12839
12840 aix[4-9]*)
12841 if test ia64 = "$host_cpu"; then
12842 # On IA64, the linker does run time linking by default, so we don't
12843 # have to do anything special.
12844 aix_use_runtimelinking=no
12845 exp_sym_flag='-Bexport'
12846 no_entry_flag=
12847 else
12848 # If we're using GNU nm, then we don't want the "-C" option.
12849 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12850 # Without the "-l" option, or with the "-B" option, AIX nm treats
12851 # weak defined symbols like other global defined symbols, whereas
12852 # GNU nm marks them as "W".
12853 # While the 'weak' keyword is ignored in the Export File, we need
12854 # it in the Import File for the 'aix-soname' feature, so we have
12855 # to replace the "-B" option with "-P" for AIX nm.
12856 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12857 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'
12858 else
12859 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 == "L") || (\$ 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'
12860 fi
12861 aix_use_runtimelinking=no
12862
12863 # Test if we are trying to use run time linking or normal
12864 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12865 # have runtime linking enabled, and use it for executables.
12866 # For shared libraries, we enable/disable runtime linking
12867 # depending on the kind of the shared library created -
12868 # when "with_aix_soname,aix_use_runtimelinking" is:
12869 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12870 # "aix,yes" lib.so shared, rtl:yes, for executables
12871 # lib.a static archive
12872 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12873 # lib.a(lib.so.V) shared, rtl:no, for executables
12874 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12875 # lib.a(lib.so.V) shared, rtl:no
12876 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12877 # lib.a static archive
12878 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12879 for ld_flag in $LDFLAGS; do
12880 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12881 aix_use_runtimelinking=yes
12882 break
12883 fi
12884 done
12885 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12886 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12887 # so we don't have lib.a shared libs to link our executables.
12888 # We have to force runtime linking in this case.
12889 aix_use_runtimelinking=yes
12890 LDFLAGS="$LDFLAGS -Wl,-brtl"
12891 fi
12892 ;;
12893 esac
12894
12895 exp_sym_flag='-bexport'
12896 no_entry_flag='-bnoentry'
12897 fi
12898
12899 # When large executables or shared objects are built, AIX ld can
12900 # have problems creating the table of contents. If linking a library
12901 # or program results in "error TOC overflow" add -mminimal-toc to
12902 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12903 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12904
12905 archive_cmds=''
12906 hardcode_direct=yes
12907 hardcode_direct_absolute=yes
12908 hardcode_libdir_separator=':'
12909 link_all_deplibs=yes
12910 file_list_spec='$wl-f,'
12911 case $with_aix_soname,$aix_use_runtimelinking in
12912 aix,*) ;; # traditional, no import file
12913 svr4,* | *,yes) # use import file
12914 # The Import File defines what to hardcode.
12915 hardcode_direct=no
12916 hardcode_direct_absolute=no
12917 ;;
12918 esac
12919
12920 if test yes = "$GCC"; then
12921 case $host_os in aix4.[012]|aix4.[012].*)
12922 # We only want to do this on AIX 4.2 and lower, the check
12923 # below for broken collect2 doesn't work under 4.3+
12924 collect2name=`$CC -print-prog-name=collect2`
12925 if test -f "$collect2name" &&
12926 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12927 then
12928 # We have reworked collect2
12929 :
12930 else
12931 # We have old collect2
12932 hardcode_direct=unsupported
12933 # It fails to find uninstalled libraries when the uninstalled
12934 # path is not listed in the libpath. Setting hardcode_minus_L
12935 # to unsupported forces relinking
12936 hardcode_minus_L=yes
12937 hardcode_libdir_flag_spec='-L$libdir'
12938 hardcode_libdir_separator=
12939 fi
12940 ;;
12941 esac
12942 shared_flag='-shared'
12943 if test yes = "$aix_use_runtimelinking"; then
12944 shared_flag="$shared_flag "'$wl-G'
12945 fi
12946 # Need to ensure runtime linking is disabled for the traditional
12947 # shared library, or the linker may eventually find shared libraries
12948 # /with/ Import File - we do not want to mix them.
12949 shared_flag_aix='-shared'
12950 shared_flag_svr4='-shared $wl-G'
12951 else
12952 # not using gcc
12953 if test ia64 = "$host_cpu"; then
12954 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12955 # chokes on -Wl,-G. The following line is correct:
12956 shared_flag='-G'
12957 else
12958 if test yes = "$aix_use_runtimelinking"; then
12959 shared_flag='$wl-G'
12960 else
12961 shared_flag='$wl-bM:SRE'
12962 fi
12963 shared_flag_aix='$wl-bM:SRE'
12964 shared_flag_svr4='$wl-G'
12965 fi
12966 fi
12967
12968 export_dynamic_flag_spec='$wl-bexpall'
12969 # It seems that -bexpall does not export symbols beginning with
12970 # underscore (_), so it is better to generate a list of symbols to export.
12971 always_export_symbols=yes
12972 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12973 # Warning - without using the other runtime loading flags (-brtl),
12974 # -berok will link without error, but may produce a broken library.
12975 allow_undefined_flag='-berok'
12976 # Determine the default libpath from the value encoded in an
12977 # empty executable.
12978 if test set = "${lt_cv_aix_libpath+set}"; then
12979 aix_libpath=$lt_cv_aix_libpath
12980 else
12981 if test ${lt_cv_aix_libpath_+y}
12982 then :
12983 printf %s "(cached) " >&6
12984 else case e in #(
12985 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12986 /* end confdefs.h. */
12987
12988 int
12989 main (void)
12990 {
12991
12992 ;
12993 return 0;
12994 }
12995 _ACEOF
12996 if ac_fn_c_try_link "$LINENO"
12997 then :
12998
12999 lt_aix_libpath_sed='
13000 /Import File Strings/,/^$/ {
13001 /^0/ {
13002 s/^0 *\([^ ]*\) *$/\1/
13003 p
13004 }
13005 }'
13006 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13007 # Check for a 64-bit object if we didn't find anything.
13008 if test -z "$lt_cv_aix_libpath_"; then
13009 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13010 fi
13011 fi
13012 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13013 conftest$ac_exeext conftest.$ac_ext
13014 if test -z "$lt_cv_aix_libpath_"; then
13015 lt_cv_aix_libpath_=/usr/lib:/lib
13016 fi
13017 ;;
13018 esac
13019 fi
13020
13021 aix_libpath=$lt_cv_aix_libpath_
13022 fi
13023
13024 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13025 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
13026 else
13027 if test ia64 = "$host_cpu"; then
13028 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13029 allow_undefined_flag="-z nodefs"
13030 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"
13031 else
13032 # Determine the default libpath from the value encoded in an
13033 # empty executable.
13034 if test set = "${lt_cv_aix_libpath+set}"; then
13035 aix_libpath=$lt_cv_aix_libpath
13036 else
13037 if test ${lt_cv_aix_libpath_+y}
13038 then :
13039 printf %s "(cached) " >&6
13040 else case e in #(
13041 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13042 /* end confdefs.h. */
13043
13044 int
13045 main (void)
13046 {
13047
13048 ;
13049 return 0;
13050 }
13051 _ACEOF
13052 if ac_fn_c_try_link "$LINENO"
13053 then :
13054
13055 lt_aix_libpath_sed='
13056 /Import File Strings/,/^$/ {
13057 /^0/ {
13058 s/^0 *\([^ ]*\) *$/\1/
13059 p
13060 }
13061 }'
13062 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13063 # Check for a 64-bit object if we didn't find anything.
13064 if test -z "$lt_cv_aix_libpath_"; then
13065 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13066 fi
13067 fi
13068 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13069 conftest$ac_exeext conftest.$ac_ext
13070 if test -z "$lt_cv_aix_libpath_"; then
13071 lt_cv_aix_libpath_=/usr/lib:/lib
13072 fi
13073 ;;
13074 esac
13075 fi
13076
13077 aix_libpath=$lt_cv_aix_libpath_
13078 fi
13079
13080 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13081 # Warning - without using the other run time loading flags,
13082 # -berok will link without error, but may produce a broken library.
13083 no_undefined_flag=' $wl-bernotok'
13084 allow_undefined_flag=' $wl-berok'
13085 if test yes = "$with_gnu_ld"; then
13086 # We only use this code for GNU lds that support --whole-archive.
13087 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13088 else
13089 # Exported symbols can be pulled into shared objects from archives
13090 whole_archive_flag_spec='$convenience'
13091 fi
13092 archive_cmds_need_lc=yes
13093 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13094 # -brtl affects multiple linker settings, -berok does not and is overridden later
13095 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13096 if test svr4 != "$with_aix_soname"; then
13097 # This is similar to how AIX traditionally builds its shared libraries.
13098 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'
13099 fi
13100 if test aix != "$with_aix_soname"; then
13101 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'
13102 else
13103 # used by -dlpreopen to get the symbols
13104 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13105 fi
13106 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13107 fi
13108 fi
13109 ;;
13110
13111 amigaos*)
13112 case $host_cpu in
13113 powerpc)
13114 # see comment about AmigaOS4 .so support
13115 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13116 archive_expsym_cmds=''
13117 ;;
13118 m68k)
13119 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)'
13120 hardcode_libdir_flag_spec='-L$libdir'
13121 hardcode_minus_L=yes
13122 ;;
13123 esac
13124 ;;
13125
13126 bsdi[45]*)
13127 export_dynamic_flag_spec=-rdynamic
13128 ;;
13129
13130 cygwin* | mingw* | windows* | pw32* | cegcc*)
13131 # When not using gcc, we currently assume that we are using
13132 # Microsoft Visual C++ or Intel C++ Compiler.
13133 # hardcode_libdir_flag_spec is actually meaningless, as there is
13134 # no search path for DLLs.
13135 case $cc_basename in
13136 cl* | icl*)
13137 # Native MSVC or ICC
13138 hardcode_libdir_flag_spec=' '
13139 allow_undefined_flag=unsupported
13140 always_export_symbols=yes
13141 file_list_spec='@'
13142 # Tell ltmain to make .lib files, not .a files.
13143 libext=lib
13144 # Tell ltmain to make .dll files, not .so files.
13145 shrext_cmds=.dll
13146 # FIXME: Setting linknames here is a bad hack.
13147 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13148 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13149 cp "$export_symbols" "$output_objdir/$soname.def";
13150 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13151 else
13152 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13153 fi~
13154 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13155 linknames='
13156 # The linker will not automatically build a static lib if we build a DLL.
13157 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13158 enable_shared_with_static_runtimes=yes
13159 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13160 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13161 # Don't use ranlib
13162 old_postinstall_cmds='chmod 644 $oldlib'
13163 postlink_cmds='lt_outputfile="@OUTPUT@"~
13164 lt_tool_outputfile="@TOOL_OUTPUT@"~
13165 case $lt_outputfile in
13166 *.exe|*.EXE) ;;
13167 *)
13168 lt_outputfile=$lt_outputfile.exe
13169 lt_tool_outputfile=$lt_tool_outputfile.exe
13170 ;;
13171 esac~
13172 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13173 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13174 $RM "$lt_outputfile.manifest";
13175 fi'
13176 ;;
13177 *)
13178 # Assume MSVC and ICC wrapper
13179 hardcode_libdir_flag_spec=' '
13180 allow_undefined_flag=unsupported
13181 # Tell ltmain to make .lib files, not .a files.
13182 libext=lib
13183 # Tell ltmain to make .dll files, not .so files.
13184 shrext_cmds=.dll
13185 # FIXME: Setting linknames here is a bad hack.
13186 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13187 # The linker will automatically build a .lib file if we build a DLL.
13188 old_archive_from_new_cmds='true'
13189 # FIXME: Should let the user specify the lib program.
13190 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13191 enable_shared_with_static_runtimes=yes
13192 ;;
13193 esac
13194 ;;
13195
13196 darwin* | rhapsody*)
13197
13198
13199 archive_cmds_need_lc=no
13200 hardcode_direct=no
13201 hardcode_automatic=yes
13202 hardcode_shlibpath_var=unsupported
13203 if test yes = "$lt_cv_ld_force_load"; then
13204 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\"`'
13205
13206 else
13207 whole_archive_flag_spec=''
13208 fi
13209 link_all_deplibs=yes
13210 allow_undefined_flag=$_lt_dar_allow_undefined
13211 case $cc_basename in
13212 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13213 *) _lt_dar_can_shared=$GCC ;;
13214 esac
13215 if test yes = "$_lt_dar_can_shared"; then
13216 output_verbose_link_cmd=func_echo_all
13217 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13218 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13219 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"
13220 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"
13221
13222 else
13223 ld_shlibs=no
13224 fi
13225
13226 ;;
13227
13228 dgux*)
13229 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13230 hardcode_libdir_flag_spec='-L$libdir'
13231 hardcode_shlibpath_var=no
13232 ;;
13233
13234 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13235 # support. Future versions do this automatically, but an explicit c++rt0.o
13236 # does not break anything, and helps significantly (at the cost of a little
13237 # extra space).
13238 freebsd2.2*)
13239 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13240 hardcode_libdir_flag_spec='-R$libdir'
13241 hardcode_direct=yes
13242 hardcode_shlibpath_var=no
13243 ;;
13244
13245 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13246 freebsd2.*)
13247 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13248 hardcode_direct=yes
13249 hardcode_minus_L=yes
13250 hardcode_shlibpath_var=no
13251 ;;
13252
13253 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13254 freebsd* | dragonfly* | midnightbsd*)
13255 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13256 hardcode_libdir_flag_spec='-R$libdir'
13257 hardcode_direct=yes
13258 hardcode_shlibpath_var=no
13259 ;;
13260
13261 hpux9*)
13262 if test yes = "$GCC"; then
13263 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'
13264 else
13265 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'
13266 fi
13267 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13268 hardcode_libdir_separator=:
13269 hardcode_direct=yes
13270
13271 # hardcode_minus_L: Not really in the search PATH,
13272 # but as the default location of the library.
13273 hardcode_minus_L=yes
13274 export_dynamic_flag_spec='$wl-E'
13275 ;;
13276
13277 hpux10*)
13278 if test yes,no = "$GCC,$with_gnu_ld"; then
13279 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13280 else
13281 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13282 fi
13283 if test no = "$with_gnu_ld"; then
13284 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13285 hardcode_libdir_separator=:
13286 hardcode_direct=yes
13287 hardcode_direct_absolute=yes
13288 export_dynamic_flag_spec='$wl-E'
13289 # hardcode_minus_L: Not really in the search PATH,
13290 # but as the default location of the library.
13291 hardcode_minus_L=yes
13292 fi
13293 ;;
13294
13295 hpux11*)
13296 if test yes,no = "$GCC,$with_gnu_ld"; then
13297 case $host_cpu in
13298 hppa*64*)
13299 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13300 ;;
13301 ia64*)
13302 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13303 ;;
13304 *)
13305 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13306 ;;
13307 esac
13308 else
13309 case $host_cpu in
13310 hppa*64*)
13311 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13312 ;;
13313 ia64*)
13314 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13315 ;;
13316 *)
13317
13318 # Older versions of the 11.00 compiler do not understand -b yet
13319 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13321 printf %s "checking if $CC understands -b... " >&6; }
13322 if test ${lt_cv_prog_compiler__b+y}
13323 then :
13324 printf %s "(cached) " >&6
13325 else case e in #(
13326 e) lt_cv_prog_compiler__b=no
13327 save_LDFLAGS=$LDFLAGS
13328 LDFLAGS="$LDFLAGS -b"
13329 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13330 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13331 # The linker can only warn and ignore the option if not recognized
13332 # So say no if there are warnings
13333 if test -s conftest.err; then
13334 # Append any errors to the config.log.
13335 cat conftest.err 1>&5
13336 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13337 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13338 if diff conftest.exp conftest.er2 >/dev/null; then
13339 lt_cv_prog_compiler__b=yes
13340 fi
13341 else
13342 lt_cv_prog_compiler__b=yes
13343 fi
13344 fi
13345 $RM -r conftest*
13346 LDFLAGS=$save_LDFLAGS
13347 ;;
13348 esac
13349 fi
13350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13351 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
13352
13353 if test yes = "$lt_cv_prog_compiler__b"; then
13354 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13355 else
13356 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13357 fi
13358
13359 ;;
13360 esac
13361 fi
13362 if test no = "$with_gnu_ld"; then
13363 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13364 hardcode_libdir_separator=:
13365
13366 case $host_cpu in
13367 hppa*64*|ia64*)
13368 hardcode_direct=no
13369 hardcode_shlibpath_var=no
13370 ;;
13371 *)
13372 hardcode_direct=yes
13373 hardcode_direct_absolute=yes
13374 export_dynamic_flag_spec='$wl-E'
13375
13376 # hardcode_minus_L: Not really in the search PATH,
13377 # but as the default location of the library.
13378 hardcode_minus_L=yes
13379 ;;
13380 esac
13381 fi
13382 ;;
13383
13384 irix5* | irix6* | nonstopux*)
13385 if test yes = "$GCC"; then
13386 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'
13387 # Try to use the -exported_symbol ld option, if it does not
13388 # work, assume that -exports_file does not work either and
13389 # implicitly export all symbols.
13390 # This should be the same for all languages, so no per-tag cache variable.
13391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13392 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13393 if test ${lt_cv_irix_exported_symbol+y}
13394 then :
13395 printf %s "(cached) " >&6
13396 else case e in #(
13397 e) save_LDFLAGS=$LDFLAGS
13398 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13400 /* end confdefs.h. */
13401 int foo (void) { return 0; }
13402 _ACEOF
13403 if ac_fn_c_try_link "$LINENO"
13404 then :
13405 lt_cv_irix_exported_symbol=yes
13406 else case e in #(
13407 e) lt_cv_irix_exported_symbol=no ;;
13408 esac
13409 fi
13410 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13411 conftest$ac_exeext conftest.$ac_ext
13412 LDFLAGS=$save_LDFLAGS ;;
13413 esac
13414 fi
13415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13416 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
13417 if test yes = "$lt_cv_irix_exported_symbol"; then
13418 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'
13419 fi
13420 link_all_deplibs=no
13421 else
13422 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'
13423 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'
13424 fi
13425 archive_cmds_need_lc='no'
13426 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13427 hardcode_libdir_separator=:
13428 inherit_rpath=yes
13429 link_all_deplibs=yes
13430 ;;
13431
13432 linux*)
13433 case $cc_basename in
13434 tcc*)
13435 # Fabrice Bellard et al's Tiny C Compiler
13436 ld_shlibs=yes
13437 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13438 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13439 ;;
13440 esac
13441 ;;
13442
13443 *-mlibc)
13444 ;;
13445
13446 netbsd* | netbsdelf*-gnu)
13447 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13448 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13449 else
13450 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13451 fi
13452 hardcode_libdir_flag_spec='-R$libdir'
13453 hardcode_direct=yes
13454 hardcode_shlibpath_var=no
13455 ;;
13456
13457 newsos6)
13458 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13459 hardcode_direct=yes
13460 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13461 hardcode_libdir_separator=:
13462 hardcode_shlibpath_var=no
13463 ;;
13464
13465 *nto* | *qnx*)
13466 ;;
13467
13468 openbsd*)
13469 if test -f /usr/libexec/ld.so; then
13470 hardcode_direct=yes
13471 hardcode_shlibpath_var=no
13472 hardcode_direct_absolute=yes
13473 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13474 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13475 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13476 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13477 export_dynamic_flag_spec='$wl-E'
13478 else
13479 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13480 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13481 fi
13482 else
13483 ld_shlibs=no
13484 fi
13485 ;;
13486
13487 os2*)
13488 hardcode_libdir_flag_spec='-L$libdir'
13489 hardcode_minus_L=yes
13490 allow_undefined_flag=unsupported
13491 shrext_cmds=.dll
13492 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13493 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13494 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13495 $ECHO EXPORTS >> $output_objdir/$libname.def~
13496 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13497 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13498 emximp -o $lib $output_objdir/$libname.def'
13499 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13500 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13501 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13502 $ECHO EXPORTS >> $output_objdir/$libname.def~
13503 prefix_cmds="$SED"~
13504 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13505 prefix_cmds="$prefix_cmds -e 1d";
13506 fi~
13507 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13508 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13509 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13510 emximp -o $lib $output_objdir/$libname.def'
13511 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13512 enable_shared_with_static_runtimes=yes
13513 file_list_spec='@'
13514 ;;
13515
13516 osf3*)
13517 if test yes = "$GCC"; then
13518 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13519 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'
13520 else
13521 allow_undefined_flag=' -expect_unresolved \*'
13522 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'
13523 fi
13524 archive_cmds_need_lc='no'
13525 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13526 hardcode_libdir_separator=:
13527 ;;
13528
13529 osf4* | osf5*) # as osf3* with the addition of -msym flag
13530 if test yes = "$GCC"; then
13531 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13532 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'
13533 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13534 else
13535 allow_undefined_flag=' -expect_unresolved \*'
13536 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'
13537 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~
13538 $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'
13539
13540 # Both c and cxx compiler support -rpath directly
13541 hardcode_libdir_flag_spec='-rpath $libdir'
13542 fi
13543 archive_cmds_need_lc='no'
13544 hardcode_libdir_separator=:
13545 ;;
13546
13547 serenity*)
13548 ;;
13549
13550 solaris*)
13551 no_undefined_flag=' -z defs'
13552 if test yes = "$GCC"; then
13553 wlarc='$wl'
13554 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13555 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13556 $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'
13557 else
13558 case `$CC -V 2>&1` in
13559 *"Compilers 5.0"*)
13560 wlarc=''
13561 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13562 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13563 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13564 ;;
13565 *)
13566 wlarc='$wl'
13567 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13568 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13569 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13570 ;;
13571 esac
13572 fi
13573 hardcode_libdir_flag_spec='-R$libdir'
13574 hardcode_shlibpath_var=no
13575 case $host_os in
13576 solaris2.[0-5] | solaris2.[0-5].*) ;;
13577 *)
13578 # The compiler driver will combine and reorder linker options,
13579 # but understands '-z linker_flag'. GCC discards it without '$wl',
13580 # but is careful enough not to reorder.
13581 # Supported since Solaris 2.6 (maybe 2.5.1?)
13582 if test yes = "$GCC"; then
13583 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13584 else
13585 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13586 fi
13587 ;;
13588 esac
13589 link_all_deplibs=yes
13590 ;;
13591
13592 sunos4*)
13593 if test sequent = "$host_vendor"; then
13594 # Use $CC to link under sequent, because it throws in some extra .o
13595 # files that make .init and .fini sections work.
13596 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13597 else
13598 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13599 fi
13600 hardcode_libdir_flag_spec='-L$libdir'
13601 hardcode_direct=yes
13602 hardcode_minus_L=yes
13603 hardcode_shlibpath_var=no
13604 ;;
13605
13606 sysv4)
13607 case $host_vendor in
13608 sni)
13609 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13610 hardcode_direct=yes # is this really true???
13611 ;;
13612 siemens)
13613 ## LD is ld it makes a PLAMLIB
13614 ## CC just makes a GrossModule.
13615 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13616 reload_cmds='$CC -r -o $output$reload_objs'
13617 hardcode_direct=no
13618 ;;
13619 motorola)
13620 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13621 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13622 ;;
13623 esac
13624 runpath_var='LD_RUN_PATH'
13625 hardcode_shlibpath_var=no
13626 ;;
13627
13628 sysv4.3*)
13629 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13630 hardcode_shlibpath_var=no
13631 export_dynamic_flag_spec='-Bexport'
13632 ;;
13633
13634 sysv4*MP*)
13635 if test -d /usr/nec; then
13636 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13637 hardcode_shlibpath_var=no
13638 runpath_var=LD_RUN_PATH
13639 hardcode_runpath_var=yes
13640 ld_shlibs=yes
13641 fi
13642 ;;
13643
13644 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13645 no_undefined_flag='$wl-z,text'
13646 archive_cmds_need_lc=no
13647 hardcode_shlibpath_var=no
13648 runpath_var='LD_RUN_PATH'
13649
13650 if test yes = "$GCC"; then
13651 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13652 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13653 else
13654 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13655 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13656 fi
13657 ;;
13658
13659 sysv5* | sco3.2v5* | sco5v6*)
13660 # Note: We CANNOT use -z defs as we might desire, because we do not
13661 # link with -lc, and that would cause any symbols used from libc to
13662 # always be unresolved, which means just about no library would
13663 # ever link correctly. If we're not using GNU ld we use -z text
13664 # though, which does catch some bad symbols but isn't as heavy-handed
13665 # as -z defs.
13666 no_undefined_flag='$wl-z,text'
13667 allow_undefined_flag='$wl-z,nodefs'
13668 archive_cmds_need_lc=no
13669 hardcode_shlibpath_var=no
13670 hardcode_libdir_flag_spec='$wl-R,$libdir'
13671 hardcode_libdir_separator=':'
13672 link_all_deplibs=yes
13673 export_dynamic_flag_spec='$wl-Bexport'
13674 runpath_var='LD_RUN_PATH'
13675
13676 if test yes = "$GCC"; then
13677 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13678 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13679 else
13680 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13681 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13682 fi
13683 ;;
13684
13685 uts4*)
13686 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13687 hardcode_libdir_flag_spec='-L$libdir'
13688 hardcode_shlibpath_var=no
13689 ;;
13690
13691 *)
13692 ld_shlibs=no
13693 ;;
13694 esac
13695
13696 if test sni = "$host_vendor"; then
13697 case $host in
13698 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13699 export_dynamic_flag_spec='$wl-Blargedynsym'
13700 ;;
13701 esac
13702 fi
13703 fi
13704
13705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13706 printf "%s\n" "$ld_shlibs" >&6; }
13707 test no = "$ld_shlibs" && can_build_shared=no
13708
13709 with_gnu_ld=$with_gnu_ld
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725 #
13726 # Do we need to explicitly link libc?
13727 #
13728 case "x$archive_cmds_need_lc" in
13729 x|xyes)
13730 # Assume -lc should be added
13731 archive_cmds_need_lc=yes
13732
13733 if test yes,yes = "$GCC,$enable_shared"; then
13734 case $archive_cmds in
13735 *'~'*)
13736 # FIXME: we may have to deal with multi-command sequences.
13737 ;;
13738 '$CC '*)
13739 # Test whether the compiler implicitly links with -lc since on some
13740 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13741 # to ld, don't add -lc before -lgcc.
13742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13743 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
13744 if test ${lt_cv_archive_cmds_need_lc+y}
13745 then :
13746 printf %s "(cached) " >&6
13747 else case e in #(
13748 e) $RM conftest*
13749 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13750
13751 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13752 (eval $ac_compile) 2>&5
13753 ac_status=$?
13754 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13755 test $ac_status = 0; } 2>conftest.err; then
13756 soname=conftest
13757 lib=conftest
13758 libobjs=conftest.$ac_objext
13759 deplibs=
13760 wl=$lt_prog_compiler_wl
13761 pic_flag=$lt_prog_compiler_pic
13762 compiler_flags=-v
13763 linker_flags=-v
13764 verstring=
13765 output_objdir=.
13766 libname=conftest
13767 lt_save_allow_undefined_flag=$allow_undefined_flag
13768 allow_undefined_flag=
13769 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13770 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13771 ac_status=$?
13772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13773 test $ac_status = 0; }
13774 then
13775 lt_cv_archive_cmds_need_lc=no
13776 else
13777 lt_cv_archive_cmds_need_lc=yes
13778 fi
13779 allow_undefined_flag=$lt_save_allow_undefined_flag
13780 else
13781 cat conftest.err 1>&5
13782 fi
13783 $RM conftest*
13784 ;;
13785 esac
13786 fi
13787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13788 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
13789 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13790 ;;
13791 esac
13792 fi
13793 ;;
13794 esac
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13948 printf %s "checking dynamic linker characteristics... " >&6; }
13949
13950 if test yes = "$GCC"; then
13951 case $host_os in
13952 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13953 *) lt_awk_arg='/^libraries:/' ;;
13954 esac
13955 case $host_os in
13956 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13957 *) lt_sed_strip_eq='s|=/|/|g' ;;
13958 esac
13959 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13960 case $lt_search_path_spec in
13961 *\;*)
13962 # if the path contains ";" then we assume it to be the separator
13963 # otherwise default to the standard path separator (i.e. ":") - it is
13964 # assumed that no part of a normal pathname contains ";" but that should
13965 # okay in the real world where ";" in dirpaths is itself problematic.
13966 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13967 ;;
13968 *)
13969 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13970 ;;
13971 esac
13972 # Ok, now we have the path, separated by spaces, we can step through it
13973 # and add multilib dir if necessary...
13974 lt_tmp_lt_search_path_spec=
13975 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13976 # ...but if some path component already ends with the multilib dir we assume
13977 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13978 case "$lt_multi_os_dir; $lt_search_path_spec " in
13979 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13980 lt_multi_os_dir=
13981 ;;
13982 esac
13983 for lt_sys_path in $lt_search_path_spec; do
13984 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13985 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13986 elif test -n "$lt_multi_os_dir"; then
13987 test -d "$lt_sys_path" && \
13988 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13989 fi
13990 done
13991 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13992 BEGIN {RS = " "; FS = "/|\n";} {
13993 lt_foo = "";
13994 lt_count = 0;
13995 for (lt_i = NF; lt_i > 0; lt_i--) {
13996 if ($lt_i != "" && $lt_i != ".") {
13997 if ($lt_i == "..") {
13998 lt_count++;
13999 } else {
14000 if (lt_count == 0) {
14001 lt_foo = "/" $lt_i lt_foo;
14002 } else {
14003 lt_count--;
14004 }
14005 }
14006 }
14007 }
14008 if (lt_foo != "") { lt_freq[lt_foo]++; }
14009 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14010 }'`
14011 # AWK program above erroneously prepends '/' to C:/dos/paths
14012 # for these hosts.
14013 case $host_os in
14014 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14015 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14016 esac
14017 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14018 else
14019 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14020 fi
14021 library_names_spec=
14022 libname_spec='lib$name'
14023 soname_spec=
14024 shrext_cmds=.so
14025 postinstall_cmds=
14026 postuninstall_cmds=
14027 finish_cmds=
14028 finish_eval=
14029 shlibpath_var=
14030 shlibpath_overrides_runpath=unknown
14031 version_type=none
14032 dynamic_linker="$host_os ld.so"
14033 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14034 need_lib_prefix=unknown
14035 hardcode_into_libs=no
14036
14037 # when you set need_version to no, make sure it does not cause -set_version
14038 # flags to be left without arguments
14039 need_version=unknown
14040
14041
14042
14043 case $host_os in
14044 aix3*)
14045 version_type=linux # correct to gnu/linux during the next big refactor
14046 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14047 shlibpath_var=LIBPATH
14048
14049 # AIX 3 has no versioning support, so we append a major version to the name.
14050 soname_spec='$libname$release$shared_ext$major'
14051 ;;
14052
14053 aix[4-9]*)
14054 version_type=linux # correct to gnu/linux during the next big refactor
14055 need_lib_prefix=no
14056 need_version=no
14057 hardcode_into_libs=yes
14058 if test ia64 = "$host_cpu"; then
14059 # AIX 5 supports IA64
14060 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14061 shlibpath_var=LD_LIBRARY_PATH
14062 else
14063 # With GCC up to 2.95.x, collect2 would create an import file
14064 # for dependence libraries. The import file would start with
14065 # the line '#! .'. This would cause the generated library to
14066 # depend on '.', always an invalid library. This was fixed in
14067 # development snapshots of GCC prior to 3.0.
14068 case $host_os in
14069 aix4 | aix4.[01] | aix4.[01].*)
14070 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14071 echo ' yes '
14072 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14073 :
14074 else
14075 can_build_shared=no
14076 fi
14077 ;;
14078 esac
14079 # Using Import Files as archive members, it is possible to support
14080 # filename-based versioning of shared library archives on AIX. While
14081 # this would work for both with and without runtime linking, it will
14082 # prevent static linking of such archives. So we do filename-based
14083 # shared library versioning with .so extension only, which is used
14084 # when both runtime linking and shared linking is enabled.
14085 # Unfortunately, runtime linking may impact performance, so we do
14086 # not want this to be the default eventually. Also, we use the
14087 # versioned .so libs for executables only if there is the -brtl
14088 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
14089 # To allow for filename-based versioning support, we need to create
14090 # libNAME.so.V as an archive file, containing:
14091 # *) an Import File, referring to the versioned filename of the
14092 # archive as well as the shared archive member, telling the
14093 # bitwidth (32 or 64) of that shared object, and providing the
14094 # list of exported symbols of that shared object, eventually
14095 # decorated with the 'weak' keyword
14096 # *) the shared object with the F_LOADONLY flag set, to really avoid
14097 # it being seen by the linker.
14098 # At run time we better use the real file rather than another symlink,
14099 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14100
14101 case $with_aix_soname,$aix_use_runtimelinking in
14102 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14103 # soname into executable. Probably we can add versioning support to
14104 # collect2, so additional links can be useful in future.
14105 aix,yes) # traditional libtool
14106 dynamic_linker='AIX unversionable lib.so'
14107 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14108 # instead of lib<name>.a to let people know that these are not
14109 # typical AIX shared libraries.
14110 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14111 ;;
14112 aix,no) # traditional AIX only
14113 dynamic_linker='AIX lib.a(lib.so.V)'
14114 # We preserve .a as extension for shared libraries through AIX4.2
14115 # and later when we are not doing run time linking.
14116 library_names_spec='$libname$release.a $libname.a'
14117 soname_spec='$libname$release$shared_ext$major'
14118 ;;
14119 svr4,*) # full svr4 only
14120 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14121 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14122 # We do not specify a path in Import Files, so LIBPATH fires.
14123 shlibpath_overrides_runpath=yes
14124 ;;
14125 *,yes) # both, prefer svr4
14126 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14127 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14128 # unpreferred sharedlib libNAME.a needs extra handling
14129 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"'
14130 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"'
14131 # We do not specify a path in Import Files, so LIBPATH fires.
14132 shlibpath_overrides_runpath=yes
14133 ;;
14134 *,no) # both, prefer aix
14135 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14136 library_names_spec='$libname$release.a $libname.a'
14137 soname_spec='$libname$release$shared_ext$major'
14138 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14139 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)'
14140 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"'
14141 ;;
14142 esac
14143 shlibpath_var=LIBPATH
14144 fi
14145 ;;
14146
14147 amigaos*)
14148 case $host_cpu in
14149 powerpc)
14150 # Since July 2007 AmigaOS4 officially supports .so libraries.
14151 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14152 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14153 ;;
14154 m68k)
14155 library_names_spec='$libname.ixlibrary $libname.a'
14156 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14157 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'
14158 ;;
14159 esac
14160 ;;
14161
14162 beos*)
14163 library_names_spec='$libname$shared_ext'
14164 dynamic_linker="$host_os ld.so"
14165 shlibpath_var=LIBRARY_PATH
14166 ;;
14167
14168 bsdi[45]*)
14169 version_type=linux # correct to gnu/linux during the next big refactor
14170 need_version=no
14171 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14172 soname_spec='$libname$release$shared_ext$major'
14173 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14174 shlibpath_var=LD_LIBRARY_PATH
14175 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14176 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14177 # the default ld.so.conf also contains /usr/contrib/lib and
14178 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14179 # libtool to hard-code these into programs
14180 ;;
14181
14182 cygwin* | mingw* | windows* | pw32* | cegcc*)
14183 version_type=windows
14184 shrext_cmds=.dll
14185 need_version=no
14186 need_lib_prefix=no
14187
14188 case $GCC,$cc_basename in
14189 yes,*)
14190 # gcc
14191 library_names_spec='$libname.dll.a'
14192 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14193 # If user builds GCC with multilib enabled,
14194 # it should just install on $(libdir)
14195 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
14196 if test xyes = x"$multilib"; then
14197 postinstall_cmds='base_file=`basename \$file`~
14198 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14199 dldir=$destdir/`dirname \$dlpath`~
14200 $install_prog $dir/$dlname $destdir/$dlname~
14201 chmod a+x $destdir/$dlname~
14202 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14203 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
14204 fi'
14205 else
14206 postinstall_cmds='base_file=`basename \$file`~
14207 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14208 dldir=$destdir/`dirname \$dlpath`~
14209 test -d \$dldir || mkdir -p \$dldir~
14210 $install_prog $dir/$dlname \$dldir/$dlname~
14211 chmod a+x \$dldir/$dlname~
14212 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14213 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14214 fi'
14215 fi
14216 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14217 dlpath=$dir/\$dldll~
14218 $RM \$dlpath'
14219 shlibpath_overrides_runpath=yes
14220
14221 case $host_os in
14222 cygwin*)
14223 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14224 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14225
14226 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14227 ;;
14228 mingw* | windows* | cegcc*)
14229 # MinGW DLLs use traditional 'lib' prefix
14230 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14231 ;;
14232 pw32*)
14233 # pw32 DLLs use 'pw' prefix rather than 'lib'
14234 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14235 ;;
14236 esac
14237 dynamic_linker='Win32 ld.exe'
14238 ;;
14239
14240 *,cl* | *,icl*)
14241 # Native MSVC or ICC
14242 libname_spec='$name'
14243 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14244 library_names_spec='$libname.dll.lib'
14245
14246 case $build_os in
14247 mingw* | windows*)
14248 sys_lib_search_path_spec=
14249 lt_save_ifs=$IFS
14250 IFS=';'
14251 for lt_path in $LIB
14252 do
14253 IFS=$lt_save_ifs
14254 # Let DOS variable expansion print the short 8.3 style file name.
14255 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14256 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14257 done
14258 IFS=$lt_save_ifs
14259 # Convert to MSYS style.
14260 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14261 ;;
14262 cygwin*)
14263 # Convert to unix form, then to dos form, then back to unix form
14264 # but this time dos style (no spaces!) so that the unix form looks
14265 # like /cygdrive/c/PROGRA~1:/cygdr...
14266 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14267 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14268 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14269 ;;
14270 *)
14271 sys_lib_search_path_spec=$LIB
14272 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14273 # It is most probably a Windows format PATH.
14274 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14275 else
14276 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14277 fi
14278 # FIXME: find the short name or the path components, as spaces are
14279 # common. (e.g. "Program Files" -> "PROGRA~1")
14280 ;;
14281 esac
14282
14283 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14284 postinstall_cmds='base_file=`basename \$file`~
14285 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14286 dldir=$destdir/`dirname \$dlpath`~
14287 test -d \$dldir || mkdir -p \$dldir~
14288 $install_prog $dir/$dlname \$dldir/$dlname'
14289 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14290 dlpath=$dir/\$dldll~
14291 $RM \$dlpath'
14292 shlibpath_overrides_runpath=yes
14293 dynamic_linker='Win32 link.exe'
14294 ;;
14295
14296 *)
14297 # Assume MSVC and ICC wrapper
14298 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14299 dynamic_linker='Win32 ld.exe'
14300 ;;
14301 esac
14302 # FIXME: first we should search . and the directory the executable is in
14303 shlibpath_var=PATH
14304 ;;
14305
14306 darwin* | rhapsody*)
14307 dynamic_linker="$host_os dyld"
14308 version_type=darwin
14309 need_lib_prefix=no
14310 need_version=no
14311 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14312 soname_spec='$libname$release$major$shared_ext'
14313 shlibpath_overrides_runpath=yes
14314 shlibpath_var=DYLD_LIBRARY_PATH
14315 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14316
14317 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14318 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14319 ;;
14320
14321 dgux*)
14322 version_type=linux # correct to gnu/linux during the next big refactor
14323 need_lib_prefix=no
14324 need_version=no
14325 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14326 soname_spec='$libname$release$shared_ext$major'
14327 shlibpath_var=LD_LIBRARY_PATH
14328 ;;
14329
14330 freebsd* | dragonfly* | midnightbsd*)
14331 # DragonFly does not have aout. When/if they implement a new
14332 # versioning mechanism, adjust this.
14333 if test -x /usr/bin/objformat; then
14334 objformat=`/usr/bin/objformat`
14335 else
14336 case $host_os in
14337 freebsd[23].*) objformat=aout ;;
14338 *) objformat=elf ;;
14339 esac
14340 fi
14341 version_type=freebsd-$objformat
14342 case $version_type in
14343 freebsd-elf*)
14344 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14345 soname_spec='$libname$release$shared_ext$major'
14346 need_version=no
14347 need_lib_prefix=no
14348 ;;
14349 freebsd-*)
14350 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14351 need_version=yes
14352 ;;
14353 esac
14354 case $host_cpu in
14355 powerpc64)
14356 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
14357 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
14358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14359 /* end confdefs.h. */
14360 int test_pointer_size[sizeof (void *) - 5];
14361
14362 _ACEOF
14363 if ac_fn_c_try_compile "$LINENO"
14364 then :
14365 shlibpath_var=LD_LIBRARY_PATH
14366 else case e in #(
14367 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
14368 esac
14369 fi
14370 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14371 ;;
14372 *)
14373 shlibpath_var=LD_LIBRARY_PATH
14374 ;;
14375 esac
14376 case $host_os in
14377 freebsd2.*)
14378 shlibpath_overrides_runpath=yes
14379 ;;
14380 freebsd3.[01]* | freebsdelf3.[01]*)
14381 shlibpath_overrides_runpath=yes
14382 hardcode_into_libs=yes
14383 ;;
14384 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14385 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14386 shlibpath_overrides_runpath=no
14387 hardcode_into_libs=yes
14388 ;;
14389 *) # from 4.6 on, and DragonFly
14390 shlibpath_overrides_runpath=yes
14391 hardcode_into_libs=yes
14392 ;;
14393 esac
14394 ;;
14395
14396 haiku*)
14397 version_type=linux # correct to gnu/linux during the next big refactor
14398 need_lib_prefix=no
14399 need_version=no
14400 dynamic_linker="$host_os runtime_loader"
14401 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14402 soname_spec='$libname$release$shared_ext$major'
14403 shlibpath_var=LIBRARY_PATH
14404 shlibpath_overrides_runpath=no
14405 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
14406 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
14407 hardcode_into_libs=no
14408 ;;
14409
14410 hpux9* | hpux10* | hpux11*)
14411 # Give a soname corresponding to the major version so that dld.sl refuses to
14412 # link against other versions.
14413 version_type=sunos
14414 need_lib_prefix=no
14415 need_version=no
14416 case $host_cpu in
14417 ia64*)
14418 shrext_cmds='.so'
14419 hardcode_into_libs=yes
14420 dynamic_linker="$host_os dld.so"
14421 shlibpath_var=LD_LIBRARY_PATH
14422 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14423 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14424 soname_spec='$libname$release$shared_ext$major'
14425 if test 32 = "$HPUX_IA64_MODE"; then
14426 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14427 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14428 else
14429 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14430 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14431 fi
14432 ;;
14433 hppa*64*)
14434 shrext_cmds='.sl'
14435 hardcode_into_libs=yes
14436 dynamic_linker="$host_os dld.sl"
14437 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14438 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14439 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14440 soname_spec='$libname$release$shared_ext$major'
14441 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14442 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14443 ;;
14444 *)
14445 shrext_cmds='.sl'
14446 dynamic_linker="$host_os dld.sl"
14447 shlibpath_var=SHLIB_PATH
14448 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14449 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14450 soname_spec='$libname$release$shared_ext$major'
14451 ;;
14452 esac
14453 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14454 postinstall_cmds='chmod 555 $lib'
14455 # or fails outright, so override atomically:
14456 install_override_mode=555
14457 ;;
14458
14459 interix[3-9]*)
14460 version_type=linux # correct to gnu/linux during the next big refactor
14461 need_lib_prefix=no
14462 need_version=no
14463 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14464 soname_spec='$libname$release$shared_ext$major'
14465 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14466 shlibpath_var=LD_LIBRARY_PATH
14467 shlibpath_overrides_runpath=no
14468 hardcode_into_libs=yes
14469 ;;
14470
14471 irix5* | irix6* | nonstopux*)
14472 case $host_os in
14473 nonstopux*) version_type=nonstopux ;;
14474 *)
14475 if test yes = "$lt_cv_prog_gnu_ld"; then
14476 version_type=linux # correct to gnu/linux during the next big refactor
14477 else
14478 version_type=irix
14479 fi ;;
14480 esac
14481 need_lib_prefix=no
14482 need_version=no
14483 soname_spec='$libname$release$shared_ext$major'
14484 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14485 case $host_os in
14486 irix5* | nonstopux*)
14487 libsuff= shlibsuff=
14488 ;;
14489 *)
14490 case $LD in # libtool.m4 will add one of these switches to LD
14491 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14492 libsuff= shlibsuff= libmagic=32-bit;;
14493 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14494 libsuff=32 shlibsuff=N32 libmagic=N32;;
14495 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14496 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14497 *) libsuff= shlibsuff= libmagic=never-match;;
14498 esac
14499 ;;
14500 esac
14501 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14502 shlibpath_overrides_runpath=no
14503 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14504 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14505 hardcode_into_libs=yes
14506 ;;
14507
14508 # No shared lib support for Linux oldld, aout, or coff.
14509 linux*oldld* | linux*aout* | linux*coff*)
14510 dynamic_linker=no
14511 ;;
14512
14513 linux*android*)
14514 version_type=none # Android doesn't support versioned libraries.
14515 need_lib_prefix=no
14516 need_version=no
14517 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
14518 soname_spec='$libname$release$shared_ext'
14519 finish_cmds=
14520 shlibpath_var=LD_LIBRARY_PATH
14521 shlibpath_overrides_runpath=yes
14522
14523 # This implies no fast_install, which is unacceptable.
14524 # Some rework will be needed to allow for fast_install
14525 # before this can be enabled.
14526 hardcode_into_libs=yes
14527
14528 dynamic_linker='Android linker'
14529 # -rpath works at least for libraries that are not overridden by
14530 # libraries installed in system locations.
14531 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14532 ;;
14533
14534 # This must be glibc/ELF.
14535 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14536 version_type=linux # correct to gnu/linux during the next big refactor
14537 need_lib_prefix=no
14538 need_version=no
14539 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14540 soname_spec='$libname$release$shared_ext$major'
14541 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14542 shlibpath_var=LD_LIBRARY_PATH
14543 shlibpath_overrides_runpath=no
14544
14545 # Some binutils ld are patched to set DT_RUNPATH
14546 if test ${lt_cv_shlibpath_overrides_runpath+y}
14547 then :
14548 printf %s "(cached) " >&6
14549 else case e in #(
14550 e) lt_cv_shlibpath_overrides_runpath=no
14551 save_LDFLAGS=$LDFLAGS
14552 save_libdir=$libdir
14553 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14554 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14556 /* end confdefs.h. */
14557
14558 int
14559 main (void)
14560 {
14561
14562 ;
14563 return 0;
14564 }
14565 _ACEOF
14566 if ac_fn_c_try_link "$LINENO"
14567 then :
14568 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
14569 then :
14570 lt_cv_shlibpath_overrides_runpath=yes
14571 fi
14572 fi
14573 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14574 conftest$ac_exeext conftest.$ac_ext
14575 LDFLAGS=$save_LDFLAGS
14576 libdir=$save_libdir
14577 ;;
14578 esac
14579 fi
14580
14581 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14582
14583 # This implies no fast_install, which is unacceptable.
14584 # Some rework will be needed to allow for fast_install
14585 # before this can be enabled.
14586 hardcode_into_libs=yes
14587
14588 # Ideally, we could use ldconfig to report *all* directories which are
14589 # searched for libraries, however this is still not possible. Aside from not
14590 # being certain /sbin/ldconfig is available, command
14591 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14592 # even though it is searched at run-time. Try to do the best guess by
14593 # appending ld.so.conf contents (and includes) to the search path.
14594 if test -f /etc/ld.so.conf; then
14595 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' ' '`
14596 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14597 fi
14598
14599 # We used to test for /lib/ld.so.1 and disable shared libraries on
14600 # powerpc, because MkLinux only supported shared libraries with the
14601 # GNU dynamic linker. Since this was broken with cross compilers,
14602 # most powerpc-linux boxes support dynamic linking these days and
14603 # people can always --disable-shared, the test was removed, and we
14604 # assume the GNU/Linux dynamic linker is in use.
14605 dynamic_linker='GNU/Linux ld.so'
14606 ;;
14607
14608 netbsdelf*-gnu)
14609 version_type=linux
14610 need_lib_prefix=no
14611 need_version=no
14612 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14613 soname_spec='$libname$release$shared_ext$major'
14614 shlibpath_var=LD_LIBRARY_PATH
14615 shlibpath_overrides_runpath=no
14616 hardcode_into_libs=yes
14617 dynamic_linker='NetBSD ld.elf_so'
14618 ;;
14619
14620 netbsdelf*-gnu)
14621 version_type=linux
14622 need_lib_prefix=no
14623 need_version=no
14624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14625 soname_spec='${libname}${release}${shared_ext}$major'
14626 shlibpath_var=LD_LIBRARY_PATH
14627 shlibpath_overrides_runpath=no
14628 hardcode_into_libs=yes
14629 dynamic_linker='NetBSD ld.elf_so'
14630 ;;
14631
14632 netbsd*)
14633 version_type=sunos
14634 need_lib_prefix=no
14635 need_version=no
14636 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14637 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14638 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14639 dynamic_linker='NetBSD (a.out) ld.so'
14640 else
14641 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14642 soname_spec='$libname$release$shared_ext$major'
14643 dynamic_linker='NetBSD ld.elf_so'
14644 fi
14645 shlibpath_var=LD_LIBRARY_PATH
14646 shlibpath_overrides_runpath=yes
14647 hardcode_into_libs=yes
14648 ;;
14649
14650 *-mlibc)
14651 version_type=linux # correct to gnu/linux during the next big refactor
14652 need_lib_prefix=no
14653 need_version=no
14654 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14655 soname_spec='$libname$release$shared_ext$major'
14656 dynamic_linker='mlibc ld.so'
14657 shlibpath_var=LD_LIBRARY_PATH
14658 shlibpath_overrides_runpath=no
14659 hardcode_into_libs=yes
14660 ;;
14661
14662 newsos6)
14663 version_type=linux # correct to gnu/linux during the next big refactor
14664 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14665 shlibpath_var=LD_LIBRARY_PATH
14666 shlibpath_overrides_runpath=yes
14667 ;;
14668
14669 *nto* | *qnx*)
14670 version_type=qnx
14671 need_lib_prefix=no
14672 need_version=no
14673 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14674 soname_spec='$libname$release$shared_ext$major'
14675 shlibpath_var=LD_LIBRARY_PATH
14676 shlibpath_overrides_runpath=no
14677 hardcode_into_libs=yes
14678 dynamic_linker='ldqnx.so'
14679 ;;
14680
14681 openbsd*)
14682 version_type=sunos
14683 sys_lib_dlsearch_path_spec=/usr/lib
14684 need_lib_prefix=no
14685 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14686 need_version=no
14687 else
14688 need_version=yes
14689 fi
14690 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14691 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14692 shlibpath_var=LD_LIBRARY_PATH
14693 shlibpath_overrides_runpath=yes
14694 ;;
14695
14696 os2*)
14697 libname_spec='$name'
14698 version_type=windows
14699 shrext_cmds=.dll
14700 need_version=no
14701 need_lib_prefix=no
14702 # OS/2 can only load a DLL with a base name of 8 characters or less.
14703 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14704 v=$($ECHO $release$versuffix | tr -d .-);
14705 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14706 $ECHO $n$v`$shared_ext'
14707 library_names_spec='${libname}_dll.$libext'
14708 dynamic_linker='OS/2 ld.exe'
14709 shlibpath_var=BEGINLIBPATH
14710 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14711 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14712 postinstall_cmds='base_file=`basename \$file`~
14713 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14714 dldir=$destdir/`dirname \$dlpath`~
14715 test -d \$dldir || mkdir -p \$dldir~
14716 $install_prog $dir/$dlname \$dldir/$dlname~
14717 chmod a+x \$dldir/$dlname~
14718 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14719 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14720 fi'
14721 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14722 dlpath=$dir/\$dldll~
14723 $RM \$dlpath'
14724 ;;
14725
14726 osf3* | osf4* | osf5*)
14727 version_type=osf
14728 need_lib_prefix=no
14729 need_version=no
14730 soname_spec='$libname$release$shared_ext$major'
14731 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14732 shlibpath_var=LD_LIBRARY_PATH
14733 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14734 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14735 ;;
14736
14737 rdos*)
14738 dynamic_linker=no
14739 ;;
14740
14741 serenity*)
14742 version_type=linux # correct to gnu/linux during the next big refactor
14743 need_lib_prefix=no
14744 need_version=no
14745 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14746 soname_spec='$libname$release$shared_ext$major'
14747 shlibpath_var=LD_LIBRARY_PATH
14748 shlibpath_overrides_runpath=no
14749 dynamic_linker='SerenityOS LibELF'
14750 ;;
14751
14752 solaris*)
14753 version_type=linux # correct to gnu/linux during the next big refactor
14754 need_lib_prefix=no
14755 need_version=no
14756 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14757 soname_spec='$libname$release$shared_ext$major'
14758 shlibpath_var=LD_LIBRARY_PATH
14759 shlibpath_overrides_runpath=yes
14760 hardcode_into_libs=yes
14761 # ldd complains unless libraries are executable
14762 postinstall_cmds='chmod +x $lib'
14763 ;;
14764
14765 sunos4*)
14766 version_type=sunos
14767 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14768 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14769 shlibpath_var=LD_LIBRARY_PATH
14770 shlibpath_overrides_runpath=yes
14771 if test yes = "$with_gnu_ld"; then
14772 need_lib_prefix=no
14773 fi
14774 need_version=yes
14775 ;;
14776
14777 sysv4 | sysv4.3*)
14778 version_type=linux # correct to gnu/linux during the next big refactor
14779 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14780 soname_spec='$libname$release$shared_ext$major'
14781 shlibpath_var=LD_LIBRARY_PATH
14782 case $host_vendor in
14783 sni)
14784 shlibpath_overrides_runpath=no
14785 need_lib_prefix=no
14786 runpath_var=LD_RUN_PATH
14787 ;;
14788 siemens)
14789 need_lib_prefix=no
14790 ;;
14791 motorola)
14792 need_lib_prefix=no
14793 need_version=no
14794 shlibpath_overrides_runpath=no
14795 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14796 ;;
14797 esac
14798 ;;
14799
14800 sysv4*MP*)
14801 if test -d /usr/nec; then
14802 version_type=linux # correct to gnu/linux during the next big refactor
14803 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14804 soname_spec='$libname$shared_ext.$major'
14805 shlibpath_var=LD_LIBRARY_PATH
14806 fi
14807 ;;
14808
14809 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14810 version_type=sco
14811 need_lib_prefix=no
14812 need_version=no
14813 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14814 soname_spec='$libname$release$shared_ext$major'
14815 shlibpath_var=LD_LIBRARY_PATH
14816 shlibpath_overrides_runpath=yes
14817 hardcode_into_libs=yes
14818 if test yes = "$with_gnu_ld"; then
14819 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14820 else
14821 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14822 case $host_os in
14823 sco3.2v5*)
14824 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14825 ;;
14826 esac
14827 fi
14828 sys_lib_dlsearch_path_spec='/usr/lib'
14829 ;;
14830
14831 tpf*)
14832 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14833 version_type=linux # correct to gnu/linux during the next big refactor
14834 need_lib_prefix=no
14835 need_version=no
14836 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14837 shlibpath_var=LD_LIBRARY_PATH
14838 shlibpath_overrides_runpath=no
14839 hardcode_into_libs=yes
14840 ;;
14841
14842 uts4*)
14843 version_type=linux # correct to gnu/linux during the next big refactor
14844 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14845 soname_spec='$libname$release$shared_ext$major'
14846 shlibpath_var=LD_LIBRARY_PATH
14847 ;;
14848
14849 emscripten*)
14850 version_type=none
14851 need_lib_prefix=no
14852 need_version=no
14853 library_names_spec='$libname$release$shared_ext'
14854 soname_spec='$libname$release$shared_ext'
14855 finish_cmds=
14856 dynamic_linker="Emscripten linker"
14857 lt_prog_compiler_wl=
14858 lt_prog_compiler_pic=
14859 lt_prog_compiler_static=
14860
14861
14862 if test yes = "$GCC"; then
14863 lt_prog_compiler_wl='-Wl,'
14864 lt_prog_compiler_static='-static'
14865
14866 case $host_os in
14867 aix*)
14868 # All AIX code is PIC.
14869 if test ia64 = "$host_cpu"; then
14870 # AIX 5 now supports IA64 processor
14871 lt_prog_compiler_static='-Bstatic'
14872 fi
14873 lt_prog_compiler_pic='-fPIC'
14874 ;;
14875
14876 amigaos*)
14877 case $host_cpu in
14878 powerpc)
14879 # see comment about AmigaOS4 .so support
14880 lt_prog_compiler_pic='-fPIC'
14881 ;;
14882 m68k)
14883 # FIXME: we need at least 68020 code to build shared libraries, but
14884 # adding the '-m68020' flag to GCC prevents building anything better,
14885 # like '-m68040'.
14886 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14887 ;;
14888 esac
14889 ;;
14890
14891 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14892 # PIC is the default for these OSes.
14893 ;;
14894
14895 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
14896 # This hack is so that the source file can tell whether it is being
14897 # built for inclusion in a dll (and should export symbols for example).
14898 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14899 # (--disable-auto-import) libraries
14900 lt_prog_compiler_pic='-DDLL_EXPORT'
14901 case $host_os in
14902 os2*)
14903 lt_prog_compiler_static='$wl-static'
14904 ;;
14905 esac
14906 ;;
14907
14908 darwin* | rhapsody*)
14909 # PIC is the default on this platform
14910 # Common symbols not allowed in MH_DYLIB files
14911 lt_prog_compiler_pic='-fno-common'
14912 ;;
14913
14914 haiku*)
14915 # PIC is the default for Haiku.
14916 # The "-static" flag exists, but is broken.
14917 lt_prog_compiler_static=
14918 ;;
14919
14920 hpux*)
14921 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14922 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14923 # sets the default TLS model and affects inlining.
14924 case $host_cpu in
14925 hppa*64*)
14926 # +Z the default
14927 ;;
14928 *)
14929 lt_prog_compiler_pic='-fPIC'
14930 ;;
14931 esac
14932 ;;
14933
14934 interix[3-9]*)
14935 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14936 # Instead, we relocate shared libraries at runtime.
14937 ;;
14938
14939 msdosdjgpp*)
14940 # Just because we use GCC doesn't mean we suddenly get shared libraries
14941 # on systems that don't support them.
14942 lt_prog_compiler_can_build_shared=no
14943 enable_shared=no
14944 ;;
14945
14946 *nto* | *qnx*)
14947 # QNX uses GNU C++, but need to define -shared option too, otherwise
14948 # it will coredump.
14949 lt_prog_compiler_pic='-fPIC -shared'
14950 ;;
14951
14952 sysv4*MP*)
14953 if test -d /usr/nec; then
14954 lt_prog_compiler_pic=-Kconform_pic
14955 fi
14956 ;;
14957
14958 *)
14959 lt_prog_compiler_pic='-fPIC'
14960 ;;
14961 esac
14962
14963 case $cc_basename in
14964 nvcc*) # Cuda Compiler Driver 2.2
14965 lt_prog_compiler_wl='-Xlinker '
14966 if test -n "$lt_prog_compiler_pic"; then
14967 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14968 fi
14969 ;;
14970 esac
14971 else
14972 # PORTME Check for flag to pass linker flags through the system compiler.
14973 case $host_os in
14974 aix*)
14975 lt_prog_compiler_wl='-Wl,'
14976 if test ia64 = "$host_cpu"; then
14977 # AIX 5 now supports IA64 processor
14978 lt_prog_compiler_static='-Bstatic'
14979 else
14980 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14981 fi
14982 ;;
14983
14984 darwin* | rhapsody*)
14985 # PIC is the default on this platform
14986 # Common symbols not allowed in MH_DYLIB files
14987 lt_prog_compiler_pic='-fno-common'
14988 case $cc_basename in
14989 nagfor*)
14990 # NAG Fortran compiler
14991 lt_prog_compiler_wl='-Wl,-Wl,,'
14992 lt_prog_compiler_pic='-PIC'
14993 lt_prog_compiler_static='-Bstatic'
14994 ;;
14995 esac
14996 ;;
14997
14998 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
14999 # This hack is so that the source file can tell whether it is being
15000 # built for inclusion in a dll (and should export symbols for example).
15001 lt_prog_compiler_pic='-DDLL_EXPORT'
15002 case $host_os in
15003 os2*)
15004 lt_prog_compiler_static='$wl-static'
15005 ;;
15006 esac
15007 ;;
15008
15009 hpux9* | hpux10* | hpux11*)
15010 lt_prog_compiler_wl='-Wl,'
15011 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15012 # not for PA HP-UX.
15013 case $host_cpu in
15014 hppa*64*|ia64*)
15015 # +Z the default
15016 ;;
15017 *)
15018 lt_prog_compiler_pic='+Z'
15019 ;;
15020 esac
15021 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15022 lt_prog_compiler_static='$wl-a ${wl}archive'
15023 ;;
15024
15025 irix5* | irix6* | nonstopux*)
15026 lt_prog_compiler_wl='-Wl,'
15027 # PIC (with -KPIC) is the default.
15028 lt_prog_compiler_static='-non_shared'
15029 ;;
15030
15031 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15032 case $cc_basename in
15033 # old Intel for x86_64, which still supported -KPIC.
15034 ecc*)
15035 lt_prog_compiler_wl='-Wl,'
15036 lt_prog_compiler_pic='-KPIC'
15037 lt_prog_compiler_static='-static'
15038 ;;
15039 *flang* | ftn | f18* | f95*)
15040 # Flang compiler.
15041 lt_prog_compiler_wl='-Wl,'
15042 lt_prog_compiler_pic='-fPIC'
15043 lt_prog_compiler_static='-static'
15044 ;;
15045 # flang / f18. f95 an alias for gfortran or flang on Debian
15046 flang* | f18* | f95*)
15047 lt_prog_compiler_wl='-Wl,'
15048 lt_prog_compiler_pic='-fPIC'
15049 lt_prog_compiler_static='-static'
15050 ;;
15051 # icc used to be incompatible with GCC.
15052 # ICC 10 doesn't accept -KPIC any more.
15053 icc* | ifort*)
15054 lt_prog_compiler_wl='-Wl,'
15055 lt_prog_compiler_pic='-fPIC'
15056 lt_prog_compiler_static='-static'
15057 ;;
15058 # Lahey Fortran 8.1.
15059 lf95*)
15060 lt_prog_compiler_wl='-Wl,'
15061 lt_prog_compiler_pic='--shared'
15062 lt_prog_compiler_static='--static'
15063 ;;
15064 nagfor*)
15065 # NAG Fortran compiler
15066 lt_prog_compiler_wl='-Wl,-Wl,,'
15067 lt_prog_compiler_pic='-PIC'
15068 lt_prog_compiler_static='-Bstatic'
15069 ;;
15070 tcc*)
15071 # Fabrice Bellard et al's Tiny C Compiler
15072 lt_prog_compiler_wl='-Wl,'
15073 lt_prog_compiler_pic='-fPIC'
15074 lt_prog_compiler_static='-static'
15075 ;;
15076 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15077 # Portland Group compilers (*not* the Pentium gcc compiler,
15078 # which looks to be a dead project)
15079 lt_prog_compiler_wl='-Wl,'
15080 lt_prog_compiler_pic='-fpic'
15081 lt_prog_compiler_static='-Bstatic'
15082 ;;
15083 ccc*)
15084 lt_prog_compiler_wl='-Wl,'
15085 # All Alpha code is PIC.
15086 lt_prog_compiler_static='-non_shared'
15087 ;;
15088 xl* | bgxl* | bgf* | mpixl*)
15089 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15090 lt_prog_compiler_wl='-Wl,'
15091 lt_prog_compiler_pic='-qpic'
15092 lt_prog_compiler_static='-qstaticlink'
15093 ;;
15094 *)
15095 case `$CC -V 2>&1 | $SED 5q` in
15096 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
15097 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15098 lt_prog_compiler_pic='-KPIC'
15099 lt_prog_compiler_static='-Bstatic'
15100 lt_prog_compiler_wl=''
15101 ;;
15102 *Sun\ F* | *Sun*Fortran*)
15103 lt_prog_compiler_pic='-KPIC'
15104 lt_prog_compiler_static='-Bstatic'
15105 lt_prog_compiler_wl='-Qoption ld '
15106 ;;
15107 *Sun\ C*)
15108 # Sun C 5.9
15109 lt_prog_compiler_pic='-KPIC'
15110 lt_prog_compiler_static='-Bstatic'
15111 lt_prog_compiler_wl='-Wl,'
15112 ;;
15113 *Intel*\ [CF]*Compiler*)
15114 lt_prog_compiler_wl='-Wl,'
15115 lt_prog_compiler_pic='-fPIC'
15116 lt_prog_compiler_static='-static'
15117 ;;
15118 *Portland\ Group*)
15119 lt_prog_compiler_wl='-Wl,'
15120 lt_prog_compiler_pic='-fpic'
15121 lt_prog_compiler_static='-Bstatic'
15122 ;;
15123 esac
15124 ;;
15125 esac
15126 ;;
15127
15128 newsos6)
15129 lt_prog_compiler_pic='-KPIC'
15130 lt_prog_compiler_static='-Bstatic'
15131 ;;
15132
15133 *-mlibc)
15134 lt_prog_compiler_wl='-Wl,'
15135 lt_prog_compiler_pic='-fPIC'
15136 lt_prog_compiler_static='-static'
15137 ;;
15138
15139 *nto* | *qnx*)
15140 # QNX uses GNU C++, but need to define -shared option too, otherwise
15141 # it will coredump.
15142 lt_prog_compiler_pic='-fPIC -shared'
15143 ;;
15144
15145 osf3* | osf4* | osf5*)
15146 lt_prog_compiler_wl='-Wl,'
15147 # All OSF/1 code is PIC.
15148 lt_prog_compiler_static='-non_shared'
15149 ;;
15150
15151 rdos*)
15152 lt_prog_compiler_static='-non_shared'
15153 ;;
15154
15155 serenity*)
15156 ;;
15157
15158 solaris*)
15159 lt_prog_compiler_pic='-KPIC'
15160 lt_prog_compiler_static='-Bstatic'
15161 case $cc_basename in
15162 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15163 lt_prog_compiler_wl='-Qoption ld ';;
15164 *)
15165 lt_prog_compiler_wl='-Wl,';;
15166 esac
15167 ;;
15168
15169 sunos4*)
15170 lt_prog_compiler_wl='-Qoption ld '
15171 lt_prog_compiler_pic='-PIC'
15172 lt_prog_compiler_static='-Bstatic'
15173 ;;
15174
15175 sysv4 | sysv4.2uw2* | sysv4.3*)
15176 lt_prog_compiler_wl='-Wl,'
15177 lt_prog_compiler_pic='-KPIC'
15178 lt_prog_compiler_static='-Bstatic'
15179 ;;
15180
15181 sysv4*MP*)
15182 if test -d /usr/nec; then
15183 lt_prog_compiler_pic='-Kconform_pic'
15184 lt_prog_compiler_static='-Bstatic'
15185 fi
15186 ;;
15187
15188 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15189 lt_prog_compiler_wl='-Wl,'
15190 lt_prog_compiler_pic='-KPIC'
15191 lt_prog_compiler_static='-Bstatic'
15192 ;;
15193
15194 unicos*)
15195 lt_prog_compiler_wl='-Wl,'
15196 lt_prog_compiler_can_build_shared=no
15197 ;;
15198
15199 uts4*)
15200 lt_prog_compiler_pic='-pic'
15201 lt_prog_compiler_static='-Bstatic'
15202 ;;
15203
15204 *)
15205 lt_prog_compiler_can_build_shared=no
15206 ;;
15207 esac
15208 fi
15209
15210 case $host_os in
15211 # For platforms that do not support PIC, -DPIC is meaningless:
15212 *djgpp*)
15213 lt_prog_compiler_pic=
15214 ;;
15215 *)
15216 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15217 ;;
15218 esac
15219
15220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15221 printf %s "checking for $compiler option to produce PIC... " >&6; }
15222 if test ${lt_cv_prog_compiler_pic+y}
15223 then :
15224 printf %s "(cached) " >&6
15225 else case e in #(
15226 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
15227 esac
15228 fi
15229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15230 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
15231 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15232
15233 #
15234 # Check to make sure the PIC flag actually works.
15235 #
15236 if test -n "$lt_prog_compiler_pic"; then
15237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15238 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15239 if test ${lt_cv_prog_compiler_pic_works+y}
15240 then :
15241 printf %s "(cached) " >&6
15242 else case e in #(
15243 e) lt_cv_prog_compiler_pic_works=no
15244 ac_outfile=conftest.$ac_objext
15245 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15246 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
15247 # Insert the option either (1) after the last *FLAGS variable, or
15248 # (2) before a word containing "conftest.", or (3) at the end.
15249 # Note that $ac_compile itself does not contain backslashes and begins
15250 # with a dollar sign (not a hyphen), so the echo should work correctly.
15251 # The option is referenced via a variable to avoid confusing sed.
15252 lt_compile=`echo "$ac_compile" | $SED \
15253 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15254 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15255 -e 's:$: $lt_compiler_flag:'`
15256 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15257 (eval "$lt_compile" 2>conftest.err)
15258 ac_status=$?
15259 cat conftest.err >&5
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 if (exit $ac_status) && test -s "$ac_outfile"; then
15262 # The compiler can only warn and ignore the option if not recognized
15263 # So say no if there are warnings other than the usual output.
15264 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15265 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15266 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15267 lt_cv_prog_compiler_pic_works=yes
15268 fi
15269 fi
15270 $RM conftest*
15271 ;;
15272 esac
15273 fi
15274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15275 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
15276
15277 if test yes = "$lt_cv_prog_compiler_pic_works"; then
15278 case $lt_prog_compiler_pic in
15279 "" | " "*) ;;
15280 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15281 esac
15282 else
15283 lt_prog_compiler_pic=
15284 lt_prog_compiler_can_build_shared=no
15285 fi
15286
15287 fi
15288
15289
15290
15291
15292
15293 #
15294 # Check to make sure the static flag actually works.
15295 #
15296 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15298 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15299 if test ${lt_cv_prog_compiler_static_works+y}
15300 then :
15301 printf %s "(cached) " >&6
15302 else case e in #(
15303 e) lt_cv_prog_compiler_static_works=no
15304 save_LDFLAGS=$LDFLAGS
15305 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15306 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15307 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15308 # The linker can only warn and ignore the option if not recognized
15309 # So say no if there are warnings
15310 if test -s conftest.err; then
15311 # Append any errors to the config.log.
15312 cat conftest.err 1>&5
15313 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15314 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15315 if diff conftest.exp conftest.er2 >/dev/null; then
15316 lt_cv_prog_compiler_static_works=yes
15317 fi
15318 else
15319 lt_cv_prog_compiler_static_works=yes
15320 fi
15321 fi
15322 $RM -r conftest*
15323 LDFLAGS=$save_LDFLAGS
15324 ;;
15325 esac
15326 fi
15327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15328 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
15329
15330 if test yes = "$lt_cv_prog_compiler_static_works"; then
15331 :
15332 else
15333 lt_prog_compiler_static=
15334 fi
15335
15336
15337
15338 ='-fPIC'
15339 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
15340 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
15341 archive_cmds_need_lc=no
15342 no_undefined_flag=
15343 ;;
15344
15345 *)
15346 dynamic_linker=no
15347 ;;
15348 esac
15349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15350 printf "%s\n" "$dynamic_linker" >&6; }
15351 test no = "$dynamic_linker" && can_build_shared=no
15352
15353 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15354 if test yes = "$GCC"; then
15355 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15356 fi
15357
15358 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15359 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15360 fi
15361
15362 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15363 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15364 fi
15365
15366 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15367 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15368
15369 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15370 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15371
15372 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15373 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15472 printf %s "checking how to hardcode library paths into programs... " >&6; }
15473 hardcode_action=
15474 if test -n "$hardcode_libdir_flag_spec" ||
15475 test -n "$runpath_var" ||
15476 test yes = "$hardcode_automatic"; then
15477
15478 # We can hardcode non-existent directories.
15479 if test no != "$hardcode_direct" &&
15480 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15481 # have to relink, otherwise we might link with an installed library
15482 # when we should be linking with a yet-to-be-installed one
15483 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15484 test no != "$hardcode_minus_L"; then
15485 # Linking always hardcodes the temporary library directory.
15486 hardcode_action=relink
15487 else
15488 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15489 hardcode_action=immediate
15490 fi
15491 else
15492 # We cannot hardcode anything, or else we can only hardcode existing
15493 # directories.
15494 hardcode_action=unsupported
15495 fi
15496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15497 printf "%s\n" "$hardcode_action" >&6; }
15498
15499 if test relink = "$hardcode_action" ||
15500 test yes = "$inherit_rpath"; then
15501 # Fast installation is not supported
15502 enable_fast_install=no
15503 elif test yes = "$shlibpath_overrides_runpath" ||
15504 test no = "$enable_shared"; then
15505 # Fast installation is not necessary
15506 enable_fast_install=needless
15507 fi
15508
15509
15510
15511
15512
15513
15514 if test yes != "$enable_dlopen"; then
15515 enable_dlopen=unknown
15516 enable_dlopen_self=unknown
15517 enable_dlopen_self_static=unknown
15518 else
15519 lt_cv_dlopen=no
15520 lt_cv_dlopen_libs=
15521
15522 case $host_os in
15523 beos*)
15524 lt_cv_dlopen=load_add_on
15525 lt_cv_dlopen_libs=
15526 lt_cv_dlopen_self=yes
15527 ;;
15528
15529 mingw* | windows* | pw32* | cegcc*)
15530 lt_cv_dlopen=LoadLibrary
15531 lt_cv_dlopen_libs=
15532 ;;
15533
15534 cygwin*)
15535 lt_cv_dlopen=dlopen
15536 lt_cv_dlopen_libs=
15537 ;;
15538
15539 darwin*)
15540 # if libdl is installed we need to link against it
15541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15542 printf %s "checking for dlopen in -ldl... " >&6; }
15543 if test ${ac_cv_lib_dl_dlopen+y}
15544 then :
15545 printf %s "(cached) " >&6
15546 else case e in #(
15547 e) ac_check_lib_save_LIBS=$LIBS
15548 LIBS="-ldl $LIBS"
15549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15550 /* end confdefs.h. */
15551
15552 /* Override any GCC internal prototype to avoid an error.
15553 Use char because int might match the return type of a GCC
15554 builtin and then its argument prototype would still apply.
15555 The 'extern "C"' is for builds by C++ compilers;
15556 although this is not generally supported in C code supporting it here
15557 has little cost and some practical benefit (sr 110532). */
15558 #ifdef __cplusplus
15559 extern "C"
15560 #endif
15561 char dlopen (void);
15562 int
15563 main (void)
15564 {
15565 return dlopen ();
15566 ;
15567 return 0;
15568 }
15569 _ACEOF
15570 if ac_fn_c_try_link "$LINENO"
15571 then :
15572 ac_cv_lib_dl_dlopen=yes
15573 else case e in #(
15574 e) ac_cv_lib_dl_dlopen=no ;;
15575 esac
15576 fi
15577 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15578 conftest$ac_exeext conftest.$ac_ext
15579 LIBS=$ac_check_lib_save_LIBS ;;
15580 esac
15581 fi
15582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15583 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15584 if test "x$ac_cv_lib_dl_dlopen" = xyes
15585 then :
15586 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15587 else case e in #(
15588 e)
15589 lt_cv_dlopen=dyld
15590 lt_cv_dlopen_libs=
15591 lt_cv_dlopen_self=yes
15592 ;;
15593 esac
15594 fi
15595
15596 ;;
15597
15598 tpf*)
15599 # Don't try to run any link tests for TPF. We know it's impossible
15600 # because TPF is a cross-compiler, and we know how we open DSOs.
15601 lt_cv_dlopen=dlopen
15602 lt_cv_dlopen_libs=
15603 lt_cv_dlopen_self=no
15604 ;;
15605
15606 *)
15607 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15608 if test "x$ac_cv_func_shl_load" = xyes
15609 then :
15610 lt_cv_dlopen=shl_load
15611 else case e in #(
15612 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15613 printf %s "checking for shl_load in -ldld... " >&6; }
15614 if test ${ac_cv_lib_dld_shl_load+y}
15615 then :
15616 printf %s "(cached) " >&6
15617 else case e in #(
15618 e) ac_check_lib_save_LIBS=$LIBS
15619 LIBS="-ldld $LIBS"
15620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15621 /* end confdefs.h. */
15622
15623 /* Override any GCC internal prototype to avoid an error.
15624 Use char because int might match the return type of a GCC
15625 builtin and then its argument prototype would still apply.
15626 The 'extern "C"' is for builds by C++ compilers;
15627 although this is not generally supported in C code supporting it here
15628 has little cost and some practical benefit (sr 110532). */
15629 #ifdef __cplusplus
15630 extern "C"
15631 #endif
15632 char shl_load (void);
15633 int
15634 main (void)
15635 {
15636 return shl_load ();
15637 ;
15638 return 0;
15639 }
15640 _ACEOF
15641 if ac_fn_c_try_link "$LINENO"
15642 then :
15643 ac_cv_lib_dld_shl_load=yes
15644 else case e in #(
15645 e) ac_cv_lib_dld_shl_load=no ;;
15646 esac
15647 fi
15648 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15649 conftest$ac_exeext conftest.$ac_ext
15650 LIBS=$ac_check_lib_save_LIBS ;;
15651 esac
15652 fi
15653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15654 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
15655 if test "x$ac_cv_lib_dld_shl_load" = xyes
15656 then :
15657 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15658 else case e in #(
15659 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15660 if test "x$ac_cv_func_dlopen" = xyes
15661 then :
15662 lt_cv_dlopen=dlopen
15663 else case e in #(
15664 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15665 printf %s "checking for dlopen in -ldl... " >&6; }
15666 if test ${ac_cv_lib_dl_dlopen+y}
15667 then :
15668 printf %s "(cached) " >&6
15669 else case e in #(
15670 e) ac_check_lib_save_LIBS=$LIBS
15671 LIBS="-ldl $LIBS"
15672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15673 /* end confdefs.h. */
15674
15675 /* Override any GCC internal prototype to avoid an error.
15676 Use char because int might match the return type of a GCC
15677 builtin and then its argument prototype would still apply.
15678 The 'extern "C"' is for builds by C++ compilers;
15679 although this is not generally supported in C code supporting it here
15680 has little cost and some practical benefit (sr 110532). */
15681 #ifdef __cplusplus
15682 extern "C"
15683 #endif
15684 char dlopen (void);
15685 int
15686 main (void)
15687 {
15688 return dlopen ();
15689 ;
15690 return 0;
15691 }
15692 _ACEOF
15693 if ac_fn_c_try_link "$LINENO"
15694 then :
15695 ac_cv_lib_dl_dlopen=yes
15696 else case e in #(
15697 e) ac_cv_lib_dl_dlopen=no ;;
15698 esac
15699 fi
15700 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15701 conftest$ac_exeext conftest.$ac_ext
15702 LIBS=$ac_check_lib_save_LIBS ;;
15703 esac
15704 fi
15705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15706 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15707 if test "x$ac_cv_lib_dl_dlopen" = xyes
15708 then :
15709 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15710 else case e in #(
15711 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15712 printf %s "checking for dlopen in -lsvld... " >&6; }
15713 if test ${ac_cv_lib_svld_dlopen+y}
15714 then :
15715 printf %s "(cached) " >&6
15716 else case e in #(
15717 e) ac_check_lib_save_LIBS=$LIBS
15718 LIBS="-lsvld $LIBS"
15719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15720 /* end confdefs.h. */
15721
15722 /* Override any GCC internal prototype to avoid an error.
15723 Use char because int might match the return type of a GCC
15724 builtin and then its argument prototype would still apply.
15725 The 'extern "C"' is for builds by C++ compilers;
15726 although this is not generally supported in C code supporting it here
15727 has little cost and some practical benefit (sr 110532). */
15728 #ifdef __cplusplus
15729 extern "C"
15730 #endif
15731 char dlopen (void);
15732 int
15733 main (void)
15734 {
15735 return dlopen ();
15736 ;
15737 return 0;
15738 }
15739 _ACEOF
15740 if ac_fn_c_try_link "$LINENO"
15741 then :
15742 ac_cv_lib_svld_dlopen=yes
15743 else case e in #(
15744 e) ac_cv_lib_svld_dlopen=no ;;
15745 esac
15746 fi
15747 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15748 conftest$ac_exeext conftest.$ac_ext
15749 LIBS=$ac_check_lib_save_LIBS ;;
15750 esac
15751 fi
15752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15753 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
15754 if test "x$ac_cv_lib_svld_dlopen" = xyes
15755 then :
15756 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15757 else case e in #(
15758 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15759 printf %s "checking for dld_link in -ldld... " >&6; }
15760 if test ${ac_cv_lib_dld_dld_link+y}
15761 then :
15762 printf %s "(cached) " >&6
15763 else case e in #(
15764 e) ac_check_lib_save_LIBS=$LIBS
15765 LIBS="-ldld $LIBS"
15766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15767 /* end confdefs.h. */
15768
15769 /* Override any GCC internal prototype to avoid an error.
15770 Use char because int might match the return type of a GCC
15771 builtin and then its argument prototype would still apply.
15772 The 'extern "C"' is for builds by C++ compilers;
15773 although this is not generally supported in C code supporting it here
15774 has little cost and some practical benefit (sr 110532). */
15775 #ifdef __cplusplus
15776 extern "C"
15777 #endif
15778 char dld_link (void);
15779 int
15780 main (void)
15781 {
15782 return dld_link ();
15783 ;
15784 return 0;
15785 }
15786 _ACEOF
15787 if ac_fn_c_try_link "$LINENO"
15788 then :
15789 ac_cv_lib_dld_dld_link=yes
15790 else case e in #(
15791 e) ac_cv_lib_dld_dld_link=no ;;
15792 esac
15793 fi
15794 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15795 conftest$ac_exeext conftest.$ac_ext
15796 LIBS=$ac_check_lib_save_LIBS ;;
15797 esac
15798 fi
15799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15800 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
15801 if test "x$ac_cv_lib_dld_dld_link" = xyes
15802 then :
15803 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15804 fi
15805
15806 ;;
15807 esac
15808 fi
15809
15810 ;;
15811 esac
15812 fi
15813
15814 ;;
15815 esac
15816 fi
15817
15818 ;;
15819 esac
15820 fi
15821
15822 ;;
15823 esac
15824 fi
15825
15826 ;;
15827 esac
15828
15829 if test no = "$lt_cv_dlopen"; then
15830 enable_dlopen=no
15831 else
15832 enable_dlopen=yes
15833 fi
15834
15835 case $lt_cv_dlopen in
15836 dlopen)
15837 save_CPPFLAGS=$CPPFLAGS
15838 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15839
15840 save_LDFLAGS=$LDFLAGS
15841 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15842
15843 save_LIBS=$LIBS
15844 LIBS="$lt_cv_dlopen_libs $LIBS"
15845
15846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15847 printf %s "checking whether a program can dlopen itself... " >&6; }
15848 if test ${lt_cv_dlopen_self+y}
15849 then :
15850 printf %s "(cached) " >&6
15851 else case e in #(
15852 e) if test yes = "$cross_compiling"; then :
15853 lt_cv_dlopen_self=cross
15854 else
15855 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15856 lt_status=$lt_dlunknown
15857 cat > conftest.$ac_ext <<_LT_EOF
15858 #line $LINENO "configure"
15859 #include "confdefs.h"
15860
15861 #if HAVE_DLFCN_H
15862 #include <dlfcn.h>
15863 #endif
15864
15865 #include <stdio.h>
15866
15867 #ifdef RTLD_GLOBAL
15868 # define LT_DLGLOBAL RTLD_GLOBAL
15869 #else
15870 # ifdef DL_GLOBAL
15871 # define LT_DLGLOBAL DL_GLOBAL
15872 # else
15873 # define LT_DLGLOBAL 0
15874 # endif
15875 #endif
15876
15877 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15878 find out it does not work in some platform. */
15879 #ifndef LT_DLLAZY_OR_NOW
15880 # ifdef RTLD_LAZY
15881 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15882 # else
15883 # ifdef DL_LAZY
15884 # define LT_DLLAZY_OR_NOW DL_LAZY
15885 # else
15886 # ifdef RTLD_NOW
15887 # define LT_DLLAZY_OR_NOW RTLD_NOW
15888 # else
15889 # ifdef DL_NOW
15890 # define LT_DLLAZY_OR_NOW DL_NOW
15891 # else
15892 # define LT_DLLAZY_OR_NOW 0
15893 # endif
15894 # endif
15895 # endif
15896 # endif
15897 #endif
15898
15899 /* When -fvisibility=hidden is used, assume the code has been annotated
15900 correspondingly for the symbols needed. */
15901 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15902 int fnord (void) __attribute__((visibility("default")));
15903 #endif
15904
15905 int fnord (void) { return 42; }
15906 int main (void)
15907 {
15908 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15909 int status = $lt_dlunknown;
15910
15911 if (self)
15912 {
15913 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15914 else
15915 {
15916 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15917 else puts (dlerror ());
15918 }
15919 /* dlclose (self); */
15920 }
15921 else
15922 puts (dlerror ());
15923
15924 return status;
15925 }
15926 _LT_EOF
15927 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15928 (eval $ac_link) 2>&5
15929 ac_status=$?
15930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15931 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15932 (./conftest; exit; ) >&5 2>/dev/null
15933 lt_status=$?
15934 case x$lt_status in
15935 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15936 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15937 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15938 esac
15939 else :
15940 # compilation failed
15941 lt_cv_dlopen_self=no
15942 fi
15943 fi
15944 rm -fr conftest*
15945
15946 ;;
15947 esac
15948 fi
15949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15950 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
15951
15952 if test yes = "$lt_cv_dlopen_self"; then
15953 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15955 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
15956 if test ${lt_cv_dlopen_self_static+y}
15957 then :
15958 printf %s "(cached) " >&6
15959 else case e in #(
15960 e) if test yes = "$cross_compiling"; then :
15961 lt_cv_dlopen_self_static=cross
15962 else
15963 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15964 lt_status=$lt_dlunknown
15965 cat > conftest.$ac_ext <<_LT_EOF
15966 #line $LINENO "configure"
15967 #include "confdefs.h"
15968
15969 #if HAVE_DLFCN_H
15970 #include <dlfcn.h>
15971 #endif
15972
15973 #include <stdio.h>
15974
15975 #ifdef RTLD_GLOBAL
15976 # define LT_DLGLOBAL RTLD_GLOBAL
15977 #else
15978 # ifdef DL_GLOBAL
15979 # define LT_DLGLOBAL DL_GLOBAL
15980 # else
15981 # define LT_DLGLOBAL 0
15982 # endif
15983 #endif
15984
15985 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15986 find out it does not work in some platform. */
15987 #ifndef LT_DLLAZY_OR_NOW
15988 # ifdef RTLD_LAZY
15989 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15990 # else
15991 # ifdef DL_LAZY
15992 # define LT_DLLAZY_OR_NOW DL_LAZY
15993 # else
15994 # ifdef RTLD_NOW
15995 # define LT_DLLAZY_OR_NOW RTLD_NOW
15996 # else
15997 # ifdef DL_NOW
15998 # define LT_DLLAZY_OR_NOW DL_NOW
15999 # else
16000 # define LT_DLLAZY_OR_NOW 0
16001 # endif
16002 # endif
16003 # endif
16004 # endif
16005 #endif
16006
16007 /* When -fvisibility=hidden is used, assume the code has been annotated
16008 correspondingly for the symbols needed. */
16009 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16010 int fnord (void) __attribute__((visibility("default")));
16011 #endif
16012
16013 int fnord (void) { return 42; }
16014 int main (void)
16015 {
16016 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16017 int status = $lt_dlunknown;
16018
16019 if (self)
16020 {
16021 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16022 else
16023 {
16024 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16025 else puts (dlerror ());
16026 }
16027 /* dlclose (self); */
16028 }
16029 else
16030 puts (dlerror ());
16031
16032 return status;
16033 }
16034 _LT_EOF
16035 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16036 (eval $ac_link) 2>&5
16037 ac_status=$?
16038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16039 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16040 (./conftest; exit; ) >&5 2>/dev/null
16041 lt_status=$?
16042 case x$lt_status in
16043 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16044 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16045 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16046 esac
16047 else :
16048 # compilation failed
16049 lt_cv_dlopen_self_static=no
16050 fi
16051 fi
16052 rm -fr conftest*
16053
16054 ;;
16055 esac
16056 fi
16057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16058 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
16059 fi
16060
16061 CPPFLAGS=$save_CPPFLAGS
16062 LDFLAGS=$save_LDFLAGS
16063 LIBS=$save_LIBS
16064 ;;
16065 esac
16066
16067 case $lt_cv_dlopen_self in
16068 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16069 *) enable_dlopen_self=unknown ;;
16070 esac
16071
16072 case $lt_cv_dlopen_self_static in
16073 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16074 *) enable_dlopen_self_static=unknown ;;
16075 esac
16076 fi
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094 striplib=
16095 old_striplib=
16096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16097 printf %s "checking whether stripping libraries is possible... " >&6; }
16098 if test -z "$STRIP"; then
16099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16100 printf "%s\n" "no" >&6; }
16101 else
16102 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16103 old_striplib="$STRIP --strip-debug"
16104 striplib="$STRIP --strip-unneeded"
16105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16106 printf "%s\n" "yes" >&6; }
16107 else
16108 case $host_os in
16109 darwin*)
16110 # FIXME - insert some real tests, host_os isn't really good enough
16111 striplib="$STRIP -x"
16112 old_striplib="$STRIP -S"
16113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16114 printf "%s\n" "yes" >&6; }
16115 ;;
16116 freebsd*)
16117 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
16118 old_striplib="$STRIP --strip-debug"
16119 striplib="$STRIP --strip-unneeded"
16120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16121 printf "%s\n" "yes" >&6; }
16122 else
16123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16124 printf "%s\n" "no" >&6; }
16125 fi
16126 ;;
16127 *)
16128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16129 printf "%s\n" "no" >&6; }
16130 ;;
16131 esac
16132 fi
16133 fi
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146 # Report what library types will actually be built
16147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16148 printf %s "checking if libtool supports shared libraries... " >&6; }
16149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16150 printf "%s\n" "$can_build_shared" >&6; }
16151
16152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16153 printf %s "checking whether to build shared libraries... " >&6; }
16154 test no = "$can_build_shared" && enable_shared=no
16155
16156 # On AIX, shared libraries and static libraries use the same namespace, and
16157 # are all built from PIC.
16158 case $host_os in
16159 aix3*)
16160 test yes = "$enable_shared" && enable_static=no
16161 if test -n "$RANLIB"; then
16162 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16163 postinstall_cmds='$RANLIB $lib'
16164 fi
16165 ;;
16166
16167 aix[4-9]*)
16168 if test ia64 != "$host_cpu"; then
16169 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
16170 yes,aix,yes) ;; # shared object as lib.so file only
16171 yes,svr4,*) ;; # shared object as lib.so archive member only
16172 yes,*) enable_static=no ;; # shared object in lib.a archive as well
16173 esac
16174 fi
16175 ;;
16176 esac
16177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16178 printf "%s\n" "$enable_shared" >&6; }
16179
16180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16181 printf %s "checking whether to build static libraries... " >&6; }
16182 # Make sure either enable_shared or enable_static is yes.
16183 test yes = "$enable_shared" || enable_static=yes
16184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16185 printf "%s\n" "$enable_static" >&6; }
16186
16187
16188
16189
16190 fi
16191 ac_ext=cpp
16192 ac_cpp='$CXXCPP $CPPFLAGS'
16193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16196
16197 CC=$lt_save_CC
16198
16199 if test -n "$CXX" && ( test no != "$CXX" &&
16200 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
16201 (test g++ != "$CXX"))); then
16202 ac_ext=cpp
16203 ac_cpp='$CXXCPP $CPPFLAGS'
16204 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16205 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16206 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16208 printf %s "checking how to run the C++ preprocessor... " >&6; }
16209 if test -z "$CXXCPP"; then
16210 if test ${ac_cv_prog_CXXCPP+y}
16211 then :
16212 printf %s "(cached) " >&6
16213 else case e in #(
16214 e) # Double quotes because $CXX needs to be expanded
16215 for CXXCPP in "$CXX -E" cpp /lib/cpp
16216 do
16217 ac_preproc_ok=false
16218 for ac_cxx_preproc_warn_flag in '' yes
16219 do
16220 # Use a header file that comes with gcc, so configuring glibc
16221 # with a fresh cross-compiler works.
16222 # On the NeXT, cc -E runs the code through the compiler's parser,
16223 # not just through cpp. "Syntax error" is here to catch this case.
16224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16225 /* end confdefs.h. */
16226 #include <limits.h>
16227 Syntax error
16228 _ACEOF
16229 if ac_fn_cxx_try_cpp "$LINENO"
16230 then :
16231
16232 else case e in #(
16233 e) # Broken: fails on valid input.
16234 continue ;;
16235 esac
16236 fi
16237 rm -f conftest.err conftest.i conftest.$ac_ext
16238
16239 # OK, works on sane cases. Now check whether nonexistent headers
16240 # can be detected and how.
16241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16242 /* end confdefs.h. */
16243 #include <ac_nonexistent.h>
16244 _ACEOF
16245 if ac_fn_cxx_try_cpp "$LINENO"
16246 then :
16247 # Broken: success on invalid input.
16248 continue
16249 else case e in #(
16250 e) # Passes both tests.
16251 ac_preproc_ok=:
16252 break ;;
16253 esac
16254 fi
16255 rm -f conftest.err conftest.i conftest.$ac_ext
16256
16257 done
16258 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16259 rm -f conftest.i conftest.err conftest.$ac_ext
16260 if $ac_preproc_ok
16261 then :
16262 break
16263 fi
16264
16265 done
16266 ac_cv_prog_CXXCPP=$CXXCPP
16267 ;;
16268 esac
16269 fi
16270 CXXCPP=$ac_cv_prog_CXXCPP
16271 else
16272 ac_cv_prog_CXXCPP=$CXXCPP
16273 fi
16274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16275 printf "%s\n" "$CXXCPP" >&6; }
16276 ac_preproc_ok=false
16277 for ac_cxx_preproc_warn_flag in '' yes
16278 do
16279 # Use a header file that comes with gcc, so configuring glibc
16280 # with a fresh cross-compiler works.
16281 # On the NeXT, cc -E runs the code through the compiler's parser,
16282 # not just through cpp. "Syntax error" is here to catch this case.
16283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16284 /* end confdefs.h. */
16285 #include <limits.h>
16286 Syntax error
16287 _ACEOF
16288 if ac_fn_cxx_try_cpp "$LINENO"
16289 then :
16290
16291 else case e in #(
16292 e) # Broken: fails on valid input.
16293 continue ;;
16294 esac
16295 fi
16296 rm -f conftest.err conftest.i conftest.$ac_ext
16297
16298 # OK, works on sane cases. Now check whether nonexistent headers
16299 # can be detected and how.
16300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16301 /* end confdefs.h. */
16302 #include <ac_nonexistent.h>
16303 _ACEOF
16304 if ac_fn_cxx_try_cpp "$LINENO"
16305 then :
16306 # Broken: success on invalid input.
16307 continue
16308 else case e in #(
16309 e) # Passes both tests.
16310 ac_preproc_ok=:
16311 break ;;
16312 esac
16313 fi
16314 rm -f conftest.err conftest.i conftest.$ac_ext
16315
16316 done
16317 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16318 rm -f conftest.i conftest.err conftest.$ac_ext
16319 if $ac_preproc_ok
16320 then :
16321
16322 else case e in #(
16323 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16324 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16325 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16326 See 'config.log' for more details" "$LINENO" 5; } ;;
16327 esac
16328 fi
16329
16330 ac_ext=cpp
16331 ac_cpp='$CXXCPP $CPPFLAGS'
16332 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16333 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16334 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16335
16336 else
16337 _lt_caught_CXX_error=yes
16338 fi
16339
16340 ac_ext=cpp
16341 ac_cpp='$CXXCPP $CPPFLAGS'
16342 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16343 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16344 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16345
16346 archive_cmds_need_lc_CXX=no
16347 allow_undefined_flag_CXX=
16348 always_export_symbols_CXX=no
16349 archive_expsym_cmds_CXX=
16350 compiler_needs_object_CXX=no
16351 export_dynamic_flag_spec_CXX=
16352 hardcode_direct_CXX=no
16353 hardcode_direct_absolute_CXX=no
16354 hardcode_libdir_flag_spec_CXX=
16355 hardcode_libdir_separator_CXX=
16356 hardcode_minus_L_CXX=no
16357 hardcode_shlibpath_var_CXX=unsupported
16358 hardcode_automatic_CXX=no
16359 inherit_rpath_CXX=no
16360 module_cmds_CXX=
16361 module_expsym_cmds_CXX=
16362 link_all_deplibs_CXX=unknown
16363 old_archive_cmds_CXX=$old_archive_cmds
16364 reload_flag_CXX=$reload_flag
16365 reload_cmds_CXX=$reload_cmds
16366 no_undefined_flag_CXX=
16367 whole_archive_flag_spec_CXX=
16368 enable_shared_with_static_runtimes_CXX=no
16369
16370 # Source file extension for C++ test sources.
16371 ac_ext=cpp
16372
16373 # Object file extension for compiled C++ test sources.
16374 objext=o
16375 objext_CXX=$objext
16376
16377 # No sense in running all these tests if we already determined that
16378 # the CXX compiler isn't working. Some variables (like enable_shared)
16379 # are currently assumed to apply to all compilers on this platform,
16380 # and will be corrupted by setting them based on a non-working compiler.
16381 if test yes != "$_lt_caught_CXX_error"; then
16382 # Code to be used in simple compile tests
16383 lt_simple_compile_test_code="int some_variable = 0;"
16384
16385 # Code to be used in simple link tests
16386 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16387
16388 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16389
16390
16391
16392
16393
16394
16395 # If no C compiler was specified, use CC.
16396 LTCC=${LTCC-"$CC"}
16397
16398 # If no C compiler flags were specified, use CFLAGS.
16399 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16400
16401 # Allow CC to be a program name with arguments.
16402 compiler=$CC
16403
16404
16405 # save warnings/boilerplate of simple test code
16406 ac_outfile=conftest.$ac_objext
16407 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16408 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16409 _lt_compiler_boilerplate=`cat conftest.err`
16410 $RM conftest*
16411
16412 ac_outfile=conftest.$ac_objext
16413 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16414 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16415 _lt_linker_boilerplate=`cat conftest.err`
16416 $RM -r conftest*
16417
16418
16419 # Allow CC to be a program name with arguments.
16420 lt_save_CC=$CC
16421 lt_save_CFLAGS=$CFLAGS
16422 lt_save_LD=$LD
16423 lt_save_GCC=$GCC
16424 GCC=$GXX
16425 lt_save_with_gnu_ld=$with_gnu_ld
16426 lt_save_path_LD=$lt_cv_path_LD
16427 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16428 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16429 else
16430 $as_unset lt_cv_prog_gnu_ld
16431 fi
16432 if test -n "${lt_cv_path_LDCXX+set}"; then
16433 lt_cv_path_LD=$lt_cv_path_LDCXX
16434 else
16435 $as_unset lt_cv_path_LD
16436 fi
16437 test -z "${LDCXX+set}" || LD=$LDCXX
16438 CC=${CXX-"c++"}
16439 CFLAGS=$CXXFLAGS
16440 compiler=$CC
16441 compiler_CXX=$CC
16442 func_cc_basename $compiler
16443 cc_basename=$func_cc_basename_result
16444
16445
16446 if test -n "$compiler"; then
16447 # We don't want -fno-exception when compiling C++ code, so set the
16448 # no_builtin_flag separately
16449 if test yes = "$GXX"; then
16450 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16451 else
16452 lt_prog_compiler_no_builtin_flag_CXX=
16453 fi
16454
16455 if test yes = "$GXX"; then
16456 # Set up default GNU C++ configuration
16457
16458
16459
16460 # Check whether --with-gnu-ld was given.
16461 if test ${with_gnu_ld+y}
16462 then :
16463 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
16464 else case e in #(
16465 e) with_gnu_ld=no ;;
16466 esac
16467 fi
16468
16469 ac_prog=ld
16470 if test yes = "$GCC"; then
16471 # Check if gcc -print-prog-name=ld gives a path.
16472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16473 printf %s "checking for ld used by $CC... " >&6; }
16474 case $host in
16475 *-*-mingw* | *-*-windows*)
16476 # gcc leaves a trailing carriage return, which upsets mingw
16477 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16478 *)
16479 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16480 esac
16481 case $ac_prog in
16482 # Accept absolute paths.
16483 [\\/]* | ?:[\\/]*)
16484 re_direlt='/[^/][^/]*/\.\./'
16485 # Canonicalize the pathname of ld
16486 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16487 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16488 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16489 done
16490 test -z "$LD" && LD=$ac_prog
16491 ;;
16492 "")
16493 # If it fails, then pretend we aren't using GCC.
16494 ac_prog=ld
16495 ;;
16496 *)
16497 # If it is relative, then search for the first ld in PATH.
16498 with_gnu_ld=unknown
16499 ;;
16500 esac
16501 elif test yes = "$with_gnu_ld"; then
16502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16503 printf %s "checking for GNU ld... " >&6; }
16504 else
16505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16506 printf %s "checking for non-GNU ld... " >&6; }
16507 fi
16508 if test ${lt_cv_path_LD+y}
16509 then :
16510 printf %s "(cached) " >&6
16511 else case e in #(
16512 e) if test -z "$LD"; then
16513 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
16514 for ac_dir in $PATH; do
16515 IFS=$lt_save_ifs
16516 test -z "$ac_dir" && ac_dir=.
16517 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16518 lt_cv_path_LD=$ac_dir/$ac_prog
16519 # Check to see if the program is GNU ld. I'd rather use --version,
16520 # but apparently some variants of GNU ld only accept -v.
16521 # Break only if it was the GNU/non-GNU ld that we prefer.
16522 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16523 *GNU* | *'with BFD'*)
16524 test no != "$with_gnu_ld" && break
16525 ;;
16526 *)
16527 test yes != "$with_gnu_ld" && break
16528 ;;
16529 esac
16530 fi
16531 done
16532 IFS=$lt_save_ifs
16533 else
16534 lt_cv_path_LD=$LD # Let the user override the test with a path.
16535 fi ;;
16536 esac
16537 fi
16538
16539 LD=$lt_cv_path_LD
16540 if test -n "$LD"; then
16541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16542 printf "%s\n" "$LD" >&6; }
16543 else
16544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16545 printf "%s\n" "no" >&6; }
16546 fi
16547 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16549 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
16550 if test ${lt_cv_prog_gnu_ld+y}
16551 then :
16552 printf %s "(cached) " >&6
16553 else case e in #(
16554 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
16555 case `$LD -v 2>&1 </dev/null` in
16556 *GNU* | *'with BFD'*)
16557 lt_cv_prog_gnu_ld=yes
16558 ;;
16559 *)
16560 lt_cv_prog_gnu_ld=no
16561 ;;
16562 esac ;;
16563 esac
16564 fi
16565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16566 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
16567 with_gnu_ld=$lt_cv_prog_gnu_ld
16568
16569
16570
16571
16572
16573
16574
16575 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16576 # archiving commands below assume that GNU ld is being used.
16577 if test yes = "$with_gnu_ld"; then
16578 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16579 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'
16580
16581 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16582 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16583
16584 # If archive_cmds runs LD, not CC, wlarc should be empty
16585 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16586 # investigate it a little bit more. (MM)
16587 wlarc='$wl'
16588
16589 # ancient GNU ld didn't support --whole-archive et. al.
16590 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16591 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16592 else
16593 whole_archive_flag_spec_CXX=
16594 fi
16595 else
16596 with_gnu_ld=no
16597 wlarc=
16598
16599 # A generic and very simple default shared library creation
16600 # command for GNU C++ for the case where it uses the native
16601 # linker, instead of GNU ld. If possible, this setting should
16602 # overridden to take advantage of the native linker features on
16603 # the platform it is being used on.
16604 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16605 fi
16606
16607 # Commands to make compiler produce verbose output that lists
16608 # what "hidden" libraries, object files and flags are used when
16609 # linking a shared library.
16610 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
16611
16612 else
16613 GXX=no
16614 with_gnu_ld=no
16615 wlarc=
16616 fi
16617
16618 # PORTME: fill in a description of your system's C++ link characteristics
16619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16620 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16621 ld_shlibs_CXX=yes
16622 case $host_os in
16623 aix3*)
16624 # FIXME: insert proper C++ library support
16625 ld_shlibs_CXX=no
16626 ;;
16627 aix[4-9]*)
16628 if test ia64 = "$host_cpu"; then
16629 # On IA64, the linker does run time linking by default, so we don't
16630 # have to do anything special.
16631 aix_use_runtimelinking=no
16632 exp_sym_flag='-Bexport'
16633 no_entry_flag=
16634 else
16635 aix_use_runtimelinking=no
16636
16637 # Test if we are trying to use run time linking or normal
16638 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16639 # have runtime linking enabled, and use it for executables.
16640 # For shared libraries, we enable/disable runtime linking
16641 # depending on the kind of the shared library created -
16642 # when "with_aix_soname,aix_use_runtimelinking" is:
16643 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
16644 # "aix,yes" lib.so shared, rtl:yes, for executables
16645 # lib.a static archive
16646 # "both,no" lib.so.V(shr.o) shared, rtl:yes
16647 # lib.a(lib.so.V) shared, rtl:no, for executables
16648 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16649 # lib.a(lib.so.V) shared, rtl:no
16650 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
16651 # lib.a static archive
16652 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16653 for ld_flag in $LDFLAGS; do
16654 case $ld_flag in
16655 *-brtl*)
16656 aix_use_runtimelinking=yes
16657 break
16658 ;;
16659 esac
16660 done
16661 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16662 # With aix-soname=svr4, we create the lib.so.V shared archives only,
16663 # so we don't have lib.a shared libs to link our executables.
16664 # We have to force runtime linking in this case.
16665 aix_use_runtimelinking=yes
16666 LDFLAGS="$LDFLAGS -Wl,-brtl"
16667 fi
16668 ;;
16669 esac
16670
16671 exp_sym_flag='-bexport'
16672 no_entry_flag='-bnoentry'
16673 fi
16674
16675 # When large executables or shared objects are built, AIX ld can
16676 # have problems creating the table of contents. If linking a library
16677 # or program results in "error TOC overflow" add -mminimal-toc to
16678 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16679 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16680
16681 archive_cmds_CXX=''
16682 hardcode_direct_CXX=yes
16683 hardcode_direct_absolute_CXX=yes
16684 hardcode_libdir_separator_CXX=':'
16685 link_all_deplibs_CXX=yes
16686 file_list_spec_CXX='$wl-f,'
16687 case $with_aix_soname,$aix_use_runtimelinking in
16688 aix,*) ;; # no import file
16689 svr4,* | *,yes) # use import file
16690 # The Import File defines what to hardcode.
16691 hardcode_direct_CXX=no
16692 hardcode_direct_absolute_CXX=no
16693 ;;
16694 esac
16695
16696 if test yes = "$GXX"; then
16697 case $host_os in aix4.[012]|aix4.[012].*)
16698 # We only want to do this on AIX 4.2 and lower, the check
16699 # below for broken collect2 doesn't work under 4.3+
16700 collect2name=`$CC -print-prog-name=collect2`
16701 if test -f "$collect2name" &&
16702 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16703 then
16704 # We have reworked collect2
16705 :
16706 else
16707 # We have old collect2
16708 hardcode_direct_CXX=unsupported
16709 # It fails to find uninstalled libraries when the uninstalled
16710 # path is not listed in the libpath. Setting hardcode_minus_L
16711 # to unsupported forces relinking
16712 hardcode_minus_L_CXX=yes
16713 hardcode_libdir_flag_spec_CXX='-L$libdir'
16714 hardcode_libdir_separator_CXX=
16715 fi
16716 esac
16717 shared_flag='-shared'
16718 if test yes = "$aix_use_runtimelinking"; then
16719 shared_flag=$shared_flag' $wl-G'
16720 fi
16721 # Need to ensure runtime linking is disabled for the traditional
16722 # shared library, or the linker may eventually find shared libraries
16723 # /with/ Import File - we do not want to mix them.
16724 shared_flag_aix='-shared'
16725 shared_flag_svr4='-shared $wl-G'
16726 else
16727 # not using gcc
16728 if test ia64 = "$host_cpu"; then
16729 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16730 # chokes on -Wl,-G. The following line is correct:
16731 shared_flag='-G'
16732 else
16733 if test yes = "$aix_use_runtimelinking"; then
16734 shared_flag='$wl-G'
16735 else
16736 shared_flag='$wl-bM:SRE'
16737 fi
16738 shared_flag_aix='$wl-bM:SRE'
16739 shared_flag_svr4='$wl-G'
16740 fi
16741 fi
16742
16743 export_dynamic_flag_spec_CXX='$wl-bexpall'
16744 # It seems that -bexpall does not export symbols beginning with
16745 # underscore (_), so it is better to generate a list of symbols to
16746 # export.
16747 always_export_symbols_CXX=yes
16748 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16749 # Warning - without using the other runtime loading flags (-brtl),
16750 # -berok will link without error, but may produce a broken library.
16751 # The "-G" linker flag allows undefined symbols.
16752 no_undefined_flag_CXX='-bernotok'
16753 # Determine the default libpath from the value encoded in an empty
16754 # executable.
16755 if test set = "${lt_cv_aix_libpath+set}"; then
16756 aix_libpath=$lt_cv_aix_libpath
16757 else
16758 if test ${lt_cv_aix_libpath__CXX+y}
16759 then :
16760 printf %s "(cached) " >&6
16761 else case e in #(
16762 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16763 /* end confdefs.h. */
16764
16765 int
16766 main (void)
16767 {
16768
16769 ;
16770 return 0;
16771 }
16772 _ACEOF
16773 if ac_fn_cxx_try_link "$LINENO"
16774 then :
16775
16776 lt_aix_libpath_sed='
16777 /Import File Strings/,/^$/ {
16778 /^0/ {
16779 s/^0 *\([^ ]*\) *$/\1/
16780 p
16781 }
16782 }'
16783 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16784 # Check for a 64-bit object if we didn't find anything.
16785 if test -z "$lt_cv_aix_libpath__CXX"; then
16786 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16787 fi
16788 fi
16789 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16790 conftest$ac_exeext conftest.$ac_ext
16791 if test -z "$lt_cv_aix_libpath__CXX"; then
16792 lt_cv_aix_libpath__CXX=/usr/lib:/lib
16793 fi
16794 ;;
16795 esac
16796 fi
16797
16798 aix_libpath=$lt_cv_aix_libpath__CXX
16799 fi
16800
16801 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16802
16803 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
16804 else
16805 if test ia64 = "$host_cpu"; then
16806 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
16807 allow_undefined_flag_CXX="-z nodefs"
16808 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"
16809 else
16810 # Determine the default libpath from the value encoded in an
16811 # empty executable.
16812 if test set = "${lt_cv_aix_libpath+set}"; then
16813 aix_libpath=$lt_cv_aix_libpath
16814 else
16815 if test ${lt_cv_aix_libpath__CXX+y}
16816 then :
16817 printf %s "(cached) " >&6
16818 else case e in #(
16819 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16820 /* end confdefs.h. */
16821
16822 int
16823 main (void)
16824 {
16825
16826 ;
16827 return 0;
16828 }
16829 _ACEOF
16830 if ac_fn_cxx_try_link "$LINENO"
16831 then :
16832
16833 lt_aix_libpath_sed='
16834 /Import File Strings/,/^$/ {
16835 /^0/ {
16836 s/^0 *\([^ ]*\) *$/\1/
16837 p
16838 }
16839 }'
16840 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16841 # Check for a 64-bit object if we didn't find anything.
16842 if test -z "$lt_cv_aix_libpath__CXX"; then
16843 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16844 fi
16845 fi
16846 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16847 conftest$ac_exeext conftest.$ac_ext
16848 if test -z "$lt_cv_aix_libpath__CXX"; then
16849 lt_cv_aix_libpath__CXX=/usr/lib:/lib
16850 fi
16851 ;;
16852 esac
16853 fi
16854
16855 aix_libpath=$lt_cv_aix_libpath__CXX
16856 fi
16857
16858 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16859 # Warning - without using the other run time loading flags,
16860 # -berok will link without error, but may produce a broken library.
16861 no_undefined_flag_CXX=' $wl-bernotok'
16862 allow_undefined_flag_CXX=' $wl-berok'
16863 if test yes = "$with_gnu_ld"; then
16864 # We only use this code for GNU lds that support --whole-archive.
16865 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16866 else
16867 # Exported symbols can be pulled into shared objects from archives
16868 whole_archive_flag_spec_CXX='$convenience'
16869 fi
16870 archive_cmds_need_lc_CXX=yes
16871 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16872 # -brtl affects multiple linker settings, -berok does not and is overridden later
16873 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16874 if test svr4 != "$with_aix_soname"; then
16875 # This is similar to how AIX traditionally builds its shared
16876 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
16877 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'
16878 fi
16879 if test aix != "$with_aix_soname"; then
16880 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'
16881 else
16882 # used by -dlpreopen to get the symbols
16883 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
16884 fi
16885 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
16886 fi
16887 fi
16888 ;;
16889
16890 beos*)
16891 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16892 allow_undefined_flag_CXX=unsupported
16893 # Joseph Beckenbach <[email protected]> says some releases of gcc
16894 # support --undefined. This deserves some investigation. FIXME
16895 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16896 else
16897 ld_shlibs_CXX=no
16898 fi
16899 ;;
16900
16901 chorus*)
16902 case $cc_basename in
16903 *)
16904 # FIXME: insert proper C++ library support
16905 ld_shlibs_CXX=no
16906 ;;
16907 esac
16908 ;;
16909
16910 cygwin* | mingw* | windows* | pw32* | cegcc*)
16911 case $GXX,$cc_basename in
16912 ,cl* | no,cl* | ,icl* | no,icl*)
16913 # Native MSVC or ICC
16914 # hardcode_libdir_flag_spec is actually meaningless, as there is
16915 # no search path for DLLs.
16916 hardcode_libdir_flag_spec_CXX=' '
16917 allow_undefined_flag_CXX=unsupported
16918 always_export_symbols_CXX=yes
16919 file_list_spec_CXX='@'
16920 # Tell ltmain to make .lib files, not .a files.
16921 libext=lib
16922 # Tell ltmain to make .dll files, not .so files.
16923 shrext_cmds=.dll
16924 # FIXME: Setting linknames here is a bad hack.
16925 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16926 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16927 cp "$export_symbols" "$output_objdir/$soname.def";
16928 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16929 else
16930 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16931 fi~
16932 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16933 linknames='
16934 # The linker will not automatically build a static lib if we build a DLL.
16935 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
16936 enable_shared_with_static_runtimes_CXX=yes
16937 # Don't use ranlib
16938 old_postinstall_cmds_CXX='chmod 644 $oldlib'
16939 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
16940 lt_tool_outputfile="@TOOL_OUTPUT@"~
16941 case $lt_outputfile in
16942 *.exe|*.EXE) ;;
16943 *)
16944 lt_outputfile=$lt_outputfile.exe
16945 lt_tool_outputfile=$lt_tool_outputfile.exe
16946 ;;
16947 esac~
16948 func_to_tool_file "$lt_outputfile"~
16949 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16950 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16951 $RM "$lt_outputfile.manifest";
16952 fi'
16953 ;;
16954 *)
16955 # g++
16956 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16957 # as there is no search path for DLLs.
16958 hardcode_libdir_flag_spec_CXX='-L$libdir'
16959 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
16960 allow_undefined_flag_CXX=unsupported
16961 always_export_symbols_CXX=no
16962 enable_shared_with_static_runtimes_CXX=yes
16963 file_list_spec_CXX='@'
16964
16965 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16966 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'
16967 # If the export-symbols file already is a .def file, use it as
16968 # is; otherwise, prepend EXPORTS...
16969 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16970 cp $export_symbols $output_objdir/$soname.def;
16971 else
16972 echo EXPORTS > $output_objdir/$soname.def;
16973 cat $export_symbols >> $output_objdir/$soname.def;
16974 fi~
16975 $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'
16976 else
16977 ld_shlibs_CXX=no
16978 fi
16979 ;;
16980 esac
16981 ;;
16982 darwin* | rhapsody*)
16983
16984
16985 archive_cmds_need_lc_CXX=no
16986 hardcode_direct_CXX=no
16987 hardcode_automatic_CXX=yes
16988 hardcode_shlibpath_var_CXX=unsupported
16989 if test yes = "$lt_cv_ld_force_load"; then
16990 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\"`'
16991
16992 else
16993 whole_archive_flag_spec_CXX=''
16994 fi
16995 link_all_deplibs_CXX=yes
16996 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
16997 case $cc_basename in
16998 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16999 *) _lt_dar_can_shared=$GCC ;;
17000 esac
17001 if test yes = "$_lt_dar_can_shared"; then
17002 output_verbose_link_cmd=func_echo_all
17003 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"
17004 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
17005 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"
17006 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"
17007 if test yes = "$_lt_dar_needs_single_mod" -a yes != "$lt_cv_apple_cc_single_mod"; then
17008 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"
17009 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"
17010 fi
17011
17012 else
17013 ld_shlibs_CXX=no
17014 fi
17015
17016 ;;
17017
17018 os2*)
17019 hardcode_libdir_flag_spec_CXX='-L$libdir'
17020 hardcode_minus_L_CXX=yes
17021 allow_undefined_flag_CXX=unsupported
17022 shrext_cmds=.dll
17023 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17024 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17025 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17026 $ECHO EXPORTS >> $output_objdir/$libname.def~
17027 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17028 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17029 emximp -o $lib $output_objdir/$libname.def'
17030 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17031 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17032 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17033 $ECHO EXPORTS >> $output_objdir/$libname.def~
17034 prefix_cmds="$SED"~
17035 if test EXPORTS = "`$SED 1q $export_symbols`"; then
17036 prefix_cmds="$prefix_cmds -e 1d";
17037 fi~
17038 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17039 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17040 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17041 emximp -o $lib $output_objdir/$libname.def'
17042 old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17043 enable_shared_with_static_runtimes_CXX=yes
17044 file_list_spec_CXX='@'
17045 ;;
17046
17047 dgux*)
17048 case $cc_basename in
17049 ec++*)
17050 # FIXME: insert proper C++ library support
17051 ld_shlibs_CXX=no
17052 ;;
17053 ghcx*)
17054 # Green Hills C++ Compiler
17055 # FIXME: insert proper C++ library support
17056 ld_shlibs_CXX=no
17057 ;;
17058 *)
17059 # FIXME: insert proper C++ library support
17060 ld_shlibs_CXX=no
17061 ;;
17062 esac
17063 ;;
17064
17065 freebsd2.*)
17066 # C++ shared libraries reported to be fairly broken before
17067 # switch to ELF
17068 ld_shlibs_CXX=no
17069 ;;
17070
17071 freebsd-elf*)
17072 archive_cmds_need_lc_CXX=no
17073 ;;
17074
17075 freebsd* | dragonfly* | midnightbsd*)
17076 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17077 # conventions
17078 ld_shlibs_CXX=yes
17079 ;;
17080
17081 haiku*)
17082 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17083 link_all_deplibs_CXX=no
17084 ;;
17085
17086 hpux9*)
17087 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
17088 hardcode_libdir_separator_CXX=:
17089 export_dynamic_flag_spec_CXX='$wl-E'
17090 hardcode_direct_CXX=yes
17091 hardcode_minus_L_CXX=yes # Not in the search PATH,
17092 # but as the default
17093 # location of the library.
17094
17095 case $cc_basename in
17096 CC*)
17097 # FIXME: insert proper C++ library support
17098 ld_shlibs_CXX=no
17099 ;;
17100 aCC*)
17101 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'
17102 # Commands to make compiler produce verbose output that lists
17103 # what "hidden" libraries, object files and flags are used when
17104 # linking a shared library.
17105 #
17106 # There doesn't appear to be a way to prevent this compiler from
17107 # explicitly linking system object files so we need to strip them
17108 # from the output so that they don't get included in the library
17109 # dependencies.
17110 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"'
17111 ;;
17112 *)
17113 if test yes = "$GXX"; then
17114 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'
17115 else
17116 # FIXME: insert proper C++ library support
17117 ld_shlibs_CXX=no
17118 fi
17119 ;;
17120 esac
17121 ;;
17122
17123 hpux10*|hpux11*)
17124 if test no = "$with_gnu_ld"; then
17125 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
17126 hardcode_libdir_separator_CXX=:
17127
17128 case $host_cpu in
17129 hppa*64*|ia64*)
17130 ;;
17131 *)
17132 export_dynamic_flag_spec_CXX='$wl-E'
17133 ;;
17134 esac
17135 fi
17136 case $host_cpu in
17137 hppa*64*|ia64*)
17138 hardcode_direct_CXX=no
17139 hardcode_shlibpath_var_CXX=no
17140 ;;
17141 *)
17142 hardcode_direct_CXX=yes
17143 hardcode_direct_absolute_CXX=yes
17144 hardcode_minus_L_CXX=yes # Not in the search PATH,
17145 # but as the default
17146 # location of the library.
17147 ;;
17148 esac
17149
17150 case $cc_basename in
17151 CC*)
17152 # FIXME: insert proper C++ library support
17153 ld_shlibs_CXX=no
17154 ;;
17155 aCC*)
17156 case $host_cpu in
17157 hppa*64*)
17158 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17159 ;;
17160 ia64*)
17161 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17162 ;;
17163 *)
17164 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17165 ;;
17166 esac
17167 # Commands to make compiler produce verbose output that lists
17168 # what "hidden" libraries, object files and flags are used when
17169 # linking a shared library.
17170 #
17171 # There doesn't appear to be a way to prevent this compiler from
17172 # explicitly linking system object files so we need to strip them
17173 # from the output so that they don't get included in the library
17174 # dependencies.
17175 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"'
17176 ;;
17177 *)
17178 if test yes = "$GXX"; then
17179 if test no = "$with_gnu_ld"; then
17180 case $host_cpu in
17181 hppa*64*)
17182 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17183 ;;
17184 ia64*)
17185 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17186 ;;
17187 *)
17188 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'
17189 ;;
17190 esac
17191 fi
17192 else
17193 # FIXME: insert proper C++ library support
17194 ld_shlibs_CXX=no
17195 fi
17196 ;;
17197 esac
17198 ;;
17199
17200 interix[3-9]*)
17201 hardcode_direct_CXX=no
17202 hardcode_shlibpath_var_CXX=no
17203 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17204 export_dynamic_flag_spec_CXX='$wl-E'
17205 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17206 # Instead, shared libraries are loaded at an image base (0x10000000 by
17207 # default) and relocated if they conflict, which is a slow very memory
17208 # consuming and fragmenting process. To avoid this, we pick a random,
17209 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17210 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17211 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'
17212 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'
17213 ;;
17214 irix5* | irix6*)
17215 case $cc_basename in
17216 CC*)
17217 # SGI C++
17218 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'
17219
17220 # Archives containing C++ object files must be created using
17221 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17222 # necessary to make sure instantiated templates are included
17223 # in the archive.
17224 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17225 ;;
17226 *)
17227 if test yes = "$GXX"; then
17228 if test no = "$with_gnu_ld"; then
17229 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'
17230 else
17231 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'
17232 fi
17233 fi
17234 link_all_deplibs_CXX=yes
17235 ;;
17236 esac
17237 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17238 hardcode_libdir_separator_CXX=:
17239 inherit_rpath_CXX=yes
17240 ;;
17241
17242 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17243 case $cc_basename in
17244 KCC*)
17245 # Kuck and Associates, Inc. (KAI) C++ Compiler
17246
17247 # KCC will only create a shared library if the output file
17248 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17249 # to its proper name (with version) after linking.
17250 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'
17251 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'
17252 # Commands to make compiler produce verbose output that lists
17253 # what "hidden" libraries, object files and flags are used when
17254 # linking a shared library.
17255 #
17256 # There doesn't appear to be a way to prevent this compiler from
17257 # explicitly linking system object files so we need to strip them
17258 # from the output so that they don't get included in the library
17259 # dependencies.
17260 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"'
17261
17262 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17263 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17264
17265 # Archives containing C++ object files must be created using
17266 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17267 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17268 ;;
17269 icpc* | ecpc* )
17270 # Intel C++
17271 with_gnu_ld=yes
17272 # version 8.0 and above of icpc choke on multiply defined symbols
17273 # if we add $predep_objects and $postdep_objects, however 7.1 and
17274 # earlier do not add the objects themselves.
17275 case `$CC -V 2>&1` in
17276 *"Version 7."*)
17277 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17278 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'
17279 ;;
17280 *) # Version 8.0 or newer
17281 tmp_idyn=
17282 case $host_cpu in
17283 ia64*) tmp_idyn=' -i_dynamic';;
17284 esac
17285 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17286 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'
17287 ;;
17288 esac
17289 archive_cmds_need_lc_CXX=no
17290 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17291 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17292 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
17293 ;;
17294 pgCC* | pgcpp*)
17295 # Portland Group C++ compiler
17296 case `$CC -V` in
17297 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
17298 prelink_cmds_CXX='tpldir=Template.dir~
17299 rm -rf $tpldir~
17300 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17301 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
17302 old_archive_cmds_CXX='tpldir=Template.dir~
17303 rm -rf $tpldir~
17304 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17305 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
17306 $RANLIB $oldlib'
17307 archive_cmds_CXX='tpldir=Template.dir~
17308 rm -rf $tpldir~
17309 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17310 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17311 archive_expsym_cmds_CXX='tpldir=Template.dir~
17312 rm -rf $tpldir~
17313 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17314 $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'
17315 ;;
17316 *) # Version 6 and above use weak symbols
17317 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17318 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'
17319 ;;
17320 esac
17321
17322 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
17323 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17324 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'
17325 ;;
17326 cxx*)
17327 # Compaq C++
17328 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17329 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'
17330
17331 runpath_var=LD_RUN_PATH
17332 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17333 hardcode_libdir_separator_CXX=:
17334
17335 # Commands to make compiler produce verbose output that lists
17336 # what "hidden" libraries, object files and flags are used when
17337 # linking a shared library.
17338 #
17339 # There doesn't appear to be a way to prevent this compiler from
17340 # explicitly linking system object files so we need to strip them
17341 # from the output so that they don't get included in the library
17342 # dependencies.
17343 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'
17344 ;;
17345 xl* | mpixl* | bgxl*)
17346 # IBM XL 8.0 on PPC, with GNU ld
17347 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17348 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17349 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17350 if test yes = "$supports_anon_versioning"; then
17351 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17352 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17353 echo "local: *; };" >> $output_objdir/$libname.ver~
17354 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
17355 fi
17356 ;;
17357 *)
17358 case `$CC -V 2>&1 | $SED 5q` in
17359 *Sun\ C*)
17360 # Sun C++ 5.9
17361 no_undefined_flag_CXX=' -zdefs'
17362 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17363 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'
17364 hardcode_libdir_flag_spec_CXX='-R$libdir'
17365 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'
17366 compiler_needs_object_CXX=yes
17367
17368 # Not sure whether something based on
17369 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17370 # would be better.
17371 output_verbose_link_cmd='func_echo_all'
17372
17373 # Archives containing C++ object files must be created using
17374 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17375 # necessary to make sure instantiated templates are included
17376 # in the archive.
17377 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17378 ;;
17379 esac
17380 ;;
17381 esac
17382 ;;
17383
17384 lynxos*)
17385 # FIXME: insert proper C++ library support
17386 ld_shlibs_CXX=no
17387 ;;
17388
17389 m88k*)
17390 # FIXME: insert proper C++ library support
17391 ld_shlibs_CXX=no
17392 ;;
17393
17394 mvs*)
17395 case $cc_basename in
17396 cxx*)
17397 # FIXME: insert proper C++ library support
17398 ld_shlibs_CXX=no
17399 ;;
17400 *)
17401 # FIXME: insert proper C++ library support
17402 ld_shlibs_CXX=no
17403 ;;
17404 esac
17405 ;;
17406
17407 *-mlibc)
17408 ld_shlibs_CXX=yes
17409 ;;
17410
17411 netbsd*)
17412 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17413 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17414 wlarc=
17415 hardcode_libdir_flag_spec_CXX='-R$libdir'
17416 hardcode_direct_CXX=yes
17417 hardcode_shlibpath_var_CXX=no
17418 fi
17419 # Workaround some broken pre-1.5 toolchains
17420 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17421 ;;
17422
17423 *nto* | *qnx*)
17424 ld_shlibs_CXX=yes
17425 ;;
17426
17427 openbsd*)
17428 if test -f /usr/libexec/ld.so; then
17429 hardcode_direct_CXX=yes
17430 hardcode_shlibpath_var_CXX=no
17431 hardcode_direct_absolute_CXX=yes
17432 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17433 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17434 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
17435 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
17436 export_dynamic_flag_spec_CXX='$wl-E'
17437 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
17438 fi
17439 output_verbose_link_cmd=func_echo_all
17440 else
17441 ld_shlibs_CXX=no
17442 fi
17443 ;;
17444
17445 osf3* | osf4* | osf5*)
17446 case $cc_basename in
17447 KCC*)
17448 # Kuck and Associates, Inc. (KAI) C++ Compiler
17449
17450 # KCC will only create a shared library if the output file
17451 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17452 # to its proper name (with version) after linking.
17453 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'
17454
17455 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17456 hardcode_libdir_separator_CXX=:
17457
17458 # Archives containing C++ object files must be created using
17459 # the KAI C++ compiler.
17460 case $host in
17461 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17462 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17463 esac
17464 ;;
17465 RCC*)
17466 # Rational C++ 2.4.1
17467 # FIXME: insert proper C++ library support
17468 ld_shlibs_CXX=no
17469 ;;
17470 cxx*)
17471 case $host in
17472 osf3*)
17473 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
17474 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'
17475 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17476 ;;
17477 *)
17478 allow_undefined_flag_CXX=' -expect_unresolved \*'
17479 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'
17480 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17481 echo "-hidden">> $lib.exp~
17482 $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~
17483 $RM $lib.exp'
17484 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17485 ;;
17486 esac
17487
17488 hardcode_libdir_separator_CXX=:
17489
17490 # Commands to make compiler produce verbose output that lists
17491 # what "hidden" libraries, object files and flags are used when
17492 # linking a shared library.
17493 #
17494 # There doesn't appear to be a way to prevent this compiler from
17495 # explicitly linking system object files so we need to strip them
17496 # from the output so that they don't get included in the library
17497 # dependencies.
17498 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"'
17499 ;;
17500 *)
17501 if test yes,no = "$GXX,$with_gnu_ld"; then
17502 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
17503 case $host in
17504 osf3*)
17505 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'
17506 ;;
17507 *)
17508 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'
17509 ;;
17510 esac
17511
17512 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17513 hardcode_libdir_separator_CXX=:
17514
17515 # Commands to make compiler produce verbose output that lists
17516 # what "hidden" libraries, object files and flags are used when
17517 # linking a shared library.
17518 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
17519
17520 else
17521 # FIXME: insert proper C++ library support
17522 ld_shlibs_CXX=no
17523 fi
17524 ;;
17525 esac
17526 ;;
17527
17528 psos*)
17529 # FIXME: insert proper C++ library support
17530 ld_shlibs_CXX=no
17531 ;;
17532
17533 serenity*)
17534 ;;
17535
17536 sunos4*)
17537 case $cc_basename in
17538 CC*)
17539 # Sun C++ 4.x
17540 # FIXME: insert proper C++ library support
17541 ld_shlibs_CXX=no
17542 ;;
17543 lcc*)
17544 # Lucid
17545 # FIXME: insert proper C++ library support
17546 ld_shlibs_CXX=no
17547 ;;
17548 *)
17549 # FIXME: insert proper C++ library support
17550 ld_shlibs_CXX=no
17551 ;;
17552 esac
17553 ;;
17554
17555 solaris*)
17556 case $cc_basename in
17557 CC* | sunCC*)
17558 # Sun C++ 4.2, 5.x and Centerline C++
17559 archive_cmds_need_lc_CXX=yes
17560 no_undefined_flag_CXX=' -zdefs'
17561 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17562 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17563 $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'
17564
17565 hardcode_libdir_flag_spec_CXX='-R$libdir'
17566 hardcode_shlibpath_var_CXX=no
17567 case $host_os in
17568 solaris2.[0-5] | solaris2.[0-5].*) ;;
17569 *)
17570 # The compiler driver will combine and reorder linker options,
17571 # but understands '-z linker_flag'.
17572 # Supported since Solaris 2.6 (maybe 2.5.1?)
17573 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17574 ;;
17575 esac
17576 link_all_deplibs_CXX=yes
17577
17578 output_verbose_link_cmd='func_echo_all'
17579
17580 # Archives containing C++ object files must be created using
17581 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17582 # necessary to make sure instantiated templates are included
17583 # in the archive.
17584 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17585 ;;
17586 gcx*)
17587 # Green Hills C++ Compiler
17588 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17589
17590 # The C++ compiler must be used to create the archive.
17591 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17592 ;;
17593 *)
17594 # GNU C++ compiler with Solaris linker
17595 if test yes,no = "$GXX,$with_gnu_ld"; then
17596 no_undefined_flag_CXX=' $wl-z ${wl}defs'
17597 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17598 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17599 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17600 $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'
17601
17602 # Commands to make compiler produce verbose output that lists
17603 # what "hidden" libraries, object files and flags are used when
17604 # linking a shared library.
17605 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
17606 else
17607 # g++ 2.7 appears to require '-G' NOT '-shared' on this
17608 # platform.
17609 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17610 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17611 $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'
17612
17613 # Commands to make compiler produce verbose output that lists
17614 # what "hidden" libraries, object files and flags are used when
17615 # linking a shared library.
17616 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
17617 fi
17618
17619 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
17620 case $host_os in
17621 solaris2.[0-5] | solaris2.[0-5].*) ;;
17622 *)
17623 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17624 ;;
17625 esac
17626 fi
17627 ;;
17628 esac
17629 ;;
17630
17631 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17632 no_undefined_flag_CXX='$wl-z,text'
17633 archive_cmds_need_lc_CXX=no
17634 hardcode_shlibpath_var_CXX=no
17635 runpath_var='LD_RUN_PATH'
17636
17637 case $cc_basename in
17638 CC*)
17639 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17640 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17641 ;;
17642 *)
17643 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17644 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17645 ;;
17646 esac
17647 ;;
17648
17649 sysv5* | sco3.2v5* | sco5v6*)
17650 # Note: We CANNOT use -z defs as we might desire, because we do not
17651 # link with -lc, and that would cause any symbols used from libc to
17652 # always be unresolved, which means just about no library would
17653 # ever link correctly. If we're not using GNU ld we use -z text
17654 # though, which does catch some bad symbols but isn't as heavy-handed
17655 # as -z defs.
17656 no_undefined_flag_CXX='$wl-z,text'
17657 allow_undefined_flag_CXX='$wl-z,nodefs'
17658 archive_cmds_need_lc_CXX=no
17659 hardcode_shlibpath_var_CXX=no
17660 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
17661 hardcode_libdir_separator_CXX=':'
17662 link_all_deplibs_CXX=yes
17663 export_dynamic_flag_spec_CXX='$wl-Bexport'
17664 runpath_var='LD_RUN_PATH'
17665
17666 case $cc_basename in
17667 CC*)
17668 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17669 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17670 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17671 '"$old_archive_cmds_CXX"
17672 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17673 '"$reload_cmds_CXX"
17674 ;;
17675 *)
17676 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17677 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17678 ;;
17679 esac
17680 ;;
17681
17682 tandem*)
17683 case $cc_basename in
17684 NCC*)
17685 # NonStop-UX NCC 3.20
17686 # FIXME: insert proper C++ library support
17687 ld_shlibs_CXX=no
17688 ;;
17689 *)
17690 # FIXME: insert proper C++ library support
17691 ld_shlibs_CXX=no
17692 ;;
17693 esac
17694 ;;
17695
17696 vxworks*)
17697 # FIXME: insert proper C++ library support
17698 ld_shlibs_CXX=no
17699 ;;
17700
17701 *)
17702 # FIXME: insert proper C++ library support
17703 ld_shlibs_CXX=no
17704 ;;
17705 esac
17706
17707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17708 printf "%s\n" "$ld_shlibs_CXX" >&6; }
17709 test no = "$ld_shlibs_CXX" && can_build_shared=no
17710
17711 GCC_CXX=$GXX
17712 LD_CXX=$LD
17713
17714 ## CAVEAT EMPTOR:
17715 ## There is no encapsulation within the following macros, do not change
17716 ## the running order or otherwise move them around unless you know exactly
17717 ## what you are doing...
17718 # Dependencies to place before and after the object being linked:
17719 predep_objects_CXX=
17720 postdep_objects_CXX=
17721 predeps_CXX=
17722 postdeps_CXX=
17723 compiler_lib_search_path_CXX=
17724
17725 cat > conftest.$ac_ext <<_LT_EOF
17726 class Foo
17727 {
17728 public:
17729 Foo (void) { a = 0; }
17730 private:
17731 int a;
17732 };
17733 _LT_EOF
17734
17735
17736 _lt_libdeps_save_CFLAGS=$CFLAGS
17737 case "$CC $CFLAGS " in #(
17738 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17739 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17740 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
17741 esac
17742
17743 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17744 (eval $ac_compile) 2>&5
17745 ac_status=$?
17746 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17747 test $ac_status = 0; }; then
17748 # Parse the compiler output and extract the necessary
17749 # objects, libraries and library flags.
17750
17751 # Sentinel used to keep track of whether or not we are before
17752 # the conftest object file.
17753 pre_test_object_deps_done=no
17754
17755 for p in `eval "$output_verbose_link_cmd"`; do
17756 case $prev$p in
17757
17758 -L* | -R* | -l*)
17759 # Some compilers place space between "-{L,R,l}" and the path.
17760 # Remove the space.
17761 if test x-L = x"$p" ||
17762 test x-R = x"$p" ||
17763 test x-l = x"$p"; then
17764 prev=$p
17765 continue
17766 fi
17767
17768 # Expand the sysroot to ease extracting the directories later.
17769 if test -z "$prev"; then
17770 case $p in
17771 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17772 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17773 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17774 esac
17775 fi
17776 case $p in
17777 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17778 esac
17779 if test no = "$pre_test_object_deps_done"; then
17780 case $prev in
17781 -L | -R)
17782 # Internal compiler library paths should come after those
17783 # provided the user. The postdeps already come after the
17784 # user supplied libs so there is no need to process them.
17785 if test -z "$compiler_lib_search_path_CXX"; then
17786 compiler_lib_search_path_CXX=$prev$p
17787 else
17788 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
17789 fi
17790 ;;
17791 # The "-l" case would never come before the object being
17792 # linked, so don't bother handling this case.
17793 esac
17794 else
17795 if test -z "$postdeps_CXX"; then
17796 postdeps_CXX=$prev$p
17797 else
17798 postdeps_CXX="${postdeps_CXX} $prev$p"
17799 fi
17800 fi
17801 prev=
17802 ;;
17803
17804 *.lto.$objext) ;; # Ignore GCC LTO objects
17805 *.$objext)
17806 # This assumes that the test object file only shows up
17807 # once in the compiler output.
17808 if test "$p" = "conftest.$objext"; then
17809 pre_test_object_deps_done=yes
17810 continue
17811 fi
17812
17813 if test no = "$pre_test_object_deps_done"; then
17814 if test -z "$predep_objects_CXX"; then
17815 predep_objects_CXX=$p
17816 else
17817 predep_objects_CXX="$predep_objects_CXX $p"
17818 fi
17819 else
17820 if test -z "$postdep_objects_CXX"; then
17821 postdep_objects_CXX=$p
17822 else
17823 postdep_objects_CXX="$postdep_objects_CXX $p"
17824 fi
17825 fi
17826 ;;
17827
17828 *) ;; # Ignore the rest.
17829
17830 esac
17831 done
17832
17833 # Clean up.
17834 rm -f a.out a.exe
17835 else
17836 echo "libtool.m4: error: problem compiling CXX test program"
17837 fi
17838
17839 $RM -f confest.$objext
17840 CFLAGS=$_lt_libdeps_save_CFLAGS
17841
17842 # PORTME: override above test on systems where it is broken
17843 case $host_os in
17844 interix[3-9]*)
17845 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17846 # hack all around it, let's just trust "g++" to DTRT.
17847 predep_objects_CXX=
17848 postdep_objects_CXX=
17849 postdeps_CXX=
17850 ;;
17851 esac
17852
17853
17854 case " $postdeps_CXX " in
17855 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17856 esac
17857 compiler_lib_search_dirs_CXX=
17858 if test -n "${compiler_lib_search_path_CXX}"; then
17859 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
17860 fi
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892 lt_prog_compiler_wl_CXX=
17893 lt_prog_compiler_pic_CXX=
17894 lt_prog_compiler_static_CXX=
17895
17896
17897 # C++ specific cases for pic, static, wl, etc.
17898 if test yes = "$GXX"; then
17899 lt_prog_compiler_wl_CXX='-Wl,'
17900 lt_prog_compiler_static_CXX='-static'
17901
17902 case $host_os in
17903 aix*)
17904 # All AIX code is PIC.
17905 if test ia64 = "$host_cpu"; then
17906 # AIX 5 now supports IA64 processor
17907 lt_prog_compiler_static_CXX='-Bstatic'
17908 fi
17909 lt_prog_compiler_pic_CXX='-fPIC'
17910 ;;
17911
17912 amigaos*)
17913 case $host_cpu in
17914 powerpc)
17915 # see comment about AmigaOS4 .so support
17916 lt_prog_compiler_pic_CXX='-fPIC'
17917 ;;
17918 m68k)
17919 # FIXME: we need at least 68020 code to build shared libraries, but
17920 # adding the '-m68020' flag to GCC prevents building anything better,
17921 # like '-m68040'.
17922 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17923 ;;
17924 esac
17925 ;;
17926
17927 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17928 # PIC is the default for these OSes.
17929 ;;
17930 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
17931 # This hack is so that the source file can tell whether it is being
17932 # built for inclusion in a dll (and should export symbols for example).
17933 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17934 # (--disable-auto-import) libraries
17935 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17936 case $host_os in
17937 os2*)
17938 lt_prog_compiler_static_CXX='$wl-static'
17939 ;;
17940 esac
17941 ;;
17942 darwin* | rhapsody*)
17943 # PIC is the default on this platform
17944 # Common symbols not allowed in MH_DYLIB files
17945 lt_prog_compiler_pic_CXX='-fno-common'
17946 ;;
17947 *djgpp*)
17948 # DJGPP does not support shared libraries at all
17949 lt_prog_compiler_pic_CXX=
17950 ;;
17951 haiku*)
17952 # PIC is the default for Haiku.
17953 # The "-static" flag exists, but is broken.
17954 lt_prog_compiler_static_CXX=
17955 ;;
17956 interix[3-9]*)
17957 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17958 # Instead, we relocate shared libraries at runtime.
17959 ;;
17960 sysv4*MP*)
17961 if test -d /usr/nec; then
17962 lt_prog_compiler_pic_CXX=-Kconform_pic
17963 fi
17964 ;;
17965 hpux*)
17966 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17967 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17968 # sets the default TLS model and affects inlining.
17969 case $host_cpu in
17970 hppa*64*)
17971 ;;
17972 *)
17973 lt_prog_compiler_pic_CXX='-fPIC'
17974 ;;
17975 esac
17976 ;;
17977 *qnx* | *nto*)
17978 # QNX uses GNU C++, but need to define -shared option too, otherwise
17979 # it will coredump.
17980 lt_prog_compiler_pic_CXX='-fPIC -shared'
17981 ;;
17982 *)
17983 lt_prog_compiler_pic_CXX='-fPIC'
17984 ;;
17985 esac
17986 else
17987 case $host_os in
17988 aix[4-9]*)
17989 # All AIX code is PIC.
17990 if test ia64 = "$host_cpu"; then
17991 # AIX 5 now supports IA64 processor
17992 lt_prog_compiler_static_CXX='-Bstatic'
17993 else
17994 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17995 fi
17996 ;;
17997 chorus*)
17998 case $cc_basename in
17999 cxch68*)
18000 # Green Hills C++ Compiler
18001 # _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"
18002 ;;
18003 esac
18004 ;;
18005 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
18006 # This hack is so that the source file can tell whether it is being
18007 # built for inclusion in a dll (and should export symbols for example).
18008 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18009 ;;
18010 dgux*)
18011 case $cc_basename in
18012 ec++*)
18013 lt_prog_compiler_pic_CXX='-KPIC'
18014 ;;
18015 ghcx*)
18016 # Green Hills C++ Compiler
18017 lt_prog_compiler_pic_CXX='-pic'
18018 ;;
18019 *)
18020 ;;
18021 esac
18022 ;;
18023 freebsd* | dragonfly* | midnightbsd*)
18024 # FreeBSD uses GNU C++
18025 ;;
18026 hpux9* | hpux10* | hpux11*)
18027 case $cc_basename in
18028 CC*)
18029 lt_prog_compiler_wl_CXX='-Wl,'
18030 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
18031 if test ia64 != "$host_cpu"; then
18032 lt_prog_compiler_pic_CXX='+Z'
18033 fi
18034 ;;
18035 aCC*)
18036 lt_prog_compiler_wl_CXX='-Wl,'
18037 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
18038 case $host_cpu in
18039 hppa*64*|ia64*)
18040 # +Z the default
18041 ;;
18042 *)
18043 lt_prog_compiler_pic_CXX='+Z'
18044 ;;
18045 esac
18046 ;;
18047 *)
18048 ;;
18049 esac
18050 ;;
18051 interix*)
18052 # This is c89, which is MS Visual C++ (no shared libs)
18053 # Anyone wants to do a port?
18054 ;;
18055 irix5* | irix6* | nonstopux*)
18056 case $cc_basename in
18057 CC*)
18058 lt_prog_compiler_wl_CXX='-Wl,'
18059 lt_prog_compiler_static_CXX='-non_shared'
18060 # CC pic flag -KPIC is the default.
18061 ;;
18062 *)
18063 ;;
18064 esac
18065 ;;
18066 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18067 case $cc_basename in
18068 KCC*)
18069 # KAI C++ Compiler
18070 lt_prog_compiler_wl_CXX='--backend -Wl,'
18071 lt_prog_compiler_pic_CXX='-fPIC'
18072 ;;
18073 ecpc* )
18074 # old Intel C++ for x86_64, which still supported -KPIC.
18075 lt_prog_compiler_wl_CXX='-Wl,'
18076 lt_prog_compiler_pic_CXX='-KPIC'
18077 lt_prog_compiler_static_CXX='-static'
18078 ;;
18079 icpc* )
18080 # Intel C++, used to be incompatible with GCC.
18081 # ICC 10 doesn't accept -KPIC any more.
18082 lt_prog_compiler_wl_CXX='-Wl,'
18083 lt_prog_compiler_pic_CXX='-fPIC'
18084 lt_prog_compiler_static_CXX='-static'
18085 ;;
18086 pgCC* | pgcpp*)
18087 # Portland Group C++ compiler
18088 lt_prog_compiler_wl_CXX='-Wl,'
18089 lt_prog_compiler_pic_CXX='-fpic'
18090 lt_prog_compiler_static_CXX='-Bstatic'
18091 ;;
18092 cxx*)
18093 # Compaq C++
18094 # Make sure the PIC flag is empty. It appears that all Alpha
18095 # Linux and Compaq Tru64 Unix objects are PIC.
18096 lt_prog_compiler_pic_CXX=
18097 lt_prog_compiler_static_CXX='-non_shared'
18098 ;;
18099 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18100 # IBM XL 8.0, 9.0 on PPC and BlueGene
18101 lt_prog_compiler_wl_CXX='-Wl,'
18102 lt_prog_compiler_pic_CXX='-qpic'
18103 lt_prog_compiler_static_CXX='-qstaticlink'
18104 ;;
18105 *)
18106 case `$CC -V 2>&1 | $SED 5q` in
18107 *Sun\ C*)
18108 # Sun C++ 5.9
18109 lt_prog_compiler_pic_CXX='-KPIC'
18110 lt_prog_compiler_static_CXX='-Bstatic'
18111 lt_prog_compiler_wl_CXX='-Qoption ld '
18112 ;;
18113 esac
18114 ;;
18115 esac
18116 ;;
18117 lynxos*)
18118 ;;
18119 m88k*)
18120 ;;
18121 mvs*)
18122 case $cc_basename in
18123 cxx*)
18124 lt_prog_compiler_pic_CXX='-W c,exportall'
18125 ;;
18126 *)
18127 ;;
18128 esac
18129 ;;
18130 netbsd* | netbsdelf*-gnu)
18131 ;;
18132 *-mlibc)
18133 ;;
18134 *qnx* | *nto*)
18135 # QNX uses GNU C++, but need to define -shared option too, otherwise
18136 # it will coredump.
18137 lt_prog_compiler_pic_CXX='-fPIC -shared'
18138 ;;
18139 osf3* | osf4* | osf5*)
18140 case $cc_basename in
18141 KCC*)
18142 lt_prog_compiler_wl_CXX='--backend -Wl,'
18143 ;;
18144 RCC*)
18145 # Rational C++ 2.4.1
18146 lt_prog_compiler_pic_CXX='-pic'
18147 ;;
18148 cxx*)
18149 # Digital/Compaq C++
18150 lt_prog_compiler_wl_CXX='-Wl,'
18151 # Make sure the PIC flag is empty. It appears that all Alpha
18152 # Linux and Compaq Tru64 Unix objects are PIC.
18153 lt_prog_compiler_pic_CXX=
18154 lt_prog_compiler_static_CXX='-non_shared'
18155 ;;
18156 *)
18157 ;;
18158 esac
18159 ;;
18160 psos*)
18161 ;;
18162 serenity*)
18163 ;;
18164 solaris*)
18165 case $cc_basename in
18166 CC* | sunCC*)
18167 # Sun C++ 4.2, 5.x and Centerline C++
18168 lt_prog_compiler_pic_CXX='-KPIC'
18169 lt_prog_compiler_static_CXX='-Bstatic'
18170 lt_prog_compiler_wl_CXX='-Qoption ld '
18171 ;;
18172 gcx*)
18173 # Green Hills C++ Compiler
18174 lt_prog_compiler_pic_CXX='-PIC'
18175 ;;
18176 *)
18177 ;;
18178 esac
18179 ;;
18180 sunos4*)
18181 case $cc_basename in
18182 CC*)
18183 # Sun C++ 4.x
18184 lt_prog_compiler_pic_CXX='-pic'
18185 lt_prog_compiler_static_CXX='-Bstatic'
18186 ;;
18187 lcc*)
18188 # Lucid
18189 lt_prog_compiler_pic_CXX='-pic'
18190 ;;
18191 *)
18192 ;;
18193 esac
18194 ;;
18195 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18196 case $cc_basename in
18197 CC*)
18198 lt_prog_compiler_wl_CXX='-Wl,'
18199 lt_prog_compiler_pic_CXX='-KPIC'
18200 lt_prog_compiler_static_CXX='-Bstatic'
18201 ;;
18202 esac
18203 ;;
18204 tandem*)
18205 case $cc_basename in
18206 NCC*)
18207 # NonStop-UX NCC 3.20
18208 lt_prog_compiler_pic_CXX='-KPIC'
18209 ;;
18210 *)
18211 ;;
18212 esac
18213 ;;
18214 vxworks*)
18215 ;;
18216 *)
18217 lt_prog_compiler_can_build_shared_CXX=no
18218 ;;
18219 esac
18220 fi
18221
18222 case $host_os in
18223 # For platforms that do not support PIC, -DPIC is meaningless:
18224 *djgpp*)
18225 lt_prog_compiler_pic_CXX=
18226 ;;
18227 *)
18228 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18229 ;;
18230 esac
18231
18232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18233 printf %s "checking for $compiler option to produce PIC... " >&6; }
18234 if test ${lt_cv_prog_compiler_pic_CXX+y}
18235 then :
18236 printf %s "(cached) " >&6
18237 else case e in #(
18238 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
18239 esac
18240 fi
18241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18242 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
18243 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
18244
18245 #
18246 # Check to make sure the PIC flag actually works.
18247 #
18248 if test -n "$lt_prog_compiler_pic_CXX"; then
18249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18250 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18251 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
18252 then :
18253 printf %s "(cached) " >&6
18254 else case e in #(
18255 e) lt_cv_prog_compiler_pic_works_CXX=no
18256 ac_outfile=conftest.$ac_objext
18257 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18258 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
18259 # Insert the option either (1) after the last *FLAGS variable, or
18260 # (2) before a word containing "conftest.", or (3) at the end.
18261 # Note that $ac_compile itself does not contain backslashes and begins
18262 # with a dollar sign (not a hyphen), so the echo should work correctly.
18263 # The option is referenced via a variable to avoid confusing sed.
18264 lt_compile=`echo "$ac_compile" | $SED \
18265 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18266 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18267 -e 's:$: $lt_compiler_flag:'`
18268 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18269 (eval "$lt_compile" 2>conftest.err)
18270 ac_status=$?
18271 cat conftest.err >&5
18272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 if (exit $ac_status) && test -s "$ac_outfile"; then
18274 # The compiler can only warn and ignore the option if not recognized
18275 # So say no if there are warnings other than the usual output.
18276 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18277 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18278 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18279 lt_cv_prog_compiler_pic_works_CXX=yes
18280 fi
18281 fi
18282 $RM conftest*
18283 ;;
18284 esac
18285 fi
18286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18287 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18288
18289 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
18290 case $lt_prog_compiler_pic_CXX in
18291 "" | " "*) ;;
18292 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18293 esac
18294 else
18295 lt_prog_compiler_pic_CXX=
18296 lt_prog_compiler_can_build_shared_CXX=no
18297 fi
18298
18299 fi
18300
18301
18302
18303
18304
18305 #
18306 # Check to make sure the static flag actually works.
18307 #
18308 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18310 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18311 if test ${lt_cv_prog_compiler_static_works_CXX+y}
18312 then :
18313 printf %s "(cached) " >&6
18314 else case e in #(
18315 e) lt_cv_prog_compiler_static_works_CXX=no
18316 save_LDFLAGS=$LDFLAGS
18317 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18318 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18319 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18320 # The linker can only warn and ignore the option if not recognized
18321 # So say no if there are warnings
18322 if test -s conftest.err; then
18323 # Append any errors to the config.log.
18324 cat conftest.err 1>&5
18325 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18326 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18327 if diff conftest.exp conftest.er2 >/dev/null; then
18328 lt_cv_prog_compiler_static_works_CXX=yes
18329 fi
18330 else
18331 lt_cv_prog_compiler_static_works_CXX=yes
18332 fi
18333 fi
18334 $RM -r conftest*
18335 LDFLAGS=$save_LDFLAGS
18336 ;;
18337 esac
18338 fi
18339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18340 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18341
18342 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
18343 :
18344 else
18345 lt_prog_compiler_static_CXX=
18346 fi
18347
18348
18349
18350
18351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18352 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18353 if test ${lt_cv_prog_compiler_c_o_CXX+y}
18354 then :
18355 printf %s "(cached) " >&6
18356 else case e in #(
18357 e) lt_cv_prog_compiler_c_o_CXX=no
18358 $RM -r conftest 2>/dev/null
18359 mkdir conftest
18360 cd conftest
18361 mkdir out
18362 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18363
18364 lt_compiler_flag="-o out/conftest2.$ac_objext"
18365 # Insert the option either (1) after the last *FLAGS variable, or
18366 # (2) before a word containing "conftest.", or (3) at the end.
18367 # Note that $ac_compile itself does not contain backslashes and begins
18368 # with a dollar sign (not a hyphen), so the echo should work correctly.
18369 lt_compile=`echo "$ac_compile" | $SED \
18370 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18371 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18372 -e 's:$: $lt_compiler_flag:'`
18373 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18374 (eval "$lt_compile" 2>out/conftest.err)
18375 ac_status=$?
18376 cat out/conftest.err >&5
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18379 then
18380 # The compiler can only warn and ignore the option if not recognized
18381 # So say no if there are warnings
18382 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18383 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18384 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18385 lt_cv_prog_compiler_c_o_CXX=yes
18386 fi
18387 fi
18388 chmod u+w . 2>&5
18389 $RM conftest*
18390 # SGI C++ compiler will create directory out/ii_files/ for
18391 # template instantiation
18392 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18393 $RM out/* && rmdir out
18394 cd ..
18395 $RM -r conftest
18396 $RM conftest*
18397 ;;
18398 esac
18399 fi
18400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18401 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18402
18403
18404
18405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18406 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18407 if test ${lt_cv_prog_compiler_c_o_CXX+y}
18408 then :
18409 printf %s "(cached) " >&6
18410 else case e in #(
18411 e) lt_cv_prog_compiler_c_o_CXX=no
18412 $RM -r conftest 2>/dev/null
18413 mkdir conftest
18414 cd conftest
18415 mkdir out
18416 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18417
18418 lt_compiler_flag="-o out/conftest2.$ac_objext"
18419 # Insert the option either (1) after the last *FLAGS variable, or
18420 # (2) before a word containing "conftest.", or (3) at the end.
18421 # Note that $ac_compile itself does not contain backslashes and begins
18422 # with a dollar sign (not a hyphen), so the echo should work correctly.
18423 lt_compile=`echo "$ac_compile" | $SED \
18424 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18425 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18426 -e 's:$: $lt_compiler_flag:'`
18427 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18428 (eval "$lt_compile" 2>out/conftest.err)
18429 ac_status=$?
18430 cat out/conftest.err >&5
18431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18433 then
18434 # The compiler can only warn and ignore the option if not recognized
18435 # So say no if there are warnings
18436 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18437 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18438 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18439 lt_cv_prog_compiler_c_o_CXX=yes
18440 fi
18441 fi
18442 chmod u+w . 2>&5
18443 $RM conftest*
18444 # SGI C++ compiler will create directory out/ii_files/ for
18445 # template instantiation
18446 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18447 $RM out/* && rmdir out
18448 cd ..
18449 $RM -r conftest
18450 $RM conftest*
18451 ;;
18452 esac
18453 fi
18454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18455 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18456
18457
18458
18459
18460 hard_links=nottested
18461 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
18462 # do not overwrite the value of need_locks provided by the user
18463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18464 printf %s "checking if we can lock with hard links... " >&6; }
18465 hard_links=yes
18466 $RM conftest*
18467 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18468 touch conftest.a
18469 ln conftest.a conftest.b 2>&5 || hard_links=no
18470 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18472 printf "%s\n" "$hard_links" >&6; }
18473 if test no = "$hard_links"; then
18474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
18475 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
18476 need_locks=warn
18477 fi
18478 else
18479 need_locks=no
18480 fi
18481
18482
18483
18484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18485 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18486
18487 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18488 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18489 case $host_os in
18490 aix[4-9]*)
18491 # If we're using GNU nm, then we don't want the "-C" option.
18492 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
18493 # Without the "-l" option, or with the "-B" option, AIX nm treats
18494 # weak defined symbols like other global defined symbols, whereas
18495 # GNU nm marks them as "W".
18496 # While the 'weak' keyword is ignored in the Export File, we need
18497 # it in the Import File for the 'aix-soname' feature, so we have
18498 # to replace the "-B" option with "-P" for AIX nm.
18499 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18500 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'
18501 else
18502 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 == "L") || (\$ 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'
18503 fi
18504 ;;
18505 pw32*)
18506 export_symbols_cmds_CXX=$ltdll_cmds
18507 ;;
18508 cygwin* | mingw* | windows* | cegcc*)
18509 case $cc_basename in
18510 cl* | icl*)
18511 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
18512 ;;
18513 *)
18514 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'
18515 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18516 ;;
18517 esac
18518 ;;
18519 linux* | k*bsd*-gnu | gnu*)
18520 link_all_deplibs_CXX=no
18521 ;;
18522 *)
18523 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18524 ;;
18525 esac
18526
18527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18528 printf "%s\n" "$ld_shlibs_CXX" >&6; }
18529 test no = "$ld_shlibs_CXX" && can_build_shared=no
18530
18531 with_gnu_ld_CXX=$with_gnu_ld
18532
18533
18534
18535
18536
18537
18538 #
18539 # Do we need to explicitly link libc?
18540 #
18541 case "x$archive_cmds_need_lc_CXX" in
18542 x|xyes)
18543 # Assume -lc should be added
18544 archive_cmds_need_lc_CXX=yes
18545
18546 if test yes,yes = "$GCC,$enable_shared"; then
18547 case $archive_cmds_CXX in
18548 *'~'*)
18549 # FIXME: we may have to deal with multi-command sequences.
18550 ;;
18551 '$CC '*)
18552 # Test whether the compiler implicitly links with -lc since on some
18553 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18554 # to ld, don't add -lc before -lgcc.
18555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18556 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
18557 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
18558 then :
18559 printf %s "(cached) " >&6
18560 else case e in #(
18561 e) $RM conftest*
18562 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18563
18564 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18565 (eval $ac_compile) 2>&5
18566 ac_status=$?
18567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18568 test $ac_status = 0; } 2>conftest.err; then
18569 soname=conftest
18570 lib=conftest
18571 libobjs=conftest.$ac_objext
18572 deplibs=
18573 wl=$lt_prog_compiler_wl_CXX
18574 pic_flag=$lt_prog_compiler_pic_CXX
18575 compiler_flags=-v
18576 linker_flags=-v
18577 verstring=
18578 output_objdir=.
18579 libname=conftest
18580 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18581 allow_undefined_flag_CXX=
18582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18583 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18584 ac_status=$?
18585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18586 test $ac_status = 0; }
18587 then
18588 lt_cv_archive_cmds_need_lc_CXX=no
18589 else
18590 lt_cv_archive_cmds_need_lc_CXX=yes
18591 fi
18592 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18593 else
18594 cat conftest.err 1>&5
18595 fi
18596 $RM conftest*
18597 ;;
18598 esac
18599 fi
18600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18601 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18602 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
18603 ;;
18604 esac
18605 fi
18606 ;;
18607 esac
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18671 printf %s "checking dynamic linker characteristics... " >&6; }
18672
18673 library_names_spec=
18674 libname_spec='lib$name'
18675 soname_spec=
18676 shrext_cmds=.so
18677 postinstall_cmds=
18678 postuninstall_cmds=
18679 finish_cmds=
18680 finish_eval=
18681 shlibpath_var=
18682 shlibpath_overrides_runpath=unknown
18683 version_type=none
18684 dynamic_linker="$host_os ld.so"
18685 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18686 need_lib_prefix=unknown
18687 hardcode_into_libs=no
18688
18689 # when you set need_version to no, make sure it does not cause -set_version
18690 # flags to be left without arguments
18691 need_version=unknown
18692
18693
18694
18695 case $host_os in
18696 aix3*)
18697 version_type=linux # correct to gnu/linux during the next big refactor
18698 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
18699 shlibpath_var=LIBPATH
18700
18701 # AIX 3 has no versioning support, so we append a major version to the name.
18702 soname_spec='$libname$release$shared_ext$major'
18703 ;;
18704
18705 aix[4-9]*)
18706 version_type=linux # correct to gnu/linux during the next big refactor
18707 need_lib_prefix=no
18708 need_version=no
18709 hardcode_into_libs=yes
18710 if test ia64 = "$host_cpu"; then
18711 # AIX 5 supports IA64
18712 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
18713 shlibpath_var=LD_LIBRARY_PATH
18714 else
18715 # With GCC up to 2.95.x, collect2 would create an import file
18716 # for dependence libraries. The import file would start with
18717 # the line '#! .'. This would cause the generated library to
18718 # depend on '.', always an invalid library. This was fixed in
18719 # development snapshots of GCC prior to 3.0.
18720 case $host_os in
18721 aix4 | aix4.[01] | aix4.[01].*)
18722 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18723 echo ' yes '
18724 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
18725 :
18726 else
18727 can_build_shared=no
18728 fi
18729 ;;
18730 esac
18731 # Using Import Files as archive members, it is possible to support
18732 # filename-based versioning of shared library archives on AIX. While
18733 # this would work for both with and without runtime linking, it will
18734 # prevent static linking of such archives. So we do filename-based
18735 # shared library versioning with .so extension only, which is used
18736 # when both runtime linking and shared linking is enabled.
18737 # Unfortunately, runtime linking may impact performance, so we do
18738 # not want this to be the default eventually. Also, we use the
18739 # versioned .so libs for executables only if there is the -brtl
18740 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
18741 # To allow for filename-based versioning support, we need to create
18742 # libNAME.so.V as an archive file, containing:
18743 # *) an Import File, referring to the versioned filename of the
18744 # archive as well as the shared archive member, telling the
18745 # bitwidth (32 or 64) of that shared object, and providing the
18746 # list of exported symbols of that shared object, eventually
18747 # decorated with the 'weak' keyword
18748 # *) the shared object with the F_LOADONLY flag set, to really avoid
18749 # it being seen by the linker.
18750 # At run time we better use the real file rather than another symlink,
18751 # but for link time we create the symlink libNAME.so -> libNAME.so.V
18752
18753 case $with_aix_soname,$aix_use_runtimelinking in
18754 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
18755 # soname into executable. Probably we can add versioning support to
18756 # collect2, so additional links can be useful in future.
18757 aix,yes) # traditional libtool
18758 dynamic_linker='AIX unversionable lib.so'
18759 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18760 # instead of lib<name>.a to let people know that these are not
18761 # typical AIX shared libraries.
18762 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18763 ;;
18764 aix,no) # traditional AIX only
18765 dynamic_linker='AIX lib.a(lib.so.V)'
18766 # We preserve .a as extension for shared libraries through AIX4.2
18767 # and later when we are not doing run time linking.
18768 library_names_spec='$libname$release.a $libname.a'
18769 soname_spec='$libname$release$shared_ext$major'
18770 ;;
18771 svr4,*) # full svr4 only
18772 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
18773 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18774 # We do not specify a path in Import Files, so LIBPATH fires.
18775 shlibpath_overrides_runpath=yes
18776 ;;
18777 *,yes) # both, prefer svr4
18778 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
18779 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18780 # unpreferred sharedlib libNAME.a needs extra handling
18781 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"'
18782 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"'
18783 # We do not specify a path in Import Files, so LIBPATH fires.
18784 shlibpath_overrides_runpath=yes
18785 ;;
18786 *,no) # both, prefer aix
18787 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
18788 library_names_spec='$libname$release.a $libname.a'
18789 soname_spec='$libname$release$shared_ext$major'
18790 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
18791 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)'
18792 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"'
18793 ;;
18794 esac
18795 shlibpath_var=LIBPATH
18796 fi
18797 ;;
18798
18799 amigaos*)
18800 case $host_cpu in
18801 powerpc)
18802 # Since July 2007 AmigaOS4 officially supports .so libraries.
18803 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18804 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18805 ;;
18806 m68k)
18807 library_names_spec='$libname.ixlibrary $libname.a'
18808 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18809 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'
18810 ;;
18811 esac
18812 ;;
18813
18814 beos*)
18815 library_names_spec='$libname$shared_ext'
18816 dynamic_linker="$host_os ld.so"
18817 shlibpath_var=LIBRARY_PATH
18818 ;;
18819
18820 bsdi[45]*)
18821 version_type=linux # correct to gnu/linux during the next big refactor
18822 need_version=no
18823 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18824 soname_spec='$libname$release$shared_ext$major'
18825 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18826 shlibpath_var=LD_LIBRARY_PATH
18827 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18828 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18829 # the default ld.so.conf also contains /usr/contrib/lib and
18830 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18831 # libtool to hard-code these into programs
18832 ;;
18833
18834 cygwin* | mingw* | windows* | pw32* | cegcc*)
18835 version_type=windows
18836 shrext_cmds=.dll
18837 need_version=no
18838 need_lib_prefix=no
18839
18840 case $GCC,$cc_basename in
18841 yes,*)
18842 # gcc
18843 library_names_spec='$libname.dll.a'
18844 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18845 # If user builds GCC with multilib enabled,
18846 # it should just install on $(libdir)
18847 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
18848 if test xyes = x"$multilib"; then
18849 postinstall_cmds='base_file=`basename \$file`~
18850 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18851 dldir=$destdir/`dirname \$dlpath`~
18852 $install_prog $dir/$dlname $destdir/$dlname~
18853 chmod a+x $destdir/$dlname~
18854 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18855 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
18856 fi'
18857 else
18858 postinstall_cmds='base_file=`basename \$file`~
18859 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18860 dldir=$destdir/`dirname \$dlpath`~
18861 test -d \$dldir || mkdir -p \$dldir~
18862 $install_prog $dir/$dlname \$dldir/$dlname~
18863 chmod a+x \$dldir/$dlname~
18864 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18865 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18866 fi'
18867 fi
18868 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18869 dlpath=$dir/\$dldll~
18870 $RM \$dlpath'
18871 shlibpath_overrides_runpath=yes
18872
18873 case $host_os in
18874 cygwin*)
18875 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18876 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18877
18878 ;;
18879 mingw* | windows* | cegcc*)
18880 # MinGW DLLs use traditional 'lib' prefix
18881 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18882 ;;
18883 pw32*)
18884 # pw32 DLLs use 'pw' prefix rather than 'lib'
18885 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18886 ;;
18887 esac
18888 dynamic_linker='Win32 ld.exe'
18889 ;;
18890
18891 *,cl* | *,icl*)
18892 # Native MSVC or ICC
18893 libname_spec='$name'
18894 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18895 library_names_spec='$libname.dll.lib'
18896
18897 case $build_os in
18898 mingw* | windows*)
18899 sys_lib_search_path_spec=
18900 lt_save_ifs=$IFS
18901 IFS=';'
18902 for lt_path in $LIB
18903 do
18904 IFS=$lt_save_ifs
18905 # Let DOS variable expansion print the short 8.3 style file name.
18906 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18907 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18908 done
18909 IFS=$lt_save_ifs
18910 # Convert to MSYS style.
18911 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18912 ;;
18913 cygwin*)
18914 # Convert to unix form, then to dos form, then back to unix form
18915 # but this time dos style (no spaces!) so that the unix form looks
18916 # like /cygdrive/c/PROGRA~1:/cygdr...
18917 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18918 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18919 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18920 ;;
18921 *)
18922 sys_lib_search_path_spec=$LIB
18923 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18924 # It is most probably a Windows format PATH.
18925 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18926 else
18927 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18928 fi
18929 # FIXME: find the short name or the path components, as spaces are
18930 # common. (e.g. "Program Files" -> "PROGRA~1")
18931 ;;
18932 esac
18933
18934 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18935 postinstall_cmds='base_file=`basename \$file`~
18936 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18937 dldir=$destdir/`dirname \$dlpath`~
18938 test -d \$dldir || mkdir -p \$dldir~
18939 $install_prog $dir/$dlname \$dldir/$dlname'
18940 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18941 dlpath=$dir/\$dldll~
18942 $RM \$dlpath'
18943 shlibpath_overrides_runpath=yes
18944 dynamic_linker='Win32 link.exe'
18945 ;;
18946
18947 *)
18948 # Assume MSVC and ICC wrapper
18949 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18950 dynamic_linker='Win32 ld.exe'
18951 ;;
18952 esac
18953 # FIXME: first we should search . and the directory the executable is in
18954 shlibpath_var=PATH
18955 ;;
18956
18957 darwin* | rhapsody*)
18958 dynamic_linker="$host_os dyld"
18959 version_type=darwin
18960 need_lib_prefix=no
18961 need_version=no
18962 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18963 soname_spec='$libname$release$major$shared_ext'
18964 shlibpath_overrides_runpath=yes
18965 shlibpath_var=DYLD_LIBRARY_PATH
18966 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18967
18968 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18969 ;;
18970
18971 dgux*)
18972 version_type=linux # correct to gnu/linux during the next big refactor
18973 need_lib_prefix=no
18974 need_version=no
18975 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18976 soname_spec='$libname$release$shared_ext$major'
18977 shlibpath_var=LD_LIBRARY_PATH
18978 ;;
18979
18980 freebsd* | dragonfly* | midnightbsd*)
18981 # DragonFly does not have aout. When/if they implement a new
18982 # versioning mechanism, adjust this.
18983 if test -x /usr/bin/objformat; then
18984 objformat=`/usr/bin/objformat`
18985 else
18986 case $host_os in
18987 freebsd[23].*) objformat=aout ;;
18988 *) objformat=elf ;;
18989 esac
18990 fi
18991 version_type=freebsd-$objformat
18992 case $version_type in
18993 freebsd-elf*)
18994 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18995 soname_spec='$libname$release$shared_ext$major'
18996 need_version=no
18997 need_lib_prefix=no
18998 ;;
18999 freebsd-*)
19000 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19001 need_version=yes
19002 ;;
19003 esac
19004 case $host_cpu in
19005 powerpc64)
19006 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
19007 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
19008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19009 /* end confdefs.h. */
19010 int test_pointer_size[sizeof (void *) - 5];
19011
19012 _ACEOF
19013 if ac_fn_cxx_try_compile "$LINENO"
19014 then :
19015 shlibpath_var=LD_LIBRARY_PATH
19016 else case e in #(
19017 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
19018 esac
19019 fi
19020 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19021 ;;
19022 *)
19023 shlibpath_var=LD_LIBRARY_PATH
19024 ;;
19025 esac
19026 case $host_os in
19027 freebsd2.*)
19028 shlibpath_overrides_runpath=yes
19029 ;;
19030 freebsd3.[01]* | freebsdelf3.[01]*)
19031 shlibpath_overrides_runpath=yes
19032 hardcode_into_libs=yes
19033 ;;
19034 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19035 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19036 shlibpath_overrides_runpath=no
19037 hardcode_into_libs=yes
19038 ;;
19039 *) # from 4.6 on, and DragonFly
19040 shlibpath_overrides_runpath=yes
19041 hardcode_into_libs=yes
19042 ;;
19043 esac
19044 ;;
19045
19046 haiku*)
19047 version_type=linux # correct to gnu/linux during the next big refactor
19048 need_lib_prefix=no
19049 need_version=no
19050 dynamic_linker="$host_os runtime_loader"
19051 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19052 soname_spec='$libname$release$shared_ext$major'
19053 shlibpath_var=LIBRARY_PATH
19054 shlibpath_overrides_runpath=no
19055 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
19056 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
19057 hardcode_into_libs=no
19058 ;;
19059
19060 hpux9* | hpux10* | hpux11*)
19061 # Give a soname corresponding to the major version so that dld.sl refuses to
19062 # link against other versions.
19063 version_type=sunos
19064 need_lib_prefix=no
19065 need_version=no
19066 case $host_cpu in
19067 ia64*)
19068 shrext_cmds='.so'
19069 hardcode_into_libs=yes
19070 dynamic_linker="$host_os dld.so"
19071 shlibpath_var=LD_LIBRARY_PATH
19072 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19073 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19074 soname_spec='$libname$release$shared_ext$major'
19075 if test 32 = "$HPUX_IA64_MODE"; then
19076 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19077 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
19078 else
19079 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19080 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
19081 fi
19082 ;;
19083 hppa*64*)
19084 shrext_cmds='.sl'
19085 hardcode_into_libs=yes
19086 dynamic_linker="$host_os dld.sl"
19087 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19088 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19089 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19090 soname_spec='$libname$release$shared_ext$major'
19091 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19092 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19093 ;;
19094 *)
19095 shrext_cmds='.sl'
19096 dynamic_linker="$host_os dld.sl"
19097 shlibpath_var=SHLIB_PATH
19098 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19099 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19100 soname_spec='$libname$release$shared_ext$major'
19101 ;;
19102 esac
19103 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19104 postinstall_cmds='chmod 555 $lib'
19105 # or fails outright, so override atomically:
19106 install_override_mode=555
19107 ;;
19108
19109 interix[3-9]*)
19110 version_type=linux # correct to gnu/linux during the next big refactor
19111 need_lib_prefix=no
19112 need_version=no
19113 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19114 soname_spec='$libname$release$shared_ext$major'
19115 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19116 shlibpath_var=LD_LIBRARY_PATH
19117 shlibpath_overrides_runpath=no
19118 hardcode_into_libs=yes
19119 ;;
19120
19121 irix5* | irix6* | nonstopux*)
19122 case $host_os in
19123 nonstopux*) version_type=nonstopux ;;
19124 *)
19125 if test yes = "$lt_cv_prog_gnu_ld"; then
19126 version_type=linux # correct to gnu/linux during the next big refactor
19127 else
19128 version_type=irix
19129 fi ;;
19130 esac
19131 need_lib_prefix=no
19132 need_version=no
19133 soname_spec='$libname$release$shared_ext$major'
19134 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
19135 case $host_os in
19136 irix5* | nonstopux*)
19137 libsuff= shlibsuff=
19138 ;;
19139 *)
19140 case $LD in # libtool.m4 will add one of these switches to LD
19141 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19142 libsuff= shlibsuff= libmagic=32-bit;;
19143 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19144 libsuff=32 shlibsuff=N32 libmagic=N32;;
19145 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19146 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19147 *) libsuff= shlibsuff= libmagic=never-match;;
19148 esac
19149 ;;
19150 esac
19151 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19152 shlibpath_overrides_runpath=no
19153 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
19154 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
19155 hardcode_into_libs=yes
19156 ;;
19157
19158 # No shared lib support for Linux oldld, aout, or coff.
19159 linux*oldld* | linux*aout* | linux*coff*)
19160 dynamic_linker=no
19161 ;;
19162
19163 linux*android*)
19164 version_type=none # Android doesn't support versioned libraries.
19165 need_lib_prefix=no
19166 need_version=no
19167 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
19168 soname_spec='$libname$release$shared_ext'
19169 finish_cmds=
19170 shlibpath_var=LD_LIBRARY_PATH
19171 shlibpath_overrides_runpath=yes
19172
19173 # This implies no fast_install, which is unacceptable.
19174 # Some rework will be needed to allow for fast_install
19175 # before this can be enabled.
19176 hardcode_into_libs=yes
19177
19178 dynamic_linker='Android linker'
19179 # -rpath works at least for libraries that are not overridden by
19180 # libraries installed in system locations.
19181 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
19182 ;;
19183
19184 # This must be glibc/ELF.
19185 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19186 version_type=linux # correct to gnu/linux during the next big refactor
19187 need_lib_prefix=no
19188 need_version=no
19189 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19190 soname_spec='$libname$release$shared_ext$major'
19191 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19192 shlibpath_var=LD_LIBRARY_PATH
19193 shlibpath_overrides_runpath=no
19194
19195 # Some binutils ld are patched to set DT_RUNPATH
19196 if test ${lt_cv_shlibpath_overrides_runpath+y}
19197 then :
19198 printf %s "(cached) " >&6
19199 else case e in #(
19200 e) lt_cv_shlibpath_overrides_runpath=no
19201 save_LDFLAGS=$LDFLAGS
19202 save_libdir=$libdir
19203 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19204 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19206 /* end confdefs.h. */
19207
19208 int
19209 main (void)
19210 {
19211
19212 ;
19213 return 0;
19214 }
19215 _ACEOF
19216 if ac_fn_cxx_try_link "$LINENO"
19217 then :
19218 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
19219 then :
19220 lt_cv_shlibpath_overrides_runpath=yes
19221 fi
19222 fi
19223 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19224 conftest$ac_exeext conftest.$ac_ext
19225 LDFLAGS=$save_LDFLAGS
19226 libdir=$save_libdir
19227 ;;
19228 esac
19229 fi
19230
19231 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19232
19233 # This implies no fast_install, which is unacceptable.
19234 # Some rework will be needed to allow for fast_install
19235 # before this can be enabled.
19236 hardcode_into_libs=yes
19237
19238 # Ideally, we could use ldconfig to report *all* directories which are
19239 # searched for libraries, however this is still not possible. Aside from not
19240 # being certain /sbin/ldconfig is available, command
19241 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
19242 # even though it is searched at run-time. Try to do the best guess by
19243 # appending ld.so.conf contents (and includes) to the search path.
19244 if test -f /etc/ld.so.conf; then
19245 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' ' '`
19246 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19247 fi
19248
19249 # We used to test for /lib/ld.so.1 and disable shared libraries on
19250 # powerpc, because MkLinux only supported shared libraries with the
19251 # GNU dynamic linker. Since this was broken with cross compilers,
19252 # most powerpc-linux boxes support dynamic linking these days and
19253 # people can always --disable-shared, the test was removed, and we
19254 # assume the GNU/Linux dynamic linker is in use.
19255 dynamic_linker='GNU/Linux ld.so'
19256 ;;
19257
19258 netbsdelf*-gnu)
19259 version_type=linux
19260 need_lib_prefix=no
19261 need_version=no
19262 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19263 soname_spec='$libname$release$shared_ext$major'
19264 shlibpath_var=LD_LIBRARY_PATH
19265 shlibpath_overrides_runpath=no
19266 hardcode_into_libs=yes
19267 dynamic_linker='NetBSD ld.elf_so'
19268 ;;
19269
19270 netbsdelf*-gnu)
19271 version_type=linux
19272 need_lib_prefix=no
19273 need_version=no
19274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19275 soname_spec='${libname}${release}${shared_ext}$major'
19276 shlibpath_var=LD_LIBRARY_PATH
19277 shlibpath_overrides_runpath=no
19278 hardcode_into_libs=yes
19279 dynamic_linker='NetBSD ld.elf_so'
19280 ;;
19281
19282 netbsd*)
19283 version_type=sunos
19284 need_lib_prefix=no
19285 need_version=no
19286 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19287 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19288 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19289 dynamic_linker='NetBSD (a.out) ld.so'
19290 else
19291 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19292 soname_spec='$libname$release$shared_ext$major'
19293 dynamic_linker='NetBSD ld.elf_so'
19294 fi
19295 shlibpath_var=LD_LIBRARY_PATH
19296 shlibpath_overrides_runpath=yes
19297 hardcode_into_libs=yes
19298 ;;
19299
19300 *-mlibc)
19301 version_type=linux # correct to gnu/linux during the next big refactor
19302 need_lib_prefix=no
19303 need_version=no
19304 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19305 soname_spec='$libname$release$shared_ext$major'
19306 dynamic_linker='mlibc ld.so'
19307 shlibpath_var=LD_LIBRARY_PATH
19308 shlibpath_overrides_runpath=no
19309 hardcode_into_libs=yes
19310 ;;
19311
19312 newsos6)
19313 version_type=linux # correct to gnu/linux during the next big refactor
19314 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19315 shlibpath_var=LD_LIBRARY_PATH
19316 shlibpath_overrides_runpath=yes
19317 ;;
19318
19319 *nto* | *qnx*)
19320 version_type=qnx
19321 need_lib_prefix=no
19322 need_version=no
19323 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19324 soname_spec='$libname$release$shared_ext$major'
19325 shlibpath_var=LD_LIBRARY_PATH
19326 shlibpath_overrides_runpath=no
19327 hardcode_into_libs=yes
19328 dynamic_linker='ldqnx.so'
19329 ;;
19330
19331 openbsd*)
19332 version_type=sunos
19333 sys_lib_dlsearch_path_spec=/usr/lib
19334 need_lib_prefix=no
19335 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
19336 need_version=no
19337 else
19338 need_version=yes
19339 fi
19340 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19341 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19342 shlibpath_var=LD_LIBRARY_PATH
19343 shlibpath_overrides_runpath=yes
19344 ;;
19345
19346 os2*)
19347 libname_spec='$name'
19348 version_type=windows
19349 shrext_cmds=.dll
19350 need_version=no
19351 need_lib_prefix=no
19352 # OS/2 can only load a DLL with a base name of 8 characters or less.
19353 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
19354 v=$($ECHO $release$versuffix | tr -d .-);
19355 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
19356 $ECHO $n$v`$shared_ext'
19357 library_names_spec='${libname}_dll.$libext'
19358 dynamic_linker='OS/2 ld.exe'
19359 shlibpath_var=BEGINLIBPATH
19360 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19361 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19362 postinstall_cmds='base_file=`basename \$file`~
19363 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
19364 dldir=$destdir/`dirname \$dlpath`~
19365 test -d \$dldir || mkdir -p \$dldir~
19366 $install_prog $dir/$dlname \$dldir/$dlname~
19367 chmod a+x \$dldir/$dlname~
19368 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19369 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19370 fi'
19371 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
19372 dlpath=$dir/\$dldll~
19373 $RM \$dlpath'
19374 ;;
19375
19376 osf3* | osf4* | osf5*)
19377 version_type=osf
19378 need_lib_prefix=no
19379 need_version=no
19380 soname_spec='$libname$release$shared_ext$major'
19381 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19382 shlibpath_var=LD_LIBRARY_PATH
19383 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19384 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19385 ;;
19386
19387 rdos*)
19388 dynamic_linker=no
19389 ;;
19390
19391 serenity*)
19392 version_type=linux # correct to gnu/linux during the next big refactor
19393 need_lib_prefix=no
19394 need_version=no
19395 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19396 soname_spec='$libname$release$shared_ext$major'
19397 shlibpath_var=LD_LIBRARY_PATH
19398 shlibpath_overrides_runpath=no
19399 dynamic_linker='SerenityOS LibELF'
19400 ;;
19401
19402 solaris*)
19403 version_type=linux # correct to gnu/linux during the next big refactor
19404 need_lib_prefix=no
19405 need_version=no
19406 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19407 soname_spec='$libname$release$shared_ext$major'
19408 shlibpath_var=LD_LIBRARY_PATH
19409 shlibpath_overrides_runpath=yes
19410 hardcode_into_libs=yes
19411 # ldd complains unless libraries are executable
19412 postinstall_cmds='chmod +x $lib'
19413 ;;
19414
19415 sunos4*)
19416 version_type=sunos
19417 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19418 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19419 shlibpath_var=LD_LIBRARY_PATH
19420 shlibpath_overrides_runpath=yes
19421 if test yes = "$with_gnu_ld"; then
19422 need_lib_prefix=no
19423 fi
19424 need_version=yes
19425 ;;
19426
19427 sysv4 | sysv4.3*)
19428 version_type=linux # correct to gnu/linux during the next big refactor
19429 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19430 soname_spec='$libname$release$shared_ext$major'
19431 shlibpath_var=LD_LIBRARY_PATH
19432 case $host_vendor in
19433 sni)
19434 shlibpath_overrides_runpath=no
19435 need_lib_prefix=no
19436 runpath_var=LD_RUN_PATH
19437 ;;
19438 siemens)
19439 need_lib_prefix=no
19440 ;;
19441 motorola)
19442 need_lib_prefix=no
19443 need_version=no
19444 shlibpath_overrides_runpath=no
19445 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19446 ;;
19447 esac
19448 ;;
19449
19450 sysv4*MP*)
19451 if test -d /usr/nec; then
19452 version_type=linux # correct to gnu/linux during the next big refactor
19453 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
19454 soname_spec='$libname$shared_ext.$major'
19455 shlibpath_var=LD_LIBRARY_PATH
19456 fi
19457 ;;
19458
19459 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19460 version_type=sco
19461 need_lib_prefix=no
19462 need_version=no
19463 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
19464 soname_spec='$libname$release$shared_ext$major'
19465 shlibpath_var=LD_LIBRARY_PATH
19466 shlibpath_overrides_runpath=yes
19467 hardcode_into_libs=yes
19468 if test yes = "$with_gnu_ld"; then
19469 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19470 else
19471 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19472 case $host_os in
19473 sco3.2v5*)
19474 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19475 ;;
19476 esac
19477 fi
19478 sys_lib_dlsearch_path_spec='/usr/lib'
19479 ;;
19480
19481 tpf*)
19482 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19483 version_type=linux # correct to gnu/linux during the next big refactor
19484 need_lib_prefix=no
19485 need_version=no
19486 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19487 shlibpath_var=LD_LIBRARY_PATH
19488 shlibpath_overrides_runpath=no
19489 hardcode_into_libs=yes
19490 ;;
19491
19492 uts4*)
19493 version_type=linux # correct to gnu/linux during the next big refactor
19494 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19495 soname_spec='$libname$release$shared_ext$major'
19496 shlibpath_var=LD_LIBRARY_PATH
19497 ;;
19498
19499 emscripten*)
19500 version_type=none
19501 need_lib_prefix=no
19502 need_version=no
19503 library_names_spec='$libname$release$shared_ext'
19504 soname_spec='$libname$release$shared_ext'
19505 finish_cmds=
19506 dynamic_linker="Emscripten linker"
19507 lt_prog_compiler_wl_CXX=
19508 lt_prog_compiler_pic_CXX=
19509 lt_prog_compiler_static_CXX=
19510
19511
19512 # C++ specific cases for pic, static, wl, etc.
19513 if test yes = "$GXX"; then
19514 lt_prog_compiler_wl_CXX='-Wl,'
19515 lt_prog_compiler_static_CXX='-static'
19516
19517 case $host_os in
19518 aix*)
19519 # All AIX code is PIC.
19520 if test ia64 = "$host_cpu"; then
19521 # AIX 5 now supports IA64 processor
19522 lt_prog_compiler_static_CXX='-Bstatic'
19523 fi
19524 lt_prog_compiler_pic_CXX='-fPIC'
19525 ;;
19526
19527 amigaos*)
19528 case $host_cpu in
19529 powerpc)
19530 # see comment about AmigaOS4 .so support
19531 lt_prog_compiler_pic_CXX='-fPIC'
19532 ;;
19533 m68k)
19534 # FIXME: we need at least 68020 code to build shared libraries, but
19535 # adding the '-m68020' flag to GCC prevents building anything better,
19536 # like '-m68040'.
19537 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19538 ;;
19539 esac
19540 ;;
19541
19542 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19543 # PIC is the default for these OSes.
19544 ;;
19545 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
19546 # This hack is so that the source file can tell whether it is being
19547 # built for inclusion in a dll (and should export symbols for example).
19548 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19549 # (--disable-auto-import) libraries
19550 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19551 case $host_os in
19552 os2*)
19553 lt_prog_compiler_static_CXX='$wl-static'
19554 ;;
19555 esac
19556 ;;
19557 darwin* | rhapsody*)
19558 # PIC is the default on this platform
19559 # Common symbols not allowed in MH_DYLIB files
19560 lt_prog_compiler_pic_CXX='-fno-common'
19561 ;;
19562 *djgpp*)
19563 # DJGPP does not support shared libraries at all
19564 lt_prog_compiler_pic_CXX=
19565 ;;
19566 haiku*)
19567 # PIC is the default for Haiku.
19568 # The "-static" flag exists, but is broken.
19569 lt_prog_compiler_static_CXX=
19570 ;;
19571 interix[3-9]*)
19572 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19573 # Instead, we relocate shared libraries at runtime.
19574 ;;
19575 sysv4*MP*)
19576 if test -d /usr/nec; then
19577 lt_prog_compiler_pic_CXX=-Kconform_pic
19578 fi
19579 ;;
19580 hpux*)
19581 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19582 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19583 # sets the default TLS model and affects inlining.
19584 case $host_cpu in
19585 hppa*64*)
19586 ;;
19587 *)
19588 lt_prog_compiler_pic_CXX='-fPIC'
19589 ;;
19590 esac
19591 ;;
19592 *qnx* | *nto*)
19593 # QNX uses GNU C++, but need to define -shared option too, otherwise
19594 # it will coredump.
19595 lt_prog_compiler_pic_CXX='-fPIC -shared'
19596 ;;
19597 *)
19598 lt_prog_compiler_pic_CXX='-fPIC'
19599 ;;
19600 esac
19601 else
19602 case $host_os in
19603 aix[4-9]*)
19604 # All AIX code is PIC.
19605 if test ia64 = "$host_cpu"; then
19606 # AIX 5 now supports IA64 processor
19607 lt_prog_compiler_static_CXX='-Bstatic'
19608 else
19609 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19610 fi
19611 ;;
19612 chorus*)
19613 case $cc_basename in
19614 cxch68*)
19615 # Green Hills C++ Compiler
19616 # _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"
19617 ;;
19618 esac
19619 ;;
19620 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
19621 # This hack is so that the source file can tell whether it is being
19622 # built for inclusion in a dll (and should export symbols for example).
19623 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19624 ;;
19625 dgux*)
19626 case $cc_basename in
19627 ec++*)
19628 lt_prog_compiler_pic_CXX='-KPIC'
19629 ;;
19630 ghcx*)
19631 # Green Hills C++ Compiler
19632 lt_prog_compiler_pic_CXX='-pic'
19633 ;;
19634 *)
19635 ;;
19636 esac
19637 ;;
19638 freebsd* | dragonfly* | midnightbsd*)
19639 # FreeBSD uses GNU C++
19640 ;;
19641 hpux9* | hpux10* | hpux11*)
19642 case $cc_basename in
19643 CC*)
19644 lt_prog_compiler_wl_CXX='-Wl,'
19645 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
19646 if test ia64 != "$host_cpu"; then
19647 lt_prog_compiler_pic_CXX='+Z'
19648 fi
19649 ;;
19650 aCC*)
19651 lt_prog_compiler_wl_CXX='-Wl,'
19652 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
19653 case $host_cpu in
19654 hppa*64*|ia64*)
19655 # +Z the default
19656 ;;
19657 *)
19658 lt_prog_compiler_pic_CXX='+Z'
19659 ;;
19660 esac
19661 ;;
19662 *)
19663 ;;
19664 esac
19665 ;;
19666 interix*)
19667 # This is c89, which is MS Visual C++ (no shared libs)
19668 # Anyone wants to do a port?
19669 ;;
19670 irix5* | irix6* | nonstopux*)
19671 case $cc_basename in
19672 CC*)
19673 lt_prog_compiler_wl_CXX='-Wl,'
19674 lt_prog_compiler_static_CXX='-non_shared'
19675 # CC pic flag -KPIC is the default.
19676 ;;
19677 *)
19678 ;;
19679 esac
19680 ;;
19681 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19682 case $cc_basename in
19683 KCC*)
19684 # KAI C++ Compiler
19685 lt_prog_compiler_wl_CXX='--backend -Wl,'
19686 lt_prog_compiler_pic_CXX='-fPIC'
19687 ;;
19688 ecpc* )
19689 # old Intel C++ for x86_64, which still supported -KPIC.
19690 lt_prog_compiler_wl_CXX='-Wl,'
19691 lt_prog_compiler_pic_CXX='-KPIC'
19692 lt_prog_compiler_static_CXX='-static'
19693 ;;
19694 icpc* )
19695 # Intel C++, used to be incompatible with GCC.
19696 # ICC 10 doesn't accept -KPIC any more.
19697 lt_prog_compiler_wl_CXX='-Wl,'
19698 lt_prog_compiler_pic_CXX='-fPIC'
19699 lt_prog_compiler_static_CXX='-static'
19700 ;;
19701 pgCC* | pgcpp*)
19702 # Portland Group C++ compiler
19703 lt_prog_compiler_wl_CXX='-Wl,'
19704 lt_prog_compiler_pic_CXX='-fpic'
19705 lt_prog_compiler_static_CXX='-Bstatic'
19706 ;;
19707 cxx*)
19708 # Compaq C++
19709 # Make sure the PIC flag is empty. It appears that all Alpha
19710 # Linux and Compaq Tru64 Unix objects are PIC.
19711 lt_prog_compiler_pic_CXX=
19712 lt_prog_compiler_static_CXX='-non_shared'
19713 ;;
19714 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19715 # IBM XL 8.0, 9.0 on PPC and BlueGene
19716 lt_prog_compiler_wl_CXX='-Wl,'
19717 lt_prog_compiler_pic_CXX='-qpic'
19718 lt_prog_compiler_static_CXX='-qstaticlink'
19719 ;;
19720 *)
19721 case `$CC -V 2>&1 | $SED 5q` in
19722 *Sun\ C*)
19723 # Sun C++ 5.9
19724 lt_prog_compiler_pic_CXX='-KPIC'
19725 lt_prog_compiler_static_CXX='-Bstatic'
19726 lt_prog_compiler_wl_CXX='-Qoption ld '
19727 ;;
19728 esac
19729 ;;
19730 esac
19731 ;;
19732 lynxos*)
19733 ;;
19734 m88k*)
19735 ;;
19736 mvs*)
19737 case $cc_basename in
19738 cxx*)
19739 lt_prog_compiler_pic_CXX='-W c,exportall'
19740 ;;
19741 *)
19742 ;;
19743 esac
19744 ;;
19745 netbsd* | netbsdelf*-gnu)
19746 ;;
19747 *-mlibc)
19748 ;;
19749 *qnx* | *nto*)
19750 # QNX uses GNU C++, but need to define -shared option too, otherwise
19751 # it will coredump.
19752 lt_prog_compiler_pic_CXX='-fPIC -shared'
19753 ;;
19754 osf3* | osf4* | osf5*)
19755 case $cc_basename in
19756 KCC*)
19757 lt_prog_compiler_wl_CXX='--backend -Wl,'
19758 ;;
19759 RCC*)
19760 # Rational C++ 2.4.1
19761 lt_prog_compiler_pic_CXX='-pic'
19762 ;;
19763 cxx*)
19764 # Digital/Compaq C++
19765 lt_prog_compiler_wl_CXX='-Wl,'
19766 # Make sure the PIC flag is empty. It appears that all Alpha
19767 # Linux and Compaq Tru64 Unix objects are PIC.
19768 lt_prog_compiler_pic_CXX=
19769 lt_prog_compiler_static_CXX='-non_shared'
19770 ;;
19771 *)
19772 ;;
19773 esac
19774 ;;
19775 psos*)
19776 ;;
19777 serenity*)
19778 ;;
19779 solaris*)
19780 case $cc_basename in
19781 CC* | sunCC*)
19782 # Sun C++ 4.2, 5.x and Centerline C++
19783 lt_prog_compiler_pic_CXX='-KPIC'
19784 lt_prog_compiler_static_CXX='-Bstatic'
19785 lt_prog_compiler_wl_CXX='-Qoption ld '
19786 ;;
19787 gcx*)
19788 # Green Hills C++ Compiler
19789 lt_prog_compiler_pic_CXX='-PIC'
19790 ;;
19791 *)
19792 ;;
19793 esac
19794 ;;
19795 sunos4*)
19796 case $cc_basename in
19797 CC*)
19798 # Sun C++ 4.x
19799 lt_prog_compiler_pic_CXX='-pic'
19800 lt_prog_compiler_static_CXX='-Bstatic'
19801 ;;
19802 lcc*)
19803 # Lucid
19804 lt_prog_compiler_pic_CXX='-pic'
19805 ;;
19806 *)
19807 ;;
19808 esac
19809 ;;
19810 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19811 case $cc_basename in
19812 CC*)
19813 lt_prog_compiler_wl_CXX='-Wl,'
19814 lt_prog_compiler_pic_CXX='-KPIC'
19815 lt_prog_compiler_static_CXX='-Bstatic'
19816 ;;
19817 esac
19818 ;;
19819 tandem*)
19820 case $cc_basename in
19821 NCC*)
19822 # NonStop-UX NCC 3.20
19823 lt_prog_compiler_pic_CXX='-KPIC'
19824 ;;
19825 *)
19826 ;;
19827 esac
19828 ;;
19829 vxworks*)
19830 ;;
19831 *)
19832 lt_prog_compiler_can_build_shared_CXX=no
19833 ;;
19834 esac
19835 fi
19836
19837 case $host_os in
19838 # For platforms that do not support PIC, -DPIC is meaningless:
19839 *djgpp*)
19840 lt_prog_compiler_pic_CXX=
19841 ;;
19842 *)
19843 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19844 ;;
19845 esac
19846
19847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19848 printf %s "checking for $compiler option to produce PIC... " >&6; }
19849 if test ${lt_cv_prog_compiler_pic_CXX+y}
19850 then :
19851 printf %s "(cached) " >&6
19852 else case e in #(
19853 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
19854 esac
19855 fi
19856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19857 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
19858 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
19859
19860 #
19861 # Check to make sure the PIC flag actually works.
19862 #
19863 if test -n "$lt_prog_compiler_pic_CXX"; then
19864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19865 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19866 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
19867 then :
19868 printf %s "(cached) " >&6
19869 else case e in #(
19870 e) lt_cv_prog_compiler_pic_works_CXX=no
19871 ac_outfile=conftest.$ac_objext
19872 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19873 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
19874 # Insert the option either (1) after the last *FLAGS variable, or
19875 # (2) before a word containing "conftest.", or (3) at the end.
19876 # Note that $ac_compile itself does not contain backslashes and begins
19877 # with a dollar sign (not a hyphen), so the echo should work correctly.
19878 # The option is referenced via a variable to avoid confusing sed.
19879 lt_compile=`echo "$ac_compile" | $SED \
19880 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19881 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19882 -e 's:$: $lt_compiler_flag:'`
19883 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19884 (eval "$lt_compile" 2>conftest.err)
19885 ac_status=$?
19886 cat conftest.err >&5
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 if (exit $ac_status) && test -s "$ac_outfile"; then
19889 # The compiler can only warn and ignore the option if not recognized
19890 # So say no if there are warnings other than the usual output.
19891 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19892 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19893 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19894 lt_cv_prog_compiler_pic_works_CXX=yes
19895 fi
19896 fi
19897 $RM conftest*
19898 ;;
19899 esac
19900 fi
19901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19902 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19903
19904 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
19905 case $lt_prog_compiler_pic_CXX in
19906 "" | " "*) ;;
19907 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19908 esac
19909 else
19910 lt_prog_compiler_pic_CXX=
19911 lt_prog_compiler_can_build_shared_CXX=no
19912 fi
19913
19914 fi
19915
19916
19917
19918
19919
19920 #
19921 # Check to make sure the static flag actually works.
19922 #
19923 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19925 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19926 if test ${lt_cv_prog_compiler_static_works_CXX+y}
19927 then :
19928 printf %s "(cached) " >&6
19929 else case e in #(
19930 e) lt_cv_prog_compiler_static_works_CXX=no
19931 save_LDFLAGS=$LDFLAGS
19932 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19933 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19934 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19935 # The linker can only warn and ignore the option if not recognized
19936 # So say no if there are warnings
19937 if test -s conftest.err; then
19938 # Append any errors to the config.log.
19939 cat conftest.err 1>&5
19940 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19941 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19942 if diff conftest.exp conftest.er2 >/dev/null; then
19943 lt_cv_prog_compiler_static_works_CXX=yes
19944 fi
19945 else
19946 lt_cv_prog_compiler_static_works_CXX=yes
19947 fi
19948 fi
19949 $RM -r conftest*
19950 LDFLAGS=$save_LDFLAGS
19951 ;;
19952 esac
19953 fi
19954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19955 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19956
19957 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
19958 :
19959 else
19960 lt_prog_compiler_static_CXX=
19961 fi
19962
19963
19964
19965 ='-fPIC'
19966 archive_cmds_CXX='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
19967 archive_expsym_cmds_CXX='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
19968 archive_cmds_need_lc_CXX=no
19969 no_undefined_flag_CXX=
19970 ;;
19971
19972 *)
19973 dynamic_linker=no
19974 ;;
19975 esac
19976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19977 printf "%s\n" "$dynamic_linker" >&6; }
19978 test no = "$dynamic_linker" && can_build_shared=no
19979
19980 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19981 if test yes = "$GCC"; then
19982 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19983 fi
19984
19985 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
19986 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
19987 fi
19988
19989 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
19990 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
19991 fi
19992
19993 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
19994 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
19995
19996 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
19997 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
19998
19999 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
20000 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
20001
20002
20003
20004
20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
20016
20017
20018
20019
20020
20021
20022
20023
20024
20025
20026
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040
20041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20042 printf %s "checking how to hardcode library paths into programs... " >&6; }
20043 hardcode_action_CXX=
20044 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20045 test -n "$runpath_var_CXX" ||
20046 test yes = "$hardcode_automatic_CXX"; then
20047
20048 # We can hardcode non-existent directories.
20049 if test no != "$hardcode_direct_CXX" &&
20050 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20051 # have to relink, otherwise we might link with an installed library
20052 # when we should be linking with a yet-to-be-installed one
20053 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
20054 test no != "$hardcode_minus_L_CXX"; then
20055 # Linking always hardcodes the temporary library directory.
20056 hardcode_action_CXX=relink
20057 else
20058 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20059 hardcode_action_CXX=immediate
20060 fi
20061 else
20062 # We cannot hardcode anything, or else we can only hardcode existing
20063 # directories.
20064 hardcode_action_CXX=unsupported
20065 fi
20066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20067 printf "%s\n" "$hardcode_action_CXX" >&6; }
20068
20069 if test relink = "$hardcode_action_CXX" ||
20070 test yes = "$inherit_rpath_CXX"; then
20071 # Fast installation is not supported
20072 enable_fast_install=no
20073 elif test yes = "$shlibpath_overrides_runpath" ||
20074 test no = "$enable_shared"; then
20075 # Fast installation is not necessary
20076 enable_fast_install=needless
20077 fi
20078
20079
20080
20081
20082
20083
20084
20085 fi # test -n "$compiler"
20086
20087 CC=$lt_save_CC
20088 CFLAGS=$lt_save_CFLAGS
20089 LDCXX=$LD
20090 LD=$lt_save_LD
20091 GCC=$lt_save_GCC
20092 with_gnu_ld=$lt_save_with_gnu_ld
20093 lt_cv_path_LDCXX=$lt_cv_path_LD
20094 lt_cv_path_LD=$lt_save_path_LD
20095 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20096 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20097 fi # test yes != "$_lt_caught_CXX_error"
20098
20099 ac_ext=cpp
20100 ac_cpp='$CXXCPP $CPPFLAGS'
20101 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20102 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20103 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20104
20105
20106
20107
20108
20109
20110
20111
20112
20113
20114
20115
20116
20117
20118
20119 ac_config_commands="$ac_config_commands libtool"
20120
20121
20122
20123
20124 # Only expand once:
20125
20126
20127
20128
20129 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
20130 ac_ext=cpp
20131 ac_cpp='$CXXCPP $CPPFLAGS'
20132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20135 ac_success=no
20136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
20137 printf %s "checking whether $CXX supports C++11 features by default... " >&6; }
20138 if test ${ax_cv_cxx_compile_cxx11+y}
20139 then :
20140 printf %s "(cached) " >&6
20141 else case e in #(
20142 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20143 /* end confdefs.h. */
20144
20145
20146 // If the compiler admits that it is not ready for C++11, why torture it?
20147 // Hopefully, this will speed up the test.
20148
20149 #ifndef __cplusplus
20150
20151 #error "This is not a C++ compiler"
20152
20153 #elif __cplusplus < 201103L && !(defined _MSC_VER)
20154
20155 #error "This is not a C++11 compiler"
20156
20157 #else
20158
20159 namespace cxx11
20160 {
20161
20162 namespace test_static_assert
20163 {
20164
20165 template <typename T>
20166 struct check
20167 {
20168 static_assert(sizeof(int) <= sizeof(T), "not big enough");
20169 };
20170
20171 }
20172
20173 namespace test_final_override
20174 {
20175
20176 struct Base
20177 {
20178 virtual void f() {}
20179 };
20180
20181 struct Derived : public Base
20182 {
20183 virtual void f() override {}
20184 };
20185
20186 }
20187
20188 namespace test_double_right_angle_brackets
20189 {
20190
20191 template < typename T >
20192 struct check {};
20193
20194 typedef check<void> single_type;
20195 typedef check<check<void>> double_type;
20196 typedef check<check<check<void>>> triple_type;
20197 typedef check<check<check<check<void>>>> quadruple_type;
20198
20199 }
20200
20201 namespace test_decltype
20202 {
20203
20204 int
20205 f()
20206 {
20207 int a = 1;
20208 decltype(a) b = 2;
20209 return a + b;
20210 }
20211
20212 }
20213
20214 namespace test_type_deduction
20215 {
20216
20217 template < typename T1, typename T2 >
20218 struct is_same
20219 {
20220 static const bool value = false;
20221 };
20222
20223 template < typename T >
20224 struct is_same<T, T>
20225 {
20226 static const bool value = true;
20227 };
20228
20229 template < typename T1, typename T2 >
20230 auto
20231 add(T1 a1, T2 a2) -> decltype(a1 + a2)
20232 {
20233 return a1 + a2;
20234 }
20235
20236 int
20237 test(const int c, volatile int v)
20238 {
20239 static_assert(is_same<int, decltype(0)>::value == true, "");
20240 static_assert(is_same<int, decltype(c)>::value == false, "");
20241 static_assert(is_same<int, decltype(v)>::value == false, "");
20242 auto ac = c;
20243 auto av = v;
20244 auto sumi = ac + av + 'x';
20245 auto sumf = ac + av + 1.0;
20246 static_assert(is_same<int, decltype(ac)>::value == true, "");
20247 static_assert(is_same<int, decltype(av)>::value == true, "");
20248 static_assert(is_same<int, decltype(sumi)>::value == true, "");
20249 static_assert(is_same<int, decltype(sumf)>::value == false, "");
20250 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
20251 return (sumf > 0.0) ? sumi : add(c, v);
20252 }
20253
20254 }
20255
20256 namespace test_noexcept
20257 {
20258
20259 int f() { return 0; }
20260 int g() noexcept { return 0; }
20261
20262 static_assert(noexcept(f()) == false, "");
20263 static_assert(noexcept(g()) == true, "");
20264
20265 }
20266
20267 namespace test_constexpr
20268 {
20269
20270 template < typename CharT >
20271 unsigned long constexpr
20272 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
20273 {
20274 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
20275 }
20276
20277 template < typename CharT >
20278 unsigned long constexpr
20279 strlen_c(const CharT *const s) noexcept
20280 {
20281 return strlen_c_r(s, 0UL);
20282 }
20283
20284 static_assert(strlen_c("") == 0UL, "");
20285 static_assert(strlen_c("1") == 1UL, "");
20286 static_assert(strlen_c("example") == 7UL, "");
20287 static_assert(strlen_c("another\0example") == 7UL, "");
20288
20289 }
20290
20291 namespace test_rvalue_references
20292 {
20293
20294 template < int N >
20295 struct answer
20296 {
20297 static constexpr int value = N;
20298 };
20299
20300 answer<1> f(int&) { return answer<1>(); }
20301 answer<2> f(const int&) { return answer<2>(); }
20302 answer<3> f(int&&) { return answer<3>(); }
20303
20304 void
20305 test()
20306 {
20307 int i = 0;
20308 const int c = 0;
20309 static_assert(decltype(f(i))::value == 1, "");
20310 static_assert(decltype(f(c))::value == 2, "");
20311 static_assert(decltype(f(0))::value == 3, "");
20312 }
20313
20314 }
20315
20316 namespace test_uniform_initialization
20317 {
20318
20319 struct test
20320 {
20321 static const int zero {};
20322 static const int one {1};
20323 };
20324
20325 static_assert(test::zero == 0, "");
20326 static_assert(test::one == 1, "");
20327
20328 }
20329
20330 namespace test_lambdas
20331 {
20332
20333 void
20334 test1()
20335 {
20336 auto lambda1 = [](){};
20337 auto lambda2 = lambda1;
20338 lambda1();
20339 lambda2();
20340 }
20341
20342 int
20343 test2()
20344 {
20345 auto a = [](int i, int j){ return i + j; }(1, 2);
20346 auto b = []() -> int { return '0'; }();
20347 auto c = [=](){ return a + b; }();
20348 auto d = [&](){ return c; }();
20349 auto e = [a, &b](int x) mutable {
20350 const auto identity = [](int y){ return y; };
20351 for (auto i = 0; i < a; ++i)
20352 a += b--;
20353 return x + identity(a + b);
20354 }(0);
20355 return a + b + c + d + e;
20356 }
20357
20358 int
20359 test3()
20360 {
20361 const auto nullary = [](){ return 0; };
20362 const auto unary = [](int x){ return x; };
20363 using nullary_t = decltype(nullary);
20364 using unary_t = decltype(unary);
20365 const auto higher1st = [](nullary_t f){ return f(); };
20366 const auto higher2nd = [unary](nullary_t f1){
20367 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
20368 };
20369 return higher1st(nullary) + higher2nd(nullary)(unary);
20370 }
20371
20372 }
20373
20374 namespace test_variadic_templates
20375 {
20376
20377 template <int...>
20378 struct sum;
20379
20380 template <int N0, int... N1toN>
20381 struct sum<N0, N1toN...>
20382 {
20383 static constexpr auto value = N0 + sum<N1toN...>::value;
20384 };
20385
20386 template <>
20387 struct sum<>
20388 {
20389 static constexpr auto value = 0;
20390 };
20391
20392 static_assert(sum<>::value == 0, "");
20393 static_assert(sum<1>::value == 1, "");
20394 static_assert(sum<23>::value == 23, "");
20395 static_assert(sum<1, 2>::value == 3, "");
20396 static_assert(sum<5, 5, 11>::value == 21, "");
20397 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
20398
20399 }
20400
20401 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
20402 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
20403 // because of this.
20404 namespace test_template_alias_sfinae
20405 {
20406
20407 struct foo {};
20408
20409 template<typename T>
20410 using member = typename T::member_type;
20411
20412 template<typename T>
20413 void func(...) {}
20414
20415 template<typename T>
20416 void func(member<T>*) {}
20417
20418 void test();
20419
20420 void test() { func<foo>(0); }
20421
20422 }
20423
20424 } // namespace cxx11
20425
20426 #endif // __cplusplus >= 201103L
20427
20428
20429
20430 _ACEOF
20431 if ac_fn_cxx_try_compile "$LINENO"
20432 then :
20433 ax_cv_cxx_compile_cxx11=yes
20434 else case e in #(
20435 e) ax_cv_cxx_compile_cxx11=no ;;
20436 esac
20437 fi
20438 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20439 esac
20440 fi
20441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
20442 printf "%s\n" "$ax_cv_cxx_compile_cxx11" >&6; }
20443 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
20444 ac_success=yes
20445 fi
20446
20447 if test x$ac_success = xno; then
20448 for alternative in ${ax_cxx_compile_alternatives}; do
20449 switch="-std=gnu++${alternative}"
20450 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | sed "$as_sed_sh"`
20451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
20452 printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
20453 if eval test \${$cachevar+y}
20454 then :
20455 printf %s "(cached) " >&6
20456 else case e in #(
20457 e) ac_save_CXX="$CXX"
20458 CXX="$CXX $switch"
20459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20460 /* end confdefs.h. */
20461
20462
20463 // If the compiler admits that it is not ready for C++11, why torture it?
20464 // Hopefully, this will speed up the test.
20465
20466 #ifndef __cplusplus
20467
20468 #error "This is not a C++ compiler"
20469
20470 #elif __cplusplus < 201103L && !(defined _MSC_VER)
20471
20472 #error "This is not a C++11 compiler"
20473
20474 #else
20475
20476 namespace cxx11
20477 {
20478
20479 namespace test_static_assert
20480 {
20481
20482 template <typename T>
20483 struct check
20484 {
20485 static_assert(sizeof(int) <= sizeof(T), "not big enough");
20486 };
20487
20488 }
20489
20490 namespace test_final_override
20491 {
20492
20493 struct Base
20494 {
20495 virtual void f() {}
20496 };
20497
20498 struct Derived : public Base
20499 {
20500 virtual void f() override {}
20501 };
20502
20503 }
20504
20505 namespace test_double_right_angle_brackets
20506 {
20507
20508 template < typename T >
20509 struct check {};
20510
20511 typedef check<void> single_type;
20512 typedef check<check<void>> double_type;
20513 typedef check<check<check<void>>> triple_type;
20514 typedef check<check<check<check<void>>>> quadruple_type;
20515
20516 }
20517
20518 namespace test_decltype
20519 {
20520
20521 int
20522 f()
20523 {
20524 int a = 1;
20525 decltype(a) b = 2;
20526 return a + b;
20527 }
20528
20529 }
20530
20531 namespace test_type_deduction
20532 {
20533
20534 template < typename T1, typename T2 >
20535 struct is_same
20536 {
20537 static const bool value = false;
20538 };
20539
20540 template < typename T >
20541 struct is_same<T, T>
20542 {
20543 static const bool value = true;
20544 };
20545
20546 template < typename T1, typename T2 >
20547 auto
20548 add(T1 a1, T2 a2) -> decltype(a1 + a2)
20549 {
20550 return a1 + a2;
20551 }
20552
20553 int
20554 test(const int c, volatile int v)
20555 {
20556 static_assert(is_same<int, decltype(0)>::value == true, "");
20557 static_assert(is_same<int, decltype(c)>::value == false, "");
20558 static_assert(is_same<int, decltype(v)>::value == false, "");
20559 auto ac = c;
20560 auto av = v;
20561 auto sumi = ac + av + 'x';
20562 auto sumf = ac + av + 1.0;
20563 static_assert(is_same<int, decltype(ac)>::value == true, "");
20564 static_assert(is_same<int, decltype(av)>::value == true, "");
20565 static_assert(is_same<int, decltype(sumi)>::value == true, "");
20566 static_assert(is_same<int, decltype(sumf)>::value == false, "");
20567 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
20568 return (sumf > 0.0) ? sumi : add(c, v);
20569 }
20570
20571 }
20572
20573 namespace test_noexcept
20574 {
20575
20576 int f() { return 0; }
20577 int g() noexcept { return 0; }
20578
20579 static_assert(noexcept(f()) == false, "");
20580 static_assert(noexcept(g()) == true, "");
20581
20582 }
20583
20584 namespace test_constexpr
20585 {
20586
20587 template < typename CharT >
20588 unsigned long constexpr
20589 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
20590 {
20591 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
20592 }
20593
20594 template < typename CharT >
20595 unsigned long constexpr
20596 strlen_c(const CharT *const s) noexcept
20597 {
20598 return strlen_c_r(s, 0UL);
20599 }
20600
20601 static_assert(strlen_c("") == 0UL, "");
20602 static_assert(strlen_c("1") == 1UL, "");
20603 static_assert(strlen_c("example") == 7UL, "");
20604 static_assert(strlen_c("another\0example") == 7UL, "");
20605
20606 }
20607
20608 namespace test_rvalue_references
20609 {
20610
20611 template < int N >
20612 struct answer
20613 {
20614 static constexpr int value = N;
20615 };
20616
20617 answer<1> f(int&) { return answer<1>(); }
20618 answer<2> f(const int&) { return answer<2>(); }
20619 answer<3> f(int&&) { return answer<3>(); }
20620
20621 void
20622 test()
20623 {
20624 int i = 0;
20625 const int c = 0;
20626 static_assert(decltype(f(i))::value == 1, "");
20627 static_assert(decltype(f(c))::value == 2, "");
20628 static_assert(decltype(f(0))::value == 3, "");
20629 }
20630
20631 }
20632
20633 namespace test_uniform_initialization
20634 {
20635
20636 struct test
20637 {
20638 static const int zero {};
20639 static const int one {1};
20640 };
20641
20642 static_assert(test::zero == 0, "");
20643 static_assert(test::one == 1, "");
20644
20645 }
20646
20647 namespace test_lambdas
20648 {
20649
20650 void
20651 test1()
20652 {
20653 auto lambda1 = [](){};
20654 auto lambda2 = lambda1;
20655 lambda1();
20656 lambda2();
20657 }
20658
20659 int
20660 test2()
20661 {
20662 auto a = [](int i, int j){ return i + j; }(1, 2);
20663 auto b = []() -> int { return '0'; }();
20664 auto c = [=](){ return a + b; }();
20665 auto d = [&](){ return c; }();
20666 auto e = [a, &b](int x) mutable {
20667 const auto identity = [](int y){ return y; };
20668 for (auto i = 0; i < a; ++i)
20669 a += b--;
20670 return x + identity(a + b);
20671 }(0);
20672 return a + b + c + d + e;
20673 }
20674
20675 int
20676 test3()
20677 {
20678 const auto nullary = [](){ return 0; };
20679 const auto unary = [](int x){ return x; };
20680 using nullary_t = decltype(nullary);
20681 using unary_t = decltype(unary);
20682 const auto higher1st = [](nullary_t f){ return f(); };
20683 const auto higher2nd = [unary](nullary_t f1){
20684 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
20685 };
20686 return higher1st(nullary) + higher2nd(nullary)(unary);
20687 }
20688
20689 }
20690
20691 namespace test_variadic_templates
20692 {
20693
20694 template <int...>
20695 struct sum;
20696
20697 template <int N0, int... N1toN>
20698 struct sum<N0, N1toN...>
20699 {
20700 static constexpr auto value = N0 + sum<N1toN...>::value;
20701 };
20702
20703 template <>
20704 struct sum<>
20705 {
20706 static constexpr auto value = 0;
20707 };
20708
20709 static_assert(sum<>::value == 0, "");
20710 static_assert(sum<1>::value == 1, "");
20711 static_assert(sum<23>::value == 23, "");
20712 static_assert(sum<1, 2>::value == 3, "");
20713 static_assert(sum<5, 5, 11>::value == 21, "");
20714 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
20715
20716 }
20717
20718 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
20719 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
20720 // because of this.
20721 namespace test_template_alias_sfinae
20722 {
20723
20724 struct foo {};
20725
20726 template<typename T>
20727 using member = typename T::member_type;
20728
20729 template<typename T>
20730 void func(...) {}
20731
20732 template<typename T>
20733 void func(member<T>*) {}
20734
20735 void test();
20736
20737 void test() { func<foo>(0); }
20738
20739 }
20740
20741 } // namespace cxx11
20742
20743 #endif // __cplusplus >= 201103L
20744
20745
20746
20747 _ACEOF
20748 if ac_fn_cxx_try_compile "$LINENO"
20749 then :
20750 eval $cachevar=yes
20751 else case e in #(
20752 e) eval $cachevar=no ;;
20753 esac
20754 fi
20755 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20756 CXX="$ac_save_CXX" ;;
20757 esac
20758 fi
20759 eval ac_res=\$$cachevar
20760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20761 printf "%s\n" "$ac_res" >&6; }
20762 if eval test x\$$cachevar = xyes; then
20763 CXX="$CXX $switch"
20764 if test -n "$CXXCPP" ; then
20765 CXXCPP="$CXXCPP $switch"
20766 fi
20767 ac_success=yes
20768 break
20769 fi
20770 done
20771 fi
20772
20773 if test x$ac_success = xno; then
20774 for alternative in ${ax_cxx_compile_alternatives}; do
20775 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
20776 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | sed "$as_sed_sh"`
20777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
20778 printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
20779 if eval test \${$cachevar+y}
20780 then :
20781 printf %s "(cached) " >&6
20782 else case e in #(
20783 e) ac_save_CXX="$CXX"
20784 CXX="$CXX $switch"
20785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20786 /* end confdefs.h. */
20787
20788
20789 // If the compiler admits that it is not ready for C++11, why torture it?
20790 // Hopefully, this will speed up the test.
20791
20792 #ifndef __cplusplus
20793
20794 #error "This is not a C++ compiler"
20795
20796 #elif __cplusplus < 201103L && !(defined _MSC_VER)
20797
20798 #error "This is not a C++11 compiler"
20799
20800 #else
20801
20802 namespace cxx11
20803 {
20804
20805 namespace test_static_assert
20806 {
20807
20808 template <typename T>
20809 struct check
20810 {
20811 static_assert(sizeof(int) <= sizeof(T), "not big enough");
20812 };
20813
20814 }
20815
20816 namespace test_final_override
20817 {
20818
20819 struct Base
20820 {
20821 virtual void f() {}
20822 };
20823
20824 struct Derived : public Base
20825 {
20826 virtual void f() override {}
20827 };
20828
20829 }
20830
20831 namespace test_double_right_angle_brackets
20832 {
20833
20834 template < typename T >
20835 struct check {};
20836
20837 typedef check<void> single_type;
20838 typedef check<check<void>> double_type;
20839 typedef check<check<check<void>>> triple_type;
20840 typedef check<check<check<check<void>>>> quadruple_type;
20841
20842 }
20843
20844 namespace test_decltype
20845 {
20846
20847 int
20848 f()
20849 {
20850 int a = 1;
20851 decltype(a) b = 2;
20852 return a + b;
20853 }
20854
20855 }
20856
20857 namespace test_type_deduction
20858 {
20859
20860 template < typename T1, typename T2 >
20861 struct is_same
20862 {
20863 static const bool value = false;
20864 };
20865
20866 template < typename T >
20867 struct is_same<T, T>
20868 {
20869 static const bool value = true;
20870 };
20871
20872 template < typename T1, typename T2 >
20873 auto
20874 add(T1 a1, T2 a2) -> decltype(a1 + a2)
20875 {
20876 return a1 + a2;
20877 }
20878
20879 int
20880 test(const int c, volatile int v)
20881 {
20882 static_assert(is_same<int, decltype(0)>::value == true, "");
20883 static_assert(is_same<int, decltype(c)>::value == false, "");
20884 static_assert(is_same<int, decltype(v)>::value == false, "");
20885 auto ac = c;
20886 auto av = v;
20887 auto sumi = ac + av + 'x';
20888 auto sumf = ac + av + 1.0;
20889 static_assert(is_same<int, decltype(ac)>::value == true, "");
20890 static_assert(is_same<int, decltype(av)>::value == true, "");
20891 static_assert(is_same<int, decltype(sumi)>::value == true, "");
20892 static_assert(is_same<int, decltype(sumf)>::value == false, "");
20893 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
20894 return (sumf > 0.0) ? sumi : add(c, v);
20895 }
20896
20897 }
20898
20899 namespace test_noexcept
20900 {
20901
20902 int f() { return 0; }
20903 int g() noexcept { return 0; }
20904
20905 static_assert(noexcept(f()) == false, "");
20906 static_assert(noexcept(g()) == true, "");
20907
20908 }
20909
20910 namespace test_constexpr
20911 {
20912
20913 template < typename CharT >
20914 unsigned long constexpr
20915 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
20916 {
20917 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
20918 }
20919
20920 template < typename CharT >
20921 unsigned long constexpr
20922 strlen_c(const CharT *const s) noexcept
20923 {
20924 return strlen_c_r(s, 0UL);
20925 }
20926
20927 static_assert(strlen_c("") == 0UL, "");
20928 static_assert(strlen_c("1") == 1UL, "");
20929 static_assert(strlen_c("example") == 7UL, "");
20930 static_assert(strlen_c("another\0example") == 7UL, "");
20931
20932 }
20933
20934 namespace test_rvalue_references
20935 {
20936
20937 template < int N >
20938 struct answer
20939 {
20940 static constexpr int value = N;
20941 };
20942
20943 answer<1> f(int&) { return answer<1>(); }
20944 answer<2> f(const int&) { return answer<2>(); }
20945 answer<3> f(int&&) { return answer<3>(); }
20946
20947 void
20948 test()
20949 {
20950 int i = 0;
20951 const int c = 0;
20952 static_assert(decltype(f(i))::value == 1, "");
20953 static_assert(decltype(f(c))::value == 2, "");
20954 static_assert(decltype(f(0))::value == 3, "");
20955 }
20956
20957 }
20958
20959 namespace test_uniform_initialization
20960 {
20961
20962 struct test
20963 {
20964 static const int zero {};
20965 static const int one {1};
20966 };
20967
20968 static_assert(test::zero == 0, "");
20969 static_assert(test::one == 1, "");
20970
20971 }
20972
20973 namespace test_lambdas
20974 {
20975
20976 void
20977 test1()
20978 {
20979 auto lambda1 = [](){};
20980 auto lambda2 = lambda1;
20981 lambda1();
20982 lambda2();
20983 }
20984
20985 int
20986 test2()
20987 {
20988 auto a = [](int i, int j){ return i + j; }(1, 2);
20989 auto b = []() -> int { return '0'; }();
20990 auto c = [=](){ return a + b; }();
20991 auto d = [&](){ return c; }();
20992 auto e = [a, &b](int x) mutable {
20993 const auto identity = [](int y){ return y; };
20994 for (auto i = 0; i < a; ++i)
20995 a += b--;
20996 return x + identity(a + b);
20997 }(0);
20998 return a + b + c + d + e;
20999 }
21000
21001 int
21002 test3()
21003 {
21004 const auto nullary = [](){ return 0; };
21005 const auto unary = [](int x){ return x; };
21006 using nullary_t = decltype(nullary);
21007 using unary_t = decltype(unary);
21008 const auto higher1st = [](nullary_t f){ return f(); };
21009 const auto higher2nd = [unary](nullary_t f1){
21010 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
21011 };
21012 return higher1st(nullary) + higher2nd(nullary)(unary);
21013 }
21014
21015 }
21016
21017 namespace test_variadic_templates
21018 {
21019
21020 template <int...>
21021 struct sum;
21022
21023 template <int N0, int... N1toN>
21024 struct sum<N0, N1toN...>
21025 {
21026 static constexpr auto value = N0 + sum<N1toN...>::value;
21027 };
21028
21029 template <>
21030 struct sum<>
21031 {
21032 static constexpr auto value = 0;
21033 };
21034
21035 static_assert(sum<>::value == 0, "");
21036 static_assert(sum<1>::value == 1, "");
21037 static_assert(sum<23>::value == 23, "");
21038 static_assert(sum<1, 2>::value == 3, "");
21039 static_assert(sum<5, 5, 11>::value == 21, "");
21040 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
21041
21042 }
21043
21044 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
21045 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
21046 // because of this.
21047 namespace test_template_alias_sfinae
21048 {
21049
21050 struct foo {};
21051
21052 template<typename T>
21053 using member = typename T::member_type;
21054
21055 template<typename T>
21056 void func(...) {}
21057
21058 template<typename T>
21059 void func(member<T>*) {}
21060
21061 void test();
21062
21063 void test() { func<foo>(0); }
21064
21065 }
21066
21067 } // namespace cxx11
21068
21069 #endif // __cplusplus >= 201103L
21070
21071
21072
21073 _ACEOF
21074 if ac_fn_cxx_try_compile "$LINENO"
21075 then :
21076 eval $cachevar=yes
21077 else case e in #(
21078 e) eval $cachevar=no ;;
21079 esac
21080 fi
21081 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21082 CXX="$ac_save_CXX" ;;
21083 esac
21084 fi
21085 eval ac_res=\$$cachevar
21086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21087 printf "%s\n" "$ac_res" >&6; }
21088 if eval test x\$$cachevar = xyes; then
21089 CXX="$CXX $switch"
21090 if test -n "$CXXCPP" ; then
21091 CXXCPP="$CXXCPP $switch"
21092 fi
21093 ac_success=yes
21094 break
21095 fi
21096 done
21097 if test x$ac_success = xyes; then
21098 break
21099 fi
21100 done
21101 fi
21102 ac_ext=cpp
21103 ac_cpp='$CXXCPP $CPPFLAGS'
21104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21107
21108 if test x$ax_cxx_compile_cxx11_required = xtrue; then
21109 if test x$ac_success = xno; then
21110 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
21111 fi
21112 fi
21113 if test x$ac_success = xno; then
21114 HAVE_CXX11=0
21115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
21116 printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;}
21117 else
21118 HAVE_CXX11=1
21119
21120 printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h
21121
21122 fi
21123
21124
21125
21126
21127
21128
21129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((format))" >&5
21130 printf %s "checking for __attribute__((format))... " >&6; }
21131 if test ${ax_cv_have_func_attribute_format+y}
21132 then :
21133 printf %s "(cached) " >&6
21134 else case e in #(
21135 e)
21136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21137 /* end confdefs.h. */
21138
21139
21140 int foo(const char *p, ...) __attribute__((format(printf, 1, 2)));
21141
21142 int
21143 main (void)
21144 {
21145
21146 ;
21147 return 0;
21148 }
21149
21150 _ACEOF
21151 if ac_fn_cxx_try_link "$LINENO"
21152 then :
21153 if test -s conftest.err
21154 then :
21155 ax_cv_have_func_attribute_format=no
21156 else case e in #(
21157 e) ax_cv_have_func_attribute_format=yes ;;
21158 esac
21159 fi
21160 else case e in #(
21161 e) ax_cv_have_func_attribute_format=no ;;
21162 esac
21163 fi
21164 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21165 conftest$ac_exeext conftest.$ac_ext
21166 ;;
21167 esac
21168 fi
21169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_format" >&5
21170 printf "%s\n" "$ax_cv_have_func_attribute_format" >&6; }
21171
21172 if test yes = $ax_cv_have_func_attribute_format
21173 then :
21174
21175 printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_FORMAT 1" >>confdefs.h
21176
21177 fi
21178
21179
21180
21181
21182 # =================================
21183 # Libtool/Version Makefile settings
21184 # =================================
21185 ABW_MAJOR_VERSION=0
21186
21187 ABW_MINOR_VERSION=1
21188
21189 ABW_MICRO_VERSION=4
21190
21191 ABW_VERSION=0.1.4
21192
21193 # AC_SUBST(LT_RELEASE, [libabw_version_major.libabw_version_minor])
21194 LT_CURRENT=`expr 100 '*' 0 + 1`
21195 # For 1.0.0 comment the first line and uncomment the second
21196 LT_AGE=0
21197 # LT_AGE=libabw_version_minor
21198
21199 LT_REVISION=4
21200
21201
21202
21203 # ==========================
21204 # Platform check for windows
21205 # ==========================
21206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
21207 printf %s "checking for native Win32... " >&6; }
21208 case $host in #(
21209 *-*-mingw*) :
21210
21211 native_win32=yes
21212 LIBABW_WIN32_RESOURCE=libabw-win32res.lo
21213 ABW2HTML_WIN32_RESOURCE=abw2html-win32res.lo
21214 ABW2TEXT_WIN32_RESOURCE=abw2text-win32res.lo
21215 ABW2RAW_WIN32_RESOURCE=abw2raw-win32res.lo
21216 ;; #(
21217 *) :
21218
21219 native_win32=no
21220 LIBABW_WIN32_RESOURCE=
21221 ABW2HTML_WIN32_RESOURCE=
21222 ABW2TEXT_WIN32_RESOURCE=
21223 ABW2RAW_WIN32_RESOURCE=
21224
21225 ;;
21226 esac
21227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $native_win32" >&5
21228 printf "%s\n" "$native_win32" >&6; }
21229 if test "x$native_win32" = "xyes"; then
21230 OS_WIN32_TRUE=
21231 OS_WIN32_FALSE='#'
21232 else
21233 OS_WIN32_TRUE='#'
21234 OS_WIN32_FALSE=
21235 fi
21236
21237
21238
21239
21240
21241
21242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Win32 platform in general" >&5
21243 printf %s "checking for Win32 platform in general... " >&6; }
21244 case $host in #(
21245 *-*-mingw*|*-*-cygwin*) :
21246 platform_win32=yes ;; #(
21247 *) :
21248 platform_win32=no
21249 ;;
21250 esac
21251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
21252 printf "%s\n" "$platform_win32" >&6; }
21253 if test "x$platform_win32" = "xyes"; then
21254 PLATFORM_WIN32_TRUE=
21255 PLATFORM_WIN32_FALSE='#'
21256 else
21257 PLATFORM_WIN32_TRUE='#'
21258 PLATFORM_WIN32_FALSE=
21259 fi
21260
21261
21262 if test $platform_win32 = yes
21263 then :
21264
21265 else case e in #(
21266 e)
21267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fvisibility=hidden compiler flag" >&5
21268 printf %s "checking for -fvisibility=hidden compiler flag... " >&6; }
21269 saved_CXXFLAGS="$CXXFLAGS"
21270 CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
21271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21272 /* end confdefs.h. */
21273
21274 int
21275 main (void)
21276 {
21277
21278 ;
21279 return 0;
21280 }
21281 _ACEOF
21282 if ac_fn_cxx_try_compile "$LINENO"
21283 then :
21284
21285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21286 printf "%s\n" "yes" >&6; }
21287 CXXFLAGS="$CXXFLAGS -DLIBABW_VISIBILITY"
21288
21289 else case e in #(
21290 e)
21291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21292 printf "%s\n" "no" >&6; }
21293 CXXFLAGS="$saved_CXXFLAGS"
21294
21295 ;;
21296 esac
21297 fi
21298 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21299
21300 ;;
21301 esac
21302 fi
21303
21304 # =========================
21305 # Platform check for darwin
21306 # =========================
21307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Darwin (Mac OS X) platform" >&5
21308 printf %s "checking for Darwin (Mac OS X) platform... " >&6; }
21309 case $host in #(
21310 *-*-darwin*) :
21311 platform_darwin=yes ;; #(
21312 *) :
21313 platform_darwin=no
21314 ;;
21315 esac
21316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $platform_darwin" >&5
21317 printf "%s\n" "$platform_darwin" >&6; }
21318 if test "x$platform_darwin" = "xyes"; then
21319 PLATFORM_DARWIN_TRUE=
21320 PLATFORM_DARWIN_FALSE='#'
21321 else
21322 PLATFORM_DARWIN_TRUE='#'
21323 PLATFORM_DARWIN_FALSE=
21324 fi
21325
21326
21327 # ================
21328 # Check for cflags
21329 # ================
21330 # Check whether --enable-werror was given.
21331 if test ${enable_werror+y}
21332 then :
21333 enableval=$enable_werror; enable_werror="$enableval"
21334 else case e in #(
21335 e) enable_werror=no
21336 ;;
21337 esac
21338 fi
21339
21340 if test x"$enable_werror" != "xno"
21341 then :
21342
21343 CFLAGS="$CFLAGS -Werror"
21344 CXXFLAGS="$CXXFLAGS -Werror"
21345
21346 fi
21347 # Check whether --enable-weffc was given.
21348 if test ${enable_weffc+y}
21349 then :
21350 enableval=$enable_weffc; enable_weffc="$enableval"
21351 else case e in #(
21352 e) enable_weffc=yes
21353 ;;
21354 esac
21355 fi
21356
21357 # Check whether --enable-wparanoic was given.
21358 if test ${enable_wparanoic+y}
21359 then :
21360 enableval=$enable_wparanoic; enable_wparanoic="$enableval"
21361 else case e in #(
21362 e) enable_wparanoic=no
21363 ;;
21364 esac
21365 fi
21366
21367 # Courtesy of Glib: Ensure MSVC-compatible struct packing convention
21368 # is used when compiling for Win32 with gcc.
21369 if test "x$native_win32" = "xyes"
21370 then :
21371
21372 if test -n "$ac_tool_prefix"; then
21373 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
21374 set dummy ${ac_tool_prefix}windres; ac_word=$2
21375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21376 printf %s "checking for $ac_word... " >&6; }
21377 if test ${ac_cv_prog_WINDRES+y}
21378 then :
21379 printf %s "(cached) " >&6
21380 else case e in #(
21381 e) if test -n "$WINDRES"; then
21382 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
21383 else
21384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21385 for as_dir in $PATH
21386 do
21387 IFS=$as_save_IFS
21388 case $as_dir in #(((
21389 '') as_dir=./ ;;
21390 */) ;;
21391 *) as_dir=$as_dir/ ;;
21392 esac
21393 for ac_exec_ext in '' $ac_executable_extensions; do
21394 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21395 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
21396 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21397 break 2
21398 fi
21399 done
21400 done
21401 IFS=$as_save_IFS
21402
21403 fi ;;
21404 esac
21405 fi
21406 WINDRES=$ac_cv_prog_WINDRES
21407 if test -n "$WINDRES"; then
21408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
21409 printf "%s\n" "$WINDRES" >&6; }
21410 else
21411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21412 printf "%s\n" "no" >&6; }
21413 fi
21414
21415
21416 fi
21417 if test -z "$ac_cv_prog_WINDRES"; then
21418 ac_ct_WINDRES=$WINDRES
21419 # Extract the first word of "windres", so it can be a program name with args.
21420 set dummy windres; ac_word=$2
21421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21422 printf %s "checking for $ac_word... " >&6; }
21423 if test ${ac_cv_prog_ac_ct_WINDRES+y}
21424 then :
21425 printf %s "(cached) " >&6
21426 else case e in #(
21427 e) if test -n "$ac_ct_WINDRES"; then
21428 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
21429 else
21430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21431 for as_dir in $PATH
21432 do
21433 IFS=$as_save_IFS
21434 case $as_dir in #(((
21435 '') as_dir=./ ;;
21436 */) ;;
21437 *) as_dir=$as_dir/ ;;
21438 esac
21439 for ac_exec_ext in '' $ac_executable_extensions; do
21440 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21441 ac_cv_prog_ac_ct_WINDRES="windres"
21442 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21443 break 2
21444 fi
21445 done
21446 done
21447 IFS=$as_save_IFS
21448
21449 fi ;;
21450 esac
21451 fi
21452 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
21453 if test -n "$ac_ct_WINDRES"; then
21454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
21455 printf "%s\n" "$ac_ct_WINDRES" >&6; }
21456 else
21457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21458 printf "%s\n" "no" >&6; }
21459 fi
21460
21461 if test "x$ac_ct_WINDRES" = x; then
21462 WINDRES=""
21463 else
21464 case $cross_compiling:$ac_tool_warned in
21465 yes:)
21466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21467 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21468 ac_tool_warned=yes ;;
21469 esac
21470 WINDRES=$ac_ct_WINDRES
21471 fi
21472 else
21473 WINDRES="$ac_cv_prog_WINDRES"
21474 fi
21475
21476 if test x"$GCC" = xyes
21477 then :
21478
21479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to get MSVC-compatible struct packing" >&5
21480 printf %s "checking how to get MSVC-compatible struct packing... " >&6; }
21481 if test -z "$ac_cv_prog_CC"
21482 then :
21483
21484 our_gcc="$CC"
21485
21486 else case e in #(
21487 e)
21488 our_gcc="$ac_cv_prog_CC"
21489 ;;
21490 esac
21491 fi
21492 if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null
21493 then :
21494
21495 msnative_struct="-mms-bitfields"
21496 CFLAGS="$CFLAGS $msnative_struct"
21497 CXXFLAGS="$CXXFLAGS $msnative_struct"
21498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${msnative_struct}" >&5
21499 printf "%s\n" "${msnative_struct}" >&6; }
21500
21501 else case e in #(
21502 e)
21503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no way" >&5
21504 printf "%s\n" "no way" >&6; }
21505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&5
21506 printf "%s\n" "$as_me: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&2;}
21507 ;;
21508 esac
21509 fi
21510
21511 fi
21512 CFLAGS="$CFLAGS -Wall -Wextra -pedantic"
21513 CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wshadow -pedantic"
21514
21515 else case e in #(
21516 e)
21517 if test x"$GCC" = xyes
21518 then :
21519
21520 # Be tough with warnings and produce less careless code
21521 CFLAGS="$CFLAGS -Wall -Wextra -pedantic"
21522 CXXFLAGS="$CXXFLAGS -Wall -Wextra -pedantic -Wshadow -Wunused-variable"
21523 if test x"$enable_weffc" != "xno"
21524 then :
21525
21526 CXXFLAGS="$CXXFLAGS -Weffc++"
21527
21528 fi
21529 if test x"$enable_wparanoic" != "xno"
21530 then :
21531
21532 CXXFLAGS="$CXXFLAGS -Wcast-align -Wcast-qual -Wchar-subscripts"
21533 CXXFLAGS="$CXXFLAGS -Wcomment -Wconversion -Wdisabled-optimization"
21534 CXXFLAGS="$CXXFLAGS -Wfloat-equal -Wformat -Wformat=2"
21535 CXXFLAGS="$CXXFLAGS -Wformat-nonliteral -Wformat-security"
21536 CXXFLAGS="$CXXFLAGS -Wformat-y2k -Wimport -Winit-self -Winvalid-pch"
21537 CXXFLAGS="$CXXFLAGS -Wmissing-braces -Wmissing-field-initializers"
21538 CXXFLAGS="$CXXFLAGS -Wmissing-format-attribute -Wmissing-include-dirs"
21539 CXXFLAGS="$CXXFLAGS -Wmissing-noreturn -Wpacked -Wparentheses"
21540 CXXFLAGS="$CXXFLAGS -Wpointer-arith -Wredundant-decls -Wreturn-type"
21541 CXXFLAGS="$CXXFLAGS -Wsequence-point -Wsign-compare -Wstrict-aliasing"
21542 CXXFLAGS="$CXXFLAGS -Wstrict-aliasing=2 -Wswitch -Wswitch-default"
21543 CXXFLAGS="$CXXFLAGS -Wswitch-enum -Wtrigraphs -Wunknown-pragmas -Wunused"
21544 CXXFLAGS="$CXXFLAGS -Wunused-function -Wunused-label -Wunused-parameter"
21545 CXXFLAGS="$CXXFLAGS -Wunused-value -Wvariadic-macros"
21546 CXXFLAGS="$CXXFLAGS -Wvolatile-register-var -Wwrite-strings"
21547
21548 fi
21549
21550 fi
21551 ;;
21552 esac
21553 fi
21554
21555 # ============
21556 # Debug switch
21557 # ============
21558 # Check whether --enable-debug was given.
21559 if test ${enable_debug+y}
21560 then :
21561 enableval=$enable_debug; enable_debug="$enableval"
21562 else case e in #(
21563 e) enable_debug=no
21564 ;;
21565 esac
21566 fi
21567
21568 if test "x$enable_debug" = "xyes"
21569 then :
21570
21571 DEBUG_CXXFLAGS="-DDEBUG -g"
21572
21573 else case e in #(
21574 e)
21575 DEBUG_CXXFLAGS="-DNDEBUG"
21576 ;;
21577 esac
21578 fi
21579
21580
21581 # =============
21582 # Documentation
21583 # =============
21584
21585 # Check whether --with-docs was given.
21586 if test ${with_docs+y}
21587 then :
21588 withval=$with_docs; with_docs="$withval"
21589 else case e in #(
21590 e) if test "x$native_win32" = "xyes"
21591 then :
21592 with_docs=no
21593 else case e in #(
21594 e) with_docs=yes ;;
21595 esac
21596 fi
21597 ;;
21598 esac
21599 fi
21600
21601 if test "x$with_docs" != "xno"
21602 then :
21603
21604 # Extract the first word of "doxygen", so it can be a program name with args.
21605 set dummy doxygen; ac_word=$2
21606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21607 printf %s "checking for $ac_word... " >&6; }
21608 if test ${ac_cv_path_DOXYGEN+y}
21609 then :
21610 printf %s "(cached) " >&6
21611 else case e in #(
21612 e) case $DOXYGEN in
21613 [\\/]* | ?:[\\/]*)
21614 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
21615 ;;
21616 *)
21617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21618 for as_dir in $PATH
21619 do
21620 IFS=$as_save_IFS
21621 case $as_dir in #(((
21622 '') as_dir=./ ;;
21623 */) ;;
21624 *) as_dir=$as_dir/ ;;
21625 esac
21626 for ac_exec_ext in '' $ac_executable_extensions; do
21627 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21628 ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext"
21629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21630 break 2
21631 fi
21632 done
21633 done
21634 IFS=$as_save_IFS
21635
21636 ;;
21637 esac ;;
21638 esac
21639 fi
21640 DOXYGEN=$ac_cv_path_DOXYGEN
21641 if test -n "$DOXYGEN"; then
21642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
21643 printf "%s\n" "$DOXYGEN" >&6; }
21644 else
21645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21646 printf "%s\n" "no" >&6; }
21647 fi
21648
21649
21650 if test -z "$DOXYGEN"
21651 then :
21652
21653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** Could not find doxygen in your PATH." >&5
21654 printf "%s\n" "$as_me: WARNING: *** Could not find doxygen in your PATH." >&2;}
21655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** The documentation will not be built." >&5
21656 printf "%s\n" "$as_me: WARNING: *** The documentation will not be built." >&2;}
21657 build_docs=no
21658
21659 else case e in #(
21660 e) build_docs=yes ;;
21661 esac
21662 fi
21663
21664 else case e in #(
21665 e) build_docs=no ;;
21666 esac
21667 fi
21668 if test "x$build_docs" != "xno"; then
21669 WITH_LIBABW_DOCS_TRUE=
21670 WITH_LIBABW_DOCS_FALSE='#'
21671 else
21672 WITH_LIBABW_DOCS_TRUE='#'
21673 WITH_LIBABW_DOCS_FALSE=
21674 fi
21675
21676
21677
21678
21679 GPERF=${GPERF-"${am_missing_run}gperf"}
21680
21681
21682 PERL=${PERL-"${am_missing_run}perl"}
21683
21684
21685 # ===============
21686 # Find librevenge
21687 # ===============
21688
21689
21690
21691
21692
21693
21694
21695 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21696 if test -n "$ac_tool_prefix"; then
21697 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21698 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21700 printf %s "checking for $ac_word... " >&6; }
21701 if test ${ac_cv_path_PKG_CONFIG+y}
21702 then :
21703 printf %s "(cached) " >&6
21704 else case e in #(
21705 e) case $PKG_CONFIG in
21706 [\\/]* | ?:[\\/]*)
21707 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21708 ;;
21709 *)
21710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21711 for as_dir in $PATH
21712 do
21713 IFS=$as_save_IFS
21714 case $as_dir in #(((
21715 '') as_dir=./ ;;
21716 */) ;;
21717 *) as_dir=$as_dir/ ;;
21718 esac
21719 for ac_exec_ext in '' $ac_executable_extensions; do
21720 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21721 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
21722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21723 break 2
21724 fi
21725 done
21726 done
21727 IFS=$as_save_IFS
21728
21729 ;;
21730 esac ;;
21731 esac
21732 fi
21733 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21734 if test -n "$PKG_CONFIG"; then
21735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21736 printf "%s\n" "$PKG_CONFIG" >&6; }
21737 else
21738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21739 printf "%s\n" "no" >&6; }
21740 fi
21741
21742
21743 fi
21744 if test -z "$ac_cv_path_PKG_CONFIG"; then
21745 ac_pt_PKG_CONFIG=$PKG_CONFIG
21746 # Extract the first word of "pkg-config", so it can be a program name with args.
21747 set dummy pkg-config; ac_word=$2
21748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21749 printf %s "checking for $ac_word... " >&6; }
21750 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
21751 then :
21752 printf %s "(cached) " >&6
21753 else case e in #(
21754 e) case $ac_pt_PKG_CONFIG in
21755 [\\/]* | ?:[\\/]*)
21756 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21757 ;;
21758 *)
21759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21760 for as_dir in $PATH
21761 do
21762 IFS=$as_save_IFS
21763 case $as_dir in #(((
21764 '') as_dir=./ ;;
21765 */) ;;
21766 *) as_dir=$as_dir/ ;;
21767 esac
21768 for ac_exec_ext in '' $ac_executable_extensions; do
21769 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21770 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
21771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21772 break 2
21773 fi
21774 done
21775 done
21776 IFS=$as_save_IFS
21777
21778 ;;
21779 esac ;;
21780 esac
21781 fi
21782 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21783 if test -n "$ac_pt_PKG_CONFIG"; then
21784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
21785 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
21786 else
21787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21788 printf "%s\n" "no" >&6; }
21789 fi
21790
21791 if test "x$ac_pt_PKG_CONFIG" = x; then
21792 PKG_CONFIG=""
21793 else
21794 case $cross_compiling:$ac_tool_warned in
21795 yes:)
21796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21797 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21798 ac_tool_warned=yes ;;
21799 esac
21800 PKG_CONFIG=$ac_pt_PKG_CONFIG
21801 fi
21802 else
21803 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21804 fi
21805
21806 fi
21807 if test -n "$PKG_CONFIG"; then
21808 _pkg_min_version=0.9.0
21809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
21810 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21811 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21813 printf "%s\n" "yes" >&6; }
21814 else
21815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21816 printf "%s\n" "no" >&6; }
21817 PKG_CONFIG=""
21818 fi
21819 fi
21820
21821 pkg_failed=no
21822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for librevenge-0.0" >&5
21823 printf %s "checking for librevenge-0.0... " >&6; }
21824
21825 if test -n "$REVENGE_CFLAGS"; then
21826 pkg_cv_REVENGE_CFLAGS="$REVENGE_CFLAGS"
21827 elif test -n "$PKG_CONFIG"; then
21828 if test -n "$PKG_CONFIG" && \
21829 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librevenge-0.0\""; } >&5
21830 ($PKG_CONFIG --exists --print-errors "librevenge-0.0") 2>&5
21831 ac_status=$?
21832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21833 test $ac_status = 0; }; then
21834 pkg_cv_REVENGE_CFLAGS=`$PKG_CONFIG --cflags "librevenge-0.0" 2>/dev/null`
21835 test "x$?" != "x0" && pkg_failed=yes
21836 else
21837 pkg_failed=yes
21838 fi
21839 else
21840 pkg_failed=untried
21841 fi
21842 if test -n "$REVENGE_LIBS"; then
21843 pkg_cv_REVENGE_LIBS="$REVENGE_LIBS"
21844 elif test -n "$PKG_CONFIG"; then
21845 if test -n "$PKG_CONFIG" && \
21846 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librevenge-0.0\""; } >&5
21847 ($PKG_CONFIG --exists --print-errors "librevenge-0.0") 2>&5
21848 ac_status=$?
21849 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21850 test $ac_status = 0; }; then
21851 pkg_cv_REVENGE_LIBS=`$PKG_CONFIG --libs "librevenge-0.0" 2>/dev/null`
21852 test "x$?" != "x0" && pkg_failed=yes
21853 else
21854 pkg_failed=yes
21855 fi
21856 else
21857 pkg_failed=untried
21858 fi
21859
21860
21861
21862 if test $pkg_failed = yes; then
21863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21864 printf "%s\n" "no" >&6; }
21865
21866 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21867 _pkg_short_errors_supported=yes
21868 else
21869 _pkg_short_errors_supported=no
21870 fi
21871 if test $_pkg_short_errors_supported = yes; then
21872 REVENGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librevenge-0.0" 2>&1`
21873 else
21874 REVENGE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librevenge-0.0" 2>&1`
21875 fi
21876 # Put the nasty error message in config.log where it belongs
21877 echo "$REVENGE_PKG_ERRORS" >&5
21878
21879 as_fn_error $? "Package requirements (librevenge-0.0) were not met:
21880
21881 $REVENGE_PKG_ERRORS
21882
21883 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21884 installed software in a non-standard prefix.
21885
21886 Alternatively, you may set the environment variables REVENGE_CFLAGS
21887 and REVENGE_LIBS to avoid the need to call pkg-config.
21888 See the pkg-config man page for more details." "$LINENO" 5
21889 elif test $pkg_failed = untried; then
21890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21891 printf "%s\n" "no" >&6; }
21892 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21893 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
21894 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
21895 is in your PATH or set the PKG_CONFIG environment variable to the full
21896 path to pkg-config.
21897
21898 Alternatively, you may set the environment variables REVENGE_CFLAGS
21899 and REVENGE_LIBS to avoid the need to call pkg-config.
21900 See the pkg-config man page for more details.
21901
21902 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21903 See 'config.log' for more details" "$LINENO" 5; }
21904 else
21905 REVENGE_CFLAGS=$pkg_cv_REVENGE_CFLAGS
21906 REVENGE_LIBS=$pkg_cv_REVENGE_LIBS
21907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21908 printf "%s\n" "yes" >&6; }
21909
21910 fi
21911
21912
21913
21914 # ============
21915 # Find libxml2
21916 # ============
21917
21918 pkg_failed=no
21919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0" >&5
21920 printf %s "checking for libxml-2.0... " >&6; }
21921
21922 if test -n "$LIBXML_CFLAGS"; then
21923 pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS"
21924 elif test -n "$PKG_CONFIG"; then
21925 if test -n "$PKG_CONFIG" && \
21926 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
21927 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
21928 ac_status=$?
21929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21930 test $ac_status = 0; }; then
21931 pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
21932 test "x$?" != "x0" && pkg_failed=yes
21933 else
21934 pkg_failed=yes
21935 fi
21936 else
21937 pkg_failed=untried
21938 fi
21939 if test -n "$LIBXML_LIBS"; then
21940 pkg_cv_LIBXML_LIBS="$LIBXML_LIBS"
21941 elif test -n "$PKG_CONFIG"; then
21942 if test -n "$PKG_CONFIG" && \
21943 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
21944 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
21945 ac_status=$?
21946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21947 test $ac_status = 0; }; then
21948 pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
21949 test "x$?" != "x0" && pkg_failed=yes
21950 else
21951 pkg_failed=yes
21952 fi
21953 else
21954 pkg_failed=untried
21955 fi
21956
21957
21958
21959 if test $pkg_failed = yes; then
21960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21961 printf "%s\n" "no" >&6; }
21962
21963 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21964 _pkg_short_errors_supported=yes
21965 else
21966 _pkg_short_errors_supported=no
21967 fi
21968 if test $_pkg_short_errors_supported = yes; then
21969 LIBXML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1`
21970 else
21971 LIBXML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1`
21972 fi
21973 # Put the nasty error message in config.log where it belongs
21974 echo "$LIBXML_PKG_ERRORS" >&5
21975
21976 as_fn_error $? "Package requirements (libxml-2.0) were not met:
21977
21978 $LIBXML_PKG_ERRORS
21979
21980 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21981 installed software in a non-standard prefix.
21982
21983 Alternatively, you may set the environment variables LIBXML_CFLAGS
21984 and LIBXML_LIBS to avoid the need to call pkg-config.
21985 See the pkg-config man page for more details." "$LINENO" 5
21986 elif test $pkg_failed = untried; then
21987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21988 printf "%s\n" "no" >&6; }
21989 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21990 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
21991 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
21992 is in your PATH or set the PKG_CONFIG environment variable to the full
21993 path to pkg-config.
21994
21995 Alternatively, you may set the environment variables LIBXML_CFLAGS
21996 and LIBXML_LIBS to avoid the need to call pkg-config.
21997 See the pkg-config man page for more details.
21998
21999 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22000 See 'config.log' for more details" "$LINENO" 5; }
22001 else
22002 LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS
22003 LIBXML_LIBS=$pkg_cv_LIBXML_LIBS
22004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22005 printf "%s\n" "yes" >&6; }
22006
22007 fi
22008
22009
22010
22011 # =========
22012 # Find zlib
22013 # =========
22014
22015 pkg_failed=no
22016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
22017 printf %s "checking for zlib... " >&6; }
22018
22019 if test -n "$ZLIB_CFLAGS"; then
22020 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
22021 elif test -n "$PKG_CONFIG"; then
22022 if test -n "$PKG_CONFIG" && \
22023 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
22024 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
22025 ac_status=$?
22026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22027 test $ac_status = 0; }; then
22028 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
22029 test "x$?" != "x0" && pkg_failed=yes
22030 else
22031 pkg_failed=yes
22032 fi
22033 else
22034 pkg_failed=untried
22035 fi
22036 if test -n "$ZLIB_LIBS"; then
22037 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
22038 elif test -n "$PKG_CONFIG"; then
22039 if test -n "$PKG_CONFIG" && \
22040 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
22041 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
22042 ac_status=$?
22043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22044 test $ac_status = 0; }; then
22045 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
22046 test "x$?" != "x0" && pkg_failed=yes
22047 else
22048 pkg_failed=yes
22049 fi
22050 else
22051 pkg_failed=untried
22052 fi
22053
22054
22055
22056 if test $pkg_failed = yes; then
22057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22058 printf "%s\n" "no" >&6; }
22059
22060 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22061 _pkg_short_errors_supported=yes
22062 else
22063 _pkg_short_errors_supported=no
22064 fi
22065 if test $_pkg_short_errors_supported = yes; then
22066 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
22067 else
22068 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
22069 fi
22070 # Put the nasty error message in config.log where it belongs
22071 echo "$ZLIB_PKG_ERRORS" >&5
22072
22073 as_fn_error $? "Package requirements (zlib) were not met:
22074
22075 $ZLIB_PKG_ERRORS
22076
22077 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22078 installed software in a non-standard prefix.
22079
22080 Alternatively, you may set the environment variables ZLIB_CFLAGS
22081 and ZLIB_LIBS to avoid the need to call pkg-config.
22082 See the pkg-config man page for more details." "$LINENO" 5
22083 elif test $pkg_failed = untried; then
22084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22085 printf "%s\n" "no" >&6; }
22086 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22087 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22088 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
22089 is in your PATH or set the PKG_CONFIG environment variable to the full
22090 path to pkg-config.
22091
22092 Alternatively, you may set the environment variables ZLIB_CFLAGS
22093 and ZLIB_LIBS to avoid the need to call pkg-config.
22094 See the pkg-config man page for more details.
22095
22096 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22097 See 'config.log' for more details" "$LINENO" 5; }
22098 else
22099 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
22100 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
22101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22102 printf "%s\n" "yes" >&6; }
22103
22104 fi
22105
22106
22107
22108 # ==================
22109 # Find boost headers
22110 # ==================
22111 for ac_header in boost/algorithm/string.hpp boost/optional.hpp boost/spirit/include/qi.hpp
22112 do :
22113 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
22114 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
22115
22116 "
22117 if eval test \"x\$"$as_ac_Header"\" = x"yes"
22118 then :
22119 cat >>confdefs.h <<_ACEOF
22120 #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
22121 _ACEOF
22122
22123 else case e in #(
22124 e) as_fn_error $? "Required boost headers not found." "$LINENO" 5 ;;
22125 esac
22126 fi
22127
22128 done
22129
22130 # =====
22131 # Tools
22132 # =====
22133 # Check whether --enable-tools was given.
22134 if test ${enable_tools+y}
22135 then :
22136 enableval=$enable_tools; enable_tools="$enableval"
22137 else case e in #(
22138 e) enable_tools=yes
22139 ;;
22140 esac
22141 fi
22142
22143 if test "x$enable_tools" = "xyes"; then
22144 BUILD_TOOLS_TRUE=
22145 BUILD_TOOLS_FALSE='#'
22146 else
22147 BUILD_TOOLS_TRUE='#'
22148 BUILD_TOOLS_FALSE=
22149 fi
22150
22151
22152 # =======
22153 # Fuzzers
22154 # =======
22155 # Check whether --enable-fuzzers was given.
22156 if test ${enable_fuzzers+y}
22157 then :
22158 enableval=$enable_fuzzers; enable_fuzzers="$enableval"
22159 else case e in #(
22160 e) enable_fuzzers=no
22161 ;;
22162 esac
22163 fi
22164
22165 if test "x$enable_fuzzers" = "xyes"; then
22166 BUILD_FUZZERS_TRUE=
22167 BUILD_FUZZERS_FALSE='#'
22168 else
22169 BUILD_FUZZERS_TRUE='#'
22170 BUILD_FUZZERS_FALSE=
22171 fi
22172
22173
22174 if test "x$enable_tools" = "xyes" -o "x$enable_fuzzers" = "xyes"
22175 then :
22176
22177
22178 pkg_failed=no
22179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for librevenge-generators-0.0" >&5
22180 printf %s "checking for librevenge-generators-0.0... " >&6; }
22181
22182 if test -n "$REVENGE_GENERATORS_CFLAGS"; then
22183 pkg_cv_REVENGE_GENERATORS_CFLAGS="$REVENGE_GENERATORS_CFLAGS"
22184 elif test -n "$PKG_CONFIG"; then
22185 if test -n "$PKG_CONFIG" && \
22186 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librevenge-generators-0.0\""; } >&5
22187 ($PKG_CONFIG --exists --print-errors "librevenge-generators-0.0") 2>&5
22188 ac_status=$?
22189 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22190 test $ac_status = 0; }; then
22191 pkg_cv_REVENGE_GENERATORS_CFLAGS=`$PKG_CONFIG --cflags "librevenge-generators-0.0" 2>/dev/null`
22192 test "x$?" != "x0" && pkg_failed=yes
22193 else
22194 pkg_failed=yes
22195 fi
22196 else
22197 pkg_failed=untried
22198 fi
22199 if test -n "$REVENGE_GENERATORS_LIBS"; then
22200 pkg_cv_REVENGE_GENERATORS_LIBS="$REVENGE_GENERATORS_LIBS"
22201 elif test -n "$PKG_CONFIG"; then
22202 if test -n "$PKG_CONFIG" && \
22203 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librevenge-generators-0.0\""; } >&5
22204 ($PKG_CONFIG --exists --print-errors "librevenge-generators-0.0") 2>&5
22205 ac_status=$?
22206 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22207 test $ac_status = 0; }; then
22208 pkg_cv_REVENGE_GENERATORS_LIBS=`$PKG_CONFIG --libs "librevenge-generators-0.0" 2>/dev/null`
22209 test "x$?" != "x0" && pkg_failed=yes
22210 else
22211 pkg_failed=yes
22212 fi
22213 else
22214 pkg_failed=untried
22215 fi
22216
22217
22218
22219 if test $pkg_failed = yes; then
22220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22221 printf "%s\n" "no" >&6; }
22222
22223 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22224 _pkg_short_errors_supported=yes
22225 else
22226 _pkg_short_errors_supported=no
22227 fi
22228 if test $_pkg_short_errors_supported = yes; then
22229 REVENGE_GENERATORS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librevenge-generators-0.0" 2>&1`
22230 else
22231 REVENGE_GENERATORS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librevenge-generators-0.0" 2>&1`
22232 fi
22233 # Put the nasty error message in config.log where it belongs
22234 echo "$REVENGE_GENERATORS_PKG_ERRORS" >&5
22235
22236 as_fn_error $? "Package requirements (librevenge-generators-0.0) were not met:
22237
22238 $REVENGE_GENERATORS_PKG_ERRORS
22239
22240 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22241 installed software in a non-standard prefix.
22242
22243 Alternatively, you may set the environment variables REVENGE_GENERATORS_CFLAGS
22244 and REVENGE_GENERATORS_LIBS to avoid the need to call pkg-config.
22245 See the pkg-config man page for more details." "$LINENO" 5
22246 elif test $pkg_failed = untried; then
22247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22248 printf "%s\n" "no" >&6; }
22249 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22250 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22251 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
22252 is in your PATH or set the PKG_CONFIG environment variable to the full
22253 path to pkg-config.
22254
22255 Alternatively, you may set the environment variables REVENGE_GENERATORS_CFLAGS
22256 and REVENGE_GENERATORS_LIBS to avoid the need to call pkg-config.
22257 See the pkg-config man page for more details.
22258
22259 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22260 See 'config.log' for more details" "$LINENO" 5; }
22261 else
22262 REVENGE_GENERATORS_CFLAGS=$pkg_cv_REVENGE_GENERATORS_CFLAGS
22263 REVENGE_GENERATORS_LIBS=$pkg_cv_REVENGE_GENERATORS_LIBS
22264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22265 printf "%s\n" "yes" >&6; }
22266
22267 fi
22268
22269 pkg_failed=no
22270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for librevenge-stream-0.0" >&5
22271 printf %s "checking for librevenge-stream-0.0... " >&6; }
22272
22273 if test -n "$REVENGE_STREAM_CFLAGS"; then
22274 pkg_cv_REVENGE_STREAM_CFLAGS="$REVENGE_STREAM_CFLAGS"
22275 elif test -n "$PKG_CONFIG"; then
22276 if test -n "$PKG_CONFIG" && \
22277 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librevenge-stream-0.0\""; } >&5
22278 ($PKG_CONFIG --exists --print-errors "librevenge-stream-0.0") 2>&5
22279 ac_status=$?
22280 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22281 test $ac_status = 0; }; then
22282 pkg_cv_REVENGE_STREAM_CFLAGS=`$PKG_CONFIG --cflags "librevenge-stream-0.0" 2>/dev/null`
22283 test "x$?" != "x0" && pkg_failed=yes
22284 else
22285 pkg_failed=yes
22286 fi
22287 else
22288 pkg_failed=untried
22289 fi
22290 if test -n "$REVENGE_STREAM_LIBS"; then
22291 pkg_cv_REVENGE_STREAM_LIBS="$REVENGE_STREAM_LIBS"
22292 elif test -n "$PKG_CONFIG"; then
22293 if test -n "$PKG_CONFIG" && \
22294 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librevenge-stream-0.0\""; } >&5
22295 ($PKG_CONFIG --exists --print-errors "librevenge-stream-0.0") 2>&5
22296 ac_status=$?
22297 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22298 test $ac_status = 0; }; then
22299 pkg_cv_REVENGE_STREAM_LIBS=`$PKG_CONFIG --libs "librevenge-stream-0.0" 2>/dev/null`
22300 test "x$?" != "x0" && pkg_failed=yes
22301 else
22302 pkg_failed=yes
22303 fi
22304 else
22305 pkg_failed=untried
22306 fi
22307
22308
22309
22310 if test $pkg_failed = yes; then
22311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22312 printf "%s\n" "no" >&6; }
22313
22314 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22315 _pkg_short_errors_supported=yes
22316 else
22317 _pkg_short_errors_supported=no
22318 fi
22319 if test $_pkg_short_errors_supported = yes; then
22320 REVENGE_STREAM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librevenge-stream-0.0" 2>&1`
22321 else
22322 REVENGE_STREAM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librevenge-stream-0.0" 2>&1`
22323 fi
22324 # Put the nasty error message in config.log where it belongs
22325 echo "$REVENGE_STREAM_PKG_ERRORS" >&5
22326
22327 as_fn_error $? "Package requirements (librevenge-stream-0.0) were not met:
22328
22329 $REVENGE_STREAM_PKG_ERRORS
22330
22331 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22332 installed software in a non-standard prefix.
22333
22334 Alternatively, you may set the environment variables REVENGE_STREAM_CFLAGS
22335 and REVENGE_STREAM_LIBS to avoid the need to call pkg-config.
22336 See the pkg-config man page for more details." "$LINENO" 5
22337 elif test $pkg_failed = untried; then
22338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22339 printf "%s\n" "no" >&6; }
22340 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22341 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22342 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
22343 is in your PATH or set the PKG_CONFIG environment variable to the full
22344 path to pkg-config.
22345
22346 Alternatively, you may set the environment variables REVENGE_STREAM_CFLAGS
22347 and REVENGE_STREAM_LIBS to avoid the need to call pkg-config.
22348 See the pkg-config man page for more details.
22349
22350 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22351 See 'config.log' for more details" "$LINENO" 5; }
22352 else
22353 REVENGE_STREAM_CFLAGS=$pkg_cv_REVENGE_STREAM_CFLAGS
22354 REVENGE_STREAM_LIBS=$pkg_cv_REVENGE_STREAM_LIBS
22355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22356 printf "%s\n" "yes" >&6; }
22357
22358 fi
22359
22360 fi
22361
22362
22363
22364
22365
22366 # =====================
22367 # Prepare all .in files
22368 # =====================
22369 ac_config_files="$ac_config_files Makefile src/Makefile src/conv/Makefile src/conv/html/Makefile src/conv/html/abw2html.rc src/conv/raw/Makefile src/conv/raw/abw2raw.rc src/conv/text/Makefile src/conv/text/abw2text.rc src/fuzz/Makefile src/lib/Makefile src/lib/libabw.rc inc/Makefile inc/libabw/Makefile docs/Makefile docs/doxygen/Makefile build/Makefile build/win32/Makefile libabw-$ABW_MAJOR_VERSION.$ABW_MINOR_VERSION.pc:libabw.pc.in"
22370
22371 cat >confcache <<\_ACEOF
22372 # This file is a shell script that caches the results of configure
22373 # tests run on this system so they can be shared between configure
22374 # scripts and configure runs, see configure's option --config-cache.
22375 # It is not useful on other systems. If it contains results you don't
22376 # want to keep, you may remove or edit it.
22377 #
22378 # config.status only pays attention to the cache file if you give it
22379 # the --recheck option to rerun configure.
22380 #
22381 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
22382 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
22383 # following values.
22384
22385 _ACEOF
22386
22387 # The following way of writing the cache mishandles newlines in values,
22388 # but we know of no workaround that is simple, portable, and efficient.
22389 # So, we kill variables containing newlines.
22390 # Ultrix sh set writes to stderr and can't be redirected directly,
22391 # and sets the high bit in the cache file unless we assign to the vars.
22392 (
22393 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22394 eval ac_val=\$$ac_var
22395 case $ac_val in #(
22396 *${as_nl}*)
22397 case $ac_var in #(
22398 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22399 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22400 esac
22401 case $ac_var in #(
22402 _ | IFS | as_nl) ;; #(
22403 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22404 *) { eval $ac_var=; unset $ac_var;} ;;
22405 esac ;;
22406 esac
22407 done
22408
22409 (set) 2>&1 |
22410 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22411 *${as_nl}ac_space=\ *)
22412 # 'set' does not quote correctly, so add quotes: double-quote
22413 # substitution turns \\\\ into \\, and sed turns \\ into \.
22414 sed -n \
22415 "s/'/'\\\\''/g;
22416 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22417 ;; #(
22418 *)
22419 # 'set' quotes correctly as required by POSIX, so do not add quotes.
22420 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22421 ;;
22422 esac |
22423 sort
22424 ) |
22425 sed '
22426 /^ac_cv_env_/b end
22427 t clear
22428 :clear
22429 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
22430 t end
22431 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22432 :end' >>confcache
22433 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22434 if test -w "$cache_file"; then
22435 if test "x$cache_file" != "x/dev/null"; then
22436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22437 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
22438 if test ! -f "$cache_file" || test -h "$cache_file"; then
22439 cat confcache >"$cache_file"
22440 else
22441 case $cache_file in #(
22442 */* | ?:*)
22443 mv -f confcache "$cache_file"$$ &&
22444 mv -f "$cache_file"$$ "$cache_file" ;; #(
22445 *)
22446 mv -f confcache "$cache_file" ;;
22447 esac
22448 fi
22449 fi
22450 else
22451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22452 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
22453 fi
22454 fi
22455 rm -f confcache
22456
22457 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22458 # Let make expand exec_prefix.
22459 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22460
22461 DEFS=-DHAVE_CONFIG_H
22462
22463 ac_libobjs=
22464 ac_ltlibobjs=
22465 U=
22466 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22467 # 1. Remove the extension, and $U if already installed.
22468 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22469 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
22470 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22471 # will be set to the directory where LIBOBJS objects are built.
22472 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22473 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22474 done
22475 LIBOBJS=$ac_libobjs
22476
22477 LTLIBOBJS=$ac_ltlibobjs
22478
22479
22480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22481 printf %s "checking that generated files are newer than configure... " >&6; }
22482 if test -n "$am_sleep_pid"; then
22483 # Hide warnings about reused PIDs.
22484 wait $am_sleep_pid 2>/dev/null
22485 fi
22486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
22487 printf "%s\n" "done" >&6; }
22488 case $enable_silent_rules in # (((
22489 yes) AM_DEFAULT_VERBOSITY=0;;
22490 no) AM_DEFAULT_VERBOSITY=1;;
22491 esac
22492 if test $am_cv_make_support_nested_variables = yes; then
22493 AM_V='$(V)'
22494 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
22495 else
22496 AM_V=$AM_DEFAULT_VERBOSITY
22497 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
22498 fi
22499
22500 if test -n "$EXEEXT"; then
22501 am__EXEEXT_TRUE=
22502 am__EXEEXT_FALSE='#'
22503 else
22504 am__EXEEXT_TRUE='#'
22505 am__EXEEXT_FALSE=
22506 fi
22507
22508 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22509 as_fn_error $? "conditional \"AMDEP\" was never defined.
22510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22511 fi
22512 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22513 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22514 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22515 fi
22516 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22517 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22518 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22519 fi
22520 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22521 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
22522 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22523 fi
22524 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
22525 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
22526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22527 fi
22528 if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
22529 as_fn_error $? "conditional \"PLATFORM_WIN32\" was never defined.
22530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22531 fi
22532 if test -z "${PLATFORM_DARWIN_TRUE}" && test -z "${PLATFORM_DARWIN_FALSE}"; then
22533 as_fn_error $? "conditional \"PLATFORM_DARWIN\" was never defined.
22534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22535 fi
22536 if test -z "${WITH_LIBABW_DOCS_TRUE}" && test -z "${WITH_LIBABW_DOCS_FALSE}"; then
22537 as_fn_error $? "conditional \"WITH_LIBABW_DOCS\" was never defined.
22538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22539 fi
22540 if test -z "${BUILD_TOOLS_TRUE}" && test -z "${BUILD_TOOLS_FALSE}"; then
22541 as_fn_error $? "conditional \"BUILD_TOOLS\" was never defined.
22542 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22543 fi
22544 if test -z "${BUILD_FUZZERS_TRUE}" && test -z "${BUILD_FUZZERS_FALSE}"; then
22545 as_fn_error $? "conditional \"BUILD_FUZZERS\" was never defined.
22546 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22547 fi
22548
22549 : "${CONFIG_STATUS=./config.status}"
22550 ac_write_fail=0
22551 ac_clean_files_save=$ac_clean_files
22552 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22554 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
22555 as_write_fail=0
22556 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22557 #! $SHELL
22558 # Generated by $as_me.
22559 # Run this file to recreate the current configuration.
22560 # Compiler output produced by configure, useful for debugging
22561 # configure, is in config.log if it exists.
22562
22563 debug=false
22564 ac_cs_recheck=false
22565 ac_cs_silent=false
22566
22567 SHELL=\${CONFIG_SHELL-$SHELL}
22568 export SHELL
22569 _ASEOF
22570 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22571 ## -------------------- ##
22572 ## M4sh Initialization. ##
22573 ## -------------------- ##
22574
22575 # Be more Bourne compatible
22576 DUALCASE=1; export DUALCASE # for MKS sh
22577 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22578 then :
22579 emulate sh
22580 NULLCMD=:
22581 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22582 # is contrary to our usage. Disable this feature.
22583 alias -g '${1+"$@"}'='"$@"'
22584 setopt NO_GLOB_SUBST
22585 else case e in #(
22586 e) case `(set -o) 2>/dev/null` in #(
22587 *posix*) :
22588 set -o posix ;; #(
22589 *) :
22590 ;;
22591 esac ;;
22592 esac
22593 fi
22594
22595
22596
22597 # Reset variables that may have inherited troublesome values from
22598 # the environment.
22599
22600 # IFS needs to be set, to space, tab, and newline, in precisely that order.
22601 # (If _AS_PATH_WALK were called with IFS unset, it would have the
22602 # side effect of setting IFS to empty, thus disabling word splitting.)
22603 # Quoting is to prevent editors from complaining about space-tab.
22604 as_nl='
22605 '
22606 export as_nl
22607 IFS=" "" $as_nl"
22608
22609 PS1='$ '
22610 PS2='> '
22611 PS4='+ '
22612
22613 # Ensure predictable behavior from utilities with locale-dependent output.
22614 LC_ALL=C
22615 export LC_ALL
22616 LANGUAGE=C
22617 export LANGUAGE
22618
22619 # We cannot yet rely on "unset" to work, but we need these variables
22620 # to be unset--not just set to an empty or harmless value--now, to
22621 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
22622 # also avoids known problems related to "unset" and subshell syntax
22623 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
22624 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
22625 do eval test \${$as_var+y} \
22626 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22627 done
22628
22629 # Ensure that fds 0, 1, and 2 are open.
22630 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
22631 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
22632 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
22633
22634 # The user is always right.
22635 if ${PATH_SEPARATOR+false} :; then
22636 PATH_SEPARATOR=:
22637 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22638 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22639 PATH_SEPARATOR=';'
22640 }
22641 fi
22642
22643
22644 # Find who we are. Look in the path if we contain no directory separator.
22645 as_myself=
22646 case $0 in #((
22647 *[\\/]* ) as_myself=$0 ;;
22648 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22649 for as_dir in $PATH
22650 do
22651 IFS=$as_save_IFS
22652 case $as_dir in #(((
22653 '') as_dir=./ ;;
22654 */) ;;
22655 *) as_dir=$as_dir/ ;;
22656 esac
22657 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
22658 done
22659 IFS=$as_save_IFS
22660
22661 ;;
22662 esac
22663 # We did not find ourselves, most probably we were run as 'sh COMMAND'
22664 # in which case we are not to be found in the path.
22665 if test "x$as_myself" = x; then
22666 as_myself=$0
22667 fi
22668 if test ! -f "$as_myself"; then
22669 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22670 exit 1
22671 fi
22672
22673
22674
22675 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22676 # ----------------------------------------
22677 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22678 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22679 # script with STATUS, using 1 if that was 0.
22680 as_fn_error ()
22681 {
22682 as_status=$1; test $as_status -eq 0 && as_status=1
22683 if test "$4"; then
22684 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22685 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22686 fi
22687 printf "%s\n" "$as_me: error: $2" >&2
22688 as_fn_exit $as_status
22689 } # as_fn_error
22690
22691
22692 # as_fn_set_status STATUS
22693 # -----------------------
22694 # Set $? to STATUS, without forking.
22695 as_fn_set_status ()
22696 {
22697 return $1
22698 } # as_fn_set_status
22699
22700 # as_fn_exit STATUS
22701 # -----------------
22702 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22703 as_fn_exit ()
22704 {
22705 set +e
22706 as_fn_set_status $1
22707 exit $1
22708 } # as_fn_exit
22709
22710 # as_fn_unset VAR
22711 # ---------------
22712 # Portably unset VAR.
22713 as_fn_unset ()
22714 {
22715 { eval $1=; unset $1;}
22716 }
22717 as_unset=as_fn_unset
22718
22719 # as_fn_append VAR VALUE
22720 # ----------------------
22721 # Append the text in VALUE to the end of the definition contained in VAR. Take
22722 # advantage of any shell optimizations that allow amortized linear growth over
22723 # repeated appends, instead of the typical quadratic growth present in naive
22724 # implementations.
22725 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
22726 then :
22727 eval 'as_fn_append ()
22728 {
22729 eval $1+=\$2
22730 }'
22731 else case e in #(
22732 e) as_fn_append ()
22733 {
22734 eval $1=\$$1\$2
22735 } ;;
22736 esac
22737 fi # as_fn_append
22738
22739 # as_fn_arith ARG...
22740 # ------------------
22741 # Perform arithmetic evaluation on the ARGs, and store the result in the
22742 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22743 # must be portable across $(()) and expr.
22744 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
22745 then :
22746 eval 'as_fn_arith ()
22747 {
22748 as_val=$(( $* ))
22749 }'
22750 else case e in #(
22751 e) as_fn_arith ()
22752 {
22753 as_val=`expr "$@" || test $? -eq 1`
22754 } ;;
22755 esac
22756 fi # as_fn_arith
22757
22758
22759 if expr a : '\(a\)' >/dev/null 2>&1 &&
22760 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22761 as_expr=expr
22762 else
22763 as_expr=false
22764 fi
22765
22766 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22767 as_basename=basename
22768 else
22769 as_basename=false
22770 fi
22771
22772 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22773 as_dirname=dirname
22774 else
22775 as_dirname=false
22776 fi
22777
22778 as_me=`$as_basename -- "$0" ||
22779 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22780 X"$0" : 'X\(//\)$' \| \
22781 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22782 printf "%s\n" X/"$0" |
22783 sed '/^.*\/\([^/][^/]*\)\/*$/{
22784 s//\1/
22785 q
22786 }
22787 /^X\/\(\/\/\)$/{
22788 s//\1/
22789 q
22790 }
22791 /^X\/\(\/\).*/{
22792 s//\1/
22793 q
22794 }
22795 s/.*/./; q'`
22796
22797 # Avoid depending upon Character Ranges.
22798 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22799 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22800 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22801 as_cr_digits='0123456789'
22802 as_cr_alnum=$as_cr_Letters$as_cr_digits
22803
22804
22805 # Determine whether it's possible to make 'echo' print without a newline.
22806 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
22807 # for compatibility with existing Makefiles.
22808 ECHO_C= ECHO_N= ECHO_T=
22809 case `echo -n x` in #(((((
22810 -n*)
22811 case `echo 'xy\c'` in
22812 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22813 xy) ECHO_C='\c';;
22814 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22815 ECHO_T=' ';;
22816 esac;;
22817 *)
22818 ECHO_N='-n';;
22819 esac
22820
22821 # For backward compatibility with old third-party macros, we provide
22822 # the shell variables $as_echo and $as_echo_n. New code should use
22823 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
22824 as_echo='printf %s\n'
22825 as_echo_n='printf %s'
22826
22827 rm -f conf$$ conf$$.exe conf$$.file
22828 if test -d conf$$.dir; then
22829 rm -f conf$$.dir/conf$$.file
22830 else
22831 rm -f conf$$.dir
22832 mkdir conf$$.dir 2>/dev/null
22833 fi
22834 if (echo >conf$$.file) 2>/dev/null; then
22835 if ln -s conf$$.file conf$$ 2>/dev/null; then
22836 as_ln_s='ln -s'
22837 # ... but there are two gotchas:
22838 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
22839 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
22840 # In both cases, we have to default to 'cp -pR'.
22841 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22842 as_ln_s='cp -pR'
22843 elif ln conf$$.file conf$$ 2>/dev/null; then
22844 as_ln_s=ln
22845 else
22846 as_ln_s='cp -pR'
22847 fi
22848 else
22849 as_ln_s='cp -pR'
22850 fi
22851 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22852 rmdir conf$$.dir 2>/dev/null
22853
22854
22855 # as_fn_mkdir_p
22856 # -------------
22857 # Create "$as_dir" as a directory, including parents if necessary.
22858 as_fn_mkdir_p ()
22859 {
22860
22861 case $as_dir in #(
22862 -*) as_dir=./$as_dir;;
22863 esac
22864 test -d "$as_dir" || eval $as_mkdir_p || {
22865 as_dirs=
22866 while :; do
22867 case $as_dir in #(
22868 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22869 *) as_qdir=$as_dir;;
22870 esac
22871 as_dirs="'$as_qdir' $as_dirs"
22872 as_dir=`$as_dirname -- "$as_dir" ||
22873 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22874 X"$as_dir" : 'X\(//\)[^/]' \| \
22875 X"$as_dir" : 'X\(//\)$' \| \
22876 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22877 printf "%s\n" X"$as_dir" |
22878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22879 s//\1/
22880 q
22881 }
22882 /^X\(\/\/\)[^/].*/{
22883 s//\1/
22884 q
22885 }
22886 /^X\(\/\/\)$/{
22887 s//\1/
22888 q
22889 }
22890 /^X\(\/\).*/{
22891 s//\1/
22892 q
22893 }
22894 s/.*/./; q'`
22895 test -d "$as_dir" && break
22896 done
22897 test -z "$as_dirs" || eval "mkdir $as_dirs"
22898 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22899
22900
22901 } # as_fn_mkdir_p
22902 if mkdir -p . 2>/dev/null; then
22903 as_mkdir_p='mkdir -p "$as_dir"'
22904 else
22905 test -d ./-p && rmdir ./-p
22906 as_mkdir_p=false
22907 fi
22908
22909
22910 # as_fn_executable_p FILE
22911 # -----------------------
22912 # Test if FILE is an executable regular file.
22913 as_fn_executable_p ()
22914 {
22915 test -f "$1" && test -x "$1"
22916 } # as_fn_executable_p
22917 as_test_x='test -x'
22918 as_executable_p=as_fn_executable_p
22919
22920 # Sed expression to map a string onto a valid CPP name.
22921 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22922 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
22923
22924 # Sed expression to map a string onto a valid variable name.
22925 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22926 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
22927
22928
22929 exec 6>&1
22930 ## ----------------------------------- ##
22931 ## Main body of $CONFIG_STATUS script. ##
22932 ## ----------------------------------- ##
22933 _ASEOF
22934 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22935
22936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22937 # Save the log message, to keep $0 and so on meaningful, and to
22938 # report actual input values of CONFIG_FILES etc. instead of their
22939 # values after options handling.
22940 ac_log="
22941 This file was extended by libabw $as_me 0.1.4, which was
22942 generated by GNU Autoconf 2.72. Invocation command line was
22943
22944 CONFIG_FILES = $CONFIG_FILES
22945 CONFIG_HEADERS = $CONFIG_HEADERS
22946 CONFIG_LINKS = $CONFIG_LINKS
22947 CONFIG_COMMANDS = $CONFIG_COMMANDS
22948 $ $0 $@
22949
22950 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22951 "
22952
22953 _ACEOF
22954
22955 case $ac_config_files in *"
22956 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22957 esac
22958
22959 case $ac_config_headers in *"
22960 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22961 esac
22962
22963
22964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22965 # Files that config.status was made for.
22966 config_files="$ac_config_files"
22967 config_headers="$ac_config_headers"
22968 config_commands="$ac_config_commands"
22969
22970 _ACEOF
22971
22972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22973 ac_cs_usage="\
22974 '$as_me' instantiates files and other configuration actions
22975 from templates according to the current configuration. Unless the files
22976 and actions are specified as TAGs, all are instantiated by default.
22977
22978 Usage: $0 [OPTION]... [TAG]...
22979
22980 -h, --help print this help, then exit
22981 -V, --version print version number and configuration settings, then exit
22982 --config print configuration, then exit
22983 -q, --quiet, --silent
22984 do not print progress messages
22985 -d, --debug don't remove temporary files
22986 --recheck update $as_me by reconfiguring in the same conditions
22987 --file=FILE[:TEMPLATE]
22988 instantiate the configuration file FILE
22989 --header=FILE[:TEMPLATE]
22990 instantiate the configuration header FILE
22991
22992 Configuration files:
22993 $config_files
22994
22995 Configuration headers:
22996 $config_headers
22997
22998 Configuration commands:
22999 $config_commands
23000
23001 Report bugs to the package provider."
23002
23003 _ACEOF
23004 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
23005 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
23006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23007 ac_cs_config='$ac_cs_config_escaped'
23008 ac_cs_version="\\
23009 libabw config.status 0.1.4
23010 configured by $0, generated by GNU Autoconf 2.72,
23011 with options \\"\$ac_cs_config\\"
23012
23013 Copyright (C) 2023 Free Software Foundation, Inc.
23014 This config.status script is free software; the Free Software Foundation
23015 gives unlimited permission to copy, distribute and modify it."
23016
23017 ac_pwd='$ac_pwd'
23018 srcdir='$srcdir'
23019 INSTALL='$INSTALL'
23020 MKDIR_P='$MKDIR_P'
23021 AWK='$AWK'
23022 test -n "\$AWK" || AWK=awk
23023 _ACEOF
23024
23025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23026 # The default lists apply if the user does not specify any file.
23027 ac_need_defaults=:
23028 while test $# != 0
23029 do
23030 case $1 in
23031 --*=?*)
23032 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23033 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23034 ac_shift=:
23035 ;;
23036 --*=)
23037 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23038 ac_optarg=
23039 ac_shift=:
23040 ;;
23041 *)
23042 ac_option=$1
23043 ac_optarg=$2
23044 ac_shift=shift
23045 ;;
23046 esac
23047
23048 case $ac_option in
23049 # Handling of the options.
23050 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23051 ac_cs_recheck=: ;;
23052 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23053 printf "%s\n" "$ac_cs_version"; exit ;;
23054 --config | --confi | --conf | --con | --co | --c )
23055 printf "%s\n" "$ac_cs_config"; exit ;;
23056 --debug | --debu | --deb | --de | --d | -d )
23057 debug=: ;;
23058 --file | --fil | --fi | --f )
23059 $ac_shift
23060 case $ac_optarg in
23061 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23062 '') as_fn_error $? "missing file argument" ;;
23063 esac
23064 as_fn_append CONFIG_FILES " '$ac_optarg'"
23065 ac_need_defaults=false;;
23066 --header | --heade | --head | --hea )
23067 $ac_shift
23068 case $ac_optarg in
23069 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23070 esac
23071 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23072 ac_need_defaults=false;;
23073 --he | --h)
23074 # Conflict between --help and --header
23075 as_fn_error $? "ambiguous option: '$1'
23076 Try '$0 --help' for more information.";;
23077 --help | --hel | -h )
23078 printf "%s\n" "$ac_cs_usage"; exit ;;
23079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23080 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23081 ac_cs_silent=: ;;
23082
23083 # This is an error.
23084 -*) as_fn_error $? "unrecognized option: '$1'
23085 Try '$0 --help' for more information." ;;
23086
23087 *) as_fn_append ac_config_targets " $1"
23088 ac_need_defaults=false ;;
23089
23090 esac
23091 shift
23092 done
23093
23094 ac_configure_extra_args=
23095
23096 if $ac_cs_silent; then
23097 exec 6>/dev/null
23098 ac_configure_extra_args="$ac_configure_extra_args --silent"
23099 fi
23100
23101 _ACEOF
23102 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23103 if \$ac_cs_recheck; then
23104 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23105 shift
23106 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
23107 CONFIG_SHELL='$SHELL'
23108 export CONFIG_SHELL
23109 exec "\$@"
23110 fi
23111
23112 _ACEOF
23113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23114 exec 5>>config.log
23115 {
23116 echo
23117 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23118 ## Running $as_me. ##
23119 _ASBOX
23120 printf "%s\n" "$ac_log"
23121 } >&5
23122
23123 _ACEOF
23124 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23125 #
23126 # INIT-COMMANDS
23127 #
23128 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
23129
23130
23131 # The HP-UX ksh and POSIX shell print the target directory to stdout
23132 # if CDPATH is set.
23133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23134
23135 sed_quote_subst='$sed_quote_subst'
23136 double_quote_subst='$double_quote_subst'
23137 delay_variable_subst='$delay_variable_subst'
23138 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23139 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23140 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
23141 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
23142 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
23143 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
23144 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
23145 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
23146 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
23147 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
23148 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
23149 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
23150 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
23151 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
23152 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
23153 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
23154 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
23155 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
23156 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
23157 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
23158 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
23159 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
23160 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
23161 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
23162 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
23163 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
23164 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
23165 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
23166 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
23167 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
23168 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
23169 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
23170 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
23171 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
23172 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
23173 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
23174 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
23175 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
23176 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
23177 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
23178 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
23179 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
23180 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
23181 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
23182 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
23183 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
23184 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
23185 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
23186 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
23187 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23188 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23189 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
23190 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
23191 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
23192 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
23193 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
23194 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
23195 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
23196 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
23197 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
23198 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
23199 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"`'
23200 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
23201 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
23202 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
23203 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
23204 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
23205 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
23206 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
23207 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
23208 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
23209 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
23210 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
23211 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
23212 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
23213 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
23214 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
23215 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
23216 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
23217 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
23218 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
23219 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
23220 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23221 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
23222 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
23223 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
23224 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
23225 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
23226 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
23227 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23228 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
23229 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23230 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
23231 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23232 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
23233 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
23234 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
23235 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
23236 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
23237 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
23238 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
23239 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
23240 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
23241 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
23242 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
23243 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
23244 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
23245 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
23246 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
23247 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
23248 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
23249 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
23250 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
23251 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
23252 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
23253 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
23254 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
23255 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
23256 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
23257 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
23258 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
23259 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
23260 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
23261 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
23262 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23263 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23264 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
23265 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
23266 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
23267 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
23268 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
23269 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
23270 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
23271 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
23272 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
23273 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
23274 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
23275 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
23276 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
23277 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
23278 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
23279 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
23280 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
23281 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
23282 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
23283 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
23284 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23285 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23286 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
23287 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
23288 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
23289 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
23290 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
23291 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
23292 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
23293 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
23294 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
23295 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23296 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23297 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
23298 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23299 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23300 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23301 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23302 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23303 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23304 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
23305 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23306 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23307 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23308 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
23309 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
23310 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
23311 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
23312 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
23313 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
23314 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
23315 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
23316 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
23317 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23318 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23319 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23320 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23321 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23322 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
23323 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
23324 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
23325 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23326 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23327 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
23328 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
23329 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
23330
23331 LTCC='$LTCC'
23332 LTCFLAGS='$LTCFLAGS'
23333 compiler='$compiler_DEFAULT'
23334
23335 # A function that is used when there is no print builtin or printf.
23336 func_fallback_echo ()
23337 {
23338 eval 'cat <<_LTECHO_EOF
23339 \$1
23340 _LTECHO_EOF'
23341 }
23342
23343 # Quote evaled strings.
23344 for var in AS \
23345 DLLTOOL \
23346 OBJDUMP \
23347 SHELL \
23348 ECHO \
23349 PATH_SEPARATOR \
23350 SED \
23351 GREP \
23352 EGREP \
23353 FGREP \
23354 LD \
23355 NM \
23356 LN_S \
23357 lt_SP2NL \
23358 lt_NL2SP \
23359 reload_flag \
23360 FILECMD \
23361 deplibs_check_method \
23362 file_magic_cmd \
23363 file_magic_glob \
23364 want_nocaseglob \
23365 sharedlib_from_linklib_cmd \
23366 AR \
23367 archiver_list_spec \
23368 STRIP \
23369 RANLIB \
23370 CC \
23371 CFLAGS \
23372 compiler \
23373 lt_cv_sys_global_symbol_pipe \
23374 lt_cv_sys_global_symbol_to_cdecl \
23375 lt_cv_sys_global_symbol_to_import \
23376 lt_cv_sys_global_symbol_to_c_name_address \
23377 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23378 lt_cv_nm_interface \
23379 nm_file_list_spec \
23380 lt_cv_truncate_bin \
23381 lt_prog_compiler_no_builtin_flag \
23382 lt_prog_compiler_pic \
23383 lt_prog_compiler_wl \
23384 lt_prog_compiler_static \
23385 lt_cv_prog_compiler_c_o \
23386 need_locks \
23387 MANIFEST_TOOL \
23388 DSYMUTIL \
23389 NMEDIT \
23390 LIPO \
23391 OTOOL \
23392 OTOOL64 \
23393 shrext_cmds \
23394 export_dynamic_flag_spec \
23395 whole_archive_flag_spec \
23396 compiler_needs_object \
23397 with_gnu_ld \
23398 allow_undefined_flag \
23399 no_undefined_flag \
23400 hardcode_libdir_flag_spec \
23401 hardcode_libdir_separator \
23402 exclude_expsyms \
23403 include_expsyms \
23404 file_list_spec \
23405 variables_saved_for_relink \
23406 libname_spec \
23407 library_names_spec \
23408 soname_spec \
23409 install_override_mode \
23410 finish_eval \
23411 old_striplib \
23412 striplib \
23413 compiler_lib_search_dirs \
23414 predep_objects \
23415 postdep_objects \
23416 predeps \
23417 postdeps \
23418 compiler_lib_search_path \
23419 LD_CXX \
23420 reload_flag_CXX \
23421 compiler_CXX \
23422 lt_prog_compiler_no_builtin_flag_CXX \
23423 lt_prog_compiler_pic_CXX \
23424 lt_prog_compiler_wl_CXX \
23425 lt_prog_compiler_static_CXX \
23426 lt_cv_prog_compiler_c_o_CXX \
23427 export_dynamic_flag_spec_CXX \
23428 whole_archive_flag_spec_CXX \
23429 compiler_needs_object_CXX \
23430 with_gnu_ld_CXX \
23431 allow_undefined_flag_CXX \
23432 no_undefined_flag_CXX \
23433 hardcode_libdir_flag_spec_CXX \
23434 hardcode_libdir_separator_CXX \
23435 exclude_expsyms_CXX \
23436 include_expsyms_CXX \
23437 file_list_spec_CXX \
23438 compiler_lib_search_dirs_CXX \
23439 predep_objects_CXX \
23440 postdep_objects_CXX \
23441 predeps_CXX \
23442 postdeps_CXX \
23443 compiler_lib_search_path_CXX; do
23444 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23445 *[\\\\\\\`\\"\\\$]*)
23446 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23447 ;;
23448 *)
23449 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23450 ;;
23451 esac
23452 done
23453
23454 # Double-quote double-evaled strings.
23455 for var in reload_cmds \
23456 old_postinstall_cmds \
23457 old_postuninstall_cmds \
23458 old_archive_cmds \
23459 extract_expsyms_cmds \
23460 old_archive_from_new_cmds \
23461 old_archive_from_expsyms_cmds \
23462 archive_cmds \
23463 archive_expsym_cmds \
23464 module_cmds \
23465 module_expsym_cmds \
23466 export_symbols_cmds \
23467 prelink_cmds \
23468 postlink_cmds \
23469 postinstall_cmds \
23470 postuninstall_cmds \
23471 finish_cmds \
23472 sys_lib_search_path_spec \
23473 configure_time_dlsearch_path \
23474 configure_time_lt_sys_library_path \
23475 reload_cmds_CXX \
23476 old_archive_cmds_CXX \
23477 old_archive_from_new_cmds_CXX \
23478 old_archive_from_expsyms_cmds_CXX \
23479 archive_cmds_CXX \
23480 archive_expsym_cmds_CXX \
23481 module_cmds_CXX \
23482 module_expsym_cmds_CXX \
23483 export_symbols_cmds_CXX \
23484 prelink_cmds_CXX \
23485 postlink_cmds_CXX; do
23486 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23487 *[\\\\\\\`\\"\\\$]*)
23488 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23489 ;;
23490 *)
23491 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23492 ;;
23493 esac
23494 done
23495
23496 ac_aux_dir='$ac_aux_dir'
23497
23498 # See if we are running on zsh, and set the options that allow our
23499 # commands through without removal of \ escapes INIT.
23500 if test -n "\${ZSH_VERSION+set}"; then
23501 setopt NO_GLOB_SUBST
23502 fi
23503
23504
23505 PACKAGE='$PACKAGE'
23506 VERSION='$VERSION'
23507 RM='$RM'
23508 ofile='$ofile'
23509
23510
23511
23512
23513
23514
23515 _ACEOF
23516
23517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23518
23519 # Handling of arguments.
23520 for ac_config_target in $ac_config_targets
23521 do
23522 case $ac_config_target in
23523 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23524 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23525 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23526 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23527 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23528 "src/conv/Makefile") CONFIG_FILES="$CONFIG_FILES src/conv/Makefile" ;;
23529 "src/conv/html/Makefile") CONFIG_FILES="$CONFIG_FILES src/conv/html/Makefile" ;;
23530 "src/conv/html/abw2html.rc") CONFIG_FILES="$CONFIG_FILES src/conv/html/abw2html.rc" ;;
23531 "src/conv/raw/Makefile") CONFIG_FILES="$CONFIG_FILES src/conv/raw/Makefile" ;;
23532 "src/conv/raw/abw2raw.rc") CONFIG_FILES="$CONFIG_FILES src/conv/raw/abw2raw.rc" ;;
23533 "src/conv/text/Makefile") CONFIG_FILES="$CONFIG_FILES src/conv/text/Makefile" ;;
23534 "src/conv/text/abw2text.rc") CONFIG_FILES="$CONFIG_FILES src/conv/text/abw2text.rc" ;;
23535 "src/fuzz/Makefile") CONFIG_FILES="$CONFIG_FILES src/fuzz/Makefile" ;;
23536 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
23537 "src/lib/libabw.rc") CONFIG_FILES="$CONFIG_FILES src/lib/libabw.rc" ;;
23538 "inc/Makefile") CONFIG_FILES="$CONFIG_FILES inc/Makefile" ;;
23539 "inc/libabw/Makefile") CONFIG_FILES="$CONFIG_FILES inc/libabw/Makefile" ;;
23540 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
23541 "docs/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES docs/doxygen/Makefile" ;;
23542 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
23543 "build/win32/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/Makefile" ;;
23544 "libabw-$ABW_MAJOR_VERSION.$ABW_MINOR_VERSION.pc") CONFIG_FILES="$CONFIG_FILES libabw-$ABW_MAJOR_VERSION.$ABW_MINOR_VERSION.pc:libabw.pc.in" ;;
23545
23546 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
23547 esac
23548 done
23549
23550
23551 # If the user did not use the arguments to specify the items to instantiate,
23552 # then the envvar interface is used. Set only those that are not.
23553 # We use the long form for the default assignment because of an extremely
23554 # bizarre bug on SunOS 4.1.3.
23555 if $ac_need_defaults; then
23556 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
23557 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
23558 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
23559 fi
23560
23561 # Have a temporary directory for convenience. Make it in the build tree
23562 # simply because there is no reason against having it here, and in addition,
23563 # creating and moving files from /tmp can sometimes cause problems.
23564 # Hook for its removal unless debugging.
23565 # Note that there is a small window in which the directory will not be cleaned:
23566 # after its creation but before its name has been assigned to '$tmp'.
23567 $debug ||
23568 {
23569 tmp= ac_tmp=
23570 trap 'exit_status=$?
23571 : "${ac_tmp:=$tmp}"
23572 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23573 ' 0
23574 trap 'as_fn_exit 1' 1 2 13 15
23575 }
23576 # Create a (secure) tmp directory for tmp files.
23577
23578 {
23579 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23580 test -d "$tmp"
23581 } ||
23582 {
23583 tmp=./conf$$-$RANDOM
23584 (umask 077 && mkdir "$tmp")
23585 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23586 ac_tmp=$tmp
23587
23588 # Set up the scripts for CONFIG_FILES section.
23589 # No need to generate them if there are no CONFIG_FILES.
23590 # This happens for instance with './config.status config.h'.
23591 if test -n "$CONFIG_FILES"; then
23592
23593
23594 ac_cr=`echo X | tr X '\015'`
23595 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23596 # But we know of no other shell where ac_cr would be empty at this
23597 # point, so we can use a bashism as a fallback.
23598 if test "x$ac_cr" = x; then
23599 eval ac_cr=\$\'\\r\'
23600 fi
23601 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23602 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23603 ac_cs_awk_cr='\\r'
23604 else
23605 ac_cs_awk_cr=$ac_cr
23606 fi
23607
23608 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23609 _ACEOF
23610
23611
23612 {
23613 echo "cat >conf$$subs.awk <<_ACEOF" &&
23614 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23615 echo "_ACEOF"
23616 } >conf$$subs.sh ||
23617 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23618 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23619 ac_delim='%!_!# '
23620 for ac_last_try in false false false false false :; do
23621 . ./conf$$subs.sh ||
23622 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23623
23624 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23625 if test $ac_delim_n = $ac_delim_num; then
23626 break
23627 elif $ac_last_try; then
23628 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23629 else
23630 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23631 fi
23632 done
23633 rm -f conf$$subs.sh
23634
23635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23636 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23637 _ACEOF
23638 sed -n '
23639 h
23640 s/^/S["/; s/!.*/"]=/
23641 p
23642 g
23643 s/^[^!]*!//
23644 :repl
23645 t repl
23646 s/'"$ac_delim"'$//
23647 t delim
23648 :nl
23649 h
23650 s/\(.\{148\}\)..*/\1/
23651 t more1
23652 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23653 p
23654 n
23655 b repl
23656 :more1
23657 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23658 p
23659 g
23660 s/.\{148\}//
23661 t nl
23662 :delim
23663 h
23664 s/\(.\{148\}\)..*/\1/
23665 t more2
23666 s/["\\]/\\&/g; s/^/"/; s/$/"/
23667 p
23668 b
23669 :more2
23670 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23671 p
23672 g
23673 s/.\{148\}//
23674 t delim
23675 ' <conf$$subs.awk | sed '
23676 /^[^""]/{
23677 N
23678 s/\n//
23679 }
23680 ' >>$CONFIG_STATUS || ac_write_fail=1
23681 rm -f conf$$subs.awk
23682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23683 _ACAWK
23684 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23685 for (key in S) S_is_set[key] = 1
23686 FS = ""
23687
23688 }
23689 {
23690 line = $ 0
23691 nfields = split(line, field, "@")
23692 substed = 0
23693 len = length(field[1])
23694 for (i = 2; i < nfields; i++) {
23695 key = field[i]
23696 keylen = length(key)
23697 if (S_is_set[key]) {
23698 value = S[key]
23699 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23700 len += length(value) + length(field[++i])
23701 substed = 1
23702 } else
23703 len += 1 + keylen
23704 }
23705
23706 print line
23707 }
23708
23709 _ACAWK
23710 _ACEOF
23711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23712 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23713 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23714 else
23715 cat
23716 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23717 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23718 _ACEOF
23719
23720 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23721 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23722 # trailing colons and then remove the whole line if VPATH becomes empty
23723 # (actually we leave an empty line to preserve line numbers).
23724 if test "x$srcdir" = x.; then
23725 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23726 h
23727 s///
23728 s/^/:/
23729 s/[ ]*$/:/
23730 s/:\$(srcdir):/:/g
23731 s/:\${srcdir}:/:/g
23732 s/:@srcdir@:/:/g
23733 s/^:*//
23734 s/:*$//
23735 x
23736 s/\(=[ ]*\).*/\1/
23737 G
23738 s/\n//
23739 s/^[^=]*=[ ]*$//
23740 }'
23741 fi
23742
23743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23744 fi # test -n "$CONFIG_FILES"
23745
23746 # Set up the scripts for CONFIG_HEADERS section.
23747 # No need to generate them if there are no CONFIG_HEADERS.
23748 # This happens for instance with './config.status Makefile'.
23749 if test -n "$CONFIG_HEADERS"; then
23750 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23751 BEGIN {
23752 _ACEOF
23753
23754 # Transform confdefs.h into an awk script 'defines.awk', embedded as
23755 # here-document in config.status, that substitutes the proper values into
23756 # config.h.in to produce config.h.
23757
23758 # Create a delimiter string that does not exist in confdefs.h, to ease
23759 # handling of long lines.
23760 ac_delim='%!_!# '
23761 for ac_last_try in false false :; do
23762 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23763 if test -z "$ac_tt"; then
23764 break
23765 elif $ac_last_try; then
23766 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23767 else
23768 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23769 fi
23770 done
23771
23772 # For the awk script, D is an array of macro values keyed by name,
23773 # likewise P contains macro parameters if any. Preserve backslash
23774 # newline sequences.
23775
23776 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23777 sed -n '
23778 s/.\{148\}/&'"$ac_delim"'/g
23779 t rset
23780 :rset
23781 s/^[ ]*#[ ]*define[ ][ ]*/ /
23782 t def
23783 d
23784 :def
23785 s/\\$//
23786 t bsnl
23787 s/["\\]/\\&/g
23788 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23789 D["\1"]=" \3"/p
23790 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23791 d
23792 :bsnl
23793 s/["\\]/\\&/g
23794 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23795 D["\1"]=" \3\\\\\\n"\\/p
23796 t cont
23797 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23798 t cont
23799 d
23800 :cont
23801 n
23802 s/.\{148\}/&'"$ac_delim"'/g
23803 t clear
23804 :clear
23805 s/\\$//
23806 t bsnlc
23807 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23808 d
23809 :bsnlc
23810 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23811 b cont
23812 ' <confdefs.h | sed '
23813 s/'"$ac_delim"'/"\\\
23814 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23815
23816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23817 for (key in D) D_is_set[key] = 1
23818 FS = ""
23819 }
23820 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23821 line = \$ 0
23822 split(line, arg, " ")
23823 if (arg[1] == "#") {
23824 defundef = arg[2]
23825 mac1 = arg[3]
23826 } else {
23827 defundef = substr(arg[1], 2)
23828 mac1 = arg[2]
23829 }
23830 split(mac1, mac2, "(") #)
23831 macro = mac2[1]
23832 prefix = substr(line, 1, index(line, defundef) - 1)
23833 if (D_is_set[macro]) {
23834 # Preserve the white space surrounding the "#".
23835 print prefix "define", macro P[macro] D[macro]
23836 next
23837 } else {
23838 # Replace #undef with comments. This is necessary, for example,
23839 # in the case of _POSIX_SOURCE, which is predefined and required
23840 # on some systems where configure will not decide to define it.
23841 if (defundef == "undef") {
23842 print "/*", prefix defundef, macro, "*/"
23843 next
23844 }
23845 }
23846 }
23847 { print }
23848 _ACAWK
23849 _ACEOF
23850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23851 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23852 fi # test -n "$CONFIG_HEADERS"
23853
23854
23855 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23856 shift
23857 for ac_tag
23858 do
23859 case $ac_tag in
23860 :[FHLC]) ac_mode=$ac_tag; continue;;
23861 esac
23862 case $ac_mode$ac_tag in
23863 :[FHL]*:*);;
23864 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
23865 :[FH]-) ac_tag=-:-;;
23866 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23867 esac
23868 ac_save_IFS=$IFS
23869 IFS=:
23870 set x $ac_tag
23871 IFS=$ac_save_IFS
23872 shift
23873 ac_file=$1
23874 shift
23875
23876 case $ac_mode in
23877 :L) ac_source=$1;;
23878 :[FH])
23879 ac_file_inputs=
23880 for ac_f
23881 do
23882 case $ac_f in
23883 -) ac_f="$ac_tmp/stdin";;
23884 *) # Look for the file first in the build tree, then in the source tree
23885 # (if the path is not absolute). The absolute path cannot be DOS-style,
23886 # because $ac_f cannot contain ':'.
23887 test -f "$ac_f" ||
23888 case $ac_f in
23889 [\\/$]*) false;;
23890 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23891 esac ||
23892 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
23893 esac
23894 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23895 as_fn_append ac_file_inputs " '$ac_f'"
23896 done
23897
23898 # Let's still pretend it is 'configure' which instantiates (i.e., don't
23899 # use $as_me), people would be surprised to read:
23900 # /* config.h. Generated by config.status. */
23901 configure_input='Generated from '`
23902 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23903 `' by configure.'
23904 if test x"$ac_file" != x-; then
23905 configure_input="$ac_file. $configure_input"
23906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23907 printf "%s\n" "$as_me: creating $ac_file" >&6;}
23908 fi
23909 # Neutralize special characters interpreted by sed in replacement strings.
23910 case $configure_input in #(
23911 *\&* | *\|* | *\\* )
23912 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
23913 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23914 *) ac_sed_conf_input=$configure_input;;
23915 esac
23916
23917 case $ac_tag in
23918 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23919 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23920 esac
23921 ;;
23922 esac
23923
23924 ac_dir=`$as_dirname -- "$ac_file" ||
23925 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23926 X"$ac_file" : 'X\(//\)[^/]' \| \
23927 X"$ac_file" : 'X\(//\)$' \| \
23928 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23929 printf "%s\n" X"$ac_file" |
23930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23931 s//\1/
23932 q
23933 }
23934 /^X\(\/\/\)[^/].*/{
23935 s//\1/
23936 q
23937 }
23938 /^X\(\/\/\)$/{
23939 s//\1/
23940 q
23941 }
23942 /^X\(\/\).*/{
23943 s//\1/
23944 q
23945 }
23946 s/.*/./; q'`
23947 as_dir="$ac_dir"; as_fn_mkdir_p
23948 ac_builddir=.
23949
23950 case "$ac_dir" in
23951 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23952 *)
23953 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
23954 # A ".." for each directory in $ac_dir_suffix.
23955 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23956 case $ac_top_builddir_sub in
23957 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23958 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23959 esac ;;
23960 esac
23961 ac_abs_top_builddir=$ac_pwd
23962 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23963 # for backward compatibility:
23964 ac_top_builddir=$ac_top_build_prefix
23965
23966 case $srcdir in
23967 .) # We are building in place.
23968 ac_srcdir=.
23969 ac_top_srcdir=$ac_top_builddir_sub
23970 ac_abs_top_srcdir=$ac_pwd ;;
23971 [\\/]* | ?:[\\/]* ) # Absolute name.
23972 ac_srcdir=$srcdir$ac_dir_suffix;
23973 ac_top_srcdir=$srcdir
23974 ac_abs_top_srcdir=$srcdir ;;
23975 *) # Relative name.
23976 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23977 ac_top_srcdir=$ac_top_build_prefix$srcdir
23978 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23979 esac
23980 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23981
23982
23983 case $ac_mode in
23984 :F)
23985 #
23986 # CONFIG_FILE
23987 #
23988
23989 case $INSTALL in
23990 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23991 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23992 esac
23993 ac_MKDIR_P=$MKDIR_P
23994 case $MKDIR_P in
23995 [\\/$]* | ?:[\\/]* ) ;;
23996 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23997 esac
23998 _ACEOF
23999
24000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24001 # If the template does not know about datarootdir, expand it.
24002 # FIXME: This hack should be removed a few years after 2.60.
24003 ac_datarootdir_hack=; ac_datarootdir_seen=
24004 ac_sed_dataroot='
24005 /datarootdir/ {
24006 p
24007 q
24008 }
24009 /@datadir@/p
24010 /@docdir@/p
24011 /@infodir@/p
24012 /@localedir@/p
24013 /@mandir@/p'
24014 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24015 *datarootdir*) ac_datarootdir_seen=yes;;
24016 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24018 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24019 _ACEOF
24020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24021 ac_datarootdir_hack='
24022 s&@datadir@&$datadir&g
24023 s&@docdir@&$docdir&g
24024 s&@infodir@&$infodir&g
24025 s&@localedir@&$localedir&g
24026 s&@mandir@&$mandir&g
24027 s&\\\${datarootdir}&$datarootdir&g' ;;
24028 esac
24029 _ACEOF
24030
24031 # Neutralize VPATH when '$srcdir' = '.'.
24032 # Shell code in configure.ac might set extrasub.
24033 # FIXME: do we really want to maintain this feature?
24034 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24035 ac_sed_extra="$ac_vpsub
24036 $extrasub
24037 _ACEOF
24038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24039 :t
24040 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24041 s|@configure_input@|$ac_sed_conf_input|;t t
24042 s&@top_builddir@&$ac_top_builddir_sub&;t t
24043 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24044 s&@srcdir@&$ac_srcdir&;t t
24045 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24046 s&@top_srcdir@&$ac_top_srcdir&;t t
24047 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24048 s&@builddir@&$ac_builddir&;t t
24049 s&@abs_builddir@&$ac_abs_builddir&;t t
24050 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24051 s&@INSTALL@&$ac_INSTALL&;t t
24052 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24053 $ac_datarootdir_hack
24054 "
24055 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24056 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24057
24058 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24059 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24060 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
24061 "$ac_tmp/out"`; test -z "$ac_out"; } &&
24062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
24063 which seems to be undefined. Please make sure it is defined" >&5
24064 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
24065 which seems to be undefined. Please make sure it is defined" >&2;}
24066
24067 rm -f "$ac_tmp/stdin"
24068 case $ac_file in
24069 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24070 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24071 esac \
24072 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24073 ;;
24074 :H)
24075 #
24076 # CONFIG_HEADER
24077 #
24078 if test x"$ac_file" != x-; then
24079 {
24080 printf "%s\n" "/* $configure_input */" >&1 \
24081 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24082 } >"$ac_tmp/config.h" \
24083 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24084 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24086 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
24087 else
24088 rm -f "$ac_file"
24089 mv "$ac_tmp/config.h" "$ac_file" \
24090 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24091 fi
24092 else
24093 printf "%s\n" "/* $configure_input */" >&1 \
24094 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24095 || as_fn_error $? "could not create -" "$LINENO" 5
24096 fi
24097 # Compute "$ac_file"'s index in $config_headers.
24098 _am_arg="$ac_file"
24099 _am_stamp_count=1
24100 for _am_header in $config_headers :; do
24101 case $_am_header in
24102 $_am_arg | $_am_arg:* )
24103 break ;;
24104 * )
24105 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24106 esac
24107 done
24108 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24109 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24110 X"$_am_arg" : 'X\(//\)[^/]' \| \
24111 X"$_am_arg" : 'X\(//\)$' \| \
24112 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24113 printf "%s\n" X"$_am_arg" |
24114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24115 s//\1/
24116 q
24117 }
24118 /^X\(\/\/\)[^/].*/{
24119 s//\1/
24120 q
24121 }
24122 /^X\(\/\/\)$/{
24123 s//\1/
24124 q
24125 }
24126 /^X\(\/\).*/{
24127 s//\1/
24128 q
24129 }
24130 s/.*/./; q'`/stamp-h$_am_stamp_count
24131 ;;
24132
24133 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24134 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
24135 ;;
24136 esac
24137
24138
24139 case $ac_file$ac_mode in
24140 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24141 # Older Autoconf quotes --file arguments for eval, but not when files
24142 # are listed without --file. Let's play safe and only enable the eval
24143 # if we detect the quoting.
24144 # TODO: see whether this extra hack can be removed once we start
24145 # requiring Autoconf 2.70 or later.
24146 case $CONFIG_FILES in #(
24147 *\'*) :
24148 eval set x "$CONFIG_FILES" ;; #(
24149 *) :
24150 set x $CONFIG_FILES ;; #(
24151 *) :
24152 ;;
24153 esac
24154 shift
24155 # Used to flag and report bootstrapping failures.
24156 am_rc=0
24157 for am_mf
24158 do
24159 # Strip MF so we end up with the name of the file.
24160 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
24161 # Check whether this is an Automake generated Makefile which includes
24162 # dependency-tracking related rules and includes.
24163 # Grep'ing the whole file directly is not great: AIX grep has a line
24164 # limit of 2048, but all sed's we know have understand at least 4000.
24165 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
24166 || continue
24167 am_dirpart=`$as_dirname -- "$am_mf" ||
24168 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24169 X"$am_mf" : 'X\(//\)[^/]' \| \
24170 X"$am_mf" : 'X\(//\)$' \| \
24171 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24172 printf "%s\n" X"$am_mf" |
24173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24174 s//\1/
24175 q
24176 }
24177 /^X\(\/\/\)[^/].*/{
24178 s//\1/
24179 q
24180 }
24181 /^X\(\/\/\)$/{
24182 s//\1/
24183 q
24184 }
24185 /^X\(\/\).*/{
24186 s//\1/
24187 q
24188 }
24189 s/.*/./; q'`
24190 am_filepart=`$as_basename -- "$am_mf" ||
24191 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
24192 X"$am_mf" : 'X\(//\)$' \| \
24193 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24194 printf "%s\n" X/"$am_mf" |
24195 sed '/^.*\/\([^/][^/]*\)\/*$/{
24196 s//\1/
24197 q
24198 }
24199 /^X\/\(\/\/\)$/{
24200 s//\1/
24201 q
24202 }
24203 /^X\/\(\/\).*/{
24204 s//\1/
24205 q
24206 }
24207 s/.*/./; q'`
24208 { echo "$as_me:$LINENO: cd "$am_dirpart" \
24209 && sed -e '/# am--include-marker/d' "$am_filepart" \
24210 | $MAKE -f - am--depfiles" >&5
24211 (cd "$am_dirpart" \
24212 && sed -e '/# am--include-marker/d' "$am_filepart" \
24213 | $MAKE -f - am--depfiles) >&5 2>&5
24214 ac_status=$?
24215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24216 (exit $ac_status); } || am_rc=$?
24217 done
24218 if test $am_rc -ne 0; then
24219 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
24220 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
24221 as_fn_error $? "Something went wrong bootstrapping makefile fragments
24222 for automatic dependency tracking. If GNU make was not used, consider
24223 re-running the configure script with MAKE=\"gmake\" (or whatever is
24224 necessary). You can also try re-running configure with the
24225 '--disable-dependency-tracking' option to at least be able to build
24226 the package (albeit without support for automatic dependency tracking).
24227 See 'config.log' for more details" "$LINENO" 5; }
24228 fi
24229 { am_dirpart=; unset am_dirpart;}
24230 { am_filepart=; unset am_filepart;}
24231 { am_mf=; unset am_mf;}
24232 { am_rc=; unset am_rc;}
24233 rm -f conftest-deps.mk
24234 }
24235 ;;
24236 "libtool":C)
24237
24238 # See if we are running on zsh, and set the options that allow our
24239 # commands through without removal of \ escapes.
24240 if test -n "${ZSH_VERSION+set}"; then
24241 setopt NO_GLOB_SUBST
24242 fi
24243
24244 cfgfile=${ofile}T
24245 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24246 $RM "$cfgfile"
24247
24248 cat <<_LT_EOF >> "$cfgfile"
24249 #! $SHELL
24250 # Generated automatically by $as_me ($PACKAGE) $VERSION
24251 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24252
24253 # Provide generalized library-building support services.
24254 # Written by Gordon Matzigkeit, 1996
24255
24256 # Copyright (C) 2024 Free Software Foundation, Inc.
24257 # This is free software; see the source for copying conditions. There is NO
24258 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24259
24260 # GNU Libtool is free software; you can redistribute it and/or modify
24261 # it under the terms of the GNU General Public License as published by
24262 # the Free Software Foundation; either version 2 of the License, or
24263 # (at your option) any later version.
24264 #
24265 # As a special exception to the GNU General Public License, if you
24266 # distribute this file as part of a program or library that is built
24267 # using GNU Libtool, you may include this file under the same
24268 # distribution terms that you use for the rest of that program.
24269 #
24270 # GNU Libtool is distributed in the hope that it will be useful, but
24271 # WITHOUT ANY WARRANTY; without even the implied warranty of
24272 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24273 # GNU General Public License for more details.
24274 #
24275 # You should have received a copy of the GNU General Public License
24276 # along with this program. If not, see <http://www.gnu.org/licenses/>.
24277
24278
24279 # The names of the tagged configurations supported by this script.
24280 available_tags='CXX '
24281
24282 # Configured defaults for sys_lib_dlsearch_path munging.
24283 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
24284
24285 # ### BEGIN LIBTOOL CONFIG
24286
24287 # Which release of libtool.m4 was used?
24288 macro_version=$macro_version
24289 macro_revision=$macro_revision
24290
24291 # Assembler program.
24292 AS=$lt_AS
24293
24294 # DLL creation program.
24295 DLLTOOL=$lt_DLLTOOL
24296
24297 # Object dumper program.
24298 OBJDUMP=$lt_OBJDUMP
24299
24300 # Whether or not to build static libraries.
24301 build_old_libs=$enable_static
24302
24303 # What type of objects to build.
24304 pic_mode=$pic_mode
24305
24306 # Whether or not to build shared libraries.
24307 build_libtool_libs=$enable_shared
24308
24309 # Whether or not to optimize for fast installation.
24310 fast_install=$enable_fast_install
24311
24312 # Shared archive member basename,for filename based shared library versioning on AIX.
24313 shared_archive_member_spec=$shared_archive_member_spec
24314
24315 # Shell to use when invoking shell scripts.
24316 SHELL=$lt_SHELL
24317
24318 # An echo program that protects backslashes.
24319 ECHO=$lt_ECHO
24320
24321 # The PATH separator for the build system.
24322 PATH_SEPARATOR=$lt_PATH_SEPARATOR
24323
24324 # The host system.
24325 host_alias=$host_alias
24326 host=$host
24327 host_os=$host_os
24328
24329 # The build system.
24330 build_alias=$build_alias
24331 build=$build
24332 build_os=$build_os
24333
24334 # A sed program that does not truncate output.
24335 SED=$lt_SED
24336
24337 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24338 Xsed="\$SED -e 1s/^X//"
24339
24340 # A grep program that handles long lines.
24341 GREP=$lt_GREP
24342
24343 # An ERE matcher.
24344 EGREP=$lt_EGREP
24345
24346 # A literal string matcher.
24347 FGREP=$lt_FGREP
24348
24349 # A BSD- or MS-compatible name lister.
24350 NM=$lt_NM
24351
24352 # Whether we need soft or hard links.
24353 LN_S=$lt_LN_S
24354
24355 # What is the maximum length of a command?
24356 max_cmd_len=$max_cmd_len
24357
24358 # Object file suffix (normally "o").
24359 objext=$ac_objext
24360
24361 # Executable file suffix (normally "").
24362 exeext=$exeext
24363
24364 # whether the shell understands "unset".
24365 lt_unset=$lt_unset
24366
24367 # turn spaces into newlines.
24368 SP2NL=$lt_lt_SP2NL
24369
24370 # turn newlines into spaces.
24371 NL2SP=$lt_lt_NL2SP
24372
24373 # convert \$build file names to \$host format.
24374 to_host_file_cmd=$lt_cv_to_host_file_cmd
24375
24376 # convert \$build files to toolchain format.
24377 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
24378
24379 # A file(cmd) program that detects file types.
24380 FILECMD=$lt_FILECMD
24381
24382 # Method to check whether dependent libraries are shared objects.
24383 deplibs_check_method=$lt_deplibs_check_method
24384
24385 # Command to use when deplibs_check_method = "file_magic".
24386 file_magic_cmd=$lt_file_magic_cmd
24387
24388 # How to find potential files when deplibs_check_method = "file_magic".
24389 file_magic_glob=$lt_file_magic_glob
24390
24391 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
24392 want_nocaseglob=$lt_want_nocaseglob
24393
24394 # Command to associate shared and link libraries.
24395 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
24396
24397 # The archiver.
24398 AR=$lt_AR
24399
24400 # Flags to create an archive (by configure).
24401 lt_ar_flags=$lt_ar_flags
24402
24403 # Flags to create an archive.
24404 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
24405
24406 # How to feed a file listing to the archiver.
24407 archiver_list_spec=$lt_archiver_list_spec
24408
24409 # A symbol stripping program.
24410 STRIP=$lt_STRIP
24411
24412 # Commands used to install an old-style archive.
24413 RANLIB=$lt_RANLIB
24414 old_postinstall_cmds=$lt_old_postinstall_cmds
24415 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24416
24417 # Whether to use a lock for old archive extraction.
24418 lock_old_archive_extraction=$lock_old_archive_extraction
24419
24420 # A C compiler.
24421 LTCC=$lt_CC
24422
24423 # LTCC compiler flags.
24424 LTCFLAGS=$lt_CFLAGS
24425
24426 # Take the output of nm and produce a listing of raw symbols and C names.
24427 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24428
24429 # Transform the output of nm in a proper C declaration.
24430 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24431
24432 # Transform the output of nm into a list of symbols to manually relocate.
24433 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
24434
24435 # Transform the output of nm in a C name address pair.
24436 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24437
24438 # Transform the output of nm in a C name address pair when lib prefix is needed.
24439 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24440
24441 # The name lister interface.
24442 nm_interface=$lt_lt_cv_nm_interface
24443
24444 # Specify filename containing input files for \$NM.
24445 nm_file_list_spec=$lt_nm_file_list_spec
24446
24447 # The root where to search for dependent libraries,and where our libraries should be installed.
24448 lt_sysroot=$lt_sysroot
24449
24450 # Command to truncate a binary pipe.
24451 lt_truncate_bin=$lt_lt_cv_truncate_bin
24452
24453 # The name of the directory that contains temporary libtool files.
24454 objdir=$objdir
24455
24456 # Used to examine libraries when file_magic_cmd begins with "file".
24457 MAGIC_CMD=$MAGIC_CMD
24458
24459 # Must we lock files when doing compilation?
24460 need_locks=$lt_need_locks
24461
24462 # Manifest tool.
24463 MANIFEST_TOOL=$lt_MANIFEST_TOOL
24464
24465 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24466 DSYMUTIL=$lt_DSYMUTIL
24467
24468 # Tool to change global to local symbols on Mac OS X.
24469 NMEDIT=$lt_NMEDIT
24470
24471 # Tool to manipulate fat objects and archives on Mac OS X.
24472 LIPO=$lt_LIPO
24473
24474 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24475 OTOOL=$lt_OTOOL
24476
24477 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24478 OTOOL64=$lt_OTOOL64
24479
24480 # Old archive suffix (normally "a").
24481 libext=$libext
24482
24483 # Shared library suffix (normally ".so").
24484 shrext_cmds=$lt_shrext_cmds
24485
24486 # The commands to extract the exported symbol list from a shared archive.
24487 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24488
24489 # Variables whose values should be saved in libtool wrapper scripts and
24490 # restored at link time.
24491 variables_saved_for_relink=$lt_variables_saved_for_relink
24492
24493 # Do we need the "lib" prefix for modules?
24494 need_lib_prefix=$need_lib_prefix
24495
24496 # Do we need a version for libraries?
24497 need_version=$need_version
24498
24499 # Library versioning type.
24500 version_type=$version_type
24501
24502 # Shared library runtime path variable.
24503 runpath_var=$runpath_var
24504
24505 # Shared library path variable.
24506 shlibpath_var=$shlibpath_var
24507
24508 # Is shlibpath searched before the hard-coded library search path?
24509 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24510
24511 # Format of library name prefix.
24512 libname_spec=$lt_libname_spec
24513
24514 # List of archive names. First name is the real one, the rest are links.
24515 # The last name is the one that the linker finds with -lNAME
24516 library_names_spec=$lt_library_names_spec
24517
24518 # The coded name of the library, if different from the real name.
24519 soname_spec=$lt_soname_spec
24520
24521 # Permission mode override for installation of shared libraries.
24522 install_override_mode=$lt_install_override_mode
24523
24524 # Command to use after installation of a shared archive.
24525 postinstall_cmds=$lt_postinstall_cmds
24526
24527 # Command to use after uninstallation of a shared archive.
24528 postuninstall_cmds=$lt_postuninstall_cmds
24529
24530 # Commands used to finish a libtool library installation in a directory.
24531 finish_cmds=$lt_finish_cmds
24532
24533 # As "finish_cmds", except a single script fragment to be evaled but
24534 # not shown.
24535 finish_eval=$lt_finish_eval
24536
24537 # Whether we should hardcode library paths into libraries.
24538 hardcode_into_libs=$hardcode_into_libs
24539
24540 # Compile-time system search path for libraries.
24541 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24542
24543 # Detected run-time system search path for libraries.
24544 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
24545
24546 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
24547 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
24548
24549 # Whether dlopen is supported.
24550 dlopen_support=$enable_dlopen
24551
24552 # Whether dlopen of programs is supported.
24553 dlopen_self=$enable_dlopen_self
24554
24555 # Whether dlopen of statically linked programs is supported.
24556 dlopen_self_static=$enable_dlopen_self_static
24557
24558 # Commands to strip libraries.
24559 old_striplib=$lt_old_striplib
24560 striplib=$lt_striplib
24561
24562
24563 # The linker used to build libraries.
24564 LD=$lt_LD
24565
24566 # How to create reloadable object files.
24567 reload_flag=$lt_reload_flag
24568 reload_cmds=$lt_reload_cmds
24569
24570 # Commands used to build an old-style archive.
24571 old_archive_cmds=$lt_old_archive_cmds
24572
24573 # A language specific compiler.
24574 CC=$lt_compiler
24575
24576 # Is the compiler the GNU compiler?
24577 with_gcc=$GCC
24578
24579 # Compiler flag to turn off builtin functions.
24580 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24581
24582 # Additional compiler flags for building library objects.
24583 pic_flag=$lt_lt_prog_compiler_pic
24584
24585 # How to pass a linker flag through the compiler.
24586 wl=$lt_lt_prog_compiler_wl
24587
24588 # Compiler flag to prevent dynamic linking.
24589 link_static_flag=$lt_lt_prog_compiler_static
24590
24591 # Does compiler simultaneously support -c and -o options?
24592 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24593
24594 # Whether or not to add -lc for building shared libraries.
24595 build_libtool_need_lc=$archive_cmds_need_lc
24596
24597 # Whether or not to disallow shared libs when runtime libs are static.
24598 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24599
24600 # Compiler flag to allow reflexive dlopens.
24601 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24602
24603 # Compiler flag to generate shared objects directly from archives.
24604 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24605
24606 # Whether the compiler copes with passing no objects directly.
24607 compiler_needs_object=$lt_compiler_needs_object
24608
24609 # Create an old-style archive from a shared archive.
24610 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24611
24612 # Create a temporary old-style archive to link instead of a shared archive.
24613 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24614
24615 # Commands used to build a shared archive.
24616 archive_cmds=$lt_archive_cmds
24617 archive_expsym_cmds=$lt_archive_expsym_cmds
24618
24619 # Commands used to build a loadable module if different from building
24620 # a shared archive.
24621 module_cmds=$lt_module_cmds
24622 module_expsym_cmds=$lt_module_expsym_cmds
24623
24624 # Whether we are building with GNU ld or not.
24625 with_gnu_ld=$lt_with_gnu_ld
24626
24627 # Flag that allows shared libraries with undefined symbols to be built.
24628 allow_undefined_flag=$lt_allow_undefined_flag
24629
24630 # Flag that enforces no undefined symbols.
24631 no_undefined_flag=$lt_no_undefined_flag
24632
24633 # Flag to hardcode \$libdir into a binary during linking.
24634 # This must work even if \$libdir does not exist
24635 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24636
24637 # Whether we need a single "-rpath" flag with a separated argument.
24638 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24639
24640 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24641 # DIR into the resulting binary.
24642 hardcode_direct=$hardcode_direct
24643
24644 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24645 # DIR into the resulting binary and the resulting library dependency is
24646 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
24647 # library is relocated.
24648 hardcode_direct_absolute=$hardcode_direct_absolute
24649
24650 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24651 # into the resulting binary.
24652 hardcode_minus_L=$hardcode_minus_L
24653
24654 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24655 # into the resulting binary.
24656 hardcode_shlibpath_var=$hardcode_shlibpath_var
24657
24658 # Set to "yes" if building a shared library automatically hardcodes DIR
24659 # into the library and all subsequent libraries and executables linked
24660 # against it.
24661 hardcode_automatic=$hardcode_automatic
24662
24663 # Set to yes if linker adds runtime paths of dependent libraries
24664 # to runtime path list.
24665 inherit_rpath=$inherit_rpath
24666
24667 # Whether libtool must link a program against all its dependency libraries.
24668 link_all_deplibs=$link_all_deplibs
24669
24670 # Set to "yes" if exported symbols are required.
24671 always_export_symbols=$always_export_symbols
24672
24673 # The commands to list exported symbols.
24674 export_symbols_cmds=$lt_export_symbols_cmds
24675
24676 # Symbols that should not be listed in the preloaded symbols.
24677 exclude_expsyms=$lt_exclude_expsyms
24678
24679 # Symbols that must always be exported.
24680 include_expsyms=$lt_include_expsyms
24681
24682 # Commands necessary for linking programs (against libraries) with templates.
24683 prelink_cmds=$lt_prelink_cmds
24684
24685 # Commands necessary for finishing linking programs.
24686 postlink_cmds=$lt_postlink_cmds
24687
24688 # Specify filename containing input files.
24689 file_list_spec=$lt_file_list_spec
24690
24691 # How to hardcode a shared library path into an executable.
24692 hardcode_action=$hardcode_action
24693
24694 # The directories searched by this compiler when creating a shared library.
24695 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
24696
24697 # Dependencies to place before and after the objects being linked to
24698 # create a shared library.
24699 predep_objects=$lt_predep_objects
24700 postdep_objects=$lt_postdep_objects
24701 predeps=$lt_predeps
24702 postdeps=$lt_postdeps
24703
24704 # The library search path used internally by the compiler when linking
24705 # a shared library.
24706 compiler_lib_search_path=$lt_compiler_lib_search_path
24707
24708 # ### END LIBTOOL CONFIG
24709
24710 _LT_EOF
24711
24712 cat <<'_LT_EOF' >> "$cfgfile"
24713
24714 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
24715
24716 # func_munge_path_list VARIABLE PATH
24717 # -----------------------------------
24718 # VARIABLE is name of variable containing _space_ separated list of
24719 # directories to be munged by the contents of PATH, which is string
24720 # having a format:
24721 # "DIR[:DIR]:"
24722 # string "DIR[ DIR]" will be prepended to VARIABLE
24723 # ":DIR[:DIR]"
24724 # string "DIR[ DIR]" will be appended to VARIABLE
24725 # "DIRP[:DIRP]::[DIRA:]DIRA"
24726 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
24727 # "DIRA[ DIRA]" will be appended to VARIABLE
24728 # "DIR[:DIR]"
24729 # VARIABLE will be replaced by "DIR[ DIR]"
24730 func_munge_path_list ()
24731 {
24732 case x$2 in
24733 x)
24734 ;;
24735 *:)
24736 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
24737 ;;
24738 x:*)
24739 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
24740 ;;
24741 *::*)
24742 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
24743 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
24744 ;;
24745 *)
24746 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
24747 ;;
24748 esac
24749 }
24750
24751
24752 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
24753 func_cc_basename ()
24754 {
24755 for cc_temp in $*""; do
24756 case $cc_temp in
24757 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24758 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24759 \-*) ;;
24760 *) break;;
24761 esac
24762 done
24763 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24764 }
24765
24766
24767 # ### END FUNCTIONS SHARED WITH CONFIGURE
24768
24769 _LT_EOF
24770
24771 case $host_os in
24772 aix3*)
24773 cat <<\_LT_EOF >> "$cfgfile"
24774 # AIX sometimes has problems with the GCC collect2 program. For some
24775 # reason, if we set the COLLECT_NAMES environment variable, the problems
24776 # vanish in a puff of smoke.
24777 if test set != "${COLLECT_NAMES+set}"; then
24778 COLLECT_NAMES=
24779 export COLLECT_NAMES
24780 fi
24781 _LT_EOF
24782 ;;
24783 esac
24784
24785
24786
24787 ltmain=$ac_aux_dir/ltmain.sh
24788
24789
24790 # We use sed instead of cat because bash on DJGPP gets confused if
24791 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24792 # text mode, it properly converts lines to CR/LF. This bash problem
24793 # is reportedly fixed, but why not run on old versions too?
24794 $SED '$q' "$ltmain" >> "$cfgfile" \
24795 || (rm -f "$cfgfile"; exit 1)
24796
24797 mv -f "$cfgfile" "$ofile" ||
24798 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24799 chmod +x "$ofile"
24800
24801
24802 cat <<_LT_EOF >> "$ofile"
24803
24804 # ### BEGIN LIBTOOL TAG CONFIG: CXX
24805
24806 # The linker used to build libraries.
24807 LD=$lt_LD_CXX
24808
24809 # How to create reloadable object files.
24810 reload_flag=$lt_reload_flag_CXX
24811 reload_cmds=$lt_reload_cmds_CXX
24812
24813 # Commands used to build an old-style archive.
24814 old_archive_cmds=$lt_old_archive_cmds_CXX
24815
24816 # A language specific compiler.
24817 CC=$lt_compiler_CXX
24818
24819 # Is the compiler the GNU compiler?
24820 with_gcc=$GCC_CXX
24821
24822 # Compiler flag to turn off builtin functions.
24823 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
24824
24825 # Additional compiler flags for building library objects.
24826 pic_flag=$lt_lt_prog_compiler_pic_CXX
24827
24828 # How to pass a linker flag through the compiler.
24829 wl=$lt_lt_prog_compiler_wl_CXX
24830
24831 # Compiler flag to prevent dynamic linking.
24832 link_static_flag=$lt_lt_prog_compiler_static_CXX
24833
24834 # Does compiler simultaneously support -c and -o options?
24835 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
24836
24837 # Whether or not to add -lc for building shared libraries.
24838 build_libtool_need_lc=$archive_cmds_need_lc_CXX
24839
24840 # Whether or not to disallow shared libs when runtime libs are static.
24841 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
24842
24843 # Compiler flag to allow reflexive dlopens.
24844 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
24845
24846 # Compiler flag to generate shared objects directly from archives.
24847 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
24848
24849 # Whether the compiler copes with passing no objects directly.
24850 compiler_needs_object=$lt_compiler_needs_object_CXX
24851
24852 # Create an old-style archive from a shared archive.
24853 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
24854
24855 # Create a temporary old-style archive to link instead of a shared archive.
24856 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
24857
24858 # Commands used to build a shared archive.
24859 archive_cmds=$lt_archive_cmds_CXX
24860 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
24861
24862 # Commands used to build a loadable module if different from building
24863 # a shared archive.
24864 module_cmds=$lt_module_cmds_CXX
24865 module_expsym_cmds=$lt_module_expsym_cmds_CXX
24866
24867 # Whether we are building with GNU ld or not.
24868 with_gnu_ld=$lt_with_gnu_ld_CXX
24869
24870 # Flag that allows shared libraries with undefined symbols to be built.
24871 allow_undefined_flag=$lt_allow_undefined_flag_CXX
24872
24873 # Flag that enforces no undefined symbols.
24874 no_undefined_flag=$lt_no_undefined_flag_CXX
24875
24876 # Flag to hardcode \$libdir into a binary during linking.
24877 # This must work even if \$libdir does not exist
24878 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
24879
24880 # Whether we need a single "-rpath" flag with a separated argument.
24881 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
24882
24883 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24884 # DIR into the resulting binary.
24885 hardcode_direct=$hardcode_direct_CXX
24886
24887 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24888 # DIR into the resulting binary and the resulting library dependency is
24889 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
24890 # library is relocated.
24891 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
24892
24893 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24894 # into the resulting binary.
24895 hardcode_minus_L=$hardcode_minus_L_CXX
24896
24897 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24898 # into the resulting binary.
24899 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
24900
24901 # Set to "yes" if building a shared library automatically hardcodes DIR
24902 # into the library and all subsequent libraries and executables linked
24903 # against it.
24904 hardcode_automatic=$hardcode_automatic_CXX
24905
24906 # Set to yes if linker adds runtime paths of dependent libraries
24907 # to runtime path list.
24908 inherit_rpath=$inherit_rpath_CXX
24909
24910 # Whether libtool must link a program against all its dependency libraries.
24911 link_all_deplibs=$link_all_deplibs_CXX
24912
24913 # Set to "yes" if exported symbols are required.
24914 always_export_symbols=$always_export_symbols_CXX
24915
24916 # The commands to list exported symbols.
24917 export_symbols_cmds=$lt_export_symbols_cmds_CXX
24918
24919 # Symbols that should not be listed in the preloaded symbols.
24920 exclude_expsyms=$lt_exclude_expsyms_CXX
24921
24922 # Symbols that must always be exported.
24923 include_expsyms=$lt_include_expsyms_CXX
24924
24925 # Commands necessary for linking programs (against libraries) with templates.
24926 prelink_cmds=$lt_prelink_cmds_CXX
24927
24928 # Commands necessary for finishing linking programs.
24929 postlink_cmds=$lt_postlink_cmds_CXX
24930
24931 # Specify filename containing input files.
24932 file_list_spec=$lt_file_list_spec_CXX
24933
24934 # How to hardcode a shared library path into an executable.
24935 hardcode_action=$hardcode_action_CXX
24936
24937 # The directories searched by this compiler when creating a shared library.
24938 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
24939
24940 # Dependencies to place before and after the objects being linked to
24941 # create a shared library.
24942 predep_objects=$lt_predep_objects_CXX
24943 postdep_objects=$lt_postdep_objects_CXX
24944 predeps=$lt_predeps_CXX
24945 postdeps=$lt_postdeps_CXX
24946
24947 # The library search path used internally by the compiler when linking
24948 # a shared library.
24949 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
24950
24951 # ### END LIBTOOL TAG CONFIG: CXX
24952 _LT_EOF
24953
24954 ;;
24955
24956 esac
24957 done # for ac_tag
24958
24959
24960 as_fn_exit 0
24961 _ACEOF
24962 ac_clean_files=$ac_clean_files_save
24963
24964 test $ac_write_fail = 0 ||
24965 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24966
24967
24968 # configure is writing to config.log, and then calls config.status.
24969 # config.status does its own redirection, appending to config.log.
24970 # Unfortunately, on DOS this fails, as config.log is still kept open
24971 # by configure, so config.status won't be able to write to it; its
24972 # output is simply discarded. So we exec the FD to /dev/null,
24973 # effectively closing config.log, so it can be properly (re)opened and
24974 # appended to by config.status. When coming back to configure, we
24975 # need to make the FD available again.
24976 if test "$no_create" != yes; then
24977 ac_cs_success=:
24978 ac_config_status_args=
24979 test "$silent" = yes &&
24980 ac_config_status_args="$ac_config_status_args --quiet"
24981 exec 5>/dev/null
24982 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24983 exec 5>>config.log
24984 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24985 # would make configure fail if this is the last instruction.
24986 $ac_cs_success || as_fn_exit 1
24987 fi
24988 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24990 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24991 fi
24992
24993
24994 # ==============================================
24995 # Display final informations about configuration
24996 # ==============================================
24997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}:
24998 ==============================================================================
24999 Build configuration:
25000 debug: ${enable_debug}
25001 docs: ${build_docs}
25002 fuzzers: ${enable_fuzzers}
25003 tools: ${enable_tools}
25004 werror: ${enable_werror}
25005 ==============================================================================
25006 " >&5
25007 printf "%s\n" "$as_me:
25008 ==============================================================================
25009 Build configuration:
25010 debug: ${enable_debug}
25011 docs: ${build_docs}
25012 fuzzers: ${enable_fuzzers}
25013 tools: ${enable_tools}
25014 werror: ${enable_werror}
25015 ==============================================================================
25016 " >&6;}
25017