Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for gpt 1.2.0.
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='gpt'
613 PACKAGE_TARNAME='gpt'
614 PACKAGE_VERSION='1.2.0'
615 PACKAGE_STRING='gpt 1.2.0'
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 INSTALL_DEVEL_FALSE
656 INSTALL_DEVEL_TRUE
657 PCRE_LIB
658 PCRE_INC
659 has_pcre
660 ANTLR_LIB
661 ANTLR_INC
662 ANTLR_CFG
663 ANTLR_BIN
664 BUILD_DEBUGGER_FALSE
665 BUILD_DEBUGGER_TRUE
666 CXXCPP
667 LT_SYS_LIBRARY_PATH
668 OTOOL64
669 OTOOL
670 LIPO
671 NMEDIT
672 DSYMUTIL
673 MANIFEST_TOOL
674 RANLIB
675 ac_ct_AR
676 AR
677 DLLTOOL
678 OBJDUMP
679 FILECMD
680 LN_S
681 NM
682 ac_ct_DUMPBIN
683 DUMPBIN
684 LD
685 FGREP
686 EGREP
687 GREP
688 SED
689 am__fastdepCC_FALSE
690 am__fastdepCC_TRUE
691 CCDEPMODE
692 ac_ct_CC
693 CFLAGS
694 CC
695 host_os
696 host_vendor
697 host_cpu
698 host
699 build_os
700 build_vendor
701 build_cpu
702 build
703 LIBTOOL
704 am__fastdepCXX_FALSE
705 am__fastdepCXX_TRUE
706 CXXDEPMODE
707 am__nodep
708 AMDEPBACKSLASH
709 AMDEP_FALSE
710 AMDEP_TRUE
711 am__include
712 DEPDIR
713 OBJEXT
714 EXEEXT
715 ac_ct_CXX
716 CPPFLAGS
717 LDFLAGS
718 CXXFLAGS
719 CXX
720 am__xargs_n
721 am__rm_f_notfound
722 AM_BACKSLASH
723 AM_DEFAULT_VERBOSITY
724 AM_DEFAULT_V
725 AM_V
726 CSCOPE
727 ETAGS
728 CTAGS
729 am__untar
730 am__tar
731 AMTAR
732 am__leading_dot
733 SET_MAKE
734 AWK
735 mkdir_p
736 MKDIR_P
737 INSTALL_STRIP_PROGRAM
738 STRIP
739 install_sh
740 MAKEINFO
741 AUTOHEADER
742 AUTOMAKE
743 AUTOCONF
744 ACLOCAL
745 VERSION
746 PACKAGE
747 CYGPATH_W
748 am__isrc
749 INSTALL_DATA
750 INSTALL_SCRIPT
751 INSTALL_PROGRAM
752 target_alias
753 host_alias
754 build_alias
755 LIBS
756 ECHO_T
757 ECHO_N
758 ECHO_C
759 DEFS
760 mandir
761 localedir
762 libdir
763 psdir
764 pdfdir
765 dvidir
766 htmldir
767 infodir
768 docdir
769 oldincludedir
770 includedir
771 runstatedir
772 localstatedir
773 sharedstatedir
774 sysconfdir
775 datadir
776 datarootdir
777 libexecdir
778 sbindir
779 bindir
780 program_transform_name
781 prefix
782 exec_prefix
783 PACKAGE_URL
784 PACKAGE_BUGREPORT
785 PACKAGE_STRING
786 PACKAGE_VERSION
787 PACKAGE_TARNAME
788 PACKAGE_NAME
789 PATH_SEPARATOR
790 SHELL
791 am__quote'
792 ac_subst_files=''
793 ac_user_opts='
794 enable_option_checking
795 enable_silent_rules
796 enable_dependency_tracking
797 enable_shared
798 enable_static
799 enable_pic
800 with_pic
801 enable_fast_install
802 enable_aix_soname
803 with_aix_soname
804 with_gnu_ld
805 with_sysroot
806 enable_libtool_lock
807 enable_debug
808 enable_install_devel
809 '
810 ac_precious_vars='build_alias
811 host_alias
812 target_alias
813 CXX
814 CXXFLAGS
815 LDFLAGS
816 LIBS
817 CPPFLAGS
818 CCC
819 CC
820 CFLAGS
821 LT_SYS_LIBRARY_PATH
822 CXXCPP'
823
824
825 # Initialize some variables set by options.
826 ac_init_help=
827 ac_init_version=false
828 ac_unrecognized_opts=
829 ac_unrecognized_sep=
830 # The variables have the same names as the options, with
831 # dashes changed to underlines.
832 cache_file=/dev/null
833 exec_prefix=NONE
834 no_create=
835 no_recursion=
836 prefix=NONE
837 program_prefix=NONE
838 program_suffix=NONE
839 program_transform_name=s,x,x,
840 silent=
841 site=
842 srcdir=
843 verbose=
844 x_includes=NONE
845 x_libraries=NONE
846
847 # Installation directory options.
848 # These are left unexpanded so users can "make install exec_prefix=/foo"
849 # and all the variables that are supposed to be based on exec_prefix
850 # by default will actually change.
851 # Use braces instead of parens because sh, perl, etc. also accept them.
852 # (The list follows the same order as the GNU Coding Standards.)
853 bindir='${exec_prefix}/bin'
854 sbindir='${exec_prefix}/sbin'
855 libexecdir='${exec_prefix}/libexec'
856 datarootdir='${prefix}/share'
857 datadir='${datarootdir}'
858 sysconfdir='${prefix}/etc'
859 sharedstatedir='${prefix}/com'
860 localstatedir='${prefix}/var'
861 runstatedir='${localstatedir}/run'
862 includedir='${prefix}/include'
863 oldincludedir='/usr/include'
864 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
865 infodir='${datarootdir}/info'
866 htmldir='${docdir}'
867 dvidir='${docdir}'
868 pdfdir='${docdir}'
869 psdir='${docdir}'
870 libdir='${exec_prefix}/lib'
871 localedir='${datarootdir}/locale'
872 mandir='${datarootdir}/man'
873
874 ac_prev=
875 ac_dashdash=
876 for ac_option
877 do
878 # If the previous option needs an argument, assign it.
879 if test -n "$ac_prev"; then
880 eval $ac_prev=\$ac_option
881 ac_prev=
882 continue
883 fi
884
885 case $ac_option in
886 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
887 *=) ac_optarg= ;;
888 *) ac_optarg=yes ;;
889 esac
890
891 case $ac_dashdash$ac_option in
892 --)
893 ac_dashdash=yes ;;
894
895 -bindir | --bindir | --bindi | --bind | --bin | --bi)
896 ac_prev=bindir ;;
897 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
898 bindir=$ac_optarg ;;
899
900 -build | --build | --buil | --bui | --bu)
901 ac_prev=build_alias ;;
902 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
903 build_alias=$ac_optarg ;;
904
905 -cache-file | --cache-file | --cache-fil | --cache-fi \
906 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
907 ac_prev=cache_file ;;
908 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
909 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
910 cache_file=$ac_optarg ;;
911
912 --config-cache | -C)
913 cache_file=config.cache ;;
914
915 -datadir | --datadir | --datadi | --datad)
916 ac_prev=datadir ;;
917 -datadir=* | --datadir=* | --datadi=* | --datad=*)
918 datadir=$ac_optarg ;;
919
920 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
921 | --dataroo | --dataro | --datar)
922 ac_prev=datarootdir ;;
923 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
924 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
925 datarootdir=$ac_optarg ;;
926
927 -disable-* | --disable-*)
928 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
929 # Reject names that are not valid shell variable names.
930 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931 as_fn_error $? "invalid feature name: '$ac_useropt'"
932 ac_useropt_orig=$ac_useropt
933 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
934 case $ac_user_opts in
935 *"
936 "enable_$ac_useropt"
937 "*) ;;
938 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
939 ac_unrecognized_sep=', ';;
940 esac
941 eval enable_$ac_useropt=no ;;
942
943 -docdir | --docdir | --docdi | --doc | --do)
944 ac_prev=docdir ;;
945 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
946 docdir=$ac_optarg ;;
947
948 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
949 ac_prev=dvidir ;;
950 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
951 dvidir=$ac_optarg ;;
952
953 -enable-* | --enable-*)
954 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
955 # Reject names that are not valid shell variable names.
956 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
957 as_fn_error $? "invalid feature name: '$ac_useropt'"
958 ac_useropt_orig=$ac_useropt
959 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
960 case $ac_user_opts in
961 *"
962 "enable_$ac_useropt"
963 "*) ;;
964 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
965 ac_unrecognized_sep=', ';;
966 esac
967 eval enable_$ac_useropt=\$ac_optarg ;;
968
969 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
970 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
971 | --exec | --exe | --ex)
972 ac_prev=exec_prefix ;;
973 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
974 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
975 | --exec=* | --exe=* | --ex=*)
976 exec_prefix=$ac_optarg ;;
977
978 -gas | --gas | --ga | --g)
979 # Obsolete; use --with-gas.
980 with_gas=yes ;;
981
982 -help | --help | --hel | --he | -h)
983 ac_init_help=long ;;
984 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
985 ac_init_help=recursive ;;
986 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
987 ac_init_help=short ;;
988
989 -host | --host | --hos | --ho)
990 ac_prev=host_alias ;;
991 -host=* | --host=* | --hos=* | --ho=*)
992 host_alias=$ac_optarg ;;
993
994 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
995 ac_prev=htmldir ;;
996 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
997 | --ht=*)
998 htmldir=$ac_optarg ;;
999
1000 -includedir | --includedir | --includedi | --included | --include \
1001 | --includ | --inclu | --incl | --inc)
1002 ac_prev=includedir ;;
1003 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1004 | --includ=* | --inclu=* | --incl=* | --inc=*)
1005 includedir=$ac_optarg ;;
1006
1007 -infodir | --infodir | --infodi | --infod | --info | --inf)
1008 ac_prev=infodir ;;
1009 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1010 infodir=$ac_optarg ;;
1011
1012 -libdir | --libdir | --libdi | --libd)
1013 ac_prev=libdir ;;
1014 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1015 libdir=$ac_optarg ;;
1016
1017 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1018 | --libexe | --libex | --libe)
1019 ac_prev=libexecdir ;;
1020 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1021 | --libexe=* | --libex=* | --libe=*)
1022 libexecdir=$ac_optarg ;;
1023
1024 -localedir | --localedir | --localedi | --localed | --locale)
1025 ac_prev=localedir ;;
1026 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1027 localedir=$ac_optarg ;;
1028
1029 -localstatedir | --localstatedir | --localstatedi | --localstated \
1030 | --localstate | --localstat | --localsta | --localst | --locals)
1031 ac_prev=localstatedir ;;
1032 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1033 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1034 localstatedir=$ac_optarg ;;
1035
1036 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1037 ac_prev=mandir ;;
1038 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1039 mandir=$ac_optarg ;;
1040
1041 -nfp | --nfp | --nf)
1042 # Obsolete; use --without-fp.
1043 with_fp=no ;;
1044
1045 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1046 | --no-cr | --no-c | -n)
1047 no_create=yes ;;
1048
1049 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1050 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1051 no_recursion=yes ;;
1052
1053 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1054 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1055 | --oldin | --oldi | --old | --ol | --o)
1056 ac_prev=oldincludedir ;;
1057 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1058 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1059 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1060 oldincludedir=$ac_optarg ;;
1061
1062 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1063 ac_prev=prefix ;;
1064 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1065 prefix=$ac_optarg ;;
1066
1067 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1068 | --program-pre | --program-pr | --program-p)
1069 ac_prev=program_prefix ;;
1070 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1071 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1072 program_prefix=$ac_optarg ;;
1073
1074 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1075 | --program-suf | --program-su | --program-s)
1076 ac_prev=program_suffix ;;
1077 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1078 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1079 program_suffix=$ac_optarg ;;
1080
1081 -program-transform-name | --program-transform-name \
1082 | --program-transform-nam | --program-transform-na \
1083 | --program-transform-n | --program-transform- \
1084 | --program-transform | --program-transfor \
1085 | --program-transfo | --program-transf \
1086 | --program-trans | --program-tran \
1087 | --progr-tra | --program-tr | --program-t)
1088 ac_prev=program_transform_name ;;
1089 -program-transform-name=* | --program-transform-name=* \
1090 | --program-transform-nam=* | --program-transform-na=* \
1091 | --program-transform-n=* | --program-transform-=* \
1092 | --program-transform=* | --program-transfor=* \
1093 | --program-transfo=* | --program-transf=* \
1094 | --program-trans=* | --program-tran=* \
1095 | --progr-tra=* | --program-tr=* | --program-t=*)
1096 program_transform_name=$ac_optarg ;;
1097
1098 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1099 ac_prev=pdfdir ;;
1100 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1101 pdfdir=$ac_optarg ;;
1102
1103 -psdir | --psdir | --psdi | --psd | --ps)
1104 ac_prev=psdir ;;
1105 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1106 psdir=$ac_optarg ;;
1107
1108 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1109 | -silent | --silent | --silen | --sile | --sil)
1110 silent=yes ;;
1111
1112 -runstatedir | --runstatedir | --runstatedi | --runstated \
1113 | --runstate | --runstat | --runsta | --runst | --runs \
1114 | --run | --ru | --r)
1115 ac_prev=runstatedir ;;
1116 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1117 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1118 | --run=* | --ru=* | --r=*)
1119 runstatedir=$ac_optarg ;;
1120
1121 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1122 ac_prev=sbindir ;;
1123 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1124 | --sbi=* | --sb=*)
1125 sbindir=$ac_optarg ;;
1126
1127 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1128 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1129 | --sharedst | --shareds | --shared | --share | --shar \
1130 | --sha | --sh)
1131 ac_prev=sharedstatedir ;;
1132 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1133 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1134 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1135 | --sha=* | --sh=*)
1136 sharedstatedir=$ac_optarg ;;
1137
1138 -site | --site | --sit)
1139 ac_prev=site ;;
1140 -site=* | --site=* | --sit=*)
1141 site=$ac_optarg ;;
1142
1143 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1144 ac_prev=srcdir ;;
1145 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1146 srcdir=$ac_optarg ;;
1147
1148 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1149 | --syscon | --sysco | --sysc | --sys | --sy)
1150 ac_prev=sysconfdir ;;
1151 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1152 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1153 sysconfdir=$ac_optarg ;;
1154
1155 -target | --target | --targe | --targ | --tar | --ta | --t)
1156 ac_prev=target_alias ;;
1157 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1158 target_alias=$ac_optarg ;;
1159
1160 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1161 verbose=yes ;;
1162
1163 -version | --version | --versio | --versi | --vers | -V)
1164 ac_init_version=: ;;
1165
1166 -with-* | --with-*)
1167 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1168 # Reject names that are not valid shell variable names.
1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170 as_fn_error $? "invalid package name: '$ac_useropt'"
1171 ac_useropt_orig=$ac_useropt
1172 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1174 *"
1175 "with_$ac_useropt"
1176 "*) ;;
1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1178 ac_unrecognized_sep=', ';;
1179 esac
1180 eval with_$ac_useropt=\$ac_optarg ;;
1181
1182 -without-* | --without-*)
1183 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 as_fn_error $? "invalid package name: '$ac_useropt'"
1187 ac_useropt_orig=$ac_useropt
1188 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1190 *"
1191 "with_$ac_useropt"
1192 "*) ;;
1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1194 ac_unrecognized_sep=', ';;
1195 esac
1196 eval with_$ac_useropt=no ;;
1197
1198 --x)
1199 # Obsolete; use --with-x.
1200 with_x=yes ;;
1201
1202 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1203 | --x-incl | --x-inc | --x-in | --x-i)
1204 ac_prev=x_includes ;;
1205 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1206 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1207 x_includes=$ac_optarg ;;
1208
1209 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1210 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1211 ac_prev=x_libraries ;;
1212 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1213 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1214 x_libraries=$ac_optarg ;;
1215
1216 -*) as_fn_error $? "unrecognized option: '$ac_option'
1217 Try '$0 --help' for more information"
1218 ;;
1219
1220 *=*)
1221 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1222 # Reject names that are not valid shell variable names.
1223 case $ac_envvar in #(
1224 '' | [0-9]* | *[!_$as_cr_alnum]* )
1225 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1226 esac
1227 eval $ac_envvar=\$ac_optarg
1228 export $ac_envvar ;;
1229
1230 *)
1231 # FIXME: should be removed in autoconf 3.0.
1232 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1233 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1234 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1235 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1236 ;;
1237
1238 esac
1239 done
1240
1241 if test -n "$ac_prev"; then
1242 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1243 as_fn_error $? "missing argument to $ac_option"
1244 fi
1245
1246 if test -n "$ac_unrecognized_opts"; then
1247 case $enable_option_checking in
1248 no) ;;
1249 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1250 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1251 esac
1252 fi
1253
1254 # Check all directory arguments for consistency.
1255 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1256 datadir sysconfdir sharedstatedir localstatedir includedir \
1257 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1258 libdir localedir mandir runstatedir
1259 do
1260 eval ac_val=\$$ac_var
1261 # Remove trailing slashes.
1262 case $ac_val in
1263 */ )
1264 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1265 eval $ac_var=\$ac_val;;
1266 esac
1267 # Be sure to have absolute directory names.
1268 case $ac_val in
1269 [\\/$]* | ?:[\\/]* ) continue;;
1270 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1271 esac
1272 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1273 done
1274
1275 # There might be people who depend on the old broken behavior: '$host'
1276 # used to hold the argument of --host etc.
1277 # FIXME: To remove some day.
1278 build=$build_alias
1279 host=$host_alias
1280 target=$target_alias
1281
1282 # FIXME: To remove some day.
1283 if test "x$host_alias" != x; then
1284 if test "x$build_alias" = x; then
1285 cross_compiling=maybe
1286 elif test "x$build_alias" != "x$host_alias"; then
1287 cross_compiling=yes
1288 fi
1289 fi
1290
1291 ac_tool_prefix=
1292 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1293
1294 test "$silent" = yes && exec 6>/dev/null
1295
1296
1297 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1298 ac_ls_di=`ls -di .` &&
1299 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1300 as_fn_error $? "working directory cannot be determined"
1301 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1302 as_fn_error $? "pwd does not report name of working directory"
1303
1304
1305 # Find the source files, if location was not specified.
1306 if test -z "$srcdir"; then
1307 ac_srcdir_defaulted=yes
1308 # Try the directory containing this script, then the parent directory.
1309 ac_confdir=`$as_dirname -- "$as_myself" ||
1310 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1311 X"$as_myself" : 'X\(//\)[^/]' \| \
1312 X"$as_myself" : 'X\(//\)$' \| \
1313 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1314 printf "%s\n" X"$as_myself" |
1315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1316 s//\1/
1317 q
1318 }
1319 /^X\(\/\/\)[^/].*/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\/\)$/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\).*/{
1328 s//\1/
1329 q
1330 }
1331 s/.*/./; q'`
1332 srcdir=$ac_confdir
1333 if test ! -r "$srcdir/$ac_unique_file"; then
1334 srcdir=..
1335 fi
1336 else
1337 ac_srcdir_defaulted=no
1338 fi
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1340 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1341 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1342 fi
1343 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1344 ac_abs_confdir=`(
1345 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1346 pwd)`
1347 # When building in place, set srcdir=.
1348 if test "$ac_abs_confdir" = "$ac_pwd"; then
1349 srcdir=.
1350 fi
1351 # Remove unnecessary trailing slashes from srcdir.
1352 # Double slashes in file names in object file debugging info
1353 # mess up M-x gdb in Emacs.
1354 case $srcdir in
1355 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1356 esac
1357 for ac_var in $ac_precious_vars; do
1358 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_env_${ac_var}_value=\$${ac_var}
1360 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1362 done
1363
1364 #
1365 # Report the --help message.
1366 #
1367 if test "$ac_init_help" = "long"; then
1368 # Omit some internal or obsolete options to make the list less imposing.
1369 # This message is too long to be a string in the A/UX 3.1 sh.
1370 cat <<_ACEOF
1371 'configure' configures gpt 1.2.0 to adapt to many kinds of systems.
1372
1373 Usage: $0 [OPTION]... [VAR=VALUE]...
1374
1375 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1376 VAR=VALUE. See below for descriptions of some of the useful variables.
1377
1378 Defaults for the options are specified in brackets.
1379
1380 Configuration:
1381 -h, --help display this help and exit
1382 --help=short display options specific to this package
1383 --help=recursive display the short help of all the included packages
1384 -V, --version display version information and exit
1385 -q, --quiet, --silent do not print 'checking ...' messages
1386 --cache-file=FILE cache test results in FILE [disabled]
1387 -C, --config-cache alias for '--cache-file=config.cache'
1388 -n, --no-create do not create output files
1389 --srcdir=DIR find the sources in DIR [configure dir or '..']
1390
1391 Installation directories:
1392 --prefix=PREFIX install architecture-independent files in PREFIX
1393 [$ac_default_prefix]
1394 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1395 [PREFIX]
1396
1397 By default, 'make install' will install all the files in
1398 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1399 an installation prefix other than '$ac_default_prefix' using '--prefix',
1400 for instance '--prefix=\$HOME'.
1401
1402 For better control, use the options below.
1403
1404 Fine tuning of the installation directories:
1405 --bindir=DIR user executables [EPREFIX/bin]
1406 --sbindir=DIR system admin executables [EPREFIX/sbin]
1407 --libexecdir=DIR program executables [EPREFIX/libexec]
1408 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1409 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1410 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1411 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1412 --libdir=DIR object code libraries [EPREFIX/lib]
1413 --includedir=DIR C header files [PREFIX/include]
1414 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1415 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1416 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1417 --infodir=DIR info documentation [DATAROOTDIR/info]
1418 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1419 --mandir=DIR man documentation [DATAROOTDIR/man]
1420 --docdir=DIR documentation root [DATAROOTDIR/doc/gpt]
1421 --htmldir=DIR html documentation [DOCDIR]
1422 --dvidir=DIR dvi documentation [DOCDIR]
1423 --pdfdir=DIR pdf documentation [DOCDIR]
1424 --psdir=DIR ps documentation [DOCDIR]
1425 _ACEOF
1426
1427 cat <<\_ACEOF
1428
1429 Program names:
1430 --program-prefix=PREFIX prepend PREFIX to installed program names
1431 --program-suffix=SUFFIX append SUFFIX to installed program names
1432 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1433
1434 System types:
1435 --build=BUILD configure for building on BUILD [guessed]
1436 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1437 _ACEOF
1438 fi
1439
1440 if test -n "$ac_init_help"; then
1441 case $ac_init_help in
1442 short | recursive ) echo "Configuration of gpt 1.2.0:";;
1443 esac
1444 cat <<\_ACEOF
1445
1446 Optional Features:
1447 --disable-option-checking ignore unrecognized --enable/--with options
1448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1450 --enable-silent-rules less verbose build output (undo: "make V=1")
1451 --disable-silent-rules verbose build output (undo: "make V=0")
1452 --enable-dependency-tracking
1453 do not reject slow dependency extractors
1454 --disable-dependency-tracking
1455 speeds up one-time build
1456 --enable-shared[=PKGS] build shared libraries [default=yes]
1457 --enable-static[=PKGS] build static libraries [default=yes]
1458 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1459 both]
1460 --enable-fast-install[=PKGS]
1461 optimize for fast installation [default=yes]
1462 --enable-aix-soname=aix|svr4|both
1463 shared library versioning (aka "SONAME") variant to
1464 provide on AIX, [default=aix].
1465 --disable-libtool-lock avoid locking (might break parallel builds)
1466 --enable-debug=ARG enables debug symbols (yes|no|full) [default=no]
1467 --enable-install-devel instala bibliotecas e headers
1468
1469 Optional Packages:
1470 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1471 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1472 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1473 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1474 compiler's sysroot if not specified).
1475
1476 Some influential environment variables:
1477 CXX C++ compiler command
1478 CXXFLAGS C++ compiler flags
1479 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1480 nonstandard directory <lib dir>
1481 LIBS libraries to pass to the linker, e.g. -l<library>
1482 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1483 you have headers in a nonstandard directory <include dir>
1484 CC C compiler command
1485 CFLAGS C compiler flags
1486 LT_SYS_LIBRARY_PATH
1487 User-defined run-time library search path.
1488 CXXCPP C++ preprocessor
1489
1490 Use these variables to override the choices made by 'configure' or to help
1491 it to find libraries and programs with nonstandard names/locations.
1492
1493 Report bugs to the package provider.
1494 _ACEOF
1495 ac_status=$?
1496 fi
1497
1498 if test "$ac_init_help" = "recursive"; then
1499 # If there are subdirs, report their specific --help.
1500 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1501 test -d "$ac_dir" ||
1502 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1503 continue
1504 ac_builddir=.
1505
1506 case "$ac_dir" in
1507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 *)
1509 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1510 # A ".." for each directory in $ac_dir_suffix.
1511 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1512 case $ac_top_builddir_sub in
1513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1515 esac ;;
1516 esac
1517 ac_abs_top_builddir=$ac_pwd
1518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519 # for backward compatibility:
1520 ac_top_builddir=$ac_top_build_prefix
1521
1522 case $srcdir in
1523 .) # We are building in place.
1524 ac_srcdir=.
1525 ac_top_srcdir=$ac_top_builddir_sub
1526 ac_abs_top_srcdir=$ac_pwd ;;
1527 [\\/]* | ?:[\\/]* ) # Absolute name.
1528 ac_srcdir=$srcdir$ac_dir_suffix;
1529 ac_top_srcdir=$srcdir
1530 ac_abs_top_srcdir=$srcdir ;;
1531 *) # Relative name.
1532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533 ac_top_srcdir=$ac_top_build_prefix$srcdir
1534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1535 esac
1536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1537
1538 cd "$ac_dir" || { ac_status=$?; continue; }
1539 # Check for configure.gnu first; this name is used for a wrapper for
1540 # Metaconfig's "Configure" on case-insensitive file systems.
1541 if test -f "$ac_srcdir/configure.gnu"; then
1542 echo &&
1543 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1544 elif test -f "$ac_srcdir/configure"; then
1545 echo &&
1546 $SHELL "$ac_srcdir/configure" --help=recursive
1547 else
1548 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1549 fi || ac_status=$?
1550 cd "$ac_pwd" || { ac_status=$?; break; }
1551 done
1552 fi
1553
1554 test -n "$ac_init_help" && exit $ac_status
1555 if $ac_init_version; then
1556 cat <<\_ACEOF
1557 gpt configure 1.2.0
1558 generated by GNU Autoconf 2.72
1559
1560 Copyright (C) 2023 Free Software Foundation, Inc.
1561 This configure script is free software; the Free Software Foundation
1562 gives unlimited permission to copy, distribute and modify it.
1563 _ACEOF
1564 exit
1565 fi
1566
1567 ## ------------------------ ##
1568 ## Autoconf initialization. ##
1569 ## ------------------------ ##
1570
1571 # ac_fn_cxx_try_compile LINENO
1572 # ----------------------------
1573 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1574 ac_fn_cxx_try_compile ()
1575 {
1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577 rm -f conftest.$ac_objext conftest.beam
1578 if { { ac_try="$ac_compile"
1579 case "(($ac_try" in
1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581 *) ac_try_echo=$ac_try;;
1582 esac
1583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584 printf "%s\n" "$ac_try_echo"; } >&5
1585 (eval "$ac_compile") 2>conftest.err
1586 ac_status=$?
1587 if test -s conftest.err; then
1588 grep -v '^ *+' conftest.err >conftest.er1
1589 cat conftest.er1 >&5
1590 mv -f conftest.er1 conftest.err
1591 fi
1592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593 test $ac_status = 0; } && {
1594 test -z "$ac_cxx_werror_flag" ||
1595 test ! -s conftest.err
1596 } && test -s conftest.$ac_objext
1597 then :
1598 ac_retval=0
1599 else case e in #(
1600 e) printf "%s\n" "$as_me: failed program was:" >&5
1601 sed 's/^/| /' conftest.$ac_ext >&5
1602
1603 ac_retval=1 ;;
1604 esac
1605 fi
1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607 as_fn_set_status $ac_retval
1608
1609 } # ac_fn_cxx_try_compile
1610
1611 # ac_fn_c_try_compile LINENO
1612 # --------------------------
1613 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1614 ac_fn_c_try_compile ()
1615 {
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 rm -f conftest.$ac_objext conftest.beam
1618 if { { ac_try="$ac_compile"
1619 case "(($ac_try" in
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1622 esac
1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624 printf "%s\n" "$ac_try_echo"; } >&5
1625 (eval "$ac_compile") 2>conftest.err
1626 ac_status=$?
1627 if test -s conftest.err; then
1628 grep -v '^ *+' conftest.err >conftest.er1
1629 cat conftest.er1 >&5
1630 mv -f conftest.er1 conftest.err
1631 fi
1632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } && {
1634 test -z "$ac_c_werror_flag" ||
1635 test ! -s conftest.err
1636 } && test -s conftest.$ac_objext
1637 then :
1638 ac_retval=0
1639 else case e in #(
1640 e) printf "%s\n" "$as_me: failed program was:" >&5
1641 sed 's/^/| /' conftest.$ac_ext >&5
1642
1643 ac_retval=1 ;;
1644 esac
1645 fi
1646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647 as_fn_set_status $ac_retval
1648
1649 } # ac_fn_c_try_compile
1650
1651 # ac_fn_c_try_link LINENO
1652 # -----------------------
1653 # Try to link conftest.$ac_ext, and return whether this succeeded.
1654 ac_fn_c_try_link ()
1655 {
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1658 if { { ac_try="$ac_link"
1659 case "(($ac_try" in
1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
1662 esac
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 printf "%s\n" "$ac_try_echo"; } >&5
1665 (eval "$ac_link") 2>conftest.err
1666 ac_status=$?
1667 if test -s conftest.err; then
1668 grep -v '^ *+' conftest.err >conftest.er1
1669 cat conftest.er1 >&5
1670 mv -f conftest.er1 conftest.err
1671 fi
1672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673 test $ac_status = 0; } && {
1674 test -z "$ac_c_werror_flag" ||
1675 test ! -s conftest.err
1676 } && test -s conftest$ac_exeext && {
1677 test "$cross_compiling" = yes ||
1678 test -x conftest$ac_exeext
1679 }
1680 then :
1681 ac_retval=0
1682 else case e in #(
1683 e) printf "%s\n" "$as_me: failed program was:" >&5
1684 sed 's/^/| /' conftest.$ac_ext >&5
1685
1686 ac_retval=1 ;;
1687 esac
1688 fi
1689 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1690 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1691 # interfere with the next link command; also delete a directory that is
1692 # left behind by Apple's compiler. We do this before executing the actions.
1693 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695 as_fn_set_status $ac_retval
1696
1697 } # ac_fn_c_try_link
1698
1699 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1700 # -------------------------------------------------------
1701 # Tests whether HEADER exists and can be compiled using the include files in
1702 # INCLUDES, setting the cache variable VAR accordingly.
1703 ac_fn_c_check_header_compile ()
1704 {
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707 printf %s "checking for $2... " >&6; }
1708 if eval test \${$3+y}
1709 then :
1710 printf %s "(cached) " >&6
1711 else case e in #(
1712 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713 /* end confdefs.h. */
1714 $4
1715 #include <$2>
1716 _ACEOF
1717 if ac_fn_c_try_compile "$LINENO"
1718 then :
1719 eval "$3=yes"
1720 else case e in #(
1721 e) eval "$3=no" ;;
1722 esac
1723 fi
1724 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1725 esac
1726 fi
1727 eval ac_res=\$$3
1728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729 printf "%s\n" "$ac_res" >&6; }
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731
1732 } # ac_fn_c_check_header_compile
1733
1734 # ac_fn_c_check_func LINENO FUNC VAR
1735 # ----------------------------------
1736 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1737 ac_fn_c_check_func ()
1738 {
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741 printf %s "checking for $2... " >&6; }
1742 if eval test \${$3+y}
1743 then :
1744 printf %s "(cached) " >&6
1745 else case e in #(
1746 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747 /* end confdefs.h. */
1748 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1750 #define $2 innocuous_$2
1751
1752 /* System header to define __stub macros and hopefully few prototypes,
1753 which can conflict with char $2 (void); below. */
1754
1755 #include <limits.h>
1756 #undef $2
1757
1758 /* Override any GCC internal prototype to avoid an error.
1759 Use char because int might match the return type of a GCC
1760 builtin and then its argument prototype would still apply. */
1761 #ifdef __cplusplus
1762 extern "C"
1763 #endif
1764 char $2 (void);
1765 /* The GNU C library defines this for functions which it implements
1766 to always fail with ENOSYS. Some functions are actually named
1767 something starting with __ and the normal name is an alias. */
1768 #if defined __stub_$2 || defined __stub___$2
1769 choke me
1770 #endif
1771
1772 int
1773 main (void)
1774 {
1775 return $2 ();
1776 ;
1777 return 0;
1778 }
1779 _ACEOF
1780 if ac_fn_c_try_link "$LINENO"
1781 then :
1782 eval "$3=yes"
1783 else case e in #(
1784 e) eval "$3=no" ;;
1785 esac
1786 fi
1787 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1788 conftest$ac_exeext conftest.$ac_ext ;;
1789 esac
1790 fi
1791 eval ac_res=\$$3
1792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793 printf "%s\n" "$ac_res" >&6; }
1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795
1796 } # ac_fn_c_check_func
1797
1798 # ac_fn_cxx_try_cpp LINENO
1799 # ------------------------
1800 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1801 ac_fn_cxx_try_cpp ()
1802 {
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 if { { ac_try="$ac_cpp conftest.$ac_ext"
1805 case "(($ac_try" in
1806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807 *) ac_try_echo=$ac_try;;
1808 esac
1809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810 printf "%s\n" "$ac_try_echo"; } >&5
1811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1812 ac_status=$?
1813 if test -s conftest.err; then
1814 grep -v '^ *+' conftest.err >conftest.er1
1815 cat conftest.er1 >&5
1816 mv -f conftest.er1 conftest.err
1817 fi
1818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819 test $ac_status = 0; } > conftest.i && {
1820 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1821 test ! -s conftest.err
1822 }
1823 then :
1824 ac_retval=0
1825 else case e in #(
1826 e) printf "%s\n" "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1828
1829 ac_retval=1 ;;
1830 esac
1831 fi
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833 as_fn_set_status $ac_retval
1834
1835 } # ac_fn_cxx_try_cpp
1836
1837 # ac_fn_cxx_try_link LINENO
1838 # -------------------------
1839 # Try to link conftest.$ac_ext, and return whether this succeeded.
1840 ac_fn_cxx_try_link ()
1841 {
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1844 if { { ac_try="$ac_link"
1845 case "(($ac_try" in
1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847 *) ac_try_echo=$ac_try;;
1848 esac
1849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 printf "%s\n" "$ac_try_echo"; } >&5
1851 (eval "$ac_link") 2>conftest.err
1852 ac_status=$?
1853 if test -s conftest.err; then
1854 grep -v '^ *+' conftest.err >conftest.er1
1855 cat conftest.er1 >&5
1856 mv -f conftest.er1 conftest.err
1857 fi
1858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859 test $ac_status = 0; } && {
1860 test -z "$ac_cxx_werror_flag" ||
1861 test ! -s conftest.err
1862 } && test -s conftest$ac_exeext && {
1863 test "$cross_compiling" = yes ||
1864 test -x conftest$ac_exeext
1865 }
1866 then :
1867 ac_retval=0
1868 else case e in #(
1869 e) printf "%s\n" "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1871
1872 ac_retval=1 ;;
1873 esac
1874 fi
1875 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1876 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1877 # interfere with the next link command; also delete a directory that is
1878 # left behind by Apple's compiler. We do this before executing the actions.
1879 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881 as_fn_set_status $ac_retval
1882
1883 } # ac_fn_cxx_try_link
1884 ac_configure_args_raw=
1885 for ac_arg
1886 do
1887 case $ac_arg in
1888 *\'*)
1889 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1890 esac
1891 as_fn_append ac_configure_args_raw " '$ac_arg'"
1892 done
1893
1894 case $ac_configure_args_raw in
1895 *$as_nl*)
1896 ac_safe_unquote= ;;
1897 *)
1898 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1899 ac_unsafe_a="$ac_unsafe_z#~"
1900 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1901 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1902 esac
1903
1904 cat >config.log <<_ACEOF
1905 This file contains any messages produced by compilers while
1906 running configure, to aid debugging if configure makes a mistake.
1907
1908 It was created by gpt $as_me 1.2.0, which was
1909 generated by GNU Autoconf 2.72. Invocation command line was
1910
1911 $ $0$ac_configure_args_raw
1912
1913 _ACEOF
1914 exec 5>>config.log
1915 {
1916 cat <<_ASUNAME
1917 ## --------- ##
1918 ## Platform. ##
1919 ## --------- ##
1920
1921 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1922 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1923 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1924 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1925 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1926
1927 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1928 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1929
1930 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1931 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1932 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1933 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1934 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1935 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1936 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1937
1938 _ASUNAME
1939
1940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941 for as_dir in $PATH
1942 do
1943 IFS=$as_save_IFS
1944 case $as_dir in #(((
1945 '') as_dir=./ ;;
1946 */) ;;
1947 *) as_dir=$as_dir/ ;;
1948 esac
1949 printf "%s\n" "PATH: $as_dir"
1950 done
1951 IFS=$as_save_IFS
1952
1953 } >&5
1954
1955 cat >&5 <<_ACEOF
1956
1957
1958 ## ----------- ##
1959 ## Core tests. ##
1960 ## ----------- ##
1961
1962 _ACEOF
1963
1964
1965 # Keep a trace of the command line.
1966 # Strip out --no-create and --no-recursion so they do not pile up.
1967 # Strip out --silent because we don't want to record it for future runs.
1968 # Also quote any args containing shell meta-characters.
1969 # Make two passes to allow for proper duplicate-argument suppression.
1970 ac_configure_args=
1971 ac_configure_args0=
1972 ac_configure_args1=
1973 ac_must_keep_next=false
1974 for ac_pass in 1 2
1975 do
1976 for ac_arg
1977 do
1978 case $ac_arg in
1979 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1980 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1981 | -silent | --silent | --silen | --sile | --sil)
1982 continue ;;
1983 *\'*)
1984 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1985 esac
1986 case $ac_pass in
1987 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1988 2)
1989 as_fn_append ac_configure_args1 " '$ac_arg'"
1990 if test $ac_must_keep_next = true; then
1991 ac_must_keep_next=false # Got value, back to normal.
1992 else
1993 case $ac_arg in
1994 *=* | --config-cache | -C | -disable-* | --disable-* \
1995 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1996 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1997 | -with-* | --with-* | -without-* | --without-* | --x)
1998 case "$ac_configure_args0 " in
1999 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2000 esac
2001 ;;
2002 -* ) ac_must_keep_next=true ;;
2003 esac
2004 fi
2005 as_fn_append ac_configure_args " '$ac_arg'"
2006 ;;
2007 esac
2008 done
2009 done
2010 { ac_configure_args0=; unset ac_configure_args0;}
2011 { ac_configure_args1=; unset ac_configure_args1;}
2012
2013 # When interrupted or exit'd, cleanup temporary files, and complete
2014 # config.log. We remove comments because anyway the quotes in there
2015 # would cause problems or look ugly.
2016 # WARNING: Use '\'' to represent an apostrophe within the trap.
2017 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2018 trap 'exit_status=$?
2019 # Sanitize IFS.
2020 IFS=" "" $as_nl"
2021 # Save into config.log some information that might help in debugging.
2022 {
2023 echo
2024
2025 printf "%s\n" "## ---------------- ##
2026 ## Cache variables. ##
2027 ## ---------------- ##"
2028 echo
2029 # The following way of writing the cache mishandles newlines in values,
2030 (
2031 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2032 eval ac_val=\$$ac_var
2033 case $ac_val in #(
2034 *${as_nl}*)
2035 case $ac_var in #(
2036 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2037 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2038 esac
2039 case $ac_var in #(
2040 _ | IFS | as_nl) ;; #(
2041 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2042 *) { eval $ac_var=; unset $ac_var;} ;;
2043 esac ;;
2044 esac
2045 done
2046 (set) 2>&1 |
2047 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2048 *${as_nl}ac_space=\ *)
2049 sed -n \
2050 "s/'\''/'\''\\\\'\'''\''/g;
2051 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2052 ;; #(
2053 *)
2054 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2055 ;;
2056 esac |
2057 sort
2058 )
2059 echo
2060
2061 printf "%s\n" "## ----------------- ##
2062 ## Output variables. ##
2063 ## ----------------- ##"
2064 echo
2065 for ac_var in $ac_subst_vars
2066 do
2067 eval ac_val=\$$ac_var
2068 case $ac_val in
2069 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2070 esac
2071 printf "%s\n" "$ac_var='\''$ac_val'\''"
2072 done | sort
2073 echo
2074
2075 if test -n "$ac_subst_files"; then
2076 printf "%s\n" "## ------------------- ##
2077 ## File substitutions. ##
2078 ## ------------------- ##"
2079 echo
2080 for ac_var in $ac_subst_files
2081 do
2082 eval ac_val=\$$ac_var
2083 case $ac_val in
2084 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2085 esac
2086 printf "%s\n" "$ac_var='\''$ac_val'\''"
2087 done | sort
2088 echo
2089 fi
2090
2091 if test -s confdefs.h; then
2092 printf "%s\n" "## ----------- ##
2093 ## confdefs.h. ##
2094 ## ----------- ##"
2095 echo
2096 cat confdefs.h
2097 echo
2098 fi
2099 test "$ac_signal" != 0 &&
2100 printf "%s\n" "$as_me: caught signal $ac_signal"
2101 printf "%s\n" "$as_me: exit $exit_status"
2102 } >&5
2103 rm -f core *.core core.conftest.* &&
2104 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2105 exit $exit_status
2106 ' 0
2107 for ac_signal in 1 2 13 15; do
2108 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2109 done
2110 ac_signal=0
2111
2112 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2113 rm -f -r conftest* confdefs.h
2114
2115 printf "%s\n" "/* confdefs.h */" > confdefs.h
2116
2117 # Predefined preprocessor variables.
2118
2119 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2120
2121 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2122
2123 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2124
2125 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2126
2127 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2128
2129 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2130
2131
2132 # Let the site file select an alternate cache file if it wants to.
2133 # Prefer an explicitly selected file to automatically selected ones.
2134 if test -n "$CONFIG_SITE"; then
2135 ac_site_files="$CONFIG_SITE"
2136 elif test "x$prefix" != xNONE; then
2137 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2138 else
2139 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2140 fi
2141
2142 for ac_site_file in $ac_site_files
2143 do
2144 case $ac_site_file in #(
2145 */*) :
2146 ;; #(
2147 *) :
2148 ac_site_file=./$ac_site_file ;;
2149 esac
2150 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2152 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2153 sed 's/^/| /' "$ac_site_file" >&5
2154 . "$ac_site_file" \
2155 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2156 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2157 as_fn_error $? "failed to load site script $ac_site_file
2158 See 'config.log' for more details" "$LINENO" 5; }
2159 fi
2160 done
2161
2162 if test -r "$cache_file"; then
2163 # Some versions of bash will fail to source /dev/null (special files
2164 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2165 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2167 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2168 case $cache_file in
2169 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2170 *) . "./$cache_file";;
2171 esac
2172 fi
2173 else
2174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2175 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2176 >$cache_file
2177 fi
2178
2179 # Test code for whether the C++ compiler supports C++98 (global declarations)
2180 ac_cxx_conftest_cxx98_globals='
2181 // Does the compiler advertise C++98 conformance?
2182 #if !defined __cplusplus || __cplusplus < 199711L
2183 # error "Compiler does not advertise C++98 conformance"
2184 #endif
2185
2186 // These inclusions are to reject old compilers that
2187 // lack the unsuffixed header files.
2188 #include <cstdlib>
2189 #include <exception>
2190
2191 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2192 extern void assert (int);
2193 namespace std {
2194 extern int strcmp (const char *, const char *);
2195 }
2196
2197 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2198 using std::exception;
2199 using std::strcmp;
2200
2201 namespace {
2202
2203 void test_exception_syntax()
2204 {
2205 try {
2206 throw "test";
2207 } catch (const char *s) {
2208 // Extra parentheses suppress a warning when building autoconf itself,
2209 // due to lint rules shared with more typical C programs.
2210 assert (!(strcmp) (s, "test"));
2211 }
2212 }
2213
2214 template <typename T> struct test_template
2215 {
2216 T const val;
2217 explicit test_template(T t) : val(t) {}
2218 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2219 };
2220
2221 } // anonymous namespace
2222 '
2223
2224 # Test code for whether the C++ compiler supports C++98 (body of main)
2225 ac_cxx_conftest_cxx98_main='
2226 assert (argc);
2227 assert (! argv[0]);
2228 {
2229 test_exception_syntax ();
2230 test_template<double> tt (2.0);
2231 assert (tt.add (4) == 6.0);
2232 assert (true && !false);
2233 }
2234 '
2235
2236 # Test code for whether the C++ compiler supports C++11 (global declarations)
2237 ac_cxx_conftest_cxx11_globals='
2238 // Does the compiler advertise C++ 2011 conformance?
2239 #if !defined __cplusplus || __cplusplus < 201103L
2240 # error "Compiler does not advertise C++11 conformance"
2241 #endif
2242
2243 namespace cxx11test
2244 {
2245 constexpr int get_val() { return 20; }
2246
2247 struct testinit
2248 {
2249 int i;
2250 double d;
2251 };
2252
2253 class delegate
2254 {
2255 public:
2256 delegate(int n) : n(n) {}
2257 delegate(): delegate(2354) {}
2258
2259 virtual int getval() { return this->n; };
2260 protected:
2261 int n;
2262 };
2263
2264 class overridden : public delegate
2265 {
2266 public:
2267 overridden(int n): delegate(n) {}
2268 virtual int getval() override final { return this->n * 2; }
2269 };
2270
2271 class nocopy
2272 {
2273 public:
2274 nocopy(int i): i(i) {}
2275 nocopy() = default;
2276 nocopy(const nocopy&) = delete;
2277 nocopy & operator=(const nocopy&) = delete;
2278 private:
2279 int i;
2280 };
2281
2282 // for testing lambda expressions
2283 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2284 {
2285 return f(v);
2286 }
2287
2288 // for testing variadic templates and trailing return types
2289 template <typename V> auto sum(V first) -> V
2290 {
2291 return first;
2292 }
2293 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2294 {
2295 return first + sum(rest...);
2296 }
2297 }
2298 '
2299
2300 # Test code for whether the C++ compiler supports C++11 (body of main)
2301 ac_cxx_conftest_cxx11_main='
2302 {
2303 // Test auto and decltype
2304 auto a1 = 6538;
2305 auto a2 = 48573953.4;
2306 auto a3 = "String literal";
2307
2308 int total = 0;
2309 for (auto i = a3; *i; ++i) { total += *i; }
2310
2311 decltype(a2) a4 = 34895.034;
2312 }
2313 {
2314 // Test constexpr
2315 short sa[cxx11test::get_val()] = { 0 };
2316 }
2317 {
2318 // Test initializer lists
2319 cxx11test::testinit il = { 4323, 435234.23544 };
2320 }
2321 {
2322 // Test range-based for
2323 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2324 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2325 for (auto &x : array) { x += 23; }
2326 }
2327 {
2328 // Test lambda expressions
2329 using cxx11test::eval;
2330 assert (eval ([](int x) { return x*2; }, 21) == 42);
2331 double d = 2.0;
2332 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2333 assert (d == 5.0);
2334 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2335 assert (d == 5.0);
2336 }
2337 {
2338 // Test use of variadic templates
2339 using cxx11test::sum;
2340 auto a = sum(1);
2341 auto b = sum(1, 2);
2342 auto c = sum(1.0, 2.0, 3.0);
2343 }
2344 {
2345 // Test constructor delegation
2346 cxx11test::delegate d1;
2347 cxx11test::delegate d2();
2348 cxx11test::delegate d3(45);
2349 }
2350 {
2351 // Test override and final
2352 cxx11test::overridden o1(55464);
2353 }
2354 {
2355 // Test nullptr
2356 char *c = nullptr;
2357 }
2358 {
2359 // Test template brackets
2360 test_template<::test_template<int>> v(test_template<int>(12));
2361 }
2362 {
2363 // Unicode literals
2364 char const *utf8 = u8"UTF-8 string \u2500";
2365 char16_t const *utf16 = u"UTF-8 string \u2500";
2366 char32_t const *utf32 = U"UTF-32 string \u2500";
2367 }
2368 '
2369
2370 # Test code for whether the C compiler supports C++11 (complete).
2371 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2372 ${ac_cxx_conftest_cxx11_globals}
2373
2374 int
2375 main (int argc, char **argv)
2376 {
2377 int ok = 0;
2378 ${ac_cxx_conftest_cxx98_main}
2379 ${ac_cxx_conftest_cxx11_main}
2380 return ok;
2381 }
2382 "
2383
2384 # Test code for whether the C compiler supports C++98 (complete).
2385 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2386 int
2387 main (int argc, char **argv)
2388 {
2389 int ok = 0;
2390 ${ac_cxx_conftest_cxx98_main}
2391 return ok;
2392 }
2393 "
2394
2395 # Test code for whether the C compiler supports C89 (global declarations)
2396 ac_c_conftest_c89_globals='
2397 /* Does the compiler advertise C89 conformance?
2398 Do not test the value of __STDC__, because some compilers set it to 0
2399 while being otherwise adequately conformant. */
2400 #if !defined __STDC__
2401 # error "Compiler does not advertise C89 conformance"
2402 #endif
2403
2404 #include <stddef.h>
2405 #include <stdarg.h>
2406 struct stat;
2407 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2408 struct buf { int x; };
2409 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2410 static char *e (char **p, int i)
2411 {
2412 return p[i];
2413 }
2414 static char *f (char * (*g) (char **, int), char **p, ...)
2415 {
2416 char *s;
2417 va_list v;
2418 va_start (v,p);
2419 s = g (p, va_arg (v,int));
2420 va_end (v);
2421 return s;
2422 }
2423
2424 /* C89 style stringification. */
2425 #define noexpand_stringify(a) #a
2426 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2427
2428 /* C89 style token pasting. Exercises some of the corner cases that
2429 e.g. old MSVC gets wrong, but not very hard. */
2430 #define noexpand_concat(a,b) a##b
2431 #define expand_concat(a,b) noexpand_concat(a,b)
2432 extern int vA;
2433 extern int vbee;
2434 #define aye A
2435 #define bee B
2436 int *pvA = &expand_concat(v,aye);
2437 int *pvbee = &noexpand_concat(v,bee);
2438
2439 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2440 function prototypes and stuff, but not \xHH hex character constants.
2441 These do not provoke an error unfortunately, instead are silently treated
2442 as an "x". The following induces an error, until -std is added to get
2443 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2444 array size at least. It is necessary to write \x00 == 0 to get something
2445 that is true only with -std. */
2446 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2447
2448 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2449 inside strings and character constants. */
2450 #define FOO(x) '\''x'\''
2451 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2452
2453 int test (int i, double x);
2454 struct s1 {int (*f) (int a);};
2455 struct s2 {int (*f) (double a);};
2456 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2457 int, int);'
2458
2459 # Test code for whether the C compiler supports C89 (body of main).
2460 ac_c_conftest_c89_main='
2461 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2462 '
2463
2464 # Test code for whether the C compiler supports C99 (global declarations)
2465 ac_c_conftest_c99_globals='
2466 /* Does the compiler advertise C99 conformance? */
2467 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2468 # error "Compiler does not advertise C99 conformance"
2469 #endif
2470
2471 // See if C++-style comments work.
2472
2473 #include <stdbool.h>
2474 extern int puts (const char *);
2475 extern int printf (const char *, ...);
2476 extern int dprintf (int, const char *, ...);
2477 extern void *malloc (size_t);
2478 extern void free (void *);
2479
2480 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2481 // dprintf is used instead of fprintf to avoid needing to declare
2482 // FILE and stderr.
2483 #define debug(...) dprintf (2, __VA_ARGS__)
2484 #define showlist(...) puts (#__VA_ARGS__)
2485 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2486 static void
2487 test_varargs_macros (void)
2488 {
2489 int x = 1234;
2490 int y = 5678;
2491 debug ("Flag");
2492 debug ("X = %d\n", x);
2493 showlist (The first, second, and third items.);
2494 report (x>y, "x is %d but y is %d", x, y);
2495 }
2496
2497 // Check long long types.
2498 #define BIG64 18446744073709551615ull
2499 #define BIG32 4294967295ul
2500 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2501 #if !BIG_OK
2502 #error "your preprocessor is broken"
2503 #endif
2504 #if BIG_OK
2505 #else
2506 #error "your preprocessor is broken"
2507 #endif
2508 static long long int bignum = -9223372036854775807LL;
2509 static unsigned long long int ubignum = BIG64;
2510
2511 struct incomplete_array
2512 {
2513 int datasize;
2514 double data[];
2515 };
2516
2517 struct named_init {
2518 int number;
2519 const wchar_t *name;
2520 double average;
2521 };
2522
2523 typedef const char *ccp;
2524
2525 static inline int
2526 test_restrict (ccp restrict text)
2527 {
2528 // Iterate through items via the restricted pointer.
2529 // Also check for declarations in for loops.
2530 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2531 continue;
2532 return 0;
2533 }
2534
2535 // Check varargs and va_copy.
2536 static bool
2537 test_varargs (const char *format, ...)
2538 {
2539 va_list args;
2540 va_start (args, format);
2541 va_list args_copy;
2542 va_copy (args_copy, args);
2543
2544 const char *str = "";
2545 int number = 0;
2546 float fnumber = 0;
2547
2548 while (*format)
2549 {
2550 switch (*format++)
2551 {
2552 case '\''s'\'': // string
2553 str = va_arg (args_copy, const char *);
2554 break;
2555 case '\''d'\'': // int
2556 number = va_arg (args_copy, int);
2557 break;
2558 case '\''f'\'': // float
2559 fnumber = va_arg (args_copy, double);
2560 break;
2561 default:
2562 break;
2563 }
2564 }
2565 va_end (args_copy);
2566 va_end (args);
2567
2568 return *str && number && fnumber;
2569 }
2570 '
2571
2572 # Test code for whether the C compiler supports C99 (body of main).
2573 ac_c_conftest_c99_main='
2574 // Check bool.
2575 _Bool success = false;
2576 success |= (argc != 0);
2577
2578 // Check restrict.
2579 if (test_restrict ("String literal") == 0)
2580 success = true;
2581 char *restrict newvar = "Another string";
2582
2583 // Check varargs.
2584 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2585 test_varargs_macros ();
2586
2587 // Check flexible array members.
2588 struct incomplete_array *ia =
2589 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2590 ia->datasize = 10;
2591 for (int i = 0; i < ia->datasize; ++i)
2592 ia->data[i] = i * 1.234;
2593 // Work around memory leak warnings.
2594 free (ia);
2595
2596 // Check named initializers.
2597 struct named_init ni = {
2598 .number = 34,
2599 .name = L"Test wide string",
2600 .average = 543.34343,
2601 };
2602
2603 ni.number = 58;
2604
2605 int dynamic_array[ni.number];
2606 dynamic_array[0] = argv[0][0];
2607 dynamic_array[ni.number - 1] = 543;
2608
2609 // work around unused variable warnings
2610 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2611 || dynamic_array[ni.number - 1] != 543);
2612 '
2613
2614 # Test code for whether the C compiler supports C11 (global declarations)
2615 ac_c_conftest_c11_globals='
2616 /* Does the compiler advertise C11 conformance? */
2617 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2618 # error "Compiler does not advertise C11 conformance"
2619 #endif
2620
2621 // Check _Alignas.
2622 char _Alignas (double) aligned_as_double;
2623 char _Alignas (0) no_special_alignment;
2624 extern char aligned_as_int;
2625 char _Alignas (0) _Alignas (int) aligned_as_int;
2626
2627 // Check _Alignof.
2628 enum
2629 {
2630 int_alignment = _Alignof (int),
2631 int_array_alignment = _Alignof (int[100]),
2632 char_alignment = _Alignof (char)
2633 };
2634 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2635
2636 // Check _Noreturn.
2637 int _Noreturn does_not_return (void) { for (;;) continue; }
2638
2639 // Check _Static_assert.
2640 struct test_static_assert
2641 {
2642 int x;
2643 _Static_assert (sizeof (int) <= sizeof (long int),
2644 "_Static_assert does not work in struct");
2645 long int y;
2646 };
2647
2648 // Check UTF-8 literals.
2649 #define u8 syntax error!
2650 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2651
2652 // Check duplicate typedefs.
2653 typedef long *long_ptr;
2654 typedef long int *long_ptr;
2655 typedef long_ptr long_ptr;
2656
2657 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2658 struct anonymous
2659 {
2660 union {
2661 struct { int i; int j; };
2662 struct { int k; long int l; } w;
2663 };
2664 int m;
2665 } v1;
2666 '
2667
2668 # Test code for whether the C compiler supports C11 (body of main).
2669 ac_c_conftest_c11_main='
2670 _Static_assert ((offsetof (struct anonymous, i)
2671 == offsetof (struct anonymous, w.k)),
2672 "Anonymous union alignment botch");
2673 v1.i = 2;
2674 v1.w.k = 5;
2675 ok |= v1.i != 5;
2676 '
2677
2678 # Test code for whether the C compiler supports C11 (complete).
2679 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2680 ${ac_c_conftest_c99_globals}
2681 ${ac_c_conftest_c11_globals}
2682
2683 int
2684 main (int argc, char **argv)
2685 {
2686 int ok = 0;
2687 ${ac_c_conftest_c89_main}
2688 ${ac_c_conftest_c99_main}
2689 ${ac_c_conftest_c11_main}
2690 return ok;
2691 }
2692 "
2693
2694 # Test code for whether the C compiler supports C99 (complete).
2695 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2696 ${ac_c_conftest_c99_globals}
2697
2698 int
2699 main (int argc, char **argv)
2700 {
2701 int ok = 0;
2702 ${ac_c_conftest_c89_main}
2703 ${ac_c_conftest_c99_main}
2704 return ok;
2705 }
2706 "
2707
2708 # Test code for whether the C compiler supports C89 (complete).
2709 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2710
2711 int
2712 main (int argc, char **argv)
2713 {
2714 int ok = 0;
2715 ${ac_c_conftest_c89_main}
2716 return ok;
2717 }
2718 "
2719
2720 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2721 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2722 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2723 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2724 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2725 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2726 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2727 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2728 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2729
2730 # Auxiliary files required by this configure script.
2731 ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2732
2733 # Locations in which to look for auxiliary files.
2734 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2735
2736 # Search for a directory containing all of the required auxiliary files,
2737 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2738 # If we don't find one directory that contains all the files we need,
2739 # we report the set of missing files from the *first* directory in
2740 # $ac_aux_dir_candidates and give up.
2741 ac_missing_aux_files=""
2742 ac_first_candidate=:
2743 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 as_found=false
2746 for as_dir in $ac_aux_dir_candidates
2747 do
2748 IFS=$as_save_IFS
2749 case $as_dir in #(((
2750 '') as_dir=./ ;;
2751 */) ;;
2752 *) as_dir=$as_dir/ ;;
2753 esac
2754 as_found=:
2755
2756 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2757 ac_aux_dir_found=yes
2758 ac_install_sh=
2759 for ac_aux in $ac_aux_files
2760 do
2761 # As a special case, if "install-sh" is required, that requirement
2762 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2763 # and $ac_install_sh is set appropriately for whichever one is found.
2764 if test x"$ac_aux" = x"install-sh"
2765 then
2766 if test -f "${as_dir}install-sh"; then
2767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2768 ac_install_sh="${as_dir}install-sh -c"
2769 elif test -f "${as_dir}install.sh"; then
2770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2771 ac_install_sh="${as_dir}install.sh -c"
2772 elif test -f "${as_dir}shtool"; then
2773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2774 ac_install_sh="${as_dir}shtool install -c"
2775 else
2776 ac_aux_dir_found=no
2777 if $ac_first_candidate; then
2778 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2779 else
2780 break
2781 fi
2782 fi
2783 else
2784 if test -f "${as_dir}${ac_aux}"; then
2785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2786 else
2787 ac_aux_dir_found=no
2788 if $ac_first_candidate; then
2789 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2790 else
2791 break
2792 fi
2793 fi
2794 fi
2795 done
2796 if test "$ac_aux_dir_found" = yes; then
2797 ac_aux_dir="$as_dir"
2798 break
2799 fi
2800 ac_first_candidate=false
2801
2802 as_found=false
2803 done
2804 IFS=$as_save_IFS
2805 if $as_found
2806 then :
2807
2808 else case e in #(
2809 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2810 esac
2811 fi
2812
2813
2814 # These three variables are undocumented and unsupported,
2815 # and are intended to be withdrawn in a future Autoconf release.
2816 # They can cause serious problems if a builder's source tree is in a directory
2817 # whose full name contains unusual characters.
2818 if test -f "${ac_aux_dir}config.guess"; then
2819 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2820 fi
2821 if test -f "${ac_aux_dir}config.sub"; then
2822 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2823 fi
2824 if test -f "$ac_aux_dir/configure"; then
2825 ac_configure="$SHELL ${ac_aux_dir}configure"
2826 fi
2827
2828 # Check that the precious variables saved in the cache have kept the same
2829 # value.
2830 ac_cache_corrupted=false
2831 for ac_var in $ac_precious_vars; do
2832 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2833 eval ac_new_set=\$ac_env_${ac_var}_set
2834 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2835 eval ac_new_val=\$ac_env_${ac_var}_value
2836 case $ac_old_set,$ac_new_set in
2837 set,)
2838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2839 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2840 ac_cache_corrupted=: ;;
2841 ,set)
2842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2843 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2844 ac_cache_corrupted=: ;;
2845 ,);;
2846 *)
2847 if test "x$ac_old_val" != "x$ac_new_val"; then
2848 # differences in whitespace do not lead to failure.
2849 ac_old_val_w=`echo x $ac_old_val`
2850 ac_new_val_w=`echo x $ac_new_val`
2851 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2853 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2854 ac_cache_corrupted=:
2855 else
2856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2857 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2858 eval $ac_var=\$ac_old_val
2859 fi
2860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2861 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2863 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2864 fi;;
2865 esac
2866 # Pass precious variables to config.status.
2867 if test "$ac_new_set" = set; then
2868 case $ac_new_val in
2869 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2870 *) ac_arg=$ac_var=$ac_new_val ;;
2871 esac
2872 case " $ac_configure_args " in
2873 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2874 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2875 esac
2876 fi
2877 done
2878 if $ac_cache_corrupted; then
2879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2880 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2882 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2883 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2884 and start over" "$LINENO" 5
2885 fi
2886 ## -------------------- ##
2887 ## Main body of script. ##
2888 ## -------------------- ##
2889
2890 ac_ext=c
2891 ac_cpp='$CPP $CPPFLAGS'
2892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2895
2896
2897 am__api_version='1.18'
2898
2899
2900
2901 # Find a good install program. We prefer a C program (faster),
2902 # so one script is as good as another. But avoid the broken or
2903 # incompatible versions:
2904 # SysV /etc/install, /usr/sbin/install
2905 # SunOS /usr/etc/install
2906 # IRIX /sbin/install
2907 # AIX /bin/install
2908 # AmigaOS /C/install, which installs bootblocks on floppy discs
2909 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2910 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2911 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2912 # OS/2's system install, which has a completely different semantic
2913 # ./install, which can be erroneously created by make from ./install.sh.
2914 # Reject install programs that cannot install multiple files.
2915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2916 printf %s "checking for a BSD-compatible install... " >&6; }
2917 if test -z "$INSTALL"; then
2918 if test ${ac_cv_path_install+y}
2919 then :
2920 printf %s "(cached) " >&6
2921 else case e in #(
2922 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH
2924 do
2925 IFS=$as_save_IFS
2926 case $as_dir in #(((
2927 '') as_dir=./ ;;
2928 */) ;;
2929 *) as_dir=$as_dir/ ;;
2930 esac
2931 # Account for fact that we put trailing slashes in our PATH walk.
2932 case $as_dir in #((
2933 ./ | /[cC]/* | \
2934 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2935 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2936 /usr/ucb/* ) ;;
2937 *)
2938 # OSF1 and SCO ODT 3.0 have their own names for install.
2939 # Don't use installbsd from OSF since it installs stuff as root
2940 # by default.
2941 for ac_prog in ginstall scoinst install; do
2942 for ac_exec_ext in '' $ac_executable_extensions; do
2943 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2944 if test $ac_prog = install &&
2945 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2946 # AIX install. It has an incompatible calling convention.
2947 :
2948 elif test $ac_prog = install &&
2949 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2950 # program-specific install script used by HP pwplus--don't use.
2951 :
2952 else
2953 rm -rf conftest.one conftest.two conftest.dir
2954 echo one > conftest.one
2955 echo two > conftest.two
2956 mkdir conftest.dir
2957 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2958 test -s conftest.one && test -s conftest.two &&
2959 test -s conftest.dir/conftest.one &&
2960 test -s conftest.dir/conftest.two
2961 then
2962 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2963 break 3
2964 fi
2965 fi
2966 fi
2967 done
2968 done
2969 ;;
2970 esac
2971
2972 done
2973 IFS=$as_save_IFS
2974
2975 rm -rf conftest.one conftest.two conftest.dir
2976 ;;
2977 esac
2978 fi
2979 if test ${ac_cv_path_install+y}; then
2980 INSTALL=$ac_cv_path_install
2981 else
2982 # As a last resort, use the slow shell script. Don't cache a
2983 # value for INSTALL within a source directory, because that will
2984 # break other packages using the cache if that directory is
2985 # removed, or if the value is a relative name.
2986 INSTALL=$ac_install_sh
2987 fi
2988 fi
2989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2990 printf "%s\n" "$INSTALL" >&6; }
2991
2992 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2993 # It thinks the first close brace ends the variable substitution.
2994 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2995
2996 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2997
2998 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2999
3000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3001 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3002 if test ${am_cv_sleep_fractional_seconds+y}
3003 then :
3004 printf %s "(cached) " >&6
3005 else case e in #(
3006 e) if sleep 0.001 2>/dev/null
3007 then :
3008 am_cv_sleep_fractional_seconds=yes
3009 else case e in #(
3010 e) am_cv_sleep_fractional_seconds=no ;;
3011 esac
3012 fi
3013 ;;
3014 esac
3015 fi
3016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3017 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3018
3019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3020 printf %s "checking filesystem timestamp resolution... " >&6; }
3021 if test ${am_cv_filesystem_timestamp_resolution+y}
3022 then :
3023 printf %s "(cached) " >&6
3024 else case e in #(
3025 e) # Default to the worst case.
3026 am_cv_filesystem_timestamp_resolution=2
3027
3028 # Only try to go finer than 1 sec if sleep can do it.
3029 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3030 # - 1 sec is not much of a win compared to 2 sec, and
3031 # - it takes 2 seconds to perform the test whether 1 sec works.
3032 #
3033 # Instead, just use the default 2s on platforms that have 1s resolution,
3034 # accept the extra 1s delay when using $sleep in the Automake tests, in
3035 # exchange for not incurring the 2s delay for running the test for all
3036 # packages.
3037 #
3038 am_try_resolutions=
3039 if test "$am_cv_sleep_fractional_seconds" = yes; then
3040 # Even a millisecond often causes a bunch of false positives,
3041 # so just try a hundredth of a second. The time saved between .001 and
3042 # .01 is not terribly consequential.
3043 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3044 fi
3045
3046 # In order to catch current-generation FAT out, we must *modify* files
3047 # that already exist; the *creation* timestamp is finer. Use names
3048 # that make ls -t sort them differently when they have equal
3049 # timestamps than when they have distinct timestamps, keeping
3050 # in mind that ls -t prints the *newest* file first.
3051 rm -f conftest.ts?
3052 : > conftest.ts1
3053 : > conftest.ts2
3054 : > conftest.ts3
3055
3056 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3057 # clobber the current shell's arguments. (Outer-level square brackets
3058 # are removed by m4; they're present so that m4 does not expand
3059 # <dollar><star>; be careful, easy to get confused.)
3060 if (
3061 set X `ls -t conftest.ts[12]` &&
3062 {
3063 test "$*" != "X conftest.ts1 conftest.ts2" ||
3064 test "$*" != "X conftest.ts2 conftest.ts1";
3065 }
3066 ); then :; else
3067 # If neither matched, then we have a broken ls. This can happen
3068 # if, for instance, CONFIG_SHELL is bash and it inherits a
3069 # broken ls alias from the environment. This has actually
3070 # happened. Such a system could not be considered "sane".
3071 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3072 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3073 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3074 as_fn_error $? "ls -t produces unexpected output.
3075 Make sure there is not a broken ls alias in your environment.
3076 See 'config.log' for more details" "$LINENO" 5; }
3077 fi
3078
3079 for am_try_res in $am_try_resolutions; do
3080 # Any one fine-grained sleep might happen to cross the boundary
3081 # between two values of a coarser actual resolution, but if we do
3082 # two fine-grained sleeps in a row, at least one of them will fall
3083 # entirely within a coarse interval.
3084 echo alpha > conftest.ts1
3085 sleep $am_try_res
3086 echo beta > conftest.ts2
3087 sleep $am_try_res
3088 echo gamma > conftest.ts3
3089
3090 # We assume that 'ls -t' will make use of high-resolution
3091 # timestamps if the operating system supports them at all.
3092 if (set X `ls -t conftest.ts?` &&
3093 test "$2" = conftest.ts3 &&
3094 test "$3" = conftest.ts2 &&
3095 test "$4" = conftest.ts1); then
3096 #
3097 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3098 # because we don't need to test make.
3099 make_ok=true
3100 if test $am_try_res != 1; then
3101 # But if we've succeeded so far with a subsecond resolution, we
3102 # have one more thing to check: make. It can happen that
3103 # everything else supports the subsecond mtimes, but make doesn't;
3104 # notably on macOS, which ships make 3.81 from 2006 (the last one
3105 # released under GPLv2). https://bugs.gnu.org/68808
3106 #
3107 # We test $MAKE if it is defined in the environment, else "make".
3108 # It might get overridden later, but our hope is that in practice
3109 # it does not matter: it is the system "make" which is (by far)
3110 # the most likely to be broken, whereas if the user overrides it,
3111 # probably they did so with a better, or at least not worse, make.
3112 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3113 #
3114 # Create a Makefile (real tab character here):
3115 rm -f conftest.mk
3116 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3117 echo ' touch conftest.ts2' >>conftest.mk
3118 #
3119 # Now, running
3120 # touch conftest.ts1; touch conftest.ts2; make
3121 # should touch ts1 because ts2 is newer. This could happen by luck,
3122 # but most often, it will fail if make's support is insufficient. So
3123 # test for several consecutive successes.
3124 #
3125 # (We reuse conftest.ts[12] because we still want to modify existing
3126 # files, not create new ones, per above.)
3127 n=0
3128 make=${MAKE-make}
3129 until test $n -eq 3; do
3130 echo one > conftest.ts1
3131 sleep $am_try_res
3132 echo two > conftest.ts2 # ts2 should now be newer than ts1
3133 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3134 make_ok=false
3135 break # out of $n loop
3136 fi
3137 n=`expr $n + 1`
3138 done
3139 fi
3140 #
3141 if $make_ok; then
3142 # Everything we know to check worked out, so call this resolution good.
3143 am_cv_filesystem_timestamp_resolution=$am_try_res
3144 break # out of $am_try_res loop
3145 fi
3146 # Otherwise, we'll go on to check the next resolution.
3147 fi
3148 done
3149 rm -f conftest.ts?
3150 # (end _am_filesystem_timestamp_resolution)
3151 ;;
3152 esac
3153 fi
3154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3155 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3156
3157 # This check should not be cached, as it may vary across builds of
3158 # different projects.
3159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3160 printf %s "checking whether build environment is sane... " >&6; }
3161 # Reject unsafe characters in $srcdir or the absolute working directory
3162 # name. Accept space and tab only in the latter.
3163 am_lf='
3164 '
3165 case `pwd` in
3166 *[\\\"\#\$\&\'\`$am_lf]*)
3167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3168 printf "%s\n" "no" >&6; }
3169 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3170 esac
3171 case $srcdir in
3172 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174 printf "%s\n" "no" >&6; }
3175 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3176 esac
3177
3178 # Do 'set' in a subshell so we don't clobber the current shell's
3179 # arguments. Must try -L first in case configure is actually a
3180 # symlink; some systems play weird games with the mod time of symlinks
3181 # (eg FreeBSD returns the mod time of the symlink's containing
3182 # directory).
3183 am_build_env_is_sane=no
3184 am_has_slept=no
3185 rm -f conftest.file
3186 for am_try in 1 2; do
3187 echo "timestamp, slept: $am_has_slept" > conftest.file
3188 if (
3189 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3190 if test "$*" = "X"; then
3191 # -L didn't work.
3192 set X `ls -t "$srcdir/configure" conftest.file`
3193 fi
3194 test "$2" = conftest.file
3195 ); then
3196 am_build_env_is_sane=yes
3197 break
3198 fi
3199 # Just in case.
3200 sleep "$am_cv_filesystem_timestamp_resolution"
3201 am_has_slept=yes
3202 done
3203
3204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3205 printf "%s\n" "$am_build_env_is_sane" >&6; }
3206 if test "$am_build_env_is_sane" = no; then
3207 as_fn_error $? "newly created file is older than distributed files!
3208 Check your system clock" "$LINENO" 5
3209 fi
3210
3211 # If we didn't sleep, we still need to ensure time stamps of config.status and
3212 # generated files are strictly newer.
3213 am_sleep_pid=
3214 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3215 then :
3216
3217 else case e in #(
3218 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3219 am_sleep_pid=$!
3220 ;;
3221 esac
3222 fi
3223
3224 rm -f conftest.file
3225
3226 test "$program_prefix" != NONE &&
3227 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3228 # Use a double $ so make ignores it.
3229 test "$program_suffix" != NONE &&
3230 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3231 # Double any \ or $.
3232 # By default was 's,x,x', remove it if useless.
3233 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3234 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3235
3236
3237 # Expand $ac_aux_dir to an absolute path.
3238 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3239
3240
3241 if test x"${MISSING+set}" != xset; then
3242 MISSING="\${SHELL} '$am_aux_dir/missing'"
3243 fi
3244 # Use eval to expand $SHELL
3245 if eval "$MISSING --is-lightweight"; then
3246 am_missing_run="$MISSING "
3247 else
3248 am_missing_run=
3249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3250 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3251 fi
3252
3253 if test x"${install_sh+set}" != xset; then
3254 case $am_aux_dir in
3255 *\ * | *\ *)
3256 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3257 *)
3258 install_sh="\${SHELL} $am_aux_dir/install-sh"
3259 esac
3260 fi
3261
3262 # Installed binaries are usually stripped using 'strip' when the user
3263 # run "make install-strip". However 'strip' might not be the right
3264 # tool to use in cross-compilation environments, therefore Automake
3265 # will honor the 'STRIP' environment variable to overrule this program.
3266 if test "$cross_compiling" != no; then
3267 if test -n "$ac_tool_prefix"; then
3268 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3269 set dummy ${ac_tool_prefix}strip; ac_word=$2
3270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3271 printf %s "checking for $ac_word... " >&6; }
3272 if test ${ac_cv_prog_STRIP+y}
3273 then :
3274 printf %s "(cached) " >&6
3275 else case e in #(
3276 e) if test -n "$STRIP"; then
3277 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3278 else
3279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 for as_dir in $PATH
3281 do
3282 IFS=$as_save_IFS
3283 case $as_dir in #(((
3284 '') as_dir=./ ;;
3285 */) ;;
3286 *) as_dir=$as_dir/ ;;
3287 esac
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3290 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3291 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3292 break 2
3293 fi
3294 done
3295 done
3296 IFS=$as_save_IFS
3297
3298 fi ;;
3299 esac
3300 fi
3301 STRIP=$ac_cv_prog_STRIP
3302 if test -n "$STRIP"; then
3303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3304 printf "%s\n" "$STRIP" >&6; }
3305 else
3306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 printf "%s\n" "no" >&6; }
3308 fi
3309
3310
3311 fi
3312 if test -z "$ac_cv_prog_STRIP"; then
3313 ac_ct_STRIP=$STRIP
3314 # Extract the first word of "strip", so it can be a program name with args.
3315 set dummy strip; ac_word=$2
3316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3317 printf %s "checking for $ac_word... " >&6; }
3318 if test ${ac_cv_prog_ac_ct_STRIP+y}
3319 then :
3320 printf %s "(cached) " >&6
3321 else case e in #(
3322 e) if test -n "$ac_ct_STRIP"; then
3323 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3324 else
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 for as_dir in $PATH
3327 do
3328 IFS=$as_save_IFS
3329 case $as_dir in #(((
3330 '') as_dir=./ ;;
3331 */) ;;
3332 *) as_dir=$as_dir/ ;;
3333 esac
3334 for ac_exec_ext in '' $ac_executable_extensions; do
3335 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3336 ac_cv_prog_ac_ct_STRIP="strip"
3337 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3338 break 2
3339 fi
3340 done
3341 done
3342 IFS=$as_save_IFS
3343
3344 fi ;;
3345 esac
3346 fi
3347 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3348 if test -n "$ac_ct_STRIP"; then
3349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3350 printf "%s\n" "$ac_ct_STRIP" >&6; }
3351 else
3352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353 printf "%s\n" "no" >&6; }
3354 fi
3355
3356 if test "x$ac_ct_STRIP" = x; then
3357 STRIP=":"
3358 else
3359 case $cross_compiling:$ac_tool_warned in
3360 yes:)
3361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3362 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3363 ac_tool_warned=yes ;;
3364 esac
3365 STRIP=$ac_ct_STRIP
3366 fi
3367 else
3368 STRIP="$ac_cv_prog_STRIP"
3369 fi
3370
3371 fi
3372 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3373
3374
3375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3376 printf %s "checking for a race-free mkdir -p... " >&6; }
3377 if test -z "$MKDIR_P"; then
3378 if test ${ac_cv_path_mkdir+y}
3379 then :
3380 printf %s "(cached) " >&6
3381 else case e in #(
3382 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3383 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3384 do
3385 IFS=$as_save_IFS
3386 case $as_dir in #(((
3387 '') as_dir=./ ;;
3388 */) ;;
3389 *) as_dir=$as_dir/ ;;
3390 esac
3391 for ac_prog in mkdir gmkdir; do
3392 for ac_exec_ext in '' $ac_executable_extensions; do
3393 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3394 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3395 'mkdir ('*'coreutils) '* | \
3396 *'BusyBox '* | \
3397 'mkdir (fileutils) '4.1*)
3398 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3399 break 3;;
3400 esac
3401 done
3402 done
3403 done
3404 IFS=$as_save_IFS
3405 ;;
3406 esac
3407 fi
3408
3409 test -d ./--version && rmdir ./--version
3410 if test ${ac_cv_path_mkdir+y}; then
3411 MKDIR_P="$ac_cv_path_mkdir -p"
3412 else
3413 # As a last resort, use plain mkdir -p,
3414 # in the hope it doesn't have the bugs of ancient mkdir.
3415 MKDIR_P='mkdir -p'
3416 fi
3417 fi
3418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3419 printf "%s\n" "$MKDIR_P" >&6; }
3420
3421 for ac_prog in gawk mawk nawk awk
3422 do
3423 # Extract the first word of "$ac_prog", so it can be a program name with args.
3424 set dummy $ac_prog; ac_word=$2
3425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3426 printf %s "checking for $ac_word... " >&6; }
3427 if test ${ac_cv_prog_AWK+y}
3428 then :
3429 printf %s "(cached) " >&6
3430 else case e in #(
3431 e) if test -n "$AWK"; then
3432 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3433 else
3434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3435 for as_dir in $PATH
3436 do
3437 IFS=$as_save_IFS
3438 case $as_dir in #(((
3439 '') as_dir=./ ;;
3440 */) ;;
3441 *) as_dir=$as_dir/ ;;
3442 esac
3443 for ac_exec_ext in '' $ac_executable_extensions; do
3444 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3445 ac_cv_prog_AWK="$ac_prog"
3446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3447 break 2
3448 fi
3449 done
3450 done
3451 IFS=$as_save_IFS
3452
3453 fi ;;
3454 esac
3455 fi
3456 AWK=$ac_cv_prog_AWK
3457 if test -n "$AWK"; then
3458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3459 printf "%s\n" "$AWK" >&6; }
3460 else
3461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3462 printf "%s\n" "no" >&6; }
3463 fi
3464
3465
3466 test -n "$AWK" && break
3467 done
3468
3469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3470 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3471 set x ${MAKE-make}
3472 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3473 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3474 then :
3475 printf %s "(cached) " >&6
3476 else case e in #(
3477 e) cat >conftest.make <<\_ACEOF
3478 SHELL = /bin/sh
3479 all:
3480 @echo '@@@%%%=$(MAKE)=@@@%%%'
3481 _ACEOF
3482 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3483 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3484 *@@@%%%=?*=@@@%%%*)
3485 eval ac_cv_prog_make_${ac_make}_set=yes;;
3486 *)
3487 eval ac_cv_prog_make_${ac_make}_set=no;;
3488 esac
3489 rm -f conftest.make ;;
3490 esac
3491 fi
3492 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3494 printf "%s\n" "yes" >&6; }
3495 SET_MAKE=
3496 else
3497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3498 printf "%s\n" "no" >&6; }
3499 SET_MAKE="MAKE=${MAKE-make}"
3500 fi
3501
3502 rm -rf .tst 2>/dev/null
3503 mkdir .tst 2>/dev/null
3504 if test -d .tst; then
3505 am__leading_dot=.
3506 else
3507 am__leading_dot=_
3508 fi
3509 rmdir .tst 2>/dev/null
3510
3511 AM_DEFAULT_VERBOSITY=1
3512 # Check whether --enable-silent-rules was given.
3513 if test ${enable_silent_rules+y}
3514 then :
3515 enableval=$enable_silent_rules;
3516 fi
3517
3518 am_make=${MAKE-make}
3519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3520 printf %s "checking whether $am_make supports nested variables... " >&6; }
3521 if test ${am_cv_make_support_nested_variables+y}
3522 then :
3523 printf %s "(cached) " >&6
3524 else case e in #(
3525 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3526 BAR0=false
3527 BAR1=true
3528 V=1
3529 am__doit:
3530 @$(TRUE)
3531 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3532 am_cv_make_support_nested_variables=yes
3533 else
3534 am_cv_make_support_nested_variables=no
3535 fi ;;
3536 esac
3537 fi
3538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3539 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3540 AM_BACKSLASH='\'
3541
3542 am__rm_f_notfound=
3543 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3544 then :
3545
3546 else case e in #(
3547 e) am__rm_f_notfound='""' ;;
3548 esac
3549 fi
3550
3551
3552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3553 printf %s "checking xargs -n works... " >&6; }
3554 if test ${am_cv_xargs_n_works+y}
3555 then :
3556 printf %s "(cached) " >&6
3557 else case e in #(
3558 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3559 3"
3560 then :
3561 am_cv_xargs_n_works=yes
3562 else case e in #(
3563 e) am_cv_xargs_n_works=no ;;
3564 esac
3565 fi ;;
3566 esac
3567 fi
3568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3569 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3570 if test "$am_cv_xargs_n_works" = yes
3571 then :
3572 am__xargs_n='xargs -n'
3573 else case e in #(
3574 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3575 ;;
3576 esac
3577 fi
3578
3579 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3580 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3581 # is not polluted with repeated "-I."
3582 am__isrc=' -I$(srcdir)'
3583 # test to see if srcdir already configured
3584 if test -f $srcdir/config.status; then
3585 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3586 fi
3587 fi
3588
3589 # test whether we have cygpath
3590 if test -z "$CYGPATH_W"; then
3591 if (cygpath --version) >/dev/null 2>/dev/null; then
3592 CYGPATH_W='cygpath -w'
3593 else
3594 CYGPATH_W=echo
3595 fi
3596 fi
3597
3598
3599 # Define the identity of the package.
3600 PACKAGE='gpt'
3601 VERSION='1.2.0'
3602
3603
3604 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3605
3606
3607 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3608
3609 # Some tools Automake needs.
3610
3611 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3612
3613
3614 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3615
3616
3617 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3618
3619
3620 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3621
3622
3623 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3624
3625 # For better backward compatibility. To be removed once Automake 1.9.x
3626 # dies out for good. For more background, see:
3627 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3628 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3629 mkdir_p='$(MKDIR_P)'
3630
3631 # We need awk for the "check" target (and possibly the TAP driver). The
3632 # system "awk" is bad on some platforms.
3633 # Always define AMTAR for backward compatibility. Yes, it's still used
3634 # in the wild :-( We should find a proper way to deprecate it ...
3635 AMTAR='$${TAR-tar}'
3636
3637
3638 # We'll loop over all known methods to create a tar archive until one works.
3639 _am_tools='gnutar plaintar pax cpio none'
3640
3641 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3642 # There is notably a 21 bits limit for the UID and the GID. In fact,
3643 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3644 # and bug#13588).
3645 am_max_uid=2097151 # 2^21 - 1
3646 am_max_gid=$am_max_uid
3647 # The $UID and $GID variables are not portable, so we need to resort
3648 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3649 # below are definitely unexpected, so allow the users to see them
3650 # (that is, avoid stderr redirection).
3651 am_uid=`id -u || echo unknown`
3652 am_gid=`id -g || echo unknown`
3653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3654 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3655 if test x$am_uid = xunknown; then
3656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
3657 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
3658 elif test $am_uid -le $am_max_uid; then
3659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3660 printf "%s\n" "yes" >&6; }
3661 else
3662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3663 printf "%s\n" "no" >&6; }
3664 _am_tools=none
3665 fi
3666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3667 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3668 if test x$gm_gid = xunknown; then
3669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
3670 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
3671 elif test $am_gid -le $am_max_gid; then
3672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3673 printf "%s\n" "yes" >&6; }
3674 else
3675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3676 printf "%s\n" "no" >&6; }
3677 _am_tools=none
3678 fi
3679
3680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3681 printf %s "checking how to create a ustar tar archive... " >&6; }
3682
3683 # Go ahead even if we have the value already cached. We do so because we
3684 # need to set the values for the 'am__tar' and 'am__untar' variables.
3685 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3686
3687 for _am_tool in $_am_tools; do
3688 case $_am_tool in
3689 gnutar)
3690 for _am_tar in tar gnutar gtar; do
3691 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3692 ($_am_tar --version) >&5 2>&5
3693 ac_status=$?
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); } && break
3696 done
3697 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3698 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3699 am__untar="$_am_tar -xf -"
3700 ;;
3701 plaintar)
3702 # Must skip GNU tar: if it does not support --format= it doesn't create
3703 # ustar tarball either.
3704 (tar --version) >/dev/null 2>&1 && continue
3705 am__tar='tar chf - "$$tardir"'
3706 am__tar_='tar chf - "$tardir"'
3707 am__untar='tar xf -'
3708 ;;
3709 pax)
3710 am__tar='pax -L -x ustar -w "$$tardir"'
3711 am__tar_='pax -L -x ustar -w "$tardir"'
3712 am__untar='pax -r'
3713 ;;
3714 cpio)
3715 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3716 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3717 am__untar='cpio -i -H ustar -d'
3718 ;;
3719 none)
3720 am__tar=false
3721 am__tar_=false
3722 am__untar=false
3723 ;;
3724 esac
3725
3726 # If the value was cached, stop now. We just wanted to have am__tar
3727 # and am__untar set.
3728 test -n "${am_cv_prog_tar_ustar}" && break
3729
3730 # tar/untar a dummy directory, and stop if the command works.
3731 rm -rf conftest.dir
3732 mkdir conftest.dir
3733 echo GrepMe > conftest.dir/file
3734 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3735 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3736 ac_status=$?
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); }
3739 rm -rf conftest.dir
3740 if test -s conftest.tar; then
3741 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3742 ($am__untar <conftest.tar) >&5 2>&5
3743 ac_status=$?
3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745 (exit $ac_status); }
3746 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3747 (cat conftest.dir/file) >&5 2>&5
3748 ac_status=$?
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); }
3751 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3752 fi
3753 done
3754 rm -rf conftest.dir
3755
3756 if test ${am_cv_prog_tar_ustar+y}
3757 then :
3758 printf %s "(cached) " >&6
3759 else case e in #(
3760 e) am_cv_prog_tar_ustar=$_am_tool ;;
3761 esac
3762 fi
3763
3764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3765 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
3766
3767
3768
3769
3770
3771 # Variables for tags utilities; see am/tags.am
3772 if test -z "$CTAGS"; then
3773 CTAGS=ctags
3774 fi
3775
3776 if test -z "$ETAGS"; then
3777 ETAGS=etags
3778 fi
3779
3780 if test -z "$CSCOPE"; then
3781 CSCOPE=cscope
3782 fi
3783
3784
3785
3786
3787
3788
3789
3790
3791 ac_config_headers="$ac_config_headers config.h"
3792
3793 ac_ext=cpp
3794 ac_cpp='$CXXCPP $CPPFLAGS'
3795 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3796 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3797 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3798
3799
3800
3801
3802
3803
3804
3805 ac_ext=cpp
3806 ac_cpp='$CXXCPP $CPPFLAGS'
3807 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3808 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3809 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3810 if test -z "$CXX"; then
3811 if test -n "$CCC"; then
3812 CXX=$CCC
3813 else
3814 if test -n "$ac_tool_prefix"; then
3815 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3816 do
3817 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3818 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3820 printf %s "checking for $ac_word... " >&6; }
3821 if test ${ac_cv_prog_CXX+y}
3822 then :
3823 printf %s "(cached) " >&6
3824 else case e in #(
3825 e) if test -n "$CXX"; then
3826 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3827 else
3828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829 for as_dir in $PATH
3830 do
3831 IFS=$as_save_IFS
3832 case $as_dir in #(((
3833 '') as_dir=./ ;;
3834 */) ;;
3835 *) as_dir=$as_dir/ ;;
3836 esac
3837 for ac_exec_ext in '' $ac_executable_extensions; do
3838 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3839 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3841 break 2
3842 fi
3843 done
3844 done
3845 IFS=$as_save_IFS
3846
3847 fi ;;
3848 esac
3849 fi
3850 CXX=$ac_cv_prog_CXX
3851 if test -n "$CXX"; then
3852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3853 printf "%s\n" "$CXX" >&6; }
3854 else
3855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3856 printf "%s\n" "no" >&6; }
3857 fi
3858
3859
3860 test -n "$CXX" && break
3861 done
3862 fi
3863 if test -z "$CXX"; then
3864 ac_ct_CXX=$CXX
3865 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3866 do
3867 # Extract the first word of "$ac_prog", so it can be a program name with args.
3868 set dummy $ac_prog; ac_word=$2
3869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3870 printf %s "checking for $ac_word... " >&6; }
3871 if test ${ac_cv_prog_ac_ct_CXX+y}
3872 then :
3873 printf %s "(cached) " >&6
3874 else case e in #(
3875 e) if test -n "$ac_ct_CXX"; then
3876 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3877 else
3878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879 for as_dir in $PATH
3880 do
3881 IFS=$as_save_IFS
3882 case $as_dir in #(((
3883 '') as_dir=./ ;;
3884 */) ;;
3885 *) as_dir=$as_dir/ ;;
3886 esac
3887 for ac_exec_ext in '' $ac_executable_extensions; do
3888 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3889 ac_cv_prog_ac_ct_CXX="$ac_prog"
3890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3891 break 2
3892 fi
3893 done
3894 done
3895 IFS=$as_save_IFS
3896
3897 fi ;;
3898 esac
3899 fi
3900 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3901 if test -n "$ac_ct_CXX"; then
3902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3903 printf "%s\n" "$ac_ct_CXX" >&6; }
3904 else
3905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3906 printf "%s\n" "no" >&6; }
3907 fi
3908
3909
3910 test -n "$ac_ct_CXX" && break
3911 done
3912
3913 if test "x$ac_ct_CXX" = x; then
3914 CXX="g++"
3915 else
3916 case $cross_compiling:$ac_tool_warned in
3917 yes:)
3918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3919 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3920 ac_tool_warned=yes ;;
3921 esac
3922 CXX=$ac_ct_CXX
3923 fi
3924 fi
3925
3926 fi
3927 fi
3928 # Provide some information about the compiler.
3929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3930 set X $ac_compile
3931 ac_compiler=$2
3932 for ac_option in --version -v -V -qversion; do
3933 { { ac_try="$ac_compiler $ac_option >&5"
3934 case "(($ac_try" in
3935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936 *) ac_try_echo=$ac_try;;
3937 esac
3938 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3939 printf "%s\n" "$ac_try_echo"; } >&5
3940 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3941 ac_status=$?
3942 if test -s conftest.err; then
3943 sed '10a\
3944 ... rest of stderr output deleted ...
3945 10q' conftest.err >conftest.er1
3946 cat conftest.er1 >&5
3947 fi
3948 rm -f conftest.er1 conftest.err
3949 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3950 test $ac_status = 0; }
3951 done
3952
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3955
3956 int
3957 main (void)
3958 {
3959
3960 ;
3961 return 0;
3962 }
3963 _ACEOF
3964 ac_clean_files_save=$ac_clean_files
3965 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3966 # Try to create an executable without -o first, disregard a.out.
3967 # It will help us diagnose broken compilers, and finding out an intuition
3968 # of exeext.
3969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3970 printf %s "checking whether the C++ compiler works... " >&6; }
3971 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3972
3973 # The possible output files:
3974 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3975
3976 ac_rmfiles=
3977 for ac_file in $ac_files
3978 do
3979 case $ac_file in
3980 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3981 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3982 esac
3983 done
3984 rm -f $ac_rmfiles
3985
3986 if { { ac_try="$ac_link_default"
3987 case "(($ac_try" in
3988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3989 *) ac_try_echo=$ac_try;;
3990 esac
3991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3992 printf "%s\n" "$ac_try_echo"; } >&5
3993 (eval "$ac_link_default") 2>&5
3994 ac_status=$?
3995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3996 test $ac_status = 0; }
3997 then :
3998 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3999 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4000 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4001 # so that the user can short-circuit this test for compilers unknown to
4002 # Autoconf.
4003 for ac_file in $ac_files ''
4004 do
4005 test -f "$ac_file" || continue
4006 case $ac_file in
4007 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4008 ;;
4009 [ab].out )
4010 # We found the default executable, but exeext='' is most
4011 # certainly right.
4012 break;;
4013 *.* )
4014 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4015 then :; else
4016 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4017 fi
4018 # We set ac_cv_exeext here because the later test for it is not
4019 # safe: cross compilers may not add the suffix if given an '-o'
4020 # argument, so we may need to know it at that point already.
4021 # Even if this section looks crufty: it has the advantage of
4022 # actually working.
4023 break;;
4024 * )
4025 break;;
4026 esac
4027 done
4028 test "$ac_cv_exeext" = no && ac_cv_exeext=
4029
4030 else case e in #(
4031 e) ac_file='' ;;
4032 esac
4033 fi
4034 if test -z "$ac_file"
4035 then :
4036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4037 printf "%s\n" "no" >&6; }
4038 printf "%s\n" "$as_me: failed program was:" >&5
4039 sed 's/^/| /' conftest.$ac_ext >&5
4040
4041 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4042 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4043 as_fn_error 77 "C++ compiler cannot create executables
4044 See 'config.log' for more details" "$LINENO" 5; }
4045 else case e in #(
4046 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4047 printf "%s\n" "yes" >&6; } ;;
4048 esac
4049 fi
4050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
4051 printf %s "checking for C++ compiler default output file name... " >&6; }
4052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4053 printf "%s\n" "$ac_file" >&6; }
4054 ac_exeext=$ac_cv_exeext
4055
4056 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4057 ac_clean_files=$ac_clean_files_save
4058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4059 printf %s "checking for suffix of executables... " >&6; }
4060 if { { ac_try="$ac_link"
4061 case "(($ac_try" in
4062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4063 *) ac_try_echo=$ac_try;;
4064 esac
4065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4066 printf "%s\n" "$ac_try_echo"; } >&5
4067 (eval "$ac_link") 2>&5
4068 ac_status=$?
4069 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4070 test $ac_status = 0; }
4071 then :
4072 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4073 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4074 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4075 # 'rm'.
4076 for ac_file in conftest.exe conftest conftest.*; do
4077 test -f "$ac_file" || continue
4078 case $ac_file in
4079 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4080 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4081 break;;
4082 * ) break;;
4083 esac
4084 done
4085 else case e in #(
4086 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4087 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4088 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4089 See 'config.log' for more details" "$LINENO" 5; } ;;
4090 esac
4091 fi
4092 rm -f conftest conftest$ac_cv_exeext
4093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4094 printf "%s\n" "$ac_cv_exeext" >&6; }
4095
4096 rm -f conftest.$ac_ext
4097 EXEEXT=$ac_cv_exeext
4098 ac_exeext=$EXEEXT
4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4101 #include <stdio.h>
4102 int
4103 main (void)
4104 {
4105 FILE *f = fopen ("conftest.out", "w");
4106 if (!f)
4107 return 1;
4108 return ferror (f) || fclose (f) != 0;
4109
4110 ;
4111 return 0;
4112 }
4113 _ACEOF
4114 ac_clean_files="$ac_clean_files conftest.out"
4115 # Check that the compiler produces executables we can run. If not, either
4116 # the compiler is broken, or we cross compile.
4117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4118 printf %s "checking whether we are cross compiling... " >&6; }
4119 if test "$cross_compiling" != yes; then
4120 { { ac_try="$ac_link"
4121 case "(($ac_try" in
4122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4123 *) ac_try_echo=$ac_try;;
4124 esac
4125 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4126 printf "%s\n" "$ac_try_echo"; } >&5
4127 (eval "$ac_link") 2>&5
4128 ac_status=$?
4129 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4130 test $ac_status = 0; }
4131 if { ac_try='./conftest$ac_cv_exeext'
4132 { { case "(($ac_try" in
4133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134 *) ac_try_echo=$ac_try;;
4135 esac
4136 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4137 printf "%s\n" "$ac_try_echo"; } >&5
4138 (eval "$ac_try") 2>&5
4139 ac_status=$?
4140 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4141 test $ac_status = 0; }; }; then
4142 cross_compiling=no
4143 else
4144 if test "$cross_compiling" = maybe; then
4145 cross_compiling=yes
4146 else
4147 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4148 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4149 as_fn_error 77 "cannot run C++ compiled programs.
4150 If you meant to cross compile, use '--host'.
4151 See 'config.log' for more details" "$LINENO" 5; }
4152 fi
4153 fi
4154 fi
4155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4156 printf "%s\n" "$cross_compiling" >&6; }
4157
4158 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4159 conftest.o conftest.obj conftest.out
4160 ac_clean_files=$ac_clean_files_save
4161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4162 printf %s "checking for suffix of object files... " >&6; }
4163 if test ${ac_cv_objext+y}
4164 then :
4165 printf %s "(cached) " >&6
4166 else case e in #(
4167 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4169
4170 int
4171 main (void)
4172 {
4173
4174 ;
4175 return 0;
4176 }
4177 _ACEOF
4178 rm -f conftest.o conftest.obj
4179 if { { ac_try="$ac_compile"
4180 case "(($ac_try" in
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4183 esac
4184 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4185 printf "%s\n" "$ac_try_echo"; } >&5
4186 (eval "$ac_compile") 2>&5
4187 ac_status=$?
4188 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4189 test $ac_status = 0; }
4190 then :
4191 for ac_file in conftest.o conftest.obj conftest.*; do
4192 test -f "$ac_file" || continue;
4193 case $ac_file in
4194 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4195 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4196 break;;
4197 esac
4198 done
4199 else case e in #(
4200 e) printf "%s\n" "$as_me: failed program was:" >&5
4201 sed 's/^/| /' conftest.$ac_ext >&5
4202
4203 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4204 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4205 as_fn_error $? "cannot compute suffix of object files: cannot compile
4206 See 'config.log' for more details" "$LINENO" 5; } ;;
4207 esac
4208 fi
4209 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4210 esac
4211 fi
4212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4213 printf "%s\n" "$ac_cv_objext" >&6; }
4214 OBJEXT=$ac_cv_objext
4215 ac_objext=$OBJEXT
4216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
4217 printf %s "checking whether the compiler supports GNU C++... " >&6; }
4218 if test ${ac_cv_cxx_compiler_gnu+y}
4219 then :
4220 printf %s "(cached) " >&6
4221 else case e in #(
4222 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223 /* end confdefs.h. */
4224
4225 int
4226 main (void)
4227 {
4228 #ifndef __GNUC__
4229 choke me
4230 #endif
4231
4232 ;
4233 return 0;
4234 }
4235 _ACEOF
4236 if ac_fn_cxx_try_compile "$LINENO"
4237 then :
4238 ac_compiler_gnu=yes
4239 else case e in #(
4240 e) ac_compiler_gnu=no ;;
4241 esac
4242 fi
4243 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4244 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4245 ;;
4246 esac
4247 fi
4248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4249 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
4250 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4251
4252 if test $ac_compiler_gnu = yes; then
4253 GXX=yes
4254 else
4255 GXX=
4256 fi
4257 ac_test_CXXFLAGS=${CXXFLAGS+y}
4258 ac_save_CXXFLAGS=$CXXFLAGS
4259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4260 printf %s "checking whether $CXX accepts -g... " >&6; }
4261 if test ${ac_cv_prog_cxx_g+y}
4262 then :
4263 printf %s "(cached) " >&6
4264 else case e in #(
4265 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4266 ac_cxx_werror_flag=yes
4267 ac_cv_prog_cxx_g=no
4268 CXXFLAGS="-g"
4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h. */
4271
4272 int
4273 main (void)
4274 {
4275
4276 ;
4277 return 0;
4278 }
4279 _ACEOF
4280 if ac_fn_cxx_try_compile "$LINENO"
4281 then :
4282 ac_cv_prog_cxx_g=yes
4283 else case e in #(
4284 e) CXXFLAGS=""
4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286 /* end confdefs.h. */
4287
4288 int
4289 main (void)
4290 {
4291
4292 ;
4293 return 0;
4294 }
4295 _ACEOF
4296 if ac_fn_cxx_try_compile "$LINENO"
4297 then :
4298
4299 else case e in #(
4300 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4301 CXXFLAGS="-g"
4302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4303 /* end confdefs.h. */
4304
4305 int
4306 main (void)
4307 {
4308
4309 ;
4310 return 0;
4311 }
4312 _ACEOF
4313 if ac_fn_cxx_try_compile "$LINENO"
4314 then :
4315 ac_cv_prog_cxx_g=yes
4316 fi
4317 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4318 esac
4319 fi
4320 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4321 esac
4322 fi
4323 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4324 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
4325 esac
4326 fi
4327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4328 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
4329 if test $ac_test_CXXFLAGS; then
4330 CXXFLAGS=$ac_save_CXXFLAGS
4331 elif test $ac_cv_prog_cxx_g = yes; then
4332 if test "$GXX" = yes; then
4333 CXXFLAGS="-g -O2"
4334 else
4335 CXXFLAGS="-g"
4336 fi
4337 else
4338 if test "$GXX" = yes; then
4339 CXXFLAGS="-O2"
4340 else
4341 CXXFLAGS=
4342 fi
4343 fi
4344 ac_prog_cxx_stdcxx=no
4345 if test x$ac_prog_cxx_stdcxx = xno
4346 then :
4347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4348 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4349 if test ${ac_cv_prog_cxx_cxx11+y}
4350 then :
4351 printf %s "(cached) " >&6
4352 else case e in #(
4353 e) ac_cv_prog_cxx_cxx11=no
4354 ac_save_CXX=$CXX
4355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356 /* end confdefs.h. */
4357 $ac_cxx_conftest_cxx11_program
4358 _ACEOF
4359 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
4360 do
4361 CXX="$ac_save_CXX $ac_arg"
4362 if ac_fn_cxx_try_compile "$LINENO"
4363 then :
4364 ac_cv_prog_cxx_cxx11=$ac_arg
4365 fi
4366 rm -f core conftest.err conftest.$ac_objext conftest.beam
4367 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4368 done
4369 rm -f conftest.$ac_ext
4370 CXX=$ac_save_CXX ;;
4371 esac
4372 fi
4373
4374 if test "x$ac_cv_prog_cxx_cxx11" = xno
4375 then :
4376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4377 printf "%s\n" "unsupported" >&6; }
4378 else case e in #(
4379 e) if test "x$ac_cv_prog_cxx_cxx11" = x
4380 then :
4381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4382 printf "%s\n" "none needed" >&6; }
4383 else case e in #(
4384 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4385 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
4386 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
4387 esac
4388 fi
4389 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4390 ac_prog_cxx_stdcxx=cxx11 ;;
4391 esac
4392 fi
4393 fi
4394 if test x$ac_prog_cxx_stdcxx = xno
4395 then :
4396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4397 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4398 if test ${ac_cv_prog_cxx_cxx98+y}
4399 then :
4400 printf %s "(cached) " >&6
4401 else case e in #(
4402 e) ac_cv_prog_cxx_cxx98=no
4403 ac_save_CXX=$CXX
4404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4405 /* end confdefs.h. */
4406 $ac_cxx_conftest_cxx98_program
4407 _ACEOF
4408 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4409 do
4410 CXX="$ac_save_CXX $ac_arg"
4411 if ac_fn_cxx_try_compile "$LINENO"
4412 then :
4413 ac_cv_prog_cxx_cxx98=$ac_arg
4414 fi
4415 rm -f core conftest.err conftest.$ac_objext conftest.beam
4416 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4417 done
4418 rm -f conftest.$ac_ext
4419 CXX=$ac_save_CXX ;;
4420 esac
4421 fi
4422
4423 if test "x$ac_cv_prog_cxx_cxx98" = xno
4424 then :
4425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4426 printf "%s\n" "unsupported" >&6; }
4427 else case e in #(
4428 e) if test "x$ac_cv_prog_cxx_cxx98" = x
4429 then :
4430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4431 printf "%s\n" "none needed" >&6; }
4432 else case e in #(
4433 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4434 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4435 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
4436 esac
4437 fi
4438 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4439 ac_prog_cxx_stdcxx=cxx98 ;;
4440 esac
4441 fi
4442 fi
4443
4444 ac_ext=cpp
4445 ac_cpp='$CXXCPP $CPPFLAGS'
4446 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4447 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4448 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4449 DEPDIR="${am__leading_dot}deps"
4450
4451 ac_config_commands="$ac_config_commands depfiles"
4452
4453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4454 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4455 cat > confinc.mk << 'END'
4456 am__doit:
4457 @echo this is the am__doit target >confinc.out
4458 .PHONY: am__doit
4459 END
4460 am__include="#"
4461 am__quote=
4462 # BSD make does it like this.
4463 echo '.include "confinc.mk" # ignored' > confmf.BSD
4464 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4465 echo 'include confinc.mk # ignored' > confmf.GNU
4466 _am_result=no
4467 for s in GNU BSD; do
4468 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4469 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4470 ac_status=$?
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); }
4473 case $?:`cat confinc.out 2>/dev/null` in #(
4474 '0:this is the am__doit target') :
4475 case $s in #(
4476 BSD) :
4477 am__include='.include' am__quote='"' ;; #(
4478 *) :
4479 am__include='include' am__quote='' ;;
4480 esac ;; #(
4481 *) :
4482 ;;
4483 esac
4484 if test "$am__include" != "#"; then
4485 _am_result="yes ($s style)"
4486 break
4487 fi
4488 done
4489 rm -f confinc.* confmf.*
4490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4491 printf "%s\n" "${_am_result}" >&6; }
4492
4493 # Check whether --enable-dependency-tracking was given.
4494 if test ${enable_dependency_tracking+y}
4495 then :
4496 enableval=$enable_dependency_tracking;
4497 fi
4498
4499 if test "x$enable_dependency_tracking" != xno; then
4500 am_depcomp="$ac_aux_dir/depcomp"
4501 AMDEPBACKSLASH='\'
4502 am__nodep='_no'
4503 fi
4504 if test "x$enable_dependency_tracking" != xno; then
4505 AMDEP_TRUE=
4506 AMDEP_FALSE='#'
4507 else
4508 AMDEP_TRUE='#'
4509 AMDEP_FALSE=
4510 fi
4511
4512
4513
4514 depcc="$CXX" am_compiler_list=
4515
4516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4517 printf %s "checking dependency style of $depcc... " >&6; }
4518 if test ${am_cv_CXX_dependencies_compiler_type+y}
4519 then :
4520 printf %s "(cached) " >&6
4521 else case e in #(
4522 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4523 # We make a subdir and do the tests there. Otherwise we can end up
4524 # making bogus files that we don't know about and never remove. For
4525 # instance it was reported that on HP-UX the gcc test will end up
4526 # making a dummy file named 'D' -- because '-MD' means "put the output
4527 # in D".
4528 rm -rf conftest.dir
4529 mkdir conftest.dir
4530 # Copy depcomp to subdir because otherwise we won't find it if we're
4531 # using a relative directory.
4532 cp "$am_depcomp" conftest.dir
4533 cd conftest.dir
4534 # We will build objects and dependencies in a subdirectory because
4535 # it helps to detect inapplicable dependency modes. For instance
4536 # both Tru64's cc and ICC support -MD to output dependencies as a
4537 # side effect of compilation, but ICC will put the dependencies in
4538 # the current directory while Tru64 will put them in the object
4539 # directory.
4540 mkdir sub
4541
4542 am_cv_CXX_dependencies_compiler_type=none
4543 if test "$am_compiler_list" = ""; then
4544 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4545 fi
4546 am__universal=false
4547 case " $depcc " in #(
4548 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4549 esac
4550
4551 for depmode in $am_compiler_list; do
4552 # Setup a source with many dependencies, because some compilers
4553 # like to wrap large dependency lists on column 80 (with \), and
4554 # we should not choose a depcomp mode which is confused by this.
4555 #
4556 # We need to recreate these files for each test, as the compiler may
4557 # overwrite some of them when testing with obscure command lines.
4558 # This happens at least with the AIX C compiler.
4559 : > sub/conftest.c
4560 for i in 1 2 3 4 5 6; do
4561 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4562 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4563 # Solaris 10 /bin/sh.
4564 echo '/* dummy */' > sub/conftst$i.h
4565 done
4566 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4567
4568 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4569 # mode. It turns out that the SunPro C++ compiler does not properly
4570 # handle '-M -o', and we need to detect this. Also, some Intel
4571 # versions had trouble with output in subdirs.
4572 am__obj=sub/conftest.${OBJEXT-o}
4573 am__minus_obj="-o $am__obj"
4574 case $depmode in
4575 gcc)
4576 # This depmode causes a compiler race in universal mode.
4577 test "$am__universal" = false || continue
4578 ;;
4579 nosideeffect)
4580 # After this tag, mechanisms are not by side-effect, so they'll
4581 # only be used when explicitly requested.
4582 if test "x$enable_dependency_tracking" = xyes; then
4583 continue
4584 else
4585 break
4586 fi
4587 ;;
4588 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4589 # This compiler won't grok '-c -o', but also, the minuso test has
4590 # not run yet. These depmodes are late enough in the game, and
4591 # so weak that their functioning should not be impacted.
4592 am__obj=conftest.${OBJEXT-o}
4593 am__minus_obj=
4594 ;;
4595 none) break ;;
4596 esac
4597 if depmode=$depmode \
4598 source=sub/conftest.c object=$am__obj \
4599 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4600 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4601 >/dev/null 2>conftest.err &&
4602 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4603 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4604 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4605 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4606 # icc doesn't choke on unknown options, it will just issue warnings
4607 # or remarks (even with -Werror). So we grep stderr for any message
4608 # that says an option was ignored or not supported.
4609 # When given -MP, icc 7.0 and 7.1 complain thus:
4610 # icc: Command line warning: ignoring option '-M'; no argument required
4611 # The diagnosis changed in icc 8.0:
4612 # icc: Command line remark: option '-MP' not supported
4613 if (grep 'ignoring option' conftest.err ||
4614 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4615 am_cv_CXX_dependencies_compiler_type=$depmode
4616 break
4617 fi
4618 fi
4619 done
4620
4621 cd ..
4622 rm -rf conftest.dir
4623 else
4624 am_cv_CXX_dependencies_compiler_type=none
4625 fi
4626 ;;
4627 esac
4628 fi
4629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4630 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
4631 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4632
4633 if
4634 test "x$enable_dependency_tracking" != xno \
4635 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4636 am__fastdepCXX_TRUE=
4637 am__fastdepCXX_FALSE='#'
4638 else
4639 am__fastdepCXX_TRUE='#'
4640 am__fastdepCXX_FALSE=
4641 fi
4642
4643
4644 case `pwd` in
4645 *\ * | *\ *)
4646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4647 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4648 esac
4649
4650
4651
4652 macro_version='2.5.4'
4653 macro_revision='2.5.4'
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668 ltmain=$ac_aux_dir/ltmain.sh
4669
4670
4671
4672 # Make sure we can run config.sub.
4673 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4674 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4675
4676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4677 printf %s "checking build system type... " >&6; }
4678 if test ${ac_cv_build+y}
4679 then :
4680 printf %s "(cached) " >&6
4681 else case e in #(
4682 e) ac_build_alias=$build_alias
4683 test "x$ac_build_alias" = x &&
4684 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4685 test "x$ac_build_alias" = x &&
4686 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4687 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4688 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4689 ;;
4690 esac
4691 fi
4692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4693 printf "%s\n" "$ac_cv_build" >&6; }
4694 case $ac_cv_build in
4695 *-*-*) ;;
4696 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4697 esac
4698 build=$ac_cv_build
4699 ac_save_IFS=$IFS; IFS='-'
4700 set x $ac_cv_build
4701 shift
4702 build_cpu=$1
4703 build_vendor=$2
4704 shift; shift
4705 # Remember, the first character of IFS is used to create $*,
4706 # except with old shells:
4707 build_os=$*
4708 IFS=$ac_save_IFS
4709 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4710
4711
4712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4713 printf %s "checking host system type... " >&6; }
4714 if test ${ac_cv_host+y}
4715 then :
4716 printf %s "(cached) " >&6
4717 else case e in #(
4718 e) if test "x$host_alias" = x; then
4719 ac_cv_host=$ac_cv_build
4720 else
4721 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4722 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4723 fi
4724 ;;
4725 esac
4726 fi
4727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4728 printf "%s\n" "$ac_cv_host" >&6; }
4729 case $ac_cv_host in
4730 *-*-*) ;;
4731 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4732 esac
4733 host=$ac_cv_host
4734 ac_save_IFS=$IFS; IFS='-'
4735 set x $ac_cv_host
4736 shift
4737 host_cpu=$1
4738 host_vendor=$2
4739 shift; shift
4740 # Remember, the first character of IFS is used to create $*,
4741 # except with old shells:
4742 host_os=$*
4743 IFS=$ac_save_IFS
4744 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4745
4746
4747 # Backslashify metacharacters that are still active within
4748 # double-quoted strings.
4749 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4750
4751 # Same as above, but do not quote variable references.
4752 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4753
4754 # Sed substitution to delay expansion of an escaped shell variable in a
4755 # double_quote_subst'ed string.
4756 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4757
4758 # Sed substitution to delay expansion of an escaped single quote.
4759 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4760
4761 # Sed substitution to avoid accidental globbing in evaled expressions
4762 no_glob_subst='s/\*/\\\*/g'
4763
4764 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4765 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4766 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4767
4768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4769 printf %s "checking how to print strings... " >&6; }
4770 # Test print first, because it will be a builtin if present.
4771 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4772 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4773 ECHO='print -r --'
4774 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4775 ECHO='printf %s\n'
4776 else
4777 # Use this function as a fallback that always works.
4778 func_fallback_echo ()
4779 {
4780 eval 'cat <<_LTECHO_EOF
4781 $1
4782 _LTECHO_EOF'
4783 }
4784 ECHO='func_fallback_echo'
4785 fi
4786
4787 # func_echo_all arg...
4788 # Invoke $ECHO with all args, space-separated.
4789 func_echo_all ()
4790 {
4791 $ECHO ""
4792 }
4793
4794 case $ECHO in
4795 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4796 printf "%s\n" "printf" >&6; } ;;
4797 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4798 printf "%s\n" "print -r" >&6; } ;;
4799 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4800 printf "%s\n" "cat" >&6; } ;;
4801 esac
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825 ac_ext=c
4826 ac_cpp='$CPP $CPPFLAGS'
4827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4830 if test -n "$ac_tool_prefix"; then
4831 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4832 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4834 printf %s "checking for $ac_word... " >&6; }
4835 if test ${ac_cv_prog_CC+y}
4836 then :
4837 printf %s "(cached) " >&6
4838 else case e in #(
4839 e) if test -n "$CC"; then
4840 ac_cv_prog_CC="$CC" # Let the user override the test.
4841 else
4842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843 for as_dir in $PATH
4844 do
4845 IFS=$as_save_IFS
4846 case $as_dir in #(((
4847 '') as_dir=./ ;;
4848 */) ;;
4849 *) as_dir=$as_dir/ ;;
4850 esac
4851 for ac_exec_ext in '' $ac_executable_extensions; do
4852 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4853 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4855 break 2
4856 fi
4857 done
4858 done
4859 IFS=$as_save_IFS
4860
4861 fi ;;
4862 esac
4863 fi
4864 CC=$ac_cv_prog_CC
4865 if test -n "$CC"; then
4866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4867 printf "%s\n" "$CC" >&6; }
4868 else
4869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4870 printf "%s\n" "no" >&6; }
4871 fi
4872
4873
4874 fi
4875 if test -z "$ac_cv_prog_CC"; then
4876 ac_ct_CC=$CC
4877 # Extract the first word of "gcc", so it can be a program name with args.
4878 set dummy gcc; ac_word=$2
4879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4880 printf %s "checking for $ac_word... " >&6; }
4881 if test ${ac_cv_prog_ac_ct_CC+y}
4882 then :
4883 printf %s "(cached) " >&6
4884 else case e in #(
4885 e) if test -n "$ac_ct_CC"; then
4886 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4887 else
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889 for as_dir in $PATH
4890 do
4891 IFS=$as_save_IFS
4892 case $as_dir in #(((
4893 '') as_dir=./ ;;
4894 */) ;;
4895 *) as_dir=$as_dir/ ;;
4896 esac
4897 for ac_exec_ext in '' $ac_executable_extensions; do
4898 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4899 ac_cv_prog_ac_ct_CC="gcc"
4900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4901 break 2
4902 fi
4903 done
4904 done
4905 IFS=$as_save_IFS
4906
4907 fi ;;
4908 esac
4909 fi
4910 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4911 if test -n "$ac_ct_CC"; then
4912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4913 printf "%s\n" "$ac_ct_CC" >&6; }
4914 else
4915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4916 printf "%s\n" "no" >&6; }
4917 fi
4918
4919 if test "x$ac_ct_CC" = x; then
4920 CC=""
4921 else
4922 case $cross_compiling:$ac_tool_warned in
4923 yes:)
4924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4925 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4926 ac_tool_warned=yes ;;
4927 esac
4928 CC=$ac_ct_CC
4929 fi
4930 else
4931 CC="$ac_cv_prog_CC"
4932 fi
4933
4934 if test -z "$CC"; then
4935 if test -n "$ac_tool_prefix"; then
4936 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4937 set dummy ${ac_tool_prefix}cc; ac_word=$2
4938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4939 printf %s "checking for $ac_word... " >&6; }
4940 if test ${ac_cv_prog_CC+y}
4941 then :
4942 printf %s "(cached) " >&6
4943 else case e in #(
4944 e) if test -n "$CC"; then
4945 ac_cv_prog_CC="$CC" # Let the user override the test.
4946 else
4947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948 for as_dir in $PATH
4949 do
4950 IFS=$as_save_IFS
4951 case $as_dir in #(((
4952 '') as_dir=./ ;;
4953 */) ;;
4954 *) as_dir=$as_dir/ ;;
4955 esac
4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4958 ac_cv_prog_CC="${ac_tool_prefix}cc"
4959 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4960 break 2
4961 fi
4962 done
4963 done
4964 IFS=$as_save_IFS
4965
4966 fi ;;
4967 esac
4968 fi
4969 CC=$ac_cv_prog_CC
4970 if test -n "$CC"; then
4971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4972 printf "%s\n" "$CC" >&6; }
4973 else
4974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4975 printf "%s\n" "no" >&6; }
4976 fi
4977
4978
4979 fi
4980 fi
4981 if test -z "$CC"; then
4982 # Extract the first word of "cc", so it can be a program name with args.
4983 set dummy cc; ac_word=$2
4984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4985 printf %s "checking for $ac_word... " >&6; }
4986 if test ${ac_cv_prog_CC+y}
4987 then :
4988 printf %s "(cached) " >&6
4989 else case e in #(
4990 e) if test -n "$CC"; then
4991 ac_cv_prog_CC="$CC" # Let the user override the test.
4992 else
4993 ac_prog_rejected=no
4994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995 for as_dir in $PATH
4996 do
4997 IFS=$as_save_IFS
4998 case $as_dir in #(((
4999 '') as_dir=./ ;;
5000 */) ;;
5001 *) as_dir=$as_dir/ ;;
5002 esac
5003 for ac_exec_ext in '' $ac_executable_extensions; do
5004 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5005 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5006 ac_prog_rejected=yes
5007 continue
5008 fi
5009 ac_cv_prog_CC="cc"
5010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5011 break 2
5012 fi
5013 done
5014 done
5015 IFS=$as_save_IFS
5016
5017 if test $ac_prog_rejected = yes; then
5018 # We found a bogon in the path, so make sure we never use it.
5019 set dummy $ac_cv_prog_CC
5020 shift
5021 if test $# != 0; then
5022 # We chose a different compiler from the bogus one.
5023 # However, it has the same basename, so the bogon will be chosen
5024 # first if we set CC to just the basename; use the full file name.
5025 shift
5026 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5027 fi
5028 fi
5029 fi ;;
5030 esac
5031 fi
5032 CC=$ac_cv_prog_CC
5033 if test -n "$CC"; then
5034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5035 printf "%s\n" "$CC" >&6; }
5036 else
5037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5038 printf "%s\n" "no" >&6; }
5039 fi
5040
5041
5042 fi
5043 if test -z "$CC"; then
5044 if test -n "$ac_tool_prefix"; then
5045 for ac_prog in cl.exe
5046 do
5047 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5048 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5050 printf %s "checking for $ac_word... " >&6; }
5051 if test ${ac_cv_prog_CC+y}
5052 then :
5053 printf %s "(cached) " >&6
5054 else case e in #(
5055 e) if test -n "$CC"; then
5056 ac_cv_prog_CC="$CC" # Let the user override the test.
5057 else
5058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5059 for as_dir in $PATH
5060 do
5061 IFS=$as_save_IFS
5062 case $as_dir in #(((
5063 '') as_dir=./ ;;
5064 */) ;;
5065 *) as_dir=$as_dir/ ;;
5066 esac
5067 for ac_exec_ext in '' $ac_executable_extensions; do
5068 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5069 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5070 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5071 break 2
5072 fi
5073 done
5074 done
5075 IFS=$as_save_IFS
5076
5077 fi ;;
5078 esac
5079 fi
5080 CC=$ac_cv_prog_CC
5081 if test -n "$CC"; then
5082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5083 printf "%s\n" "$CC" >&6; }
5084 else
5085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086 printf "%s\n" "no" >&6; }
5087 fi
5088
5089
5090 test -n "$CC" && break
5091 done
5092 fi
5093 if test -z "$CC"; then
5094 ac_ct_CC=$CC
5095 for ac_prog in cl.exe
5096 do
5097 # Extract the first word of "$ac_prog", so it can be a program name with args.
5098 set dummy $ac_prog; ac_word=$2
5099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5100 printf %s "checking for $ac_word... " >&6; }
5101 if test ${ac_cv_prog_ac_ct_CC+y}
5102 then :
5103 printf %s "(cached) " >&6
5104 else case e in #(
5105 e) if test -n "$ac_ct_CC"; then
5106 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5107 else
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH
5110 do
5111 IFS=$as_save_IFS
5112 case $as_dir in #(((
5113 '') as_dir=./ ;;
5114 */) ;;
5115 *) as_dir=$as_dir/ ;;
5116 esac
5117 for ac_exec_ext in '' $ac_executable_extensions; do
5118 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5119 ac_cv_prog_ac_ct_CC="$ac_prog"
5120 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5121 break 2
5122 fi
5123 done
5124 done
5125 IFS=$as_save_IFS
5126
5127 fi ;;
5128 esac
5129 fi
5130 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5131 if test -n "$ac_ct_CC"; then
5132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5133 printf "%s\n" "$ac_ct_CC" >&6; }
5134 else
5135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136 printf "%s\n" "no" >&6; }
5137 fi
5138
5139
5140 test -n "$ac_ct_CC" && break
5141 done
5142
5143 if test "x$ac_ct_CC" = x; then
5144 CC=""
5145 else
5146 case $cross_compiling:$ac_tool_warned in
5147 yes:)
5148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5149 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5150 ac_tool_warned=yes ;;
5151 esac
5152 CC=$ac_ct_CC
5153 fi
5154 fi
5155
5156 fi
5157 if test -z "$CC"; then
5158 if test -n "$ac_tool_prefix"; then
5159 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5160 set dummy ${ac_tool_prefix}clang; ac_word=$2
5161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5162 printf %s "checking for $ac_word... " >&6; }
5163 if test ${ac_cv_prog_CC+y}
5164 then :
5165 printf %s "(cached) " >&6
5166 else case e in #(
5167 e) if test -n "$CC"; then
5168 ac_cv_prog_CC="$CC" # Let the user override the test.
5169 else
5170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171 for as_dir in $PATH
5172 do
5173 IFS=$as_save_IFS
5174 case $as_dir in #(((
5175 '') as_dir=./ ;;
5176 */) ;;
5177 *) as_dir=$as_dir/ ;;
5178 esac
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5181 ac_cv_prog_CC="${ac_tool_prefix}clang"
5182 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5183 break 2
5184 fi
5185 done
5186 done
5187 IFS=$as_save_IFS
5188
5189 fi ;;
5190 esac
5191 fi
5192 CC=$ac_cv_prog_CC
5193 if test -n "$CC"; then
5194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5195 printf "%s\n" "$CC" >&6; }
5196 else
5197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5198 printf "%s\n" "no" >&6; }
5199 fi
5200
5201
5202 fi
5203 if test -z "$ac_cv_prog_CC"; then
5204 ac_ct_CC=$CC
5205 # Extract the first word of "clang", so it can be a program name with args.
5206 set dummy clang; ac_word=$2
5207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5208 printf %s "checking for $ac_word... " >&6; }
5209 if test ${ac_cv_prog_ac_ct_CC+y}
5210 then :
5211 printf %s "(cached) " >&6
5212 else case e in #(
5213 e) if test -n "$ac_ct_CC"; then
5214 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5215 else
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 for as_dir in $PATH
5218 do
5219 IFS=$as_save_IFS
5220 case $as_dir in #(((
5221 '') as_dir=./ ;;
5222 */) ;;
5223 *) as_dir=$as_dir/ ;;
5224 esac
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5227 ac_cv_prog_ac_ct_CC="clang"
5228 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5229 break 2
5230 fi
5231 done
5232 done
5233 IFS=$as_save_IFS
5234
5235 fi ;;
5236 esac
5237 fi
5238 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5239 if test -n "$ac_ct_CC"; then
5240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5241 printf "%s\n" "$ac_ct_CC" >&6; }
5242 else
5243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5244 printf "%s\n" "no" >&6; }
5245 fi
5246
5247 if test "x$ac_ct_CC" = x; then
5248 CC=""
5249 else
5250 case $cross_compiling:$ac_tool_warned in
5251 yes:)
5252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5253 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5254 ac_tool_warned=yes ;;
5255 esac
5256 CC=$ac_ct_CC
5257 fi
5258 else
5259 CC="$ac_cv_prog_CC"
5260 fi
5261
5262 fi
5263
5264
5265 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5266 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5267 as_fn_error $? "no acceptable C compiler found in \$PATH
5268 See 'config.log' for more details" "$LINENO" 5; }
5269
5270 # Provide some information about the compiler.
5271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5272 set X $ac_compile
5273 ac_compiler=$2
5274 for ac_option in --version -v -V -qversion -version; do
5275 { { ac_try="$ac_compiler $ac_option >&5"
5276 case "(($ac_try" in
5277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5278 *) ac_try_echo=$ac_try;;
5279 esac
5280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5281 printf "%s\n" "$ac_try_echo"; } >&5
5282 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5283 ac_status=$?
5284 if test -s conftest.err; then
5285 sed '10a\
5286 ... rest of stderr output deleted ...
5287 10q' conftest.err >conftest.er1
5288 cat conftest.er1 >&5
5289 fi
5290 rm -f conftest.er1 conftest.err
5291 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5292 test $ac_status = 0; }
5293 done
5294
5295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5296 printf %s "checking whether the compiler supports GNU C... " >&6; }
5297 if test ${ac_cv_c_compiler_gnu+y}
5298 then :
5299 printf %s "(cached) " >&6
5300 else case e in #(
5301 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5302 /* end confdefs.h. */
5303
5304 int
5305 main (void)
5306 {
5307 #ifndef __GNUC__
5308 choke me
5309 #endif
5310
5311 ;
5312 return 0;
5313 }
5314 _ACEOF
5315 if ac_fn_c_try_compile "$LINENO"
5316 then :
5317 ac_compiler_gnu=yes
5318 else case e in #(
5319 e) ac_compiler_gnu=no ;;
5320 esac
5321 fi
5322 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5323 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5324 ;;
5325 esac
5326 fi
5327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5328 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5330
5331 if test $ac_compiler_gnu = yes; then
5332 GCC=yes
5333 else
5334 GCC=
5335 fi
5336 ac_test_CFLAGS=${CFLAGS+y}
5337 ac_save_CFLAGS=$CFLAGS
5338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5339 printf %s "checking whether $CC accepts -g... " >&6; }
5340 if test ${ac_cv_prog_cc_g+y}
5341 then :
5342 printf %s "(cached) " >&6
5343 else case e in #(
5344 e) ac_save_c_werror_flag=$ac_c_werror_flag
5345 ac_c_werror_flag=yes
5346 ac_cv_prog_cc_g=no
5347 CFLAGS="-g"
5348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349 /* end confdefs.h. */
5350
5351 int
5352 main (void)
5353 {
5354
5355 ;
5356 return 0;
5357 }
5358 _ACEOF
5359 if ac_fn_c_try_compile "$LINENO"
5360 then :
5361 ac_cv_prog_cc_g=yes
5362 else case e in #(
5363 e) CFLAGS=""
5364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5365 /* end confdefs.h. */
5366
5367 int
5368 main (void)
5369 {
5370
5371 ;
5372 return 0;
5373 }
5374 _ACEOF
5375 if ac_fn_c_try_compile "$LINENO"
5376 then :
5377
5378 else case e in #(
5379 e) ac_c_werror_flag=$ac_save_c_werror_flag
5380 CFLAGS="-g"
5381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382 /* end confdefs.h. */
5383
5384 int
5385 main (void)
5386 {
5387
5388 ;
5389 return 0;
5390 }
5391 _ACEOF
5392 if ac_fn_c_try_compile "$LINENO"
5393 then :
5394 ac_cv_prog_cc_g=yes
5395 fi
5396 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5397 esac
5398 fi
5399 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5400 esac
5401 fi
5402 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5403 ac_c_werror_flag=$ac_save_c_werror_flag ;;
5404 esac
5405 fi
5406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5407 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5408 if test $ac_test_CFLAGS; then
5409 CFLAGS=$ac_save_CFLAGS
5410 elif test $ac_cv_prog_cc_g = yes; then
5411 if test "$GCC" = yes; then
5412 CFLAGS="-g -O2"
5413 else
5414 CFLAGS="-g"
5415 fi
5416 else
5417 if test "$GCC" = yes; then
5418 CFLAGS="-O2"
5419 else
5420 CFLAGS=
5421 fi
5422 fi
5423 ac_prog_cc_stdc=no
5424 if test x$ac_prog_cc_stdc = xno
5425 then :
5426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5427 printf %s "checking for $CC option to enable C11 features... " >&6; }
5428 if test ${ac_cv_prog_cc_c11+y}
5429 then :
5430 printf %s "(cached) " >&6
5431 else case e in #(
5432 e) ac_cv_prog_cc_c11=no
5433 ac_save_CC=$CC
5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435 /* end confdefs.h. */
5436 $ac_c_conftest_c11_program
5437 _ACEOF
5438 for ac_arg in '' -std=gnu11
5439 do
5440 CC="$ac_save_CC $ac_arg"
5441 if ac_fn_c_try_compile "$LINENO"
5442 then :
5443 ac_cv_prog_cc_c11=$ac_arg
5444 fi
5445 rm -f core conftest.err conftest.$ac_objext conftest.beam
5446 test "x$ac_cv_prog_cc_c11" != "xno" && break
5447 done
5448 rm -f conftest.$ac_ext
5449 CC=$ac_save_CC ;;
5450 esac
5451 fi
5452
5453 if test "x$ac_cv_prog_cc_c11" = xno
5454 then :
5455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5456 printf "%s\n" "unsupported" >&6; }
5457 else case e in #(
5458 e) if test "x$ac_cv_prog_cc_c11" = x
5459 then :
5460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5461 printf "%s\n" "none needed" >&6; }
5462 else case e in #(
5463 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5464 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5465 CC="$CC $ac_cv_prog_cc_c11" ;;
5466 esac
5467 fi
5468 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5469 ac_prog_cc_stdc=c11 ;;
5470 esac
5471 fi
5472 fi
5473 if test x$ac_prog_cc_stdc = xno
5474 then :
5475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5476 printf %s "checking for $CC option to enable C99 features... " >&6; }
5477 if test ${ac_cv_prog_cc_c99+y}
5478 then :
5479 printf %s "(cached) " >&6
5480 else case e in #(
5481 e) ac_cv_prog_cc_c99=no
5482 ac_save_CC=$CC
5483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5484 /* end confdefs.h. */
5485 $ac_c_conftest_c99_program
5486 _ACEOF
5487 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5488 do
5489 CC="$ac_save_CC $ac_arg"
5490 if ac_fn_c_try_compile "$LINENO"
5491 then :
5492 ac_cv_prog_cc_c99=$ac_arg
5493 fi
5494 rm -f core conftest.err conftest.$ac_objext conftest.beam
5495 test "x$ac_cv_prog_cc_c99" != "xno" && break
5496 done
5497 rm -f conftest.$ac_ext
5498 CC=$ac_save_CC ;;
5499 esac
5500 fi
5501
5502 if test "x$ac_cv_prog_cc_c99" = xno
5503 then :
5504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5505 printf "%s\n" "unsupported" >&6; }
5506 else case e in #(
5507 e) if test "x$ac_cv_prog_cc_c99" = x
5508 then :
5509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5510 printf "%s\n" "none needed" >&6; }
5511 else case e in #(
5512 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5513 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5514 CC="$CC $ac_cv_prog_cc_c99" ;;
5515 esac
5516 fi
5517 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5518 ac_prog_cc_stdc=c99 ;;
5519 esac
5520 fi
5521 fi
5522 if test x$ac_prog_cc_stdc = xno
5523 then :
5524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5525 printf %s "checking for $CC option to enable C89 features... " >&6; }
5526 if test ${ac_cv_prog_cc_c89+y}
5527 then :
5528 printf %s "(cached) " >&6
5529 else case e in #(
5530 e) ac_cv_prog_cc_c89=no
5531 ac_save_CC=$CC
5532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5533 /* end confdefs.h. */
5534 $ac_c_conftest_c89_program
5535 _ACEOF
5536 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5537 do
5538 CC="$ac_save_CC $ac_arg"
5539 if ac_fn_c_try_compile "$LINENO"
5540 then :
5541 ac_cv_prog_cc_c89=$ac_arg
5542 fi
5543 rm -f core conftest.err conftest.$ac_objext conftest.beam
5544 test "x$ac_cv_prog_cc_c89" != "xno" && break
5545 done
5546 rm -f conftest.$ac_ext
5547 CC=$ac_save_CC ;;
5548 esac
5549 fi
5550
5551 if test "x$ac_cv_prog_cc_c89" = xno
5552 then :
5553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5554 printf "%s\n" "unsupported" >&6; }
5555 else case e in #(
5556 e) if test "x$ac_cv_prog_cc_c89" = x
5557 then :
5558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5559 printf "%s\n" "none needed" >&6; }
5560 else case e in #(
5561 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5562 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5563 CC="$CC $ac_cv_prog_cc_c89" ;;
5564 esac
5565 fi
5566 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5567 ac_prog_cc_stdc=c89 ;;
5568 esac
5569 fi
5570 fi
5571
5572 ac_ext=cpp
5573 ac_cpp='$CXXCPP $CPPFLAGS'
5574 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5575 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5576 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5577
5578
5579 ac_ext=c
5580 ac_cpp='$CPP $CPPFLAGS'
5581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5585 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5586 if test ${am_cv_prog_cc_c_o+y}
5587 then :
5588 printf %s "(cached) " >&6
5589 else case e in #(
5590 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5591 /* end confdefs.h. */
5592
5593 int
5594 main (void)
5595 {
5596
5597 ;
5598 return 0;
5599 }
5600 _ACEOF
5601 # Make sure it works both with $CC and with simple cc.
5602 # Following AC_PROG_CC_C_O, we do the test twice because some
5603 # compilers refuse to overwrite an existing .o file with -o,
5604 # though they will create one.
5605 am_cv_prog_cc_c_o=yes
5606 for am_i in 1 2; do
5607 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5608 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5609 ac_status=$?
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); } \
5612 && test -f conftest2.$ac_objext; then
5613 : OK
5614 else
5615 am_cv_prog_cc_c_o=no
5616 break
5617 fi
5618 done
5619 # aligned with autoconf, so not including core; see bug#72225.
5620 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
5621 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
5622 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
5623 unset am_i ;;
5624 esac
5625 fi
5626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5627 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5628 if test "$am_cv_prog_cc_c_o" != yes; then
5629 # Losing compiler, so override with the script.
5630 # FIXME: It is wrong to rewrite CC.
5631 # But if we don't then we get into trouble of one sort or another.
5632 # A longer-term fix would be to have automake use am__CC in this case,
5633 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5634 CC="$am_aux_dir/compile $CC"
5635 fi
5636 ac_ext=cpp
5637 ac_cpp='$CXXCPP $CPPFLAGS'
5638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5641
5642
5643 depcc="$CC" am_compiler_list=
5644
5645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5646 printf %s "checking dependency style of $depcc... " >&6; }
5647 if test ${am_cv_CC_dependencies_compiler_type+y}
5648 then :
5649 printf %s "(cached) " >&6
5650 else case e in #(
5651 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5652 # We make a subdir and do the tests there. Otherwise we can end up
5653 # making bogus files that we don't know about and never remove. For
5654 # instance it was reported that on HP-UX the gcc test will end up
5655 # making a dummy file named 'D' -- because '-MD' means "put the output
5656 # in D".
5657 rm -rf conftest.dir
5658 mkdir conftest.dir
5659 # Copy depcomp to subdir because otherwise we won't find it if we're
5660 # using a relative directory.
5661 cp "$am_depcomp" conftest.dir
5662 cd conftest.dir
5663 # We will build objects and dependencies in a subdirectory because
5664 # it helps to detect inapplicable dependency modes. For instance
5665 # both Tru64's cc and ICC support -MD to output dependencies as a
5666 # side effect of compilation, but ICC will put the dependencies in
5667 # the current directory while Tru64 will put them in the object
5668 # directory.
5669 mkdir sub
5670
5671 am_cv_CC_dependencies_compiler_type=none
5672 if test "$am_compiler_list" = ""; then
5673 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5674 fi
5675 am__universal=false
5676 case " $depcc " in #(
5677 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5678 esac
5679
5680 for depmode in $am_compiler_list; do
5681 # Setup a source with many dependencies, because some compilers
5682 # like to wrap large dependency lists on column 80 (with \), and
5683 # we should not choose a depcomp mode which is confused by this.
5684 #
5685 # We need to recreate these files for each test, as the compiler may
5686 # overwrite some of them when testing with obscure command lines.
5687 # This happens at least with the AIX C compiler.
5688 : > sub/conftest.c
5689 for i in 1 2 3 4 5 6; do
5690 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5691 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5692 # Solaris 10 /bin/sh.
5693 echo '/* dummy */' > sub/conftst$i.h
5694 done
5695 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5696
5697 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5698 # mode. It turns out that the SunPro C++ compiler does not properly
5699 # handle '-M -o', and we need to detect this. Also, some Intel
5700 # versions had trouble with output in subdirs.
5701 am__obj=sub/conftest.${OBJEXT-o}
5702 am__minus_obj="-o $am__obj"
5703 case $depmode in
5704 gcc)
5705 # This depmode causes a compiler race in universal mode.
5706 test "$am__universal" = false || continue
5707 ;;
5708 nosideeffect)
5709 # After this tag, mechanisms are not by side-effect, so they'll
5710 # only be used when explicitly requested.
5711 if test "x$enable_dependency_tracking" = xyes; then
5712 continue
5713 else
5714 break
5715 fi
5716 ;;
5717 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5718 # This compiler won't grok '-c -o', but also, the minuso test has
5719 # not run yet. These depmodes are late enough in the game, and
5720 # so weak that their functioning should not be impacted.
5721 am__obj=conftest.${OBJEXT-o}
5722 am__minus_obj=
5723 ;;
5724 none) break ;;
5725 esac
5726 if depmode=$depmode \
5727 source=sub/conftest.c object=$am__obj \
5728 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5729 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5730 >/dev/null 2>conftest.err &&
5731 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5732 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5733 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5734 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5735 # icc doesn't choke on unknown options, it will just issue warnings
5736 # or remarks (even with -Werror). So we grep stderr for any message
5737 # that says an option was ignored or not supported.
5738 # When given -MP, icc 7.0 and 7.1 complain thus:
5739 # icc: Command line warning: ignoring option '-M'; no argument required
5740 # The diagnosis changed in icc 8.0:
5741 # icc: Command line remark: option '-MP' not supported
5742 if (grep 'ignoring option' conftest.err ||
5743 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5744 am_cv_CC_dependencies_compiler_type=$depmode
5745 break
5746 fi
5747 fi
5748 done
5749
5750 cd ..
5751 rm -rf conftest.dir
5752 else
5753 am_cv_CC_dependencies_compiler_type=none
5754 fi
5755 ;;
5756 esac
5757 fi
5758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5759 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5760 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5761
5762 if
5763 test "x$enable_dependency_tracking" != xno \
5764 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5765 am__fastdepCC_TRUE=
5766 am__fastdepCC_FALSE='#'
5767 else
5768 am__fastdepCC_TRUE='#'
5769 am__fastdepCC_FALSE=
5770 fi
5771
5772
5773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5774 printf %s "checking for a sed that does not truncate output... " >&6; }
5775 if test ${ac_cv_path_SED+y}
5776 then :
5777 printf %s "(cached) " >&6
5778 else case e in #(
5779 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5780 for ac_i in 1 2 3 4 5 6 7; do
5781 ac_script="$ac_script$as_nl$ac_script"
5782 done
5783 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5784 { ac_script=; unset ac_script;}
5785 if test -z "$SED"; then
5786 ac_path_SED_found=false
5787 # Loop through the user's path and test for each of PROGNAME-LIST
5788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5789 for as_dir in $PATH
5790 do
5791 IFS=$as_save_IFS
5792 case $as_dir in #(((
5793 '') as_dir=./ ;;
5794 */) ;;
5795 *) as_dir=$as_dir/ ;;
5796 esac
5797 for ac_prog in sed gsed
5798 do
5799 for ac_exec_ext in '' $ac_executable_extensions; do
5800 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5801 as_fn_executable_p "$ac_path_SED" || continue
5802 # Check for GNU ac_path_SED and select it if it is found.
5803 # Check for GNU $ac_path_SED
5804 case `"$ac_path_SED" --version 2>&1` in #(
5805 *GNU*)
5806 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5807 #(
5808 *)
5809 ac_count=0
5810 printf %s 0123456789 >"conftest.in"
5811 while :
5812 do
5813 cat "conftest.in" "conftest.in" >"conftest.tmp"
5814 mv "conftest.tmp" "conftest.in"
5815 cp "conftest.in" "conftest.nl"
5816 printf "%s\n" '' >> "conftest.nl"
5817 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5818 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5819 as_fn_arith $ac_count + 1 && ac_count=$as_val
5820 if test $ac_count -gt ${ac_path_SED_max-0}; then
5821 # Best one so far, save it but keep looking for a better one
5822 ac_cv_path_SED="$ac_path_SED"
5823 ac_path_SED_max=$ac_count
5824 fi
5825 # 10*(2^10) chars as input seems more than enough
5826 test $ac_count -gt 10 && break
5827 done
5828 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5829 esac
5830
5831 $ac_path_SED_found && break 3
5832 done
5833 done
5834 done
5835 IFS=$as_save_IFS
5836 if test -z "$ac_cv_path_SED"; then
5837 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5838 fi
5839 else
5840 ac_cv_path_SED=$SED
5841 fi
5842 ;;
5843 esac
5844 fi
5845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5846 printf "%s\n" "$ac_cv_path_SED" >&6; }
5847 SED="$ac_cv_path_SED"
5848 rm -f conftest.sed
5849
5850 test -z "$SED" && SED=sed
5851 Xsed="$SED -e 1s/^X//"
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5864 printf %s "checking for grep that handles long lines and -e... " >&6; }
5865 if test ${ac_cv_path_GREP+y}
5866 then :
5867 printf %s "(cached) " >&6
5868 else case e in #(
5869 e) if test -z "$GREP"; then
5870 ac_path_GREP_found=false
5871 # Loop through the user's path and test for each of PROGNAME-LIST
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5874 do
5875 IFS=$as_save_IFS
5876 case $as_dir in #(((
5877 '') as_dir=./ ;;
5878 */) ;;
5879 *) as_dir=$as_dir/ ;;
5880 esac
5881 for ac_prog in grep ggrep
5882 do
5883 for ac_exec_ext in '' $ac_executable_extensions; do
5884 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5885 as_fn_executable_p "$ac_path_GREP" || continue
5886 # Check for GNU ac_path_GREP and select it if it is found.
5887 # Check for GNU $ac_path_GREP
5888 case `"$ac_path_GREP" --version 2>&1` in #(
5889 *GNU*)
5890 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5891 #(
5892 *)
5893 ac_count=0
5894 printf %s 0123456789 >"conftest.in"
5895 while :
5896 do
5897 cat "conftest.in" "conftest.in" >"conftest.tmp"
5898 mv "conftest.tmp" "conftest.in"
5899 cp "conftest.in" "conftest.nl"
5900 printf "%s\n" 'GREP' >> "conftest.nl"
5901 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5902 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5903 as_fn_arith $ac_count + 1 && ac_count=$as_val
5904 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5905 # Best one so far, save it but keep looking for a better one
5906 ac_cv_path_GREP="$ac_path_GREP"
5907 ac_path_GREP_max=$ac_count
5908 fi
5909 # 10*(2^10) chars as input seems more than enough
5910 test $ac_count -gt 10 && break
5911 done
5912 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5913 esac
5914
5915 $ac_path_GREP_found && break 3
5916 done
5917 done
5918 done
5919 IFS=$as_save_IFS
5920 if test -z "$ac_cv_path_GREP"; then
5921 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5922 fi
5923 else
5924 ac_cv_path_GREP=$GREP
5925 fi
5926 ;;
5927 esac
5928 fi
5929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5930 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5931 GREP="$ac_cv_path_GREP"
5932
5933
5934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5935 printf %s "checking for egrep... " >&6; }
5936 if test ${ac_cv_path_EGREP+y}
5937 then :
5938 printf %s "(cached) " >&6
5939 else case e in #(
5940 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5941 then ac_cv_path_EGREP="$GREP -E"
5942 else
5943 if test -z "$EGREP"; then
5944 ac_path_EGREP_found=false
5945 # Loop through the user's path and test for each of PROGNAME-LIST
5946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5947 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5948 do
5949 IFS=$as_save_IFS
5950 case $as_dir in #(((
5951 '') as_dir=./ ;;
5952 */) ;;
5953 *) as_dir=$as_dir/ ;;
5954 esac
5955 for ac_prog in egrep
5956 do
5957 for ac_exec_ext in '' $ac_executable_extensions; do
5958 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5959 as_fn_executable_p "$ac_path_EGREP" || continue
5960 # Check for GNU ac_path_EGREP and select it if it is found.
5961 # Check for GNU $ac_path_EGREP
5962 case `"$ac_path_EGREP" --version 2>&1` in #(
5963 *GNU*)
5964 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5965 #(
5966 *)
5967 ac_count=0
5968 printf %s 0123456789 >"conftest.in"
5969 while :
5970 do
5971 cat "conftest.in" "conftest.in" >"conftest.tmp"
5972 mv "conftest.tmp" "conftest.in"
5973 cp "conftest.in" "conftest.nl"
5974 printf "%s\n" 'EGREP' >> "conftest.nl"
5975 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5976 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5977 as_fn_arith $ac_count + 1 && ac_count=$as_val
5978 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5979 # Best one so far, save it but keep looking for a better one
5980 ac_cv_path_EGREP="$ac_path_EGREP"
5981 ac_path_EGREP_max=$ac_count
5982 fi
5983 # 10*(2^10) chars as input seems more than enough
5984 test $ac_count -gt 10 && break
5985 done
5986 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5987 esac
5988
5989 $ac_path_EGREP_found && break 3
5990 done
5991 done
5992 done
5993 IFS=$as_save_IFS
5994 if test -z "$ac_cv_path_EGREP"; then
5995 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5996 fi
5997 else
5998 ac_cv_path_EGREP=$EGREP
5999 fi
6000
6001 fi ;;
6002 esac
6003 fi
6004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6005 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6006 EGREP="$ac_cv_path_EGREP"
6007
6008 EGREP_TRADITIONAL=$EGREP
6009 ac_cv_path_EGREP_TRADITIONAL=$EGREP
6010
6011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6012 printf %s "checking for fgrep... " >&6; }
6013 if test ${ac_cv_path_FGREP+y}
6014 then :
6015 printf %s "(cached) " >&6
6016 else case e in #(
6017 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6018 then ac_cv_path_FGREP="$GREP -F"
6019 else
6020 if test -z "$FGREP"; then
6021 ac_path_FGREP_found=false
6022 # Loop through the user's path and test for each of PROGNAME-LIST
6023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6025 do
6026 IFS=$as_save_IFS
6027 case $as_dir in #(((
6028 '') as_dir=./ ;;
6029 */) ;;
6030 *) as_dir=$as_dir/ ;;
6031 esac
6032 for ac_prog in fgrep
6033 do
6034 for ac_exec_ext in '' $ac_executable_extensions; do
6035 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6036 as_fn_executable_p "$ac_path_FGREP" || continue
6037 # Check for GNU ac_path_FGREP and select it if it is found.
6038 # Check for GNU $ac_path_FGREP
6039 case `"$ac_path_FGREP" --version 2>&1` in #(
6040 *GNU*)
6041 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6042 #(
6043 *)
6044 ac_count=0
6045 printf %s 0123456789 >"conftest.in"
6046 while :
6047 do
6048 cat "conftest.in" "conftest.in" >"conftest.tmp"
6049 mv "conftest.tmp" "conftest.in"
6050 cp "conftest.in" "conftest.nl"
6051 printf "%s\n" 'FGREP' >> "conftest.nl"
6052 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6053 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6054 as_fn_arith $ac_count + 1 && ac_count=$as_val
6055 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6056 # Best one so far, save it but keep looking for a better one
6057 ac_cv_path_FGREP="$ac_path_FGREP"
6058 ac_path_FGREP_max=$ac_count
6059 fi
6060 # 10*(2^10) chars as input seems more than enough
6061 test $ac_count -gt 10 && break
6062 done
6063 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6064 esac
6065
6066 $ac_path_FGREP_found && break 3
6067 done
6068 done
6069 done
6070 IFS=$as_save_IFS
6071 if test -z "$ac_cv_path_FGREP"; then
6072 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6073 fi
6074 else
6075 ac_cv_path_FGREP=$FGREP
6076 fi
6077
6078 fi ;;
6079 esac
6080 fi
6081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6082 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6083 FGREP="$ac_cv_path_FGREP"
6084
6085
6086 test -z "$GREP" && GREP=grep
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106 # Check whether --with-gnu-ld was given.
6107 if test ${with_gnu_ld+y}
6108 then :
6109 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6110 else case e in #(
6111 e) with_gnu_ld=no ;;
6112 esac
6113 fi
6114
6115 ac_prog=ld
6116 if test yes = "$GCC"; then
6117 # Check if gcc -print-prog-name=ld gives a path.
6118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6119 printf %s "checking for ld used by $CC... " >&6; }
6120 case $host in
6121 *-*-mingw* | *-*-windows*)
6122 # gcc leaves a trailing carriage return, which upsets mingw
6123 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6124 *)
6125 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6126 esac
6127 case $ac_prog in
6128 # Accept absolute paths.
6129 [\\/]* | ?:[\\/]*)
6130 re_direlt='/[^/][^/]*/\.\./'
6131 # Canonicalize the pathname of ld
6132 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6133 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6134 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6135 done
6136 test -z "$LD" && LD=$ac_prog
6137 ;;
6138 "")
6139 # If it fails, then pretend we aren't using GCC.
6140 ac_prog=ld
6141 ;;
6142 *)
6143 # If it is relative, then search for the first ld in PATH.
6144 with_gnu_ld=unknown
6145 ;;
6146 esac
6147 elif test yes = "$with_gnu_ld"; then
6148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6149 printf %s "checking for GNU ld... " >&6; }
6150 else
6151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6152 printf %s "checking for non-GNU ld... " >&6; }
6153 fi
6154 if test ${lt_cv_path_LD+y}
6155 then :
6156 printf %s "(cached) " >&6
6157 else case e in #(
6158 e) if test -z "$LD"; then
6159 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6160 for ac_dir in $PATH; do
6161 IFS=$lt_save_ifs
6162 test -z "$ac_dir" && ac_dir=.
6163 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6164 lt_cv_path_LD=$ac_dir/$ac_prog
6165 # Check to see if the program is GNU ld. I'd rather use --version,
6166 # but apparently some variants of GNU ld only accept -v.
6167 # Break only if it was the GNU/non-GNU ld that we prefer.
6168 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6169 *GNU* | *'with BFD'*)
6170 test no != "$with_gnu_ld" && break
6171 ;;
6172 *)
6173 test yes != "$with_gnu_ld" && break
6174 ;;
6175 esac
6176 fi
6177 done
6178 IFS=$lt_save_ifs
6179 else
6180 lt_cv_path_LD=$LD # Let the user override the test with a path.
6181 fi ;;
6182 esac
6183 fi
6184
6185 LD=$lt_cv_path_LD
6186 if test -n "$LD"; then
6187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6188 printf "%s\n" "$LD" >&6; }
6189 else
6190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6191 printf "%s\n" "no" >&6; }
6192 fi
6193 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6195 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6196 if test ${lt_cv_prog_gnu_ld+y}
6197 then :
6198 printf %s "(cached) " >&6
6199 else case e in #(
6200 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
6201 case `$LD -v 2>&1 </dev/null` in
6202 *GNU* | *'with BFD'*)
6203 lt_cv_prog_gnu_ld=yes
6204 ;;
6205 *)
6206 lt_cv_prog_gnu_ld=no
6207 ;;
6208 esac ;;
6209 esac
6210 fi
6211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6212 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6213 with_gnu_ld=$lt_cv_prog_gnu_ld
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6224 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6225 if test ${lt_cv_path_NM+y}
6226 then :
6227 printf %s "(cached) " >&6
6228 else case e in #(
6229 e) if test -n "$NM"; then
6230 # Let the user override the test.
6231 lt_cv_path_NM=$NM
6232 else
6233 lt_nm_to_check=${ac_tool_prefix}nm
6234 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6235 lt_nm_to_check="$lt_nm_to_check nm"
6236 fi
6237 for lt_tmp_nm in $lt_nm_to_check; do
6238 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6239 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6240 IFS=$lt_save_ifs
6241 test -z "$ac_dir" && ac_dir=.
6242 tmp_nm=$ac_dir/$lt_tmp_nm
6243 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6244 # Check to see if the nm accepts a BSD-compat flag.
6245 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6246 # nm: unknown option "B" ignored
6247 # Tru64's nm complains that /dev/null is an invalid object file
6248 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6249 case $build_os in
6250 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
6251 *) lt_bad_file=/dev/null ;;
6252 esac
6253 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
6254 *$lt_bad_file* | *'Invalid file or object type'*)
6255 lt_cv_path_NM="$tmp_nm -B"
6256 break 2
6257 ;;
6258 *)
6259 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
6260 */dev/null*)
6261 lt_cv_path_NM="$tmp_nm -p"
6262 break 2
6263 ;;
6264 *)
6265 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6266 continue # so that we can try to find one that supports BSD flags
6267 ;;
6268 esac
6269 ;;
6270 esac
6271 fi
6272 done
6273 IFS=$lt_save_ifs
6274 done
6275 : ${lt_cv_path_NM=no}
6276 fi ;;
6277 esac
6278 fi
6279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6280 printf "%s\n" "$lt_cv_path_NM" >&6; }
6281 if test no != "$lt_cv_path_NM"; then
6282 NM=$lt_cv_path_NM
6283 else
6284 # Didn't find any BSD compatible name lister, look for dumpbin.
6285 if test -n "$DUMPBIN"; then :
6286 # Let the user override the test.
6287 else
6288 if test -n "$ac_tool_prefix"; then
6289 for ac_prog in dumpbin "link -dump"
6290 do
6291 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6292 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6294 printf %s "checking for $ac_word... " >&6; }
6295 if test ${ac_cv_prog_DUMPBIN+y}
6296 then :
6297 printf %s "(cached) " >&6
6298 else case e in #(
6299 e) if test -n "$DUMPBIN"; then
6300 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6301 else
6302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6303 for as_dir in $PATH
6304 do
6305 IFS=$as_save_IFS
6306 case $as_dir in #(((
6307 '') as_dir=./ ;;
6308 */) ;;
6309 *) as_dir=$as_dir/ ;;
6310 esac
6311 for ac_exec_ext in '' $ac_executable_extensions; do
6312 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6313 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6314 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6315 break 2
6316 fi
6317 done
6318 done
6319 IFS=$as_save_IFS
6320
6321 fi ;;
6322 esac
6323 fi
6324 DUMPBIN=$ac_cv_prog_DUMPBIN
6325 if test -n "$DUMPBIN"; then
6326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6327 printf "%s\n" "$DUMPBIN" >&6; }
6328 else
6329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6330 printf "%s\n" "no" >&6; }
6331 fi
6332
6333
6334 test -n "$DUMPBIN" && break
6335 done
6336 fi
6337 if test -z "$DUMPBIN"; then
6338 ac_ct_DUMPBIN=$DUMPBIN
6339 for ac_prog in dumpbin "link -dump"
6340 do
6341 # Extract the first word of "$ac_prog", so it can be a program name with args.
6342 set dummy $ac_prog; ac_word=$2
6343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6344 printf %s "checking for $ac_word... " >&6; }
6345 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6346 then :
6347 printf %s "(cached) " >&6
6348 else case e in #(
6349 e) if test -n "$ac_ct_DUMPBIN"; then
6350 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6351 else
6352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353 for as_dir in $PATH
6354 do
6355 IFS=$as_save_IFS
6356 case $as_dir in #(((
6357 '') as_dir=./ ;;
6358 */) ;;
6359 *) as_dir=$as_dir/ ;;
6360 esac
6361 for ac_exec_ext in '' $ac_executable_extensions; do
6362 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6363 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6364 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6365 break 2
6366 fi
6367 done
6368 done
6369 IFS=$as_save_IFS
6370
6371 fi ;;
6372 esac
6373 fi
6374 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6375 if test -n "$ac_ct_DUMPBIN"; then
6376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6377 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6378 else
6379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6380 printf "%s\n" "no" >&6; }
6381 fi
6382
6383
6384 test -n "$ac_ct_DUMPBIN" && break
6385 done
6386
6387 if test "x$ac_ct_DUMPBIN" = x; then
6388 DUMPBIN=":"
6389 else
6390 case $cross_compiling:$ac_tool_warned in
6391 yes:)
6392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6393 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6394 ac_tool_warned=yes ;;
6395 esac
6396 DUMPBIN=$ac_ct_DUMPBIN
6397 fi
6398 fi
6399
6400 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6401 *COFF*)
6402 DUMPBIN="$DUMPBIN -symbols -headers"
6403 ;;
6404 *)
6405 DUMPBIN=:
6406 ;;
6407 esac
6408 fi
6409
6410 if test : != "$DUMPBIN"; then
6411 NM=$DUMPBIN
6412 fi
6413 fi
6414 test -z "$NM" && NM=nm
6415
6416
6417
6418
6419
6420
6421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6422 printf %s "checking the name lister ($NM) interface... " >&6; }
6423 if test ${lt_cv_nm_interface+y}
6424 then :
6425 printf %s "(cached) " >&6
6426 else case e in #(
6427 e) lt_cv_nm_interface="BSD nm"
6428 echo "int some_variable = 0;" > conftest.$ac_ext
6429 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6430 (eval "$ac_compile" 2>conftest.err)
6431 cat conftest.err >&5
6432 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6433 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6434 cat conftest.err >&5
6435 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6436 cat conftest.out >&5
6437 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6438 lt_cv_nm_interface="MS dumpbin"
6439 fi
6440 rm -f conftest* ;;
6441 esac
6442 fi
6443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6444 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6445
6446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6447 printf %s "checking whether ln -s works... " >&6; }
6448 LN_S=$as_ln_s
6449 if test "$LN_S" = "ln -s"; then
6450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6451 printf "%s\n" "yes" >&6; }
6452 else
6453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6454 printf "%s\n" "no, using $LN_S" >&6; }
6455 fi
6456
6457 # find the maximum length of command line arguments
6458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6459 printf %s "checking the maximum length of command line arguments... " >&6; }
6460 if test ${lt_cv_sys_max_cmd_len+y}
6461 then :
6462 printf %s "(cached) " >&6
6463 else case e in #(
6464 e) i=0
6465 teststring=ABCD
6466
6467 case $build_os in
6468 msdosdjgpp*)
6469 # On DJGPP, this test can blow up pretty badly due to problems in libc
6470 # (any single argument exceeding 2000 bytes causes a buffer overrun
6471 # during glob expansion). Even if it were fixed, the result of this
6472 # check would be larger than it should be.
6473 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6474 ;;
6475
6476 gnu* | ironclad*)
6477 # Under GNU Hurd and Ironclad, this test is not required because there
6478 # is no limit to the length of command line arguments.
6479 # Libtool will interpret -1 as no limit whatsoever
6480 lt_cv_sys_max_cmd_len=-1;
6481 ;;
6482
6483 cygwin* | mingw* | windows* | cegcc*)
6484 # On Win9x/ME, this test blows up -- it succeeds, but takes
6485 # about 5 minutes as the teststring grows exponentially.
6486 # Worse, since 9x/ME are not pre-emptively multitasking,
6487 # you end up with a "frozen" computer, even though with patience
6488 # the test eventually succeeds (with a max line length of 256k).
6489 # Instead, let's just punt: use the minimum linelength reported by
6490 # all of the supported platforms: 8192 (on NT/2K/XP).
6491 lt_cv_sys_max_cmd_len=8192;
6492 ;;
6493
6494 mint*)
6495 # On MiNT this can take a long time and run out of memory.
6496 lt_cv_sys_max_cmd_len=8192;
6497 ;;
6498
6499 amigaos*)
6500 # On AmigaOS with pdksh, this test takes hours, literally.
6501 # So we just punt and use a minimum line length of 8192.
6502 lt_cv_sys_max_cmd_len=8192;
6503 ;;
6504
6505 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6506 # This has been around since 386BSD, at least. Likely further.
6507 if test -x /sbin/sysctl; then
6508 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6509 elif test -x /usr/sbin/sysctl; then
6510 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6511 else
6512 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6513 fi
6514 # And add a safety zone
6515 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6516 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6517 ;;
6518
6519 interix*)
6520 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6521 lt_cv_sys_max_cmd_len=196608
6522 ;;
6523
6524 os2*)
6525 # The test takes a long time on OS/2.
6526 lt_cv_sys_max_cmd_len=8192
6527 ;;
6528
6529 osf*)
6530 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6531 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6532 # nice to cause kernel panics so lets avoid the loop below.
6533 # First set a reasonable default.
6534 lt_cv_sys_max_cmd_len=16384
6535 #
6536 if test -x /sbin/sysconfig; then
6537 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6538 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6539 esac
6540 fi
6541 ;;
6542 sco3.2v5*)
6543 lt_cv_sys_max_cmd_len=102400
6544 ;;
6545 sysv5* | sco5v6* | sysv4.2uw2*)
6546 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6547 if test -n "$kargmax"; then
6548 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6549 else
6550 lt_cv_sys_max_cmd_len=32768
6551 fi
6552 ;;
6553 *)
6554 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6555 if test -n "$lt_cv_sys_max_cmd_len" && \
6556 test undefined != "$lt_cv_sys_max_cmd_len"; then
6557 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6558 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6559 else
6560 # Make teststring a little bigger before we do anything with it.
6561 # a 1K string should be a reasonable start.
6562 for i in 1 2 3 4 5 6 7 8; do
6563 teststring=$teststring$teststring
6564 done
6565 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6566 # If test is not a shell built-in, we'll probably end up computing a
6567 # maximum length that is only half of the actual maximum length, but
6568 # we can't tell.
6569 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6570 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6571 test 17 != "$i" # 1/2 MB should be enough
6572 do
6573 i=`expr $i + 1`
6574 teststring=$teststring$teststring
6575 done
6576 # Only check the string length outside the loop.
6577 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6578 teststring=
6579 # Add a significant safety factor because C++ compilers can tack on
6580 # massive amounts of additional arguments before passing them to the
6581 # linker. It appears as though 1/2 is a usable value.
6582 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6583 fi
6584 ;;
6585 esac
6586 ;;
6587 esac
6588 fi
6589
6590 if test -n "$lt_cv_sys_max_cmd_len"; then
6591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6592 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6593 else
6594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6595 printf "%s\n" "none" >&6; }
6596 fi
6597 max_cmd_len=$lt_cv_sys_max_cmd_len
6598
6599
6600
6601
6602
6603
6604 : ${CP="cp -f"}
6605 : ${MV="mv -f"}
6606 : ${RM="rm -f"}
6607
6608 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6609 lt_unset=unset
6610 else
6611 lt_unset=false
6612 fi
6613
6614
6615
6616
6617
6618 # test EBCDIC or ASCII
6619 case `echo X|tr X '\101'` in
6620 A) # ASCII based system
6621 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6622 lt_SP2NL='tr \040 \012'
6623 lt_NL2SP='tr \015\012 \040\040'
6624 ;;
6625 *) # EBCDIC based system
6626 lt_SP2NL='tr \100 \n'
6627 lt_NL2SP='tr \r\n \100\100'
6628 ;;
6629 esac
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6640 printf %s "checking how to convert $build file names to $host format... " >&6; }
6641 if test ${lt_cv_to_host_file_cmd+y}
6642 then :
6643 printf %s "(cached) " >&6
6644 else case e in #(
6645 e) case $host in
6646 *-*-mingw* )
6647 case $build in
6648 *-*-mingw* | *-*-windows* ) # actually msys
6649 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6650 ;;
6651 *-*-cygwin* )
6652 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6653 ;;
6654 * ) # otherwise, assume *nix
6655 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6656 ;;
6657 esac
6658 ;;
6659 *-*-cygwin* )
6660 case $build in
6661 *-*-mingw* | *-*-windows* ) # actually msys
6662 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6663 ;;
6664 *-*-cygwin* )
6665 lt_cv_to_host_file_cmd=func_convert_file_noop
6666 ;;
6667 * ) # otherwise, assume *nix
6668 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6669 ;;
6670 esac
6671 ;;
6672 * ) # unhandled hosts (and "normal" native builds)
6673 lt_cv_to_host_file_cmd=func_convert_file_noop
6674 ;;
6675 esac
6676 ;;
6677 esac
6678 fi
6679
6680 to_host_file_cmd=$lt_cv_to_host_file_cmd
6681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6682 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6683
6684
6685
6686
6687
6688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6689 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6690 if test ${lt_cv_to_tool_file_cmd+y}
6691 then :
6692 printf %s "(cached) " >&6
6693 else case e in #(
6694 e) #assume ordinary cross tools, or native build.
6695 lt_cv_to_tool_file_cmd=func_convert_file_noop
6696 case $host in
6697 *-*-mingw* | *-*-windows* )
6698 case $build in
6699 *-*-mingw* | *-*-windows* ) # actually msys
6700 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6701 ;;
6702 esac
6703 ;;
6704 esac
6705 ;;
6706 esac
6707 fi
6708
6709 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6711 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6712
6713
6714
6715
6716
6717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6718 printf %s "checking for $LD option to reload object files... " >&6; }
6719 if test ${lt_cv_ld_reload_flag+y}
6720 then :
6721 printf %s "(cached) " >&6
6722 else case e in #(
6723 e) lt_cv_ld_reload_flag='-r' ;;
6724 esac
6725 fi
6726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6727 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6728 reload_flag=$lt_cv_ld_reload_flag
6729 case $reload_flag in
6730 "" | " "*) ;;
6731 *) reload_flag=" $reload_flag" ;;
6732 esac
6733 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6734 case $host_os in
6735 cygwin* | mingw* | windows* | pw32* | cegcc*)
6736 if test yes != "$GCC"; then
6737 reload_cmds=false
6738 fi
6739 ;;
6740 darwin*)
6741 if test yes = "$GCC"; then
6742 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6743 else
6744 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6745 fi
6746 ;;
6747 esac
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757 # Extract the first word of "file", so it can be a program name with args.
6758 set dummy file; ac_word=$2
6759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6760 printf %s "checking for $ac_word... " >&6; }
6761 if test ${ac_cv_prog_FILECMD+y}
6762 then :
6763 printf %s "(cached) " >&6
6764 else case e in #(
6765 e) if test -n "$FILECMD"; then
6766 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6767 else
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 for as_dir in $PATH
6770 do
6771 IFS=$as_save_IFS
6772 case $as_dir in #(((
6773 '') as_dir=./ ;;
6774 */) ;;
6775 *) as_dir=$as_dir/ ;;
6776 esac
6777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6779 ac_cv_prog_FILECMD="file"
6780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6781 break 2
6782 fi
6783 done
6784 done
6785 IFS=$as_save_IFS
6786
6787 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6788 fi ;;
6789 esac
6790 fi
6791 FILECMD=$ac_cv_prog_FILECMD
6792 if test -n "$FILECMD"; then
6793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6794 printf "%s\n" "$FILECMD" >&6; }
6795 else
6796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6797 printf "%s\n" "no" >&6; }
6798 fi
6799
6800
6801
6802
6803
6804
6805
6806
6807 if test -n "$ac_tool_prefix"; then
6808 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6809 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811 printf %s "checking for $ac_word... " >&6; }
6812 if test ${ac_cv_prog_OBJDUMP+y}
6813 then :
6814 printf %s "(cached) " >&6
6815 else case e in #(
6816 e) if test -n "$OBJDUMP"; then
6817 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6818 else
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820 for as_dir in $PATH
6821 do
6822 IFS=$as_save_IFS
6823 case $as_dir in #(((
6824 '') as_dir=./ ;;
6825 */) ;;
6826 *) as_dir=$as_dir/ ;;
6827 esac
6828 for ac_exec_ext in '' $ac_executable_extensions; do
6829 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6830 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6832 break 2
6833 fi
6834 done
6835 done
6836 IFS=$as_save_IFS
6837
6838 fi ;;
6839 esac
6840 fi
6841 OBJDUMP=$ac_cv_prog_OBJDUMP
6842 if test -n "$OBJDUMP"; then
6843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6844 printf "%s\n" "$OBJDUMP" >&6; }
6845 else
6846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847 printf "%s\n" "no" >&6; }
6848 fi
6849
6850
6851 fi
6852 if test -z "$ac_cv_prog_OBJDUMP"; then
6853 ac_ct_OBJDUMP=$OBJDUMP
6854 # Extract the first word of "objdump", so it can be a program name with args.
6855 set dummy objdump; ac_word=$2
6856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6857 printf %s "checking for $ac_word... " >&6; }
6858 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6859 then :
6860 printf %s "(cached) " >&6
6861 else case e in #(
6862 e) if test -n "$ac_ct_OBJDUMP"; then
6863 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6864 else
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 for as_dir in $PATH
6867 do
6868 IFS=$as_save_IFS
6869 case $as_dir in #(((
6870 '') as_dir=./ ;;
6871 */) ;;
6872 *) as_dir=$as_dir/ ;;
6873 esac
6874 for ac_exec_ext in '' $ac_executable_extensions; do
6875 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6876 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6878 break 2
6879 fi
6880 done
6881 done
6882 IFS=$as_save_IFS
6883
6884 fi ;;
6885 esac
6886 fi
6887 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6888 if test -n "$ac_ct_OBJDUMP"; then
6889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6890 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6891 else
6892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6893 printf "%s\n" "no" >&6; }
6894 fi
6895
6896 if test "x$ac_ct_OBJDUMP" = x; then
6897 OBJDUMP="false"
6898 else
6899 case $cross_compiling:$ac_tool_warned in
6900 yes:)
6901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6902 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6903 ac_tool_warned=yes ;;
6904 esac
6905 OBJDUMP=$ac_ct_OBJDUMP
6906 fi
6907 else
6908 OBJDUMP="$ac_cv_prog_OBJDUMP"
6909 fi
6910
6911 test -z "$OBJDUMP" && OBJDUMP=objdump
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6922 printf %s "checking how to recognize dependent libraries... " >&6; }
6923 if test ${lt_cv_deplibs_check_method+y}
6924 then :
6925 printf %s "(cached) " >&6
6926 else case e in #(
6927 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6928 lt_cv_file_magic_test_file=
6929 lt_cv_deplibs_check_method='unknown'
6930 # Need to set the preceding variable on all platforms that support
6931 # interlibrary dependencies.
6932 # 'none' -- dependencies not supported.
6933 # 'unknown' -- same as none, but documents that we really don't know.
6934 # 'pass_all' -- all dependencies passed with no checks.
6935 # 'file_magic [[regex]]' -- check by looking for files in library path
6936 # that responds to the $file_magic_cmd with a given extended regex.
6937 # If you have 'file' or equivalent on your system and you're not sure
6938 # whether 'pass_all' will *always* work, you probably want this one.
6939
6940 case $host_os in
6941 aix[4-9]*)
6942 lt_cv_deplibs_check_method=pass_all
6943 ;;
6944
6945 beos*)
6946 lt_cv_deplibs_check_method=pass_all
6947 ;;
6948
6949 bsdi[45]*)
6950 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6951 lt_cv_file_magic_cmd='$FILECMD -L'
6952 lt_cv_file_magic_test_file=/shlib/libc.so
6953 ;;
6954
6955 cygwin*)
6956 # func_win32_libid is a shell function defined in ltmain.sh
6957 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6958 lt_cv_file_magic_cmd='func_win32_libid'
6959 ;;
6960
6961 mingw* | windows* | pw32*)
6962 # Base MSYS/MinGW do not provide the 'file' command needed by
6963 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6964 # unless we find 'file', for example because we are cross-compiling.
6965 if ( file / ) >/dev/null 2>&1; then
6966 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6967 lt_cv_file_magic_cmd='func_win32_libid'
6968 else
6969 # Keep this pattern in sync with the one in func_win32_libid.
6970 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6971 lt_cv_file_magic_cmd='$OBJDUMP -f'
6972 fi
6973 ;;
6974
6975 cegcc*)
6976 # use the weaker test based on 'objdump'. See mingw*.
6977 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6978 lt_cv_file_magic_cmd='$OBJDUMP -f'
6979 ;;
6980
6981 darwin* | rhapsody*)
6982 lt_cv_deplibs_check_method=pass_all
6983 ;;
6984
6985 freebsd* | dragonfly* | midnightbsd*)
6986 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6987 case $host_cpu in
6988 i*86 )
6989 # Not sure whether the presence of OpenBSD here was a mistake.
6990 # Let's accept both of them until this is cleared up.
6991 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6992 lt_cv_file_magic_cmd=$FILECMD
6993 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6994 ;;
6995 esac
6996 else
6997 lt_cv_deplibs_check_method=pass_all
6998 fi
6999 ;;
7000
7001 haiku*)
7002 lt_cv_deplibs_check_method=pass_all
7003 ;;
7004
7005 hpux10.20* | hpux11*)
7006 lt_cv_file_magic_cmd=$FILECMD
7007 case $host_cpu in
7008 ia64*)
7009 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7010 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7011 ;;
7012 hppa*64*)
7013 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]'
7014 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7015 ;;
7016 *)
7017 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7018 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7019 ;;
7020 esac
7021 ;;
7022
7023 interix[3-9]*)
7024 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7025 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7026 ;;
7027
7028 irix5* | irix6* | nonstopux*)
7029 case $LD in
7030 *-32|*"-32 ") libmagic=32-bit;;
7031 *-n32|*"-n32 ") libmagic=N32;;
7032 *-64|*"-64 ") libmagic=64-bit;;
7033 *) libmagic=never-match;;
7034 esac
7035 lt_cv_deplibs_check_method=pass_all
7036 ;;
7037
7038 # This must be glibc/ELF.
7039 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7040 lt_cv_deplibs_check_method=pass_all
7041 ;;
7042
7043 *-mlibc)
7044 lt_cv_deplibs_check_method=pass_all
7045 ;;
7046
7047 netbsd* | netbsdelf*-gnu)
7048 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7049 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7050 else
7051 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7052 fi
7053 ;;
7054
7055 newos6*)
7056 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7057 lt_cv_file_magic_cmd=$FILECMD
7058 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7059 ;;
7060
7061 *nto* | *qnx*)
7062 lt_cv_deplibs_check_method=pass_all
7063 ;;
7064
7065 openbsd*)
7066 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7067 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7068 else
7069 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7070 fi
7071 ;;
7072
7073 osf3* | osf4* | osf5*)
7074 lt_cv_deplibs_check_method=pass_all
7075 ;;
7076
7077 rdos*)
7078 lt_cv_deplibs_check_method=pass_all
7079 ;;
7080
7081 serenity*)
7082 lt_cv_deplibs_check_method=pass_all
7083 ;;
7084
7085 solaris*)
7086 lt_cv_deplibs_check_method=pass_all
7087 ;;
7088
7089 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7090 lt_cv_deplibs_check_method=pass_all
7091 ;;
7092
7093 sysv4 | sysv4.3*)
7094 case $host_vendor in
7095 motorola)
7096 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]'
7097 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7098 ;;
7099 ncr)
7100 lt_cv_deplibs_check_method=pass_all
7101 ;;
7102 sequent)
7103 lt_cv_file_magic_cmd='/bin/file'
7104 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7105 ;;
7106 sni)
7107 lt_cv_file_magic_cmd='/bin/file'
7108 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7109 lt_cv_file_magic_test_file=/lib/libc.so
7110 ;;
7111 siemens)
7112 lt_cv_deplibs_check_method=pass_all
7113 ;;
7114 pc)
7115 lt_cv_deplibs_check_method=pass_all
7116 ;;
7117 esac
7118 ;;
7119
7120 tpf*)
7121 lt_cv_deplibs_check_method=pass_all
7122 ;;
7123 os2*)
7124 lt_cv_deplibs_check_method=pass_all
7125 ;;
7126 esac
7127 ;;
7128 esac
7129 fi
7130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7131 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7132
7133 file_magic_glob=
7134 want_nocaseglob=no
7135 if test "$build" = "$host"; then
7136 case $host_os in
7137 mingw* | windows* | pw32*)
7138 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7139 want_nocaseglob=yes
7140 else
7141 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7142 fi
7143 ;;
7144 esac
7145 fi
7146
7147 file_magic_cmd=$lt_cv_file_magic_cmd
7148 deplibs_check_method=$lt_cv_deplibs_check_method
7149 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172 if test -n "$ac_tool_prefix"; then
7173 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7174 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7176 printf %s "checking for $ac_word... " >&6; }
7177 if test ${ac_cv_prog_DLLTOOL+y}
7178 then :
7179 printf %s "(cached) " >&6
7180 else case e in #(
7181 e) if test -n "$DLLTOOL"; then
7182 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7183 else
7184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185 for as_dir in $PATH
7186 do
7187 IFS=$as_save_IFS
7188 case $as_dir in #(((
7189 '') as_dir=./ ;;
7190 */) ;;
7191 *) as_dir=$as_dir/ ;;
7192 esac
7193 for ac_exec_ext in '' $ac_executable_extensions; do
7194 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7195 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7196 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7197 break 2
7198 fi
7199 done
7200 done
7201 IFS=$as_save_IFS
7202
7203 fi ;;
7204 esac
7205 fi
7206 DLLTOOL=$ac_cv_prog_DLLTOOL
7207 if test -n "$DLLTOOL"; then
7208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7209 printf "%s\n" "$DLLTOOL" >&6; }
7210 else
7211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7212 printf "%s\n" "no" >&6; }
7213 fi
7214
7215
7216 fi
7217 if test -z "$ac_cv_prog_DLLTOOL"; then
7218 ac_ct_DLLTOOL=$DLLTOOL
7219 # Extract the first word of "dlltool", so it can be a program name with args.
7220 set dummy dlltool; ac_word=$2
7221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7222 printf %s "checking for $ac_word... " >&6; }
7223 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7224 then :
7225 printf %s "(cached) " >&6
7226 else case e in #(
7227 e) if test -n "$ac_ct_DLLTOOL"; then
7228 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7229 else
7230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231 for as_dir in $PATH
7232 do
7233 IFS=$as_save_IFS
7234 case $as_dir in #(((
7235 '') as_dir=./ ;;
7236 */) ;;
7237 *) as_dir=$as_dir/ ;;
7238 esac
7239 for ac_exec_ext in '' $ac_executable_extensions; do
7240 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7241 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7243 break 2
7244 fi
7245 done
7246 done
7247 IFS=$as_save_IFS
7248
7249 fi ;;
7250 esac
7251 fi
7252 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7253 if test -n "$ac_ct_DLLTOOL"; then
7254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7255 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7256 else
7257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7258 printf "%s\n" "no" >&6; }
7259 fi
7260
7261 if test "x$ac_ct_DLLTOOL" = x; then
7262 DLLTOOL="false"
7263 else
7264 case $cross_compiling:$ac_tool_warned in
7265 yes:)
7266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7267 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7268 ac_tool_warned=yes ;;
7269 esac
7270 DLLTOOL=$ac_ct_DLLTOOL
7271 fi
7272 else
7273 DLLTOOL="$ac_cv_prog_DLLTOOL"
7274 fi
7275
7276 test -z "$DLLTOOL" && DLLTOOL=dlltool
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7288 printf %s "checking how to associate runtime and link libraries... " >&6; }
7289 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7290 then :
7291 printf %s "(cached) " >&6
7292 else case e in #(
7293 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
7294
7295 case $host_os in
7296 cygwin* | mingw* | windows* | pw32* | cegcc*)
7297 # two different shell functions defined in ltmain.sh;
7298 # decide which one to use based on capabilities of $DLLTOOL
7299 case `$DLLTOOL --help 2>&1` in
7300 *--identify-strict*)
7301 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7302 ;;
7303 *)
7304 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7305 ;;
7306 esac
7307 ;;
7308 *)
7309 # fallback: assume linklib IS sharedlib
7310 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7311 ;;
7312 esac
7313 ;;
7314 esac
7315 fi
7316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7317 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7318 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7319 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7320
7321
7322
7323
7324
7325
7326
7327
7328 if test -n "$ac_tool_prefix"; then
7329 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7330 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7332 printf %s "checking for $ac_word... " >&6; }
7333 if test ${ac_cv_prog_RANLIB+y}
7334 then :
7335 printf %s "(cached) " >&6
7336 else case e in #(
7337 e) if test -n "$RANLIB"; then
7338 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7339 else
7340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341 for as_dir in $PATH
7342 do
7343 IFS=$as_save_IFS
7344 case $as_dir in #(((
7345 '') as_dir=./ ;;
7346 */) ;;
7347 *) as_dir=$as_dir/ ;;
7348 esac
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7351 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7352 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7353 break 2
7354 fi
7355 done
7356 done
7357 IFS=$as_save_IFS
7358
7359 fi ;;
7360 esac
7361 fi
7362 RANLIB=$ac_cv_prog_RANLIB
7363 if test -n "$RANLIB"; then
7364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7365 printf "%s\n" "$RANLIB" >&6; }
7366 else
7367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7368 printf "%s\n" "no" >&6; }
7369 fi
7370
7371
7372 fi
7373 if test -z "$ac_cv_prog_RANLIB"; then
7374 ac_ct_RANLIB=$RANLIB
7375 # Extract the first word of "ranlib", so it can be a program name with args.
7376 set dummy ranlib; ac_word=$2
7377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7378 printf %s "checking for $ac_word... " >&6; }
7379 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7380 then :
7381 printf %s "(cached) " >&6
7382 else case e in #(
7383 e) if test -n "$ac_ct_RANLIB"; then
7384 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7385 else
7386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387 for as_dir in $PATH
7388 do
7389 IFS=$as_save_IFS
7390 case $as_dir in #(((
7391 '') as_dir=./ ;;
7392 */) ;;
7393 *) as_dir=$as_dir/ ;;
7394 esac
7395 for ac_exec_ext in '' $ac_executable_extensions; do
7396 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7397 ac_cv_prog_ac_ct_RANLIB="ranlib"
7398 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7399 break 2
7400 fi
7401 done
7402 done
7403 IFS=$as_save_IFS
7404
7405 fi ;;
7406 esac
7407 fi
7408 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7409 if test -n "$ac_ct_RANLIB"; then
7410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7411 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7412 else
7413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7414 printf "%s\n" "no" >&6; }
7415 fi
7416
7417 if test "x$ac_ct_RANLIB" = x; then
7418 RANLIB=":"
7419 else
7420 case $cross_compiling:$ac_tool_warned in
7421 yes:)
7422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7423 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7424 ac_tool_warned=yes ;;
7425 esac
7426 RANLIB=$ac_ct_RANLIB
7427 fi
7428 else
7429 RANLIB="$ac_cv_prog_RANLIB"
7430 fi
7431
7432 if test -n "$ac_tool_prefix"; then
7433 for ac_prog in ar
7434 do
7435 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7436 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7438 printf %s "checking for $ac_word... " >&6; }
7439 if test ${ac_cv_prog_AR+y}
7440 then :
7441 printf %s "(cached) " >&6
7442 else case e in #(
7443 e) if test -n "$AR"; then
7444 ac_cv_prog_AR="$AR" # Let the user override the test.
7445 else
7446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447 for as_dir in $PATH
7448 do
7449 IFS=$as_save_IFS
7450 case $as_dir in #(((
7451 '') as_dir=./ ;;
7452 */) ;;
7453 *) as_dir=$as_dir/ ;;
7454 esac
7455 for ac_exec_ext in '' $ac_executable_extensions; do
7456 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7457 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7459 break 2
7460 fi
7461 done
7462 done
7463 IFS=$as_save_IFS
7464
7465 fi ;;
7466 esac
7467 fi
7468 AR=$ac_cv_prog_AR
7469 if test -n "$AR"; then
7470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7471 printf "%s\n" "$AR" >&6; }
7472 else
7473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7474 printf "%s\n" "no" >&6; }
7475 fi
7476
7477
7478 test -n "$AR" && break
7479 done
7480 fi
7481 if test -z "$AR"; then
7482 ac_ct_AR=$AR
7483 for ac_prog in ar
7484 do
7485 # Extract the first word of "$ac_prog", so it can be a program name with args.
7486 set dummy $ac_prog; ac_word=$2
7487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7488 printf %s "checking for $ac_word... " >&6; }
7489 if test ${ac_cv_prog_ac_ct_AR+y}
7490 then :
7491 printf %s "(cached) " >&6
7492 else case e in #(
7493 e) if test -n "$ac_ct_AR"; then
7494 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7495 else
7496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7497 for as_dir in $PATH
7498 do
7499 IFS=$as_save_IFS
7500 case $as_dir in #(((
7501 '') as_dir=./ ;;
7502 */) ;;
7503 *) as_dir=$as_dir/ ;;
7504 esac
7505 for ac_exec_ext in '' $ac_executable_extensions; do
7506 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7507 ac_cv_prog_ac_ct_AR="$ac_prog"
7508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7509 break 2
7510 fi
7511 done
7512 done
7513 IFS=$as_save_IFS
7514
7515 fi ;;
7516 esac
7517 fi
7518 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7519 if test -n "$ac_ct_AR"; then
7520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7521 printf "%s\n" "$ac_ct_AR" >&6; }
7522 else
7523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7524 printf "%s\n" "no" >&6; }
7525 fi
7526
7527
7528 test -n "$ac_ct_AR" && break
7529 done
7530
7531 if test "x$ac_ct_AR" = x; then
7532 AR="false"
7533 else
7534 case $cross_compiling:$ac_tool_warned in
7535 yes:)
7536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7537 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7538 ac_tool_warned=yes ;;
7539 esac
7540 AR=$ac_ct_AR
7541 fi
7542 fi
7543
7544 : ${AR=ar}
7545
7546
7547
7548
7549
7550
7551 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7552 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7553 # higher priority because that's what people were doing historically (setting
7554 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7555 # variable obsoleted/removed.
7556
7557 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7558 lt_ar_flags=$AR_FLAGS
7559
7560
7561
7562
7563
7564
7565 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7566 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7567
7568
7569
7570
7571
7572
7573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7574 printf %s "checking for archiver @FILE support... " >&6; }
7575 if test ${lt_cv_ar_at_file+y}
7576 then :
7577 printf %s "(cached) " >&6
7578 else case e in #(
7579 e) lt_cv_ar_at_file=no
7580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7581 /* end confdefs.h. */
7582
7583 int
7584 main (void)
7585 {
7586
7587 ;
7588 return 0;
7589 }
7590 _ACEOF
7591 if ac_fn_cxx_try_compile "$LINENO"
7592 then :
7593 echo conftest.$ac_objext > conftest.lst
7594 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7596 (eval $lt_ar_try) 2>&5
7597 ac_status=$?
7598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7599 test $ac_status = 0; }
7600 if test 0 -eq "$ac_status"; then
7601 # Ensure the archiver fails upon bogus file names.
7602 rm -f conftest.$ac_objext libconftest.a
7603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7604 (eval $lt_ar_try) 2>&5
7605 ac_status=$?
7606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7607 test $ac_status = 0; }
7608 if test 0 -ne "$ac_status"; then
7609 lt_cv_ar_at_file=@
7610 fi
7611 fi
7612 rm -f conftest.* libconftest.a
7613
7614 fi
7615 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7616 ;;
7617 esac
7618 fi
7619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7620 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7621
7622 if test no = "$lt_cv_ar_at_file"; then
7623 archiver_list_spec=
7624 else
7625 archiver_list_spec=$lt_cv_ar_at_file
7626 fi
7627
7628
7629
7630
7631
7632
7633
7634 if test -n "$ac_tool_prefix"; then
7635 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7636 set dummy ${ac_tool_prefix}strip; ac_word=$2
7637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7638 printf %s "checking for $ac_word... " >&6; }
7639 if test ${ac_cv_prog_STRIP+y}
7640 then :
7641 printf %s "(cached) " >&6
7642 else case e in #(
7643 e) if test -n "$STRIP"; then
7644 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7645 else
7646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647 for as_dir in $PATH
7648 do
7649 IFS=$as_save_IFS
7650 case $as_dir in #(((
7651 '') as_dir=./ ;;
7652 */) ;;
7653 *) as_dir=$as_dir/ ;;
7654 esac
7655 for ac_exec_ext in '' $ac_executable_extensions; do
7656 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7657 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7659 break 2
7660 fi
7661 done
7662 done
7663 IFS=$as_save_IFS
7664
7665 fi ;;
7666 esac
7667 fi
7668 STRIP=$ac_cv_prog_STRIP
7669 if test -n "$STRIP"; then
7670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7671 printf "%s\n" "$STRIP" >&6; }
7672 else
7673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7674 printf "%s\n" "no" >&6; }
7675 fi
7676
7677
7678 fi
7679 if test -z "$ac_cv_prog_STRIP"; then
7680 ac_ct_STRIP=$STRIP
7681 # Extract the first word of "strip", so it can be a program name with args.
7682 set dummy strip; ac_word=$2
7683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7684 printf %s "checking for $ac_word... " >&6; }
7685 if test ${ac_cv_prog_ac_ct_STRIP+y}
7686 then :
7687 printf %s "(cached) " >&6
7688 else case e in #(
7689 e) if test -n "$ac_ct_STRIP"; then
7690 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7691 else
7692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7693 for as_dir in $PATH
7694 do
7695 IFS=$as_save_IFS
7696 case $as_dir in #(((
7697 '') as_dir=./ ;;
7698 */) ;;
7699 *) as_dir=$as_dir/ ;;
7700 esac
7701 for ac_exec_ext in '' $ac_executable_extensions; do
7702 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7703 ac_cv_prog_ac_ct_STRIP="strip"
7704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7705 break 2
7706 fi
7707 done
7708 done
7709 IFS=$as_save_IFS
7710
7711 fi ;;
7712 esac
7713 fi
7714 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7715 if test -n "$ac_ct_STRIP"; then
7716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7717 printf "%s\n" "$ac_ct_STRIP" >&6; }
7718 else
7719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7720 printf "%s\n" "no" >&6; }
7721 fi
7722
7723 if test "x$ac_ct_STRIP" = x; then
7724 STRIP=":"
7725 else
7726 case $cross_compiling:$ac_tool_warned in
7727 yes:)
7728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7729 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7730 ac_tool_warned=yes ;;
7731 esac
7732 STRIP=$ac_ct_STRIP
7733 fi
7734 else
7735 STRIP="$ac_cv_prog_STRIP"
7736 fi
7737
7738 test -z "$STRIP" && STRIP=:
7739
7740
7741
7742
7743
7744
7745
7746 test -z "$RANLIB" && RANLIB=:
7747
7748
7749
7750
7751
7752
7753 # Determine commands to create old-style static archives.
7754 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7755 old_postinstall_cmds='chmod 644 $oldlib'
7756 old_postuninstall_cmds=
7757
7758 if test -n "$RANLIB"; then
7759 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7760 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7761 fi
7762
7763 case $host_os in
7764 darwin*)
7765 lock_old_archive_extraction=yes ;;
7766 *)
7767 lock_old_archive_extraction=no ;;
7768 esac
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808 # If no C compiler was specified, use CC.
7809 LTCC=${LTCC-"$CC"}
7810
7811 # If no C compiler flags were specified, use CFLAGS.
7812 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7813
7814 # Allow CC to be a program name with arguments.
7815 compiler=$CC
7816
7817
7818 # Check for command to grab the raw symbol name followed by C symbol from nm.
7819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7820 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7821 if test ${lt_cv_sys_global_symbol_pipe+y}
7822 then :
7823 printf %s "(cached) " >&6
7824 else case e in #(
7825 e)
7826 # These are sane defaults that work on at least a few old systems.
7827 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7828
7829 # Character class describing NM global symbol codes.
7830 symcode='[BCDEGRST]'
7831
7832 # Regexp to match symbols that can be accessed directly from C.
7833 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7834
7835 # Define system-specific variables.
7836 case $host_os in
7837 aix*)
7838 symcode='[BCDT]'
7839 ;;
7840 cygwin* | mingw* | windows* | pw32* | cegcc*)
7841 symcode='[ABCDGISTW]'
7842 ;;
7843 hpux*)
7844 if test ia64 = "$host_cpu"; then
7845 symcode='[ABCDEGRST]'
7846 fi
7847 ;;
7848 irix* | nonstopux*)
7849 symcode='[BCDEGRST]'
7850 ;;
7851 osf*)
7852 symcode='[BCDEGQRST]'
7853 ;;
7854 solaris*)
7855 symcode='[BCDRT]'
7856 ;;
7857 sco3.2v5*)
7858 symcode='[DT]'
7859 ;;
7860 sysv4.2uw2*)
7861 symcode='[DT]'
7862 ;;
7863 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7864 symcode='[ABDT]'
7865 ;;
7866 sysv4)
7867 symcode='[DFNSTU]'
7868 ;;
7869 esac
7870
7871 # If we're using GNU nm, then use its standard symbol codes.
7872 case `$NM -V 2>&1` in
7873 *GNU* | *'with BFD'*)
7874 symcode='[ABCDGIRSTW]' ;;
7875 esac
7876
7877 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7878 # Gets list of data symbols to import.
7879 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7880 # Adjust the below global symbol transforms to fixup imported variables.
7881 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7882 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7883 lt_c_name_lib_hook="\
7884 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7885 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7886 else
7887 # Disable hooks by default.
7888 lt_cv_sys_global_symbol_to_import=
7889 lt_cdecl_hook=
7890 lt_c_name_hook=
7891 lt_c_name_lib_hook=
7892 fi
7893
7894 # Transform an extracted symbol line into a proper C declaration.
7895 # Some systems (esp. on ia64) link data and code symbols differently,
7896 # so use this general approach.
7897 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7898 $lt_cdecl_hook\
7899 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7900 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7901
7902 # Transform an extracted symbol line into symbol name and symbol address
7903 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7904 $lt_c_name_hook\
7905 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7906 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7907
7908 # Transform an extracted symbol line into symbol name with lib prefix and
7909 # symbol address.
7910 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7911 $lt_c_name_lib_hook\
7912 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7913 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7914 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7915
7916 # Handle CRLF in mingw tool chain
7917 opt_cr=
7918 case $build_os in
7919 mingw* | windows*)
7920 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7921 ;;
7922 esac
7923
7924 # Try without a prefix underscore, then with it.
7925 for ac_symprfx in "" "_"; do
7926
7927 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7928 symxfrm="\\1 $ac_symprfx\\2 \\2"
7929
7930 # Write the raw and C identifiers.
7931 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7932 # Fake it for dumpbin and say T for any non-static function,
7933 # D for any global variable and I for any imported variable.
7934 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7935 # which start with @ or ?.
7936 lt_cv_sys_global_symbol_pipe="$AWK '"\
7937 " {last_section=section; section=\$ 3};"\
7938 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7939 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7940 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7941 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7942 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7943 " \$ 0!~/External *\|/{next};"\
7944 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7945 " {if(hide[section]) next};"\
7946 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7947 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7948 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7949 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7950 " ' prfx=^$ac_symprfx"
7951 else
7952 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7953 fi
7954 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7955
7956 # Check to see that the pipe works correctly.
7957 pipe_works=no
7958
7959 rm -f conftest*
7960 cat > conftest.$ac_ext <<_LT_EOF
7961 #ifdef __cplusplus
7962 extern "C" {
7963 #endif
7964 char nm_test_var;
7965 void nm_test_func(void);
7966 void nm_test_func(void){}
7967 #ifdef __cplusplus
7968 }
7969 #endif
7970 int main(void){nm_test_var='a';nm_test_func();return(0);}
7971 _LT_EOF
7972
7973 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7974 (eval $ac_compile) 2>&5
7975 ac_status=$?
7976 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7977 test $ac_status = 0; }; then
7978 # Now try to grab the symbols.
7979 nlist=conftest.nm
7980 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7981 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7982 # Try sorting and uniquifying the output.
7983 if sort "$nlist" | uniq > "$nlist"T; then
7984 mv -f "$nlist"T "$nlist"
7985 else
7986 rm -f "$nlist"T
7987 fi
7988
7989 # Make sure that we snagged all the symbols we need.
7990 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7991 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7992 cat <<_LT_EOF > conftest.$ac_ext
7993 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7994 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7995 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7996 relocations are performed -- see ld's documentation on pseudo-relocs. */
7997 # define LT_DLSYM_CONST
7998 #elif defined __osf__
7999 /* This system does not cope well with relocations in const data. */
8000 # define LT_DLSYM_CONST
8001 #else
8002 # define LT_DLSYM_CONST const
8003 #endif
8004
8005 #ifdef __cplusplus
8006 extern "C" {
8007 #endif
8008
8009 _LT_EOF
8010 # Now generate the symbol file.
8011 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8012
8013 cat <<_LT_EOF >> conftest.$ac_ext
8014
8015 /* The mapping between symbol names and symbols. */
8016 LT_DLSYM_CONST struct {
8017 const char *name;
8018 void *address;
8019 }
8020 lt__PROGRAM__LTX_preloaded_symbols[] =
8021 {
8022 { "@PROGRAM@", (void *) 0 },
8023 _LT_EOF
8024 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8025 cat <<\_LT_EOF >> conftest.$ac_ext
8026 {0, (void *) 0}
8027 };
8028
8029 /* This works around a problem in FreeBSD linker */
8030 #ifdef FREEBSD_WORKAROUND
8031 static const void *lt_preloaded_setup() {
8032 return lt__PROGRAM__LTX_preloaded_symbols;
8033 }
8034 #endif
8035
8036 #ifdef __cplusplus
8037 }
8038 #endif
8039 _LT_EOF
8040 # Now try linking the two files.
8041 mv conftest.$ac_objext conftstm.$ac_objext
8042 lt_globsym_save_LIBS=$LIBS
8043 lt_globsym_save_CFLAGS=$CFLAGS
8044 LIBS=conftstm.$ac_objext
8045 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8046 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8047 (eval $ac_link) 2>&5
8048 ac_status=$?
8049 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8050 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8051 pipe_works=yes
8052 fi
8053 LIBS=$lt_globsym_save_LIBS
8054 CFLAGS=$lt_globsym_save_CFLAGS
8055 else
8056 echo "cannot find nm_test_func in $nlist" >&5
8057 fi
8058 else
8059 echo "cannot find nm_test_var in $nlist" >&5
8060 fi
8061 else
8062 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8063 fi
8064 else
8065 echo "$progname: failed program was:" >&5
8066 cat conftest.$ac_ext >&5
8067 fi
8068 rm -rf conftest* conftst*
8069
8070 # Do not use the global_symbol_pipe unless it works.
8071 if test yes = "$pipe_works"; then
8072 break
8073 else
8074 lt_cv_sys_global_symbol_pipe=
8075 fi
8076 done
8077 ;;
8078 esac
8079 fi
8080
8081 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8082 lt_cv_sys_global_symbol_to_cdecl=
8083 fi
8084 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8086 printf "%s\n" "failed" >&6; }
8087 else
8088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8089 printf "%s\n" "ok" >&6; }
8090 fi
8091
8092 # Response file support.
8093 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8094 nm_file_list_spec='@'
8095 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8096 nm_file_list_spec='@'
8097 fi
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8136 printf %s "checking for sysroot... " >&6; }
8137
8138 # Check whether --with-sysroot was given.
8139 if test ${with_sysroot+y}
8140 then :
8141 withval=$with_sysroot;
8142 else case e in #(
8143 e) with_sysroot=no ;;
8144 esac
8145 fi
8146
8147
8148 lt_sysroot=
8149 case $with_sysroot in #(
8150 yes)
8151 if test yes = "$GCC"; then
8152 # Trim trailing / since we'll always append absolute paths and we want
8153 # to avoid //, if only for less confusing output for the user.
8154 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
8155 fi
8156 ;; #(
8157 /*)
8158 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
8159 ;; #(
8160 no|'')
8161 ;; #(
8162 *)
8163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8164 printf "%s\n" "$with_sysroot" >&6; }
8165 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8166 ;;
8167 esac
8168
8169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8170 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8171
8172
8173
8174
8175
8176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8177 printf %s "checking for a working dd... " >&6; }
8178 if test ${ac_cv_path_lt_DD+y}
8179 then :
8180 printf %s "(cached) " >&6
8181 else case e in #(
8182 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8183 cat conftest.i conftest.i >conftest2.i
8184 : ${lt_DD:=$DD}
8185 if test -z "$lt_DD"; then
8186 ac_path_lt_DD_found=false
8187 # Loop through the user's path and test for each of PROGNAME-LIST
8188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8189 for as_dir in $PATH
8190 do
8191 IFS=$as_save_IFS
8192 case $as_dir in #(((
8193 '') as_dir=./ ;;
8194 */) ;;
8195 *) as_dir=$as_dir/ ;;
8196 esac
8197 for ac_prog in dd
8198 do
8199 for ac_exec_ext in '' $ac_executable_extensions; do
8200 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8201 as_fn_executable_p "$ac_path_lt_DD" || continue
8202 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8203 cmp -s conftest.i conftest.out \
8204 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8205 fi
8206 $ac_path_lt_DD_found && break 3
8207 done
8208 done
8209 done
8210 IFS=$as_save_IFS
8211 if test -z "$ac_cv_path_lt_DD"; then
8212 :
8213 fi
8214 else
8215 ac_cv_path_lt_DD=$lt_DD
8216 fi
8217
8218 rm -f conftest.i conftest2.i conftest.out ;;
8219 esac
8220 fi
8221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8222 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8223
8224
8225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8226 printf %s "checking how to truncate binary pipes... " >&6; }
8227 if test ${lt_cv_truncate_bin+y}
8228 then :
8229 printf %s "(cached) " >&6
8230 else case e in #(
8231 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8232 cat conftest.i conftest.i >conftest2.i
8233 lt_cv_truncate_bin=
8234 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8235 cmp -s conftest.i conftest.out \
8236 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8237 fi
8238 rm -f conftest.i conftest2.i conftest.out
8239 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
8240 esac
8241 fi
8242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8243 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8244
8245
8246
8247
8248
8249
8250
8251 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8252 func_cc_basename ()
8253 {
8254 for cc_temp in $*""; do
8255 case $cc_temp in
8256 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8257 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8258 \-*) ;;
8259 *) break;;
8260 esac
8261 done
8262 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8263 }
8264
8265
8266 # Check whether --enable-libtool-lock was given.
8267 if test ${enable_libtool_lock+y}
8268 then :
8269 enableval=$enable_libtool_lock;
8270 fi
8271
8272 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8273
8274 # Some flags need to be propagated to the compiler or linker for good
8275 # libtool support.
8276 case $host in
8277 ia64-*-hpux*)
8278 # Find out what ABI is being produced by ac_compile, and set mode
8279 # options accordingly.
8280 echo 'int i;' > conftest.$ac_ext
8281 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8282 (eval $ac_compile) 2>&5
8283 ac_status=$?
8284 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8285 test $ac_status = 0; }; then
8286 case `$FILECMD conftest.$ac_objext` in
8287 *ELF-32*)
8288 HPUX_IA64_MODE=32
8289 ;;
8290 *ELF-64*)
8291 HPUX_IA64_MODE=64
8292 ;;
8293 esac
8294 fi
8295 rm -rf conftest*
8296 ;;
8297 *-*-irix6*)
8298 # Find out what ABI is being produced by ac_compile, and set linker
8299 # options accordingly.
8300 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8301 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8302 (eval $ac_compile) 2>&5
8303 ac_status=$?
8304 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8305 test $ac_status = 0; }; then
8306 if test yes = "$lt_cv_prog_gnu_ld"; then
8307 case `$FILECMD conftest.$ac_objext` in
8308 *32-bit*)
8309 LD="${LD-ld} -melf32bsmip"
8310 ;;
8311 *N32*)
8312 LD="${LD-ld} -melf32bmipn32"
8313 ;;
8314 *64-bit*)
8315 LD="${LD-ld} -melf64bmip"
8316 ;;
8317 esac
8318 else
8319 case `$FILECMD conftest.$ac_objext` in
8320 *32-bit*)
8321 LD="${LD-ld} -32"
8322 ;;
8323 *N32*)
8324 LD="${LD-ld} -n32"
8325 ;;
8326 *64-bit*)
8327 LD="${LD-ld} -64"
8328 ;;
8329 esac
8330 fi
8331 fi
8332 rm -rf conftest*
8333 ;;
8334
8335 mips64*-*linux*)
8336 # Find out what ABI is being produced by ac_compile, and set linker
8337 # options accordingly.
8338 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8339 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8340 (eval $ac_compile) 2>&5
8341 ac_status=$?
8342 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8343 test $ac_status = 0; }; then
8344 emul=elf
8345 case `$FILECMD conftest.$ac_objext` in
8346 *32-bit*)
8347 emul="${emul}32"
8348 ;;
8349 *64-bit*)
8350 emul="${emul}64"
8351 ;;
8352 esac
8353 case `$FILECMD conftest.$ac_objext` in
8354 *MSB*)
8355 emul="${emul}btsmip"
8356 ;;
8357 *LSB*)
8358 emul="${emul}ltsmip"
8359 ;;
8360 esac
8361 case `$FILECMD conftest.$ac_objext` in
8362 *N32*)
8363 emul="${emul}n32"
8364 ;;
8365 esac
8366 LD="${LD-ld} -m $emul"
8367 fi
8368 rm -rf conftest*
8369 ;;
8370
8371 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8372 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
8373 # Find out what ABI is being produced by ac_compile, and set linker
8374 # options accordingly. Note that the listed cases only cover the
8375 # situations where additional linker options are needed (such as when
8376 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8377 # vice versa); the common cases where no linker options are needed do
8378 # not appear in the list.
8379 echo 'int i;' > conftest.$ac_ext
8380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8381 (eval $ac_compile) 2>&5
8382 ac_status=$?
8383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8384 test $ac_status = 0; }; then
8385 case `$FILECMD conftest.o` in
8386 *32-bit*)
8387 case $host in
8388 x86_64-*kfreebsd*-gnu)
8389 LD="${LD-ld} -m elf_i386_fbsd"
8390 ;;
8391 x86_64-*linux*|x86_64-gnu*)
8392 case `$FILECMD conftest.o` in
8393 *x86-64*)
8394 LD="${LD-ld} -m elf32_x86_64"
8395 ;;
8396 *)
8397 LD="${LD-ld} -m elf_i386"
8398 ;;
8399 esac
8400 ;;
8401 powerpc64le-*linux*)
8402 LD="${LD-ld} -m elf32lppclinux"
8403 ;;
8404 powerpc64-*linux*)
8405 LD="${LD-ld} -m elf32ppclinux"
8406 ;;
8407 s390x-*linux*)
8408 LD="${LD-ld} -m elf_s390"
8409 ;;
8410 sparc64-*linux*)
8411 LD="${LD-ld} -m elf32_sparc"
8412 ;;
8413 esac
8414 ;;
8415 *64-bit*)
8416 case $host in
8417 x86_64-*kfreebsd*-gnu)
8418 LD="${LD-ld} -m elf_x86_64_fbsd"
8419 ;;
8420 x86_64-*linux*|x86_64-gnu*)
8421 LD="${LD-ld} -m elf_x86_64"
8422 ;;
8423 powerpcle-*linux*)
8424 LD="${LD-ld} -m elf64lppc"
8425 ;;
8426 powerpc-*linux*)
8427 LD="${LD-ld} -m elf64ppc"
8428 ;;
8429 s390*-*linux*|s390*-*tpf*)
8430 LD="${LD-ld} -m elf64_s390"
8431 ;;
8432 sparc*-*linux*)
8433 LD="${LD-ld} -m elf64_sparc"
8434 ;;
8435 esac
8436 ;;
8437 esac
8438 fi
8439 rm -rf conftest*
8440 ;;
8441
8442 *-*-sco3.2v5*)
8443 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8444 SAVE_CFLAGS=$CFLAGS
8445 CFLAGS="$CFLAGS -belf"
8446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8447 printf %s "checking whether the C compiler needs -belf... " >&6; }
8448 if test ${lt_cv_cc_needs_belf+y}
8449 then :
8450 printf %s "(cached) " >&6
8451 else case e in #(
8452 e) ac_ext=c
8453 ac_cpp='$CPP $CPPFLAGS'
8454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8457
8458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8459 /* end confdefs.h. */
8460
8461 int
8462 main (void)
8463 {
8464
8465 ;
8466 return 0;
8467 }
8468 _ACEOF
8469 if ac_fn_c_try_link "$LINENO"
8470 then :
8471 lt_cv_cc_needs_belf=yes
8472 else case e in #(
8473 e) lt_cv_cc_needs_belf=no ;;
8474 esac
8475 fi
8476 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8477 conftest$ac_exeext conftest.$ac_ext
8478 ac_ext=c
8479 ac_cpp='$CPP $CPPFLAGS'
8480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8483 ;;
8484 esac
8485 fi
8486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8487 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8488 if test yes != "$lt_cv_cc_needs_belf"; then
8489 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8490 CFLAGS=$SAVE_CFLAGS
8491 fi
8492 ;;
8493 *-*solaris*)
8494 # Find out what ABI is being produced by ac_compile, and set linker
8495 # options accordingly.
8496 echo 'int i;' > conftest.$ac_ext
8497 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8498 (eval $ac_compile) 2>&5
8499 ac_status=$?
8500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8501 test $ac_status = 0; }; then
8502 case `$FILECMD conftest.o` in
8503 *64-bit*)
8504 case $lt_cv_prog_gnu_ld in
8505 yes*)
8506 case $host in
8507 i?86-*-solaris*|x86_64-*-solaris*)
8508 LD="${LD-ld} -m elf_x86_64"
8509 ;;
8510 sparc*-*-solaris*)
8511 LD="${LD-ld} -m elf64_sparc"
8512 ;;
8513 esac
8514 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8515 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8516 LD=${LD-ld}_sol2
8517 fi
8518 ;;
8519 *)
8520 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8521 LD="${LD-ld} -64"
8522 fi
8523 ;;
8524 esac
8525 ;;
8526 esac
8527 fi
8528 rm -rf conftest*
8529 ;;
8530 esac
8531
8532 need_locks=$enable_libtool_lock
8533
8534 if test -n "$ac_tool_prefix"; then
8535 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8536 set dummy ${ac_tool_prefix}mt; ac_word=$2
8537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8538 printf %s "checking for $ac_word... " >&6; }
8539 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8540 then :
8541 printf %s "(cached) " >&6
8542 else case e in #(
8543 e) if test -n "$MANIFEST_TOOL"; then
8544 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8545 else
8546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8547 for as_dir in $PATH
8548 do
8549 IFS=$as_save_IFS
8550 case $as_dir in #(((
8551 '') as_dir=./ ;;
8552 */) ;;
8553 *) as_dir=$as_dir/ ;;
8554 esac
8555 for ac_exec_ext in '' $ac_executable_extensions; do
8556 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8557 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8558 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8559 break 2
8560 fi
8561 done
8562 done
8563 IFS=$as_save_IFS
8564
8565 fi ;;
8566 esac
8567 fi
8568 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8569 if test -n "$MANIFEST_TOOL"; then
8570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8571 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8572 else
8573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8574 printf "%s\n" "no" >&6; }
8575 fi
8576
8577
8578 fi
8579 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8580 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8581 # Extract the first word of "mt", so it can be a program name with args.
8582 set dummy mt; ac_word=$2
8583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8584 printf %s "checking for $ac_word... " >&6; }
8585 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8586 then :
8587 printf %s "(cached) " >&6
8588 else case e in #(
8589 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8590 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8591 else
8592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8593 for as_dir in $PATH
8594 do
8595 IFS=$as_save_IFS
8596 case $as_dir in #(((
8597 '') as_dir=./ ;;
8598 */) ;;
8599 *) as_dir=$as_dir/ ;;
8600 esac
8601 for ac_exec_ext in '' $ac_executable_extensions; do
8602 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8603 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8604 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8605 break 2
8606 fi
8607 done
8608 done
8609 IFS=$as_save_IFS
8610
8611 fi ;;
8612 esac
8613 fi
8614 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8615 if test -n "$ac_ct_MANIFEST_TOOL"; then
8616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8617 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8618 else
8619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8620 printf "%s\n" "no" >&6; }
8621 fi
8622
8623 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8624 MANIFEST_TOOL=":"
8625 else
8626 case $cross_compiling:$ac_tool_warned in
8627 yes:)
8628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8629 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8630 ac_tool_warned=yes ;;
8631 esac
8632 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8633 fi
8634 else
8635 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8636 fi
8637
8638 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8640 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8641 if test ${lt_cv_path_manifest_tool+y}
8642 then :
8643 printf %s "(cached) " >&6
8644 else case e in #(
8645 e) lt_cv_path_manifest_tool=no
8646 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8647 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8648 cat conftest.err >&5
8649 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8650 lt_cv_path_manifest_tool=yes
8651 fi
8652 rm -f conftest* ;;
8653 esac
8654 fi
8655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8656 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
8657 if test yes != "$lt_cv_path_manifest_tool"; then
8658 MANIFEST_TOOL=:
8659 fi
8660
8661
8662
8663
8664
8665
8666 case $host_os in
8667 rhapsody* | darwin*)
8668 if test -n "$ac_tool_prefix"; then
8669 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8670 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8672 printf %s "checking for $ac_word... " >&6; }
8673 if test ${ac_cv_prog_DSYMUTIL+y}
8674 then :
8675 printf %s "(cached) " >&6
8676 else case e in #(
8677 e) if test -n "$DSYMUTIL"; then
8678 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8679 else
8680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8681 for as_dir in $PATH
8682 do
8683 IFS=$as_save_IFS
8684 case $as_dir in #(((
8685 '') as_dir=./ ;;
8686 */) ;;
8687 *) as_dir=$as_dir/ ;;
8688 esac
8689 for ac_exec_ext in '' $ac_executable_extensions; do
8690 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8691 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8693 break 2
8694 fi
8695 done
8696 done
8697 IFS=$as_save_IFS
8698
8699 fi ;;
8700 esac
8701 fi
8702 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8703 if test -n "$DSYMUTIL"; then
8704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8705 printf "%s\n" "$DSYMUTIL" >&6; }
8706 else
8707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8708 printf "%s\n" "no" >&6; }
8709 fi
8710
8711
8712 fi
8713 if test -z "$ac_cv_prog_DSYMUTIL"; then
8714 ac_ct_DSYMUTIL=$DSYMUTIL
8715 # Extract the first word of "dsymutil", so it can be a program name with args.
8716 set dummy dsymutil; ac_word=$2
8717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8718 printf %s "checking for $ac_word... " >&6; }
8719 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8720 then :
8721 printf %s "(cached) " >&6
8722 else case e in #(
8723 e) if test -n "$ac_ct_DSYMUTIL"; then
8724 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8725 else
8726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8727 for as_dir in $PATH
8728 do
8729 IFS=$as_save_IFS
8730 case $as_dir in #(((
8731 '') as_dir=./ ;;
8732 */) ;;
8733 *) as_dir=$as_dir/ ;;
8734 esac
8735 for ac_exec_ext in '' $ac_executable_extensions; do
8736 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8737 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8739 break 2
8740 fi
8741 done
8742 done
8743 IFS=$as_save_IFS
8744
8745 fi ;;
8746 esac
8747 fi
8748 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8749 if test -n "$ac_ct_DSYMUTIL"; then
8750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8751 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8752 else
8753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8754 printf "%s\n" "no" >&6; }
8755 fi
8756
8757 if test "x$ac_ct_DSYMUTIL" = x; then
8758 DSYMUTIL=":"
8759 else
8760 case $cross_compiling:$ac_tool_warned in
8761 yes:)
8762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8763 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8764 ac_tool_warned=yes ;;
8765 esac
8766 DSYMUTIL=$ac_ct_DSYMUTIL
8767 fi
8768 else
8769 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8770 fi
8771
8772 if test -n "$ac_tool_prefix"; then
8773 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8774 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8776 printf %s "checking for $ac_word... " >&6; }
8777 if test ${ac_cv_prog_NMEDIT+y}
8778 then :
8779 printf %s "(cached) " >&6
8780 else case e in #(
8781 e) if test -n "$NMEDIT"; then
8782 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8783 else
8784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8785 for as_dir in $PATH
8786 do
8787 IFS=$as_save_IFS
8788 case $as_dir in #(((
8789 '') as_dir=./ ;;
8790 */) ;;
8791 *) as_dir=$as_dir/ ;;
8792 esac
8793 for ac_exec_ext in '' $ac_executable_extensions; do
8794 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8795 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8797 break 2
8798 fi
8799 done
8800 done
8801 IFS=$as_save_IFS
8802
8803 fi ;;
8804 esac
8805 fi
8806 NMEDIT=$ac_cv_prog_NMEDIT
8807 if test -n "$NMEDIT"; then
8808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8809 printf "%s\n" "$NMEDIT" >&6; }
8810 else
8811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812 printf "%s\n" "no" >&6; }
8813 fi
8814
8815
8816 fi
8817 if test -z "$ac_cv_prog_NMEDIT"; then
8818 ac_ct_NMEDIT=$NMEDIT
8819 # Extract the first word of "nmedit", so it can be a program name with args.
8820 set dummy nmedit; ac_word=$2
8821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8822 printf %s "checking for $ac_word... " >&6; }
8823 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8824 then :
8825 printf %s "(cached) " >&6
8826 else case e in #(
8827 e) if test -n "$ac_ct_NMEDIT"; then
8828 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8829 else
8830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8831 for as_dir in $PATH
8832 do
8833 IFS=$as_save_IFS
8834 case $as_dir in #(((
8835 '') as_dir=./ ;;
8836 */) ;;
8837 *) as_dir=$as_dir/ ;;
8838 esac
8839 for ac_exec_ext in '' $ac_executable_extensions; do
8840 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8841 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8842 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8843 break 2
8844 fi
8845 done
8846 done
8847 IFS=$as_save_IFS
8848
8849 fi ;;
8850 esac
8851 fi
8852 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8853 if test -n "$ac_ct_NMEDIT"; then
8854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8855 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8856 else
8857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8858 printf "%s\n" "no" >&6; }
8859 fi
8860
8861 if test "x$ac_ct_NMEDIT" = x; then
8862 NMEDIT=":"
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 NMEDIT=$ac_ct_NMEDIT
8871 fi
8872 else
8873 NMEDIT="$ac_cv_prog_NMEDIT"
8874 fi
8875
8876 if test -n "$ac_tool_prefix"; then
8877 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8878 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8880 printf %s "checking for $ac_word... " >&6; }
8881 if test ${ac_cv_prog_LIPO+y}
8882 then :
8883 printf %s "(cached) " >&6
8884 else case e in #(
8885 e) if test -n "$LIPO"; then
8886 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8887 else
8888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8889 for as_dir in $PATH
8890 do
8891 IFS=$as_save_IFS
8892 case $as_dir in #(((
8893 '') as_dir=./ ;;
8894 */) ;;
8895 *) as_dir=$as_dir/ ;;
8896 esac
8897 for ac_exec_ext in '' $ac_executable_extensions; do
8898 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8899 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8901 break 2
8902 fi
8903 done
8904 done
8905 IFS=$as_save_IFS
8906
8907 fi ;;
8908 esac
8909 fi
8910 LIPO=$ac_cv_prog_LIPO
8911 if test -n "$LIPO"; then
8912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8913 printf "%s\n" "$LIPO" >&6; }
8914 else
8915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8916 printf "%s\n" "no" >&6; }
8917 fi
8918
8919
8920 fi
8921 if test -z "$ac_cv_prog_LIPO"; then
8922 ac_ct_LIPO=$LIPO
8923 # Extract the first word of "lipo", so it can be a program name with args.
8924 set dummy lipo; ac_word=$2
8925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8926 printf %s "checking for $ac_word... " >&6; }
8927 if test ${ac_cv_prog_ac_ct_LIPO+y}
8928 then :
8929 printf %s "(cached) " >&6
8930 else case e in #(
8931 e) if test -n "$ac_ct_LIPO"; then
8932 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8933 else
8934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8935 for as_dir in $PATH
8936 do
8937 IFS=$as_save_IFS
8938 case $as_dir in #(((
8939 '') as_dir=./ ;;
8940 */) ;;
8941 *) as_dir=$as_dir/ ;;
8942 esac
8943 for ac_exec_ext in '' $ac_executable_extensions; do
8944 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8945 ac_cv_prog_ac_ct_LIPO="lipo"
8946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8947 break 2
8948 fi
8949 done
8950 done
8951 IFS=$as_save_IFS
8952
8953 fi ;;
8954 esac
8955 fi
8956 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8957 if test -n "$ac_ct_LIPO"; then
8958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8959 printf "%s\n" "$ac_ct_LIPO" >&6; }
8960 else
8961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8962 printf "%s\n" "no" >&6; }
8963 fi
8964
8965 if test "x$ac_ct_LIPO" = x; then
8966 LIPO=":"
8967 else
8968 case $cross_compiling:$ac_tool_warned in
8969 yes:)
8970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8971 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8972 ac_tool_warned=yes ;;
8973 esac
8974 LIPO=$ac_ct_LIPO
8975 fi
8976 else
8977 LIPO="$ac_cv_prog_LIPO"
8978 fi
8979
8980 if test -n "$ac_tool_prefix"; then
8981 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8982 set dummy ${ac_tool_prefix}otool; ac_word=$2
8983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8984 printf %s "checking for $ac_word... " >&6; }
8985 if test ${ac_cv_prog_OTOOL+y}
8986 then :
8987 printf %s "(cached) " >&6
8988 else case e in #(
8989 e) if test -n "$OTOOL"; then
8990 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8991 else
8992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8993 for as_dir in $PATH
8994 do
8995 IFS=$as_save_IFS
8996 case $as_dir in #(((
8997 '') as_dir=./ ;;
8998 */) ;;
8999 *) as_dir=$as_dir/ ;;
9000 esac
9001 for ac_exec_ext in '' $ac_executable_extensions; do
9002 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9003 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9005 break 2
9006 fi
9007 done
9008 done
9009 IFS=$as_save_IFS
9010
9011 fi ;;
9012 esac
9013 fi
9014 OTOOL=$ac_cv_prog_OTOOL
9015 if test -n "$OTOOL"; then
9016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9017 printf "%s\n" "$OTOOL" >&6; }
9018 else
9019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9020 printf "%s\n" "no" >&6; }
9021 fi
9022
9023
9024 fi
9025 if test -z "$ac_cv_prog_OTOOL"; then
9026 ac_ct_OTOOL=$OTOOL
9027 # Extract the first word of "otool", so it can be a program name with args.
9028 set dummy otool; ac_word=$2
9029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9030 printf %s "checking for $ac_word... " >&6; }
9031 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9032 then :
9033 printf %s "(cached) " >&6
9034 else case e in #(
9035 e) if test -n "$ac_ct_OTOOL"; then
9036 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9037 else
9038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9039 for as_dir in $PATH
9040 do
9041 IFS=$as_save_IFS
9042 case $as_dir in #(((
9043 '') as_dir=./ ;;
9044 */) ;;
9045 *) as_dir=$as_dir/ ;;
9046 esac
9047 for ac_exec_ext in '' $ac_executable_extensions; do
9048 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9049 ac_cv_prog_ac_ct_OTOOL="otool"
9050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9051 break 2
9052 fi
9053 done
9054 done
9055 IFS=$as_save_IFS
9056
9057 fi ;;
9058 esac
9059 fi
9060 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9061 if test -n "$ac_ct_OTOOL"; then
9062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9063 printf "%s\n" "$ac_ct_OTOOL" >&6; }
9064 else
9065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9066 printf "%s\n" "no" >&6; }
9067 fi
9068
9069 if test "x$ac_ct_OTOOL" = x; then
9070 OTOOL=":"
9071 else
9072 case $cross_compiling:$ac_tool_warned in
9073 yes:)
9074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9075 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9076 ac_tool_warned=yes ;;
9077 esac
9078 OTOOL=$ac_ct_OTOOL
9079 fi
9080 else
9081 OTOOL="$ac_cv_prog_OTOOL"
9082 fi
9083
9084 if test -n "$ac_tool_prefix"; then
9085 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9086 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9088 printf %s "checking for $ac_word... " >&6; }
9089 if test ${ac_cv_prog_OTOOL64+y}
9090 then :
9091 printf %s "(cached) " >&6
9092 else case e in #(
9093 e) if test -n "$OTOOL64"; then
9094 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9095 else
9096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9097 for as_dir in $PATH
9098 do
9099 IFS=$as_save_IFS
9100 case $as_dir in #(((
9101 '') as_dir=./ ;;
9102 */) ;;
9103 *) as_dir=$as_dir/ ;;
9104 esac
9105 for ac_exec_ext in '' $ac_executable_extensions; do
9106 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9107 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9108 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9109 break 2
9110 fi
9111 done
9112 done
9113 IFS=$as_save_IFS
9114
9115 fi ;;
9116 esac
9117 fi
9118 OTOOL64=$ac_cv_prog_OTOOL64
9119 if test -n "$OTOOL64"; then
9120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9121 printf "%s\n" "$OTOOL64" >&6; }
9122 else
9123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9124 printf "%s\n" "no" >&6; }
9125 fi
9126
9127
9128 fi
9129 if test -z "$ac_cv_prog_OTOOL64"; then
9130 ac_ct_OTOOL64=$OTOOL64
9131 # Extract the first word of "otool64", so it can be a program name with args.
9132 set dummy otool64; ac_word=$2
9133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9134 printf %s "checking for $ac_word... " >&6; }
9135 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9136 then :
9137 printf %s "(cached) " >&6
9138 else case e in #(
9139 e) if test -n "$ac_ct_OTOOL64"; then
9140 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9141 else
9142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9143 for as_dir in $PATH
9144 do
9145 IFS=$as_save_IFS
9146 case $as_dir in #(((
9147 '') as_dir=./ ;;
9148 */) ;;
9149 *) as_dir=$as_dir/ ;;
9150 esac
9151 for ac_exec_ext in '' $ac_executable_extensions; do
9152 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9153 ac_cv_prog_ac_ct_OTOOL64="otool64"
9154 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9155 break 2
9156 fi
9157 done
9158 done
9159 IFS=$as_save_IFS
9160
9161 fi ;;
9162 esac
9163 fi
9164 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9165 if test -n "$ac_ct_OTOOL64"; then
9166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9167 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9168 else
9169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9170 printf "%s\n" "no" >&6; }
9171 fi
9172
9173 if test "x$ac_ct_OTOOL64" = x; then
9174 OTOOL64=":"
9175 else
9176 case $cross_compiling:$ac_tool_warned in
9177 yes:)
9178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9179 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9180 ac_tool_warned=yes ;;
9181 esac
9182 OTOOL64=$ac_ct_OTOOL64
9183 fi
9184 else
9185 OTOOL64="$ac_cv_prog_OTOOL64"
9186 fi
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9215 printf %s "checking for -single_module linker flag... " >&6; }
9216 if test ${lt_cv_apple_cc_single_mod+y}
9217 then :
9218 printf %s "(cached) " >&6
9219 else case e in #(
9220 e) lt_cv_apple_cc_single_mod=no
9221 if test -z "$LT_MULTI_MODULE"; then
9222 # By default we will add the -single_module flag. You can override
9223 # by either setting the environment variable LT_MULTI_MODULE
9224 # non-empty at configure time, or by adding -multi_module to the
9225 # link flags.
9226 rm -rf libconftest.dylib*
9227 echo "int foo(void){return 1;}" > conftest.c
9228 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9229 -dynamiclib -Wl,-single_module conftest.c" >&5
9230 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9231 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9232 _lt_result=$?
9233 # If there is a non-empty error log, and "single_module"
9234 # appears in it, assume the flag caused a linker warning
9235 if test -s conftest.err && $GREP single_module conftest.err; then
9236 cat conftest.err >&5
9237 # Otherwise, if the output was created with a 0 exit code from
9238 # the compiler, it worked.
9239 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9240 lt_cv_apple_cc_single_mod=yes
9241 else
9242 cat conftest.err >&5
9243 fi
9244 rm -rf libconftest.dylib*
9245 rm -f conftest.*
9246 fi ;;
9247 esac
9248 fi
9249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9250 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9251
9252 # Feature test to disable chained fixups since it is not
9253 # compatible with '-undefined dynamic_lookup'
9254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
9255 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
9256 if test ${lt_cv_support_no_fixup_chains+y}
9257 then :
9258 printf %s "(cached) " >&6
9259 else case e in #(
9260 e) save_LDFLAGS=$LDFLAGS
9261 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
9262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9263 /* end confdefs.h. */
9264
9265 int
9266 main (void)
9267 {
9268
9269 ;
9270 return 0;
9271 }
9272 _ACEOF
9273 if ac_fn_c_try_link "$LINENO"
9274 then :
9275 lt_cv_support_no_fixup_chains=yes
9276 else case e in #(
9277 e) lt_cv_support_no_fixup_chains=no
9278 ;;
9279 esac
9280 fi
9281 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9282 conftest$ac_exeext conftest.$ac_ext
9283 LDFLAGS=$save_LDFLAGS
9284
9285 ;;
9286 esac
9287 fi
9288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
9289 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
9290
9291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9292 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9293 if test ${lt_cv_ld_exported_symbols_list+y}
9294 then :
9295 printf %s "(cached) " >&6
9296 else case e in #(
9297 e) lt_cv_ld_exported_symbols_list=no
9298 save_LDFLAGS=$LDFLAGS
9299 echo "_main" > conftest.sym
9300 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9302 /* end confdefs.h. */
9303
9304 int
9305 main (void)
9306 {
9307
9308 ;
9309 return 0;
9310 }
9311 _ACEOF
9312 if ac_fn_c_try_link "$LINENO"
9313 then :
9314 lt_cv_ld_exported_symbols_list=yes
9315 else case e in #(
9316 e) lt_cv_ld_exported_symbols_list=no ;;
9317 esac
9318 fi
9319 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9320 conftest$ac_exeext conftest.$ac_ext
9321 LDFLAGS=$save_LDFLAGS
9322 ;;
9323 esac
9324 fi
9325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9326 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9327
9328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9329 printf %s "checking for -force_load linker flag... " >&6; }
9330 if test ${lt_cv_ld_force_load+y}
9331 then :
9332 printf %s "(cached) " >&6
9333 else case e in #(
9334 e) lt_cv_ld_force_load=no
9335 cat > conftest.c << _LT_EOF
9336 int forced_loaded() { return 2;}
9337 _LT_EOF
9338 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9339 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9340 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9341 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9342 echo "$RANLIB libconftest.a" >&5
9343 $RANLIB libconftest.a 2>&5
9344 cat > conftest.c << _LT_EOF
9345 int main(void) { return 0;}
9346 _LT_EOF
9347 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9348 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9349 _lt_result=$?
9350 if test -s conftest.err && $GREP force_load conftest.err; then
9351 cat conftest.err >&5
9352 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9353 lt_cv_ld_force_load=yes
9354 else
9355 cat conftest.err >&5
9356 fi
9357 rm -f conftest.err libconftest.a conftest conftest.c
9358 rm -rf conftest.dSYM
9359 ;;
9360 esac
9361 fi
9362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9363 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9364 case $host_os in
9365 rhapsody* | darwin1.[012])
9366 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9367 darwin1.*)
9368 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9369 darwin*)
9370 case $MACOSX_DEPLOYMENT_TARGET,$host in
9371 10.[012],*|,*powerpc*-darwin[5-8]*)
9372 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9373 *)
9374 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
9375 if test yes = "$lt_cv_support_no_fixup_chains"; then
9376 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
9377 fi
9378 ;;
9379 esac
9380 ;;
9381 esac
9382 if test yes = "$lt_cv_apple_cc_single_mod"; then
9383 _lt_dar_single_mod='$single_module'
9384 fi
9385 _lt_dar_needs_single_mod=no
9386 case $host_os in
9387 rhapsody* | darwin1.*)
9388 _lt_dar_needs_single_mod=yes ;;
9389 darwin*)
9390 # When targeting Mac OS X 10.4 (darwin 8) or later,
9391 # -single_module is the default and -multi_module is unsupported.
9392 # The toolchain on macOS 10.14 (darwin 18) and later cannot
9393 # target any OS version that needs -single_module.
9394 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9395 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
9396 _lt_dar_needs_single_mod=yes ;;
9397 esac
9398 ;;
9399 esac
9400 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9401 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9402 else
9403 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9404 fi
9405 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9406 _lt_dsymutil='~$DSYMUTIL $lib || :'
9407 else
9408 _lt_dsymutil=
9409 fi
9410 ;;
9411 esac
9412
9413 # func_munge_path_list VARIABLE PATH
9414 # -----------------------------------
9415 # VARIABLE is name of variable containing _space_ separated list of
9416 # directories to be munged by the contents of PATH, which is string
9417 # having a format:
9418 # "DIR[:DIR]:"
9419 # string "DIR[ DIR]" will be prepended to VARIABLE
9420 # ":DIR[:DIR]"
9421 # string "DIR[ DIR]" will be appended to VARIABLE
9422 # "DIRP[:DIRP]::[DIRA:]DIRA"
9423 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9424 # "DIRA[ DIRA]" will be appended to VARIABLE
9425 # "DIR[:DIR]"
9426 # VARIABLE will be replaced by "DIR[ DIR]"
9427 func_munge_path_list ()
9428 {
9429 case x$2 in
9430 x)
9431 ;;
9432 *:)
9433 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9434 ;;
9435 x:*)
9436 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9437 ;;
9438 *::*)
9439 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9440 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9441 ;;
9442 *)
9443 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9444 ;;
9445 esac
9446 }
9447
9448 ac_header= ac_cache=
9449 for ac_item in $ac_header_c_list
9450 do
9451 if test $ac_cache; then
9452 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
9453 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
9454 printf "%s\n" "#define $ac_item 1" >> confdefs.h
9455 fi
9456 ac_header= ac_cache=
9457 elif test $ac_header; then
9458 ac_cache=$ac_item
9459 else
9460 ac_header=$ac_item
9461 fi
9462 done
9463
9464
9465
9466
9467
9468
9469
9470
9471 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
9472 then :
9473
9474 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
9475
9476 fi
9477 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9478 "
9479 if test "x$ac_cv_header_dlfcn_h" = xyes
9480 then :
9481 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9482
9483 fi
9484
9485
9486
9487 func_stripname_cnf ()
9488 {
9489 case $2 in
9490 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9491 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9492 esac
9493 } # func_stripname_cnf
9494
9495
9496
9497
9498
9499 # Set options
9500
9501
9502
9503 enable_dlopen=no
9504
9505
9506 enable_win32_dll=no
9507
9508
9509 # Check whether --enable-shared was given.
9510 if test ${enable_shared+y}
9511 then :
9512 enableval=$enable_shared; p=${PACKAGE-default}
9513 case $enableval in
9514 yes) enable_shared=yes ;;
9515 no) enable_shared=no ;;
9516 *)
9517 enable_shared=no
9518 # Look at the argument we got. We use all the common list separators.
9519 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9520 for pkg in $enableval; do
9521 IFS=$lt_save_ifs
9522 if test "X$pkg" = "X$p"; then
9523 enable_shared=yes
9524 fi
9525 done
9526 IFS=$lt_save_ifs
9527 ;;
9528 esac
9529 else case e in #(
9530 e) enable_shared=yes ;;
9531 esac
9532 fi
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542 # Check whether --enable-static was given.
9543 if test ${enable_static+y}
9544 then :
9545 enableval=$enable_static; p=${PACKAGE-default}
9546 case $enableval in
9547 yes) enable_static=yes ;;
9548 no) enable_static=no ;;
9549 *)
9550 enable_static=no
9551 # Look at the argument we got. We use all the common list separators.
9552 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9553 for pkg in $enableval; do
9554 IFS=$lt_save_ifs
9555 if test "X$pkg" = "X$p"; then
9556 enable_static=yes
9557 fi
9558 done
9559 IFS=$lt_save_ifs
9560 ;;
9561 esac
9562 else case e in #(
9563 e) enable_static=yes ;;
9564 esac
9565 fi
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575 # Check whether --enable-pic was given.
9576 if test ${enable_pic+y}
9577 then :
9578 enableval=$enable_pic; lt_p=${PACKAGE-default}
9579 case $enableval in
9580 yes|no) pic_mode=$enableval ;;
9581 *)
9582 pic_mode=default
9583 # Look at the argument we got. We use all the common list separators.
9584 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9585 for lt_pkg in $enableval; do
9586 IFS=$lt_save_ifs
9587 if test "X$lt_pkg" = "X$lt_p"; then
9588 pic_mode=yes
9589 fi
9590 done
9591 IFS=$lt_save_ifs
9592 ;;
9593 esac
9594 else case e in #(
9595 e) # Check whether --with-pic was given.
9596 if test ${with_pic+y}
9597 then :
9598 withval=$with_pic; lt_p=${PACKAGE-default}
9599 case $withval in
9600 yes|no) pic_mode=$withval ;;
9601 *)
9602 pic_mode=default
9603 # Look at the argument we got. We use all the common list separators.
9604 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9605 for lt_pkg in $withval; do
9606 IFS=$lt_save_ifs
9607 if test "X$lt_pkg" = "X$lt_p"; then
9608 pic_mode=yes
9609 fi
9610 done
9611 IFS=$lt_save_ifs
9612 ;;
9613 esac
9614 else case e in #(
9615 e) pic_mode=default ;;
9616 esac
9617 fi
9618
9619 ;;
9620 esac
9621 fi
9622
9623
9624
9625
9626
9627
9628
9629
9630 # Check whether --enable-fast-install was given.
9631 if test ${enable_fast_install+y}
9632 then :
9633 enableval=$enable_fast_install; p=${PACKAGE-default}
9634 case $enableval in
9635 yes) enable_fast_install=yes ;;
9636 no) enable_fast_install=no ;;
9637 *)
9638 enable_fast_install=no
9639 # Look at the argument we got. We use all the common list separators.
9640 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9641 for pkg in $enableval; do
9642 IFS=$lt_save_ifs
9643 if test "X$pkg" = "X$p"; then
9644 enable_fast_install=yes
9645 fi
9646 done
9647 IFS=$lt_save_ifs
9648 ;;
9649 esac
9650 else case e in #(
9651 e) enable_fast_install=yes ;;
9652 esac
9653 fi
9654
9655
9656
9657
9658
9659
9660
9661
9662 shared_archive_member_spec=
9663 case $host,$enable_shared in
9664 power*-*-aix[5-9]*,yes)
9665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9666 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9667 # Check whether --enable-aix-soname was given.
9668 if test ${enable_aix_soname+y}
9669 then :
9670 enableval=$enable_aix_soname; case $enableval in
9671 aix|svr4|both)
9672 ;;
9673 *)
9674 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
9675 ;;
9676 esac
9677 lt_cv_with_aix_soname=$enable_aix_soname
9678 else case e in #(
9679 e) # Check whether --with-aix-soname was given.
9680 if test ${with_aix_soname+y}
9681 then :
9682 withval=$with_aix_soname; case $withval in
9683 aix|svr4|both)
9684 ;;
9685 *)
9686 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9687 ;;
9688 esac
9689 lt_cv_with_aix_soname=$with_aix_soname
9690 else case e in #(
9691 e) if test ${lt_cv_with_aix_soname+y}
9692 then :
9693 printf %s "(cached) " >&6
9694 else case e in #(
9695 e) lt_cv_with_aix_soname=aix ;;
9696 esac
9697 fi
9698 ;;
9699 esac
9700 fi
9701
9702 enable_aix_soname=$lt_cv_with_aix_soname ;;
9703 esac
9704 fi
9705
9706 with_aix_soname=$enable_aix_soname
9707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9708 printf "%s\n" "$with_aix_soname" >&6; }
9709 if test aix != "$with_aix_soname"; then
9710 # For the AIX way of multilib, we name the shared archive member
9711 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9712 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9713 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9714 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9715 if test 64 = "${OBJECT_MODE-32}"; then
9716 shared_archive_member_spec=shr_64
9717 else
9718 shared_archive_member_spec=shr
9719 fi
9720 fi
9721 ;;
9722 *)
9723 with_aix_soname=aix
9724 ;;
9725 esac
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736 # This can be used to rebuild libtool when needed
9737 LIBTOOL_DEPS=$ltmain
9738
9739 # Always use our own libtool.
9740 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771 test -z "$LN_S" && LN_S="ln -s"
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786 if test -n "${ZSH_VERSION+set}"; then
9787 setopt NO_GLOB_SUBST
9788 fi
9789
9790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9791 printf %s "checking for objdir... " >&6; }
9792 if test ${lt_cv_objdir+y}
9793 then :
9794 printf %s "(cached) " >&6
9795 else case e in #(
9796 e) rm -f .libs 2>/dev/null
9797 mkdir .libs 2>/dev/null
9798 if test -d .libs; then
9799 lt_cv_objdir=.libs
9800 else
9801 # MS-DOS does not allow filenames that begin with a dot.
9802 lt_cv_objdir=_libs
9803 fi
9804 rmdir .libs 2>/dev/null ;;
9805 esac
9806 fi
9807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9808 printf "%s\n" "$lt_cv_objdir" >&6; }
9809 objdir=$lt_cv_objdir
9810
9811
9812
9813
9814
9815 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9816
9817
9818
9819
9820 case $host_os in
9821 aix3*)
9822 # AIX sometimes has problems with the GCC collect2 program. For some
9823 # reason, if we set the COLLECT_NAMES environment variable, the problems
9824 # vanish in a puff of smoke.
9825 if test set != "${COLLECT_NAMES+set}"; then
9826 COLLECT_NAMES=
9827 export COLLECT_NAMES
9828 fi
9829 ;;
9830 esac
9831
9832 # Global variables:
9833 ofile=libtool
9834 can_build_shared=yes
9835
9836 # All known linkers require a '.a' archive for static linking (except MSVC and
9837 # ICC, which need '.lib').
9838 libext=a
9839
9840 with_gnu_ld=$lt_cv_prog_gnu_ld
9841
9842 old_CC=$CC
9843 old_CFLAGS=$CFLAGS
9844
9845 # Set sane defaults for various variables
9846 test -z "$CC" && CC=cc
9847 test -z "$LTCC" && LTCC=$CC
9848 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9849 test -z "$LD" && LD=ld
9850 test -z "$ac_objext" && ac_objext=o
9851
9852 func_cc_basename $compiler
9853 cc_basename=$func_cc_basename_result
9854
9855
9856 # Only perform the check for file, if the check method requires it
9857 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9858 case $deplibs_check_method in
9859 file_magic*)
9860 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9862 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9863 if test ${lt_cv_path_MAGIC_CMD+y}
9864 then :
9865 printf %s "(cached) " >&6
9866 else case e in #(
9867 e) case $MAGIC_CMD in
9868 [\\/*] | ?:[\\/]*)
9869 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9870 ;;
9871 *)
9872 lt_save_MAGIC_CMD=$MAGIC_CMD
9873 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9874 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9875 for ac_dir in $ac_dummy; do
9876 IFS=$lt_save_ifs
9877 test -z "$ac_dir" && ac_dir=.
9878 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9879 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9880 if test -n "$file_magic_test_file"; then
9881 case $deplibs_check_method in
9882 "file_magic "*)
9883 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9884 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9885 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9886 $EGREP "$file_magic_regex" > /dev/null; then
9887 :
9888 else
9889 cat <<_LT_EOF 1>&2
9890
9891 *** Warning: the command libtool uses to detect shared libraries,
9892 *** $file_magic_cmd, produces output that libtool cannot recognize.
9893 *** The result is that libtool may fail to recognize shared libraries
9894 *** as such. This will affect the creation of libtool libraries that
9895 *** depend on shared libraries, but programs linked with such libtool
9896 *** libraries will work regardless of this problem. Nevertheless, you
9897 *** may want to report the problem to your system manager and/or to
9898 *** [email protected]
9899
9900 _LT_EOF
9901 fi ;;
9902 esac
9903 fi
9904 break
9905 fi
9906 done
9907 IFS=$lt_save_ifs
9908 MAGIC_CMD=$lt_save_MAGIC_CMD
9909 ;;
9910 esac ;;
9911 esac
9912 fi
9913
9914 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9915 if test -n "$MAGIC_CMD"; then
9916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9917 printf "%s\n" "$MAGIC_CMD" >&6; }
9918 else
9919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9920 printf "%s\n" "no" >&6; }
9921 fi
9922
9923
9924
9925
9926
9927 if test -z "$lt_cv_path_MAGIC_CMD"; then
9928 if test -n "$ac_tool_prefix"; then
9929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9930 printf %s "checking for file... " >&6; }
9931 if test ${lt_cv_path_MAGIC_CMD+y}
9932 then :
9933 printf %s "(cached) " >&6
9934 else case e in #(
9935 e) case $MAGIC_CMD in
9936 [\\/*] | ?:[\\/]*)
9937 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9938 ;;
9939 *)
9940 lt_save_MAGIC_CMD=$MAGIC_CMD
9941 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9942 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9943 for ac_dir in $ac_dummy; do
9944 IFS=$lt_save_ifs
9945 test -z "$ac_dir" && ac_dir=.
9946 if test -f "$ac_dir/file"; then
9947 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9948 if test -n "$file_magic_test_file"; then
9949 case $deplibs_check_method in
9950 "file_magic "*)
9951 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9952 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9953 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9954 $EGREP "$file_magic_regex" > /dev/null; then
9955 :
9956 else
9957 cat <<_LT_EOF 1>&2
9958
9959 *** Warning: the command libtool uses to detect shared libraries,
9960 *** $file_magic_cmd, produces output that libtool cannot recognize.
9961 *** The result is that libtool may fail to recognize shared libraries
9962 *** as such. This will affect the creation of libtool libraries that
9963 *** depend on shared libraries, but programs linked with such libtool
9964 *** libraries will work regardless of this problem. Nevertheless, you
9965 *** may want to report the problem to your system manager and/or to
9966 *** [email protected]
9967
9968 _LT_EOF
9969 fi ;;
9970 esac
9971 fi
9972 break
9973 fi
9974 done
9975 IFS=$lt_save_ifs
9976 MAGIC_CMD=$lt_save_MAGIC_CMD
9977 ;;
9978 esac ;;
9979 esac
9980 fi
9981
9982 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9983 if test -n "$MAGIC_CMD"; then
9984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9985 printf "%s\n" "$MAGIC_CMD" >&6; }
9986 else
9987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9988 printf "%s\n" "no" >&6; }
9989 fi
9990
9991
9992 else
9993 MAGIC_CMD=:
9994 fi
9995 fi
9996
9997 fi
9998 ;;
9999 esac
10000
10001 # Use C for the default configuration in the libtool script
10002
10003 lt_save_CC=$CC
10004 ac_ext=c
10005 ac_cpp='$CPP $CPPFLAGS'
10006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10009
10010
10011 # Source file extension for C test sources.
10012 ac_ext=c
10013
10014 # Object file extension for compiled C test sources.
10015 objext=o
10016 objext=$objext
10017
10018 # Code to be used in simple compile tests
10019 lt_simple_compile_test_code="int some_variable = 0;"
10020
10021 # Code to be used in simple link tests
10022 lt_simple_link_test_code='int main(void){return(0);}'
10023
10024
10025
10026
10027
10028
10029
10030 # If no C compiler was specified, use CC.
10031 LTCC=${LTCC-"$CC"}
10032
10033 # If no C compiler flags were specified, use CFLAGS.
10034 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10035
10036 # Allow CC to be a program name with arguments.
10037 compiler=$CC
10038
10039 # Save the default compiler, since it gets overwritten when the other
10040 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10041 compiler_DEFAULT=$CC
10042
10043 # save warnings/boilerplate of simple test code
10044 ac_outfile=conftest.$ac_objext
10045 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10046 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10047 _lt_compiler_boilerplate=`cat conftest.err`
10048 $RM conftest*
10049
10050 ac_outfile=conftest.$ac_objext
10051 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10052 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10053 _lt_linker_boilerplate=`cat conftest.err`
10054 $RM -r conftest*
10055
10056
10057 ## CAVEAT EMPTOR:
10058 ## There is no encapsulation within the following macros, do not change
10059 ## the running order or otherwise move them around unless you know exactly
10060 ## what you are doing...
10061 if test -n "$compiler"; then
10062
10063 lt_prog_compiler_no_builtin_flag=
10064
10065 if test yes = "$GCC"; then
10066 case $cc_basename in
10067 nvcc*)
10068 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10069 *)
10070 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10071 esac
10072
10073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10074 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10075 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10076 then :
10077 printf %s "(cached) " >&6
10078 else case e in #(
10079 e) lt_cv_prog_compiler_rtti_exceptions=no
10080 ac_outfile=conftest.$ac_objext
10081 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10082 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10083 # Insert the option either (1) after the last *FLAGS variable, or
10084 # (2) before a word containing "conftest.", or (3) at the end.
10085 # Note that $ac_compile itself does not contain backslashes and begins
10086 # with a dollar sign (not a hyphen), so the echo should work correctly.
10087 # The option is referenced via a variable to avoid confusing sed.
10088 lt_compile=`echo "$ac_compile" | $SED \
10089 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10090 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10091 -e 's:$: $lt_compiler_flag:'`
10092 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10093 (eval "$lt_compile" 2>conftest.err)
10094 ac_status=$?
10095 cat conftest.err >&5
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 if (exit $ac_status) && test -s "$ac_outfile"; then
10098 # The compiler can only warn and ignore the option if not recognized
10099 # So say no if there are warnings other than the usual output.
10100 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10101 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10102 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10103 lt_cv_prog_compiler_rtti_exceptions=yes
10104 fi
10105 fi
10106 $RM conftest*
10107 ;;
10108 esac
10109 fi
10110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10111 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10112
10113 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10114 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10115 else
10116 :
10117 fi
10118
10119 fi
10120
10121
10122
10123
10124
10125
10126 lt_prog_compiler_wl=
10127 lt_prog_compiler_pic=
10128 lt_prog_compiler_static=
10129
10130
10131 if test yes = "$GCC"; then
10132 lt_prog_compiler_wl='-Wl,'
10133 lt_prog_compiler_static='-static'
10134
10135 case $host_os in
10136 aix*)
10137 # All AIX code is PIC.
10138 if test ia64 = "$host_cpu"; then
10139 # AIX 5 now supports IA64 processor
10140 lt_prog_compiler_static='-Bstatic'
10141 fi
10142 lt_prog_compiler_pic='-fPIC'
10143 ;;
10144
10145 amigaos*)
10146 case $host_cpu in
10147 powerpc)
10148 # see comment about AmigaOS4 .so support
10149 lt_prog_compiler_pic='-fPIC'
10150 ;;
10151 m68k)
10152 # FIXME: we need at least 68020 code to build shared libraries, but
10153 # adding the '-m68020' flag to GCC prevents building anything better,
10154 # like '-m68040'.
10155 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10156 ;;
10157 esac
10158 ;;
10159
10160 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10161 # PIC is the default for these OSes.
10162 ;;
10163
10164 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10165 # This hack is so that the source file can tell whether it is being
10166 # built for inclusion in a dll (and should export symbols for example).
10167 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10168 # (--disable-auto-import) libraries
10169 lt_prog_compiler_pic='-DDLL_EXPORT'
10170 case $host_os in
10171 os2*)
10172 lt_prog_compiler_static='$wl-static'
10173 ;;
10174 esac
10175 ;;
10176
10177 darwin* | rhapsody*)
10178 # PIC is the default on this platform
10179 # Common symbols not allowed in MH_DYLIB files
10180 lt_prog_compiler_pic='-fno-common'
10181 ;;
10182
10183 haiku*)
10184 # PIC is the default for Haiku.
10185 # The "-static" flag exists, but is broken.
10186 lt_prog_compiler_static=
10187 ;;
10188
10189 hpux*)
10190 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10191 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10192 # sets the default TLS model and affects inlining.
10193 case $host_cpu in
10194 hppa*64*)
10195 # +Z the default
10196 ;;
10197 *)
10198 lt_prog_compiler_pic='-fPIC'
10199 ;;
10200 esac
10201 ;;
10202
10203 interix[3-9]*)
10204 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10205 # Instead, we relocate shared libraries at runtime.
10206 ;;
10207
10208 msdosdjgpp*)
10209 # Just because we use GCC doesn't mean we suddenly get shared libraries
10210 # on systems that don't support them.
10211 lt_prog_compiler_can_build_shared=no
10212 enable_shared=no
10213 ;;
10214
10215 *nto* | *qnx*)
10216 # QNX uses GNU C++, but need to define -shared option too, otherwise
10217 # it will coredump.
10218 lt_prog_compiler_pic='-fPIC -shared'
10219 ;;
10220
10221 sysv4*MP*)
10222 if test -d /usr/nec; then
10223 lt_prog_compiler_pic=-Kconform_pic
10224 fi
10225 ;;
10226
10227 *)
10228 lt_prog_compiler_pic='-fPIC'
10229 ;;
10230 esac
10231
10232 case $cc_basename in
10233 nvcc*) # Cuda Compiler Driver 2.2
10234 lt_prog_compiler_wl='-Xlinker '
10235 if test -n "$lt_prog_compiler_pic"; then
10236 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10237 fi
10238 ;;
10239 esac
10240 else
10241 # PORTME Check for flag to pass linker flags through the system compiler.
10242 case $host_os in
10243 aix*)
10244 lt_prog_compiler_wl='-Wl,'
10245 if test ia64 = "$host_cpu"; then
10246 # AIX 5 now supports IA64 processor
10247 lt_prog_compiler_static='-Bstatic'
10248 else
10249 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10250 fi
10251 ;;
10252
10253 darwin* | rhapsody*)
10254 # PIC is the default on this platform
10255 # Common symbols not allowed in MH_DYLIB files
10256 lt_prog_compiler_pic='-fno-common'
10257 case $cc_basename in
10258 nagfor*)
10259 # NAG Fortran compiler
10260 lt_prog_compiler_wl='-Wl,-Wl,,'
10261 lt_prog_compiler_pic='-PIC'
10262 lt_prog_compiler_static='-Bstatic'
10263 ;;
10264 esac
10265 ;;
10266
10267 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10268 # This hack is so that the source file can tell whether it is being
10269 # built for inclusion in a dll (and should export symbols for example).
10270 lt_prog_compiler_pic='-DDLL_EXPORT'
10271 case $host_os in
10272 os2*)
10273 lt_prog_compiler_static='$wl-static'
10274 ;;
10275 esac
10276 ;;
10277
10278 hpux9* | hpux10* | hpux11*)
10279 lt_prog_compiler_wl='-Wl,'
10280 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10281 # not for PA HP-UX.
10282 case $host_cpu in
10283 hppa*64*|ia64*)
10284 # +Z the default
10285 ;;
10286 *)
10287 lt_prog_compiler_pic='+Z'
10288 ;;
10289 esac
10290 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10291 lt_prog_compiler_static='$wl-a ${wl}archive'
10292 ;;
10293
10294 irix5* | irix6* | nonstopux*)
10295 lt_prog_compiler_wl='-Wl,'
10296 # PIC (with -KPIC) is the default.
10297 lt_prog_compiler_static='-non_shared'
10298 ;;
10299
10300 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10301 case $cc_basename in
10302 # old Intel for x86_64, which still supported -KPIC.
10303 ecc*)
10304 lt_prog_compiler_wl='-Wl,'
10305 lt_prog_compiler_pic='-KPIC'
10306 lt_prog_compiler_static='-static'
10307 ;;
10308 *flang* | ftn | f18* | f95*)
10309 # Flang compiler.
10310 lt_prog_compiler_wl='-Wl,'
10311 lt_prog_compiler_pic='-fPIC'
10312 lt_prog_compiler_static='-static'
10313 ;;
10314 # flang / f18. f95 an alias for gfortran or flang on Debian
10315 flang* | f18* | f95*)
10316 lt_prog_compiler_wl='-Wl,'
10317 lt_prog_compiler_pic='-fPIC'
10318 lt_prog_compiler_static='-static'
10319 ;;
10320 # icc used to be incompatible with GCC.
10321 # ICC 10 doesn't accept -KPIC any more.
10322 icc* | ifort*)
10323 lt_prog_compiler_wl='-Wl,'
10324 lt_prog_compiler_pic='-fPIC'
10325 lt_prog_compiler_static='-static'
10326 ;;
10327 # Lahey Fortran 8.1.
10328 lf95*)
10329 lt_prog_compiler_wl='-Wl,'
10330 lt_prog_compiler_pic='--shared'
10331 lt_prog_compiler_static='--static'
10332 ;;
10333 nagfor*)
10334 # NAG Fortran compiler
10335 lt_prog_compiler_wl='-Wl,-Wl,,'
10336 lt_prog_compiler_pic='-PIC'
10337 lt_prog_compiler_static='-Bstatic'
10338 ;;
10339 tcc*)
10340 # Fabrice Bellard et al's Tiny C Compiler
10341 lt_prog_compiler_wl='-Wl,'
10342 lt_prog_compiler_pic='-fPIC'
10343 lt_prog_compiler_static='-static'
10344 ;;
10345 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10346 # Portland Group compilers (*not* the Pentium gcc compiler,
10347 # which looks to be a dead project)
10348 lt_prog_compiler_wl='-Wl,'
10349 lt_prog_compiler_pic='-fpic'
10350 lt_prog_compiler_static='-Bstatic'
10351 ;;
10352 ccc*)
10353 lt_prog_compiler_wl='-Wl,'
10354 # All Alpha code is PIC.
10355 lt_prog_compiler_static='-non_shared'
10356 ;;
10357 xl* | bgxl* | bgf* | mpixl*)
10358 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10359 lt_prog_compiler_wl='-Wl,'
10360 lt_prog_compiler_pic='-qpic'
10361 lt_prog_compiler_static='-qstaticlink'
10362 ;;
10363 *)
10364 case `$CC -V 2>&1 | $SED 5q` in
10365 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10366 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10367 lt_prog_compiler_pic='-KPIC'
10368 lt_prog_compiler_static='-Bstatic'
10369 lt_prog_compiler_wl=''
10370 ;;
10371 *Sun\ F* | *Sun*Fortran*)
10372 lt_prog_compiler_pic='-KPIC'
10373 lt_prog_compiler_static='-Bstatic'
10374 lt_prog_compiler_wl='-Qoption ld '
10375 ;;
10376 *Sun\ C*)
10377 # Sun C 5.9
10378 lt_prog_compiler_pic='-KPIC'
10379 lt_prog_compiler_static='-Bstatic'
10380 lt_prog_compiler_wl='-Wl,'
10381 ;;
10382 *Intel*\ [CF]*Compiler*)
10383 lt_prog_compiler_wl='-Wl,'
10384 lt_prog_compiler_pic='-fPIC'
10385 lt_prog_compiler_static='-static'
10386 ;;
10387 *Portland\ Group*)
10388 lt_prog_compiler_wl='-Wl,'
10389 lt_prog_compiler_pic='-fpic'
10390 lt_prog_compiler_static='-Bstatic'
10391 ;;
10392 esac
10393 ;;
10394 esac
10395 ;;
10396
10397 newsos6)
10398 lt_prog_compiler_pic='-KPIC'
10399 lt_prog_compiler_static='-Bstatic'
10400 ;;
10401
10402 *-mlibc)
10403 lt_prog_compiler_wl='-Wl,'
10404 lt_prog_compiler_pic='-fPIC'
10405 lt_prog_compiler_static='-static'
10406 ;;
10407
10408 *nto* | *qnx*)
10409 # QNX uses GNU C++, but need to define -shared option too, otherwise
10410 # it will coredump.
10411 lt_prog_compiler_pic='-fPIC -shared'
10412 ;;
10413
10414 osf3* | osf4* | osf5*)
10415 lt_prog_compiler_wl='-Wl,'
10416 # All OSF/1 code is PIC.
10417 lt_prog_compiler_static='-non_shared'
10418 ;;
10419
10420 rdos*)
10421 lt_prog_compiler_static='-non_shared'
10422 ;;
10423
10424 serenity*)
10425 ;;
10426
10427 solaris*)
10428 lt_prog_compiler_pic='-KPIC'
10429 lt_prog_compiler_static='-Bstatic'
10430 case $cc_basename in
10431 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10432 lt_prog_compiler_wl='-Qoption ld ';;
10433 *)
10434 lt_prog_compiler_wl='-Wl,';;
10435 esac
10436 ;;
10437
10438 sunos4*)
10439 lt_prog_compiler_wl='-Qoption ld '
10440 lt_prog_compiler_pic='-PIC'
10441 lt_prog_compiler_static='-Bstatic'
10442 ;;
10443
10444 sysv4 | sysv4.2uw2* | sysv4.3*)
10445 lt_prog_compiler_wl='-Wl,'
10446 lt_prog_compiler_pic='-KPIC'
10447 lt_prog_compiler_static='-Bstatic'
10448 ;;
10449
10450 sysv4*MP*)
10451 if test -d /usr/nec; then
10452 lt_prog_compiler_pic='-Kconform_pic'
10453 lt_prog_compiler_static='-Bstatic'
10454 fi
10455 ;;
10456
10457 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10458 lt_prog_compiler_wl='-Wl,'
10459 lt_prog_compiler_pic='-KPIC'
10460 lt_prog_compiler_static='-Bstatic'
10461 ;;
10462
10463 unicos*)
10464 lt_prog_compiler_wl='-Wl,'
10465 lt_prog_compiler_can_build_shared=no
10466 ;;
10467
10468 uts4*)
10469 lt_prog_compiler_pic='-pic'
10470 lt_prog_compiler_static='-Bstatic'
10471 ;;
10472
10473 *)
10474 lt_prog_compiler_can_build_shared=no
10475 ;;
10476 esac
10477 fi
10478
10479 case $host_os in
10480 # For platforms that do not support PIC, -DPIC is meaningless:
10481 *djgpp*)
10482 lt_prog_compiler_pic=
10483 ;;
10484 *)
10485 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10486 ;;
10487 esac
10488
10489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10490 printf %s "checking for $compiler option to produce PIC... " >&6; }
10491 if test ${lt_cv_prog_compiler_pic+y}
10492 then :
10493 printf %s "(cached) " >&6
10494 else case e in #(
10495 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
10496 esac
10497 fi
10498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10499 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10500 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10501
10502 #
10503 # Check to make sure the PIC flag actually works.
10504 #
10505 if test -n "$lt_prog_compiler_pic"; then
10506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10507 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10508 if test ${lt_cv_prog_compiler_pic_works+y}
10509 then :
10510 printf %s "(cached) " >&6
10511 else case e in #(
10512 e) lt_cv_prog_compiler_pic_works=no
10513 ac_outfile=conftest.$ac_objext
10514 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10515 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10516 # Insert the option either (1) after the last *FLAGS variable, or
10517 # (2) before a word containing "conftest.", or (3) at the end.
10518 # Note that $ac_compile itself does not contain backslashes and begins
10519 # with a dollar sign (not a hyphen), so the echo should work correctly.
10520 # The option is referenced via a variable to avoid confusing sed.
10521 lt_compile=`echo "$ac_compile" | $SED \
10522 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10523 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10524 -e 's:$: $lt_compiler_flag:'`
10525 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10526 (eval "$lt_compile" 2>conftest.err)
10527 ac_status=$?
10528 cat conftest.err >&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 if (exit $ac_status) && test -s "$ac_outfile"; then
10531 # The compiler can only warn and ignore the option if not recognized
10532 # So say no if there are warnings other than the usual output.
10533 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10534 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10535 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10536 lt_cv_prog_compiler_pic_works=yes
10537 fi
10538 fi
10539 $RM conftest*
10540 ;;
10541 esac
10542 fi
10543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10544 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10545
10546 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10547 case $lt_prog_compiler_pic in
10548 "" | " "*) ;;
10549 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10550 esac
10551 else
10552 lt_prog_compiler_pic=
10553 lt_prog_compiler_can_build_shared=no
10554 fi
10555
10556 fi
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568 #
10569 # Check to make sure the static flag actually works.
10570 #
10571 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10573 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10574 if test ${lt_cv_prog_compiler_static_works+y}
10575 then :
10576 printf %s "(cached) " >&6
10577 else case e in #(
10578 e) lt_cv_prog_compiler_static_works=no
10579 save_LDFLAGS=$LDFLAGS
10580 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10581 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10582 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10583 # The linker can only warn and ignore the option if not recognized
10584 # So say no if there are warnings
10585 if test -s conftest.err; then
10586 # Append any errors to the config.log.
10587 cat conftest.err 1>&5
10588 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10589 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10590 if diff conftest.exp conftest.er2 >/dev/null; then
10591 lt_cv_prog_compiler_static_works=yes
10592 fi
10593 else
10594 lt_cv_prog_compiler_static_works=yes
10595 fi
10596 fi
10597 $RM -r conftest*
10598 LDFLAGS=$save_LDFLAGS
10599 ;;
10600 esac
10601 fi
10602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10603 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10604
10605 if test yes = "$lt_cv_prog_compiler_static_works"; then
10606 :
10607 else
10608 lt_prog_compiler_static=
10609 fi
10610
10611
10612
10613
10614
10615
10616
10617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10618 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10619 if test ${lt_cv_prog_compiler_c_o+y}
10620 then :
10621 printf %s "(cached) " >&6
10622 else case e in #(
10623 e) lt_cv_prog_compiler_c_o=no
10624 $RM -r conftest 2>/dev/null
10625 mkdir conftest
10626 cd conftest
10627 mkdir out
10628 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10629
10630 lt_compiler_flag="-o out/conftest2.$ac_objext"
10631 # Insert the option either (1) after the last *FLAGS variable, or
10632 # (2) before a word containing "conftest.", or (3) at the end.
10633 # Note that $ac_compile itself does not contain backslashes and begins
10634 # with a dollar sign (not a hyphen), so the echo should work correctly.
10635 lt_compile=`echo "$ac_compile" | $SED \
10636 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10637 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10638 -e 's:$: $lt_compiler_flag:'`
10639 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10640 (eval "$lt_compile" 2>out/conftest.err)
10641 ac_status=$?
10642 cat out/conftest.err >&5
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10645 then
10646 # The compiler can only warn and ignore the option if not recognized
10647 # So say no if there are warnings
10648 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10649 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10650 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10651 lt_cv_prog_compiler_c_o=yes
10652 fi
10653 fi
10654 chmod u+w . 2>&5
10655 $RM conftest*
10656 # SGI C++ compiler will create directory out/ii_files/ for
10657 # template instantiation
10658 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10659 $RM out/* && rmdir out
10660 cd ..
10661 $RM -r conftest
10662 $RM conftest*
10663 ;;
10664 esac
10665 fi
10666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10667 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10668
10669
10670
10671
10672
10673
10674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10675 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10676 if test ${lt_cv_prog_compiler_c_o+y}
10677 then :
10678 printf %s "(cached) " >&6
10679 else case e in #(
10680 e) lt_cv_prog_compiler_c_o=no
10681 $RM -r conftest 2>/dev/null
10682 mkdir conftest
10683 cd conftest
10684 mkdir out
10685 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10686
10687 lt_compiler_flag="-o out/conftest2.$ac_objext"
10688 # Insert the option either (1) after the last *FLAGS variable, or
10689 # (2) before a word containing "conftest.", or (3) at the end.
10690 # Note that $ac_compile itself does not contain backslashes and begins
10691 # with a dollar sign (not a hyphen), so the echo should work correctly.
10692 lt_compile=`echo "$ac_compile" | $SED \
10693 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10694 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10695 -e 's:$: $lt_compiler_flag:'`
10696 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10697 (eval "$lt_compile" 2>out/conftest.err)
10698 ac_status=$?
10699 cat out/conftest.err >&5
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10702 then
10703 # The compiler can only warn and ignore the option if not recognized
10704 # So say no if there are warnings
10705 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10706 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10707 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10708 lt_cv_prog_compiler_c_o=yes
10709 fi
10710 fi
10711 chmod u+w . 2>&5
10712 $RM conftest*
10713 # SGI C++ compiler will create directory out/ii_files/ for
10714 # template instantiation
10715 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10716 $RM out/* && rmdir out
10717 cd ..
10718 $RM -r conftest
10719 $RM conftest*
10720 ;;
10721 esac
10722 fi
10723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10724 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10725
10726
10727
10728
10729 hard_links=nottested
10730 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10731 # do not overwrite the value of need_locks provided by the user
10732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10733 printf %s "checking if we can lock with hard links... " >&6; }
10734 hard_links=yes
10735 $RM conftest*
10736 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10737 touch conftest.a
10738 ln conftest.a conftest.b 2>&5 || hard_links=no
10739 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10741 printf "%s\n" "$hard_links" >&6; }
10742 if test no = "$hard_links"; then
10743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10744 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10745 need_locks=warn
10746 fi
10747 else
10748 need_locks=no
10749 fi
10750
10751
10752
10753
10754
10755
10756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10757 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10758
10759 runpath_var=
10760 allow_undefined_flag=
10761 always_export_symbols=no
10762 archive_cmds=
10763 archive_expsym_cmds=
10764 compiler_needs_object=no
10765 enable_shared_with_static_runtimes=no
10766 export_dynamic_flag_spec=
10767 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10768 hardcode_automatic=no
10769 hardcode_direct=no
10770 hardcode_direct_absolute=no
10771 hardcode_libdir_flag_spec=
10772 hardcode_libdir_separator=
10773 hardcode_minus_L=no
10774 hardcode_shlibpath_var=unsupported
10775 inherit_rpath=no
10776 link_all_deplibs=unknown
10777 module_cmds=
10778 module_expsym_cmds=
10779 old_archive_from_new_cmds=
10780 old_archive_from_expsyms_cmds=
10781 thread_safe_flag_spec=
10782 whole_archive_flag_spec=
10783 # include_expsyms should be a list of space-separated symbols to be *always*
10784 # included in the symbol list
10785 include_expsyms=
10786 # exclude_expsyms can be an extended regexp of symbols to exclude
10787 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10788 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10789 # as well as any symbol that contains 'd'.
10790 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10791 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10792 # platforms (ab)use it in PIC code, but their linkers get confused if
10793 # the symbol is explicitly referenced. Since portable code cannot
10794 # rely on this symbol name, it's probably fine to never include it in
10795 # preloaded symbol tables.
10796 # Exclude shared library initialization/finalization symbols.
10797 extract_expsyms_cmds=
10798
10799 case $host_os in
10800 cygwin* | mingw* | windows* | pw32* | cegcc*)
10801 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10802 # When not using gcc, we currently assume that we are using
10803 # Microsoft Visual C++ or Intel C++ Compiler.
10804 if test yes != "$GCC"; then
10805 with_gnu_ld=no
10806 fi
10807 ;;
10808 interix*)
10809 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10810 with_gnu_ld=yes
10811 ;;
10812 linux* | k*bsd*-gnu | gnu*)
10813 link_all_deplibs=no
10814 ;;
10815 esac
10816
10817 ld_shlibs=yes
10818
10819 # On some targets, GNU ld is compatible enough with the native linker
10820 # that we're better off using the native interface for both.
10821 lt_use_gnu_ld_interface=no
10822 if test yes = "$with_gnu_ld"; then
10823 case $host_os in
10824 aix*)
10825 # The AIX port of GNU ld has always aspired to compatibility
10826 # with the native linker. However, as the warning in the GNU ld
10827 # block says, versions before 2.19.5* couldn't really create working
10828 # shared libraries, regardless of the interface used.
10829 case `$LD -v 2>&1` in
10830 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10831 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10832 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10833 *)
10834 lt_use_gnu_ld_interface=yes
10835 ;;
10836 esac
10837 ;;
10838 *)
10839 lt_use_gnu_ld_interface=yes
10840 ;;
10841 esac
10842 fi
10843
10844 if test yes = "$lt_use_gnu_ld_interface"; then
10845 # If archive_cmds runs LD, not CC, wlarc should be empty
10846 wlarc='$wl'
10847
10848 # Set some defaults for GNU ld with shared library support. These
10849 # are reset later if shared libraries are not supported. Putting them
10850 # here allows them to be overridden if necessary.
10851 runpath_var=LD_RUN_PATH
10852 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10853 export_dynamic_flag_spec='$wl--export-dynamic'
10854 # ancient GNU ld didn't support --whole-archive et. al.
10855 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10856 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10857 else
10858 whole_archive_flag_spec=
10859 fi
10860 supports_anon_versioning=no
10861 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10862 *GNU\ gold*) supports_anon_versioning=yes ;;
10863 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10864 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10865 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10866 *\ 2.11.*) ;; # other 2.11 versions
10867 *) supports_anon_versioning=yes ;;
10868 esac
10869
10870 # See if GNU ld supports shared libraries.
10871 case $host_os in
10872 aix[3-9]*)
10873 # On AIX/PPC, the GNU linker is very broken
10874 if test ia64 != "$host_cpu"; then
10875 ld_shlibs=no
10876 cat <<_LT_EOF 1>&2
10877
10878 *** Warning: the GNU linker, at least up to release 2.19, is reported
10879 *** to be unable to reliably create shared libraries on AIX.
10880 *** Therefore, libtool is disabling shared libraries support. If you
10881 *** really care for shared libraries, you may want to install binutils
10882 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10883 *** You will then need to restart the configuration process.
10884
10885 _LT_EOF
10886 fi
10887 ;;
10888
10889 amigaos*)
10890 case $host_cpu in
10891 powerpc)
10892 # see comment about AmigaOS4 .so support
10893 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10894 archive_expsym_cmds=''
10895 ;;
10896 m68k)
10897 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)'
10898 hardcode_libdir_flag_spec='-L$libdir'
10899 hardcode_minus_L=yes
10900 ;;
10901 esac
10902 ;;
10903
10904 beos*)
10905 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10906 allow_undefined_flag=unsupported
10907 # Joseph Beckenbach <[email protected]> says some releases of gcc
10908 # support --undefined. This deserves some investigation. FIXME
10909 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10910 else
10911 ld_shlibs=no
10912 fi
10913 ;;
10914
10915 cygwin* | mingw* | windows* | pw32* | cegcc*)
10916 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10917 # as there is no search path for DLLs.
10918 hardcode_libdir_flag_spec='-L$libdir'
10919 export_dynamic_flag_spec='$wl--export-all-symbols'
10920 allow_undefined_flag=unsupported
10921 always_export_symbols=no
10922 enable_shared_with_static_runtimes=yes
10923 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'
10924 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10925 file_list_spec='@'
10926
10927 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10928 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10929 # If the export-symbols file already is a .def file, use it as
10930 # is; otherwise, prepend EXPORTS...
10931 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10932 cp $export_symbols $output_objdir/$soname.def;
10933 else
10934 echo EXPORTS > $output_objdir/$soname.def;
10935 cat $export_symbols >> $output_objdir/$soname.def;
10936 fi~
10937 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10938 else
10939 ld_shlibs=no
10940 fi
10941 ;;
10942
10943 haiku*)
10944 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10945 link_all_deplibs=no
10946 ;;
10947
10948 os2*)
10949 hardcode_libdir_flag_spec='-L$libdir'
10950 hardcode_minus_L=yes
10951 allow_undefined_flag=unsupported
10952 shrext_cmds=.dll
10953 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10954 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10955 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10956 $ECHO EXPORTS >> $output_objdir/$libname.def~
10957 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10958 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10959 emximp -o $lib $output_objdir/$libname.def'
10960 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10961 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10962 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10963 $ECHO EXPORTS >> $output_objdir/$libname.def~
10964 prefix_cmds="$SED"~
10965 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10966 prefix_cmds="$prefix_cmds -e 1d";
10967 fi~
10968 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10969 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10970 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10971 emximp -o $lib $output_objdir/$libname.def'
10972 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10973 enable_shared_with_static_runtimes=yes
10974 file_list_spec='@'
10975 ;;
10976
10977 interix[3-9]*)
10978 hardcode_direct=no
10979 hardcode_shlibpath_var=no
10980 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10981 export_dynamic_flag_spec='$wl-E'
10982 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10983 # Instead, shared libraries are loaded at an image base (0x10000000 by
10984 # default) and relocated if they conflict, which is a slow very memory
10985 # consuming and fragmenting process. To avoid this, we pick a random,
10986 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10987 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10988 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10989 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'
10990 ;;
10991
10992 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10993 tmp_diet=no
10994 if test linux-dietlibc = "$host_os"; then
10995 case $cc_basename in
10996 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10997 esac
10998 fi
10999 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11000 && test no = "$tmp_diet"
11001 then
11002 tmp_addflag=' $pic_flag'
11003 tmp_sharedflag='-shared'
11004 case $cc_basename,$host_cpu in
11005 pgcc*) # Portland Group C compiler
11006 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'
11007 tmp_addflag=' $pic_flag'
11008 ;;
11009 pgf77* | pgf90* | pgf95* | pgfortran*)
11010 # Portland Group f77 and f90 compilers
11011 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'
11012 tmp_addflag=' $pic_flag -Mnomain' ;;
11013 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11014 tmp_addflag=' -i_dynamic' ;;
11015 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11016 tmp_addflag=' -i_dynamic -nofor_main' ;;
11017 ifc* | ifort*) # Intel Fortran compiler
11018 tmp_addflag=' -nofor_main' ;;
11019 lf95*) # Lahey Fortran 8.1
11020 whole_archive_flag_spec=
11021 tmp_sharedflag='--shared' ;;
11022 nagfor*) # NAGFOR 5.3
11023 tmp_sharedflag='-Wl,-shared' ;;
11024 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11025 tmp_sharedflag='-qmkshrobj'
11026 tmp_addflag= ;;
11027 nvcc*) # Cuda Compiler Driver 2.2
11028 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'
11029 compiler_needs_object=yes
11030 ;;
11031 esac
11032 case `$CC -V 2>&1 | $SED 5q` in
11033 *Sun\ C*) # Sun C 5.9
11034 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'
11035 compiler_needs_object=yes
11036 tmp_sharedflag='-G' ;;
11037 *Sun\ F*) # Sun Fortran 8.3
11038 tmp_sharedflag='-G' ;;
11039 esac
11040 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11041
11042 if test yes = "$supports_anon_versioning"; then
11043 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11044 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11045 echo "local: *; };" >> $output_objdir/$libname.ver~
11046 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11047 fi
11048
11049 case $cc_basename in
11050 tcc*)
11051 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11052 export_dynamic_flag_spec='-rdynamic'
11053 ;;
11054 xlf* | bgf* | bgxlf* | mpixlf*)
11055 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11056 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11057 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11058 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11059 if test yes = "$supports_anon_versioning"; then
11060 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11061 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11062 echo "local: *; };" >> $output_objdir/$libname.ver~
11063 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11064 fi
11065 ;;
11066 esac
11067 else
11068 ld_shlibs=no
11069 fi
11070 ;;
11071
11072 *-mlibc)
11073 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11074 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11075 ;;
11076
11077 netbsd* | netbsdelf*-gnu)
11078 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11079 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11080 wlarc=
11081 else
11082 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11083 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11084 fi
11085 ;;
11086
11087 solaris*)
11088 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11089 ld_shlibs=no
11090 cat <<_LT_EOF 1>&2
11091
11092 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11093 *** create shared libraries on Solaris systems. Therefore, libtool
11094 *** is disabling shared libraries support. We urge you to upgrade GNU
11095 *** binutils to release 2.9.1 or newer. Another option is to modify
11096 *** your PATH or compiler configuration so that the native linker is
11097 *** used, and then restart.
11098
11099 _LT_EOF
11100 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11101 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11102 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11103 else
11104 ld_shlibs=no
11105 fi
11106 ;;
11107
11108 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11109 case `$LD -v 2>&1` in
11110 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11111 ld_shlibs=no
11112 cat <<_LT_EOF 1>&2
11113
11114 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11115 *** reliably create shared libraries on SCO systems. Therefore, libtool
11116 *** is disabling shared libraries support. We urge you to upgrade GNU
11117 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11118 *** your PATH or compiler configuration so that the native linker is
11119 *** used, and then restart.
11120
11121 _LT_EOF
11122 ;;
11123 *)
11124 # For security reasons, it is highly recommended that you always
11125 # use absolute paths for naming shared libraries, and exclude the
11126 # DT_RUNPATH tag from executables and libraries. But doing so
11127 # requires that you compile everything twice, which is a pain.
11128 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11129 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11130 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11131 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11132 else
11133 ld_shlibs=no
11134 fi
11135 ;;
11136 esac
11137 ;;
11138
11139 sunos4*)
11140 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11141 wlarc=
11142 hardcode_direct=yes
11143 hardcode_shlibpath_var=no
11144 ;;
11145
11146 *)
11147 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11148 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11149 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11150 else
11151 ld_shlibs=no
11152 fi
11153 ;;
11154 esac
11155
11156 if test no = "$ld_shlibs"; then
11157 runpath_var=
11158 hardcode_libdir_flag_spec=
11159 export_dynamic_flag_spec=
11160 whole_archive_flag_spec=
11161 fi
11162 else
11163 # PORTME fill in a description of your system's linker (not GNU ld)
11164 case $host_os in
11165 aix3*)
11166 allow_undefined_flag=unsupported
11167 always_export_symbols=yes
11168 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'
11169 # Note: this linker hardcodes the directories in LIBPATH if there
11170 # are no directories specified by -L.
11171 hardcode_minus_L=yes
11172 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11173 # Neither direct hardcoding nor static linking is supported with a
11174 # broken collect2.
11175 hardcode_direct=unsupported
11176 fi
11177 ;;
11178
11179 aix[4-9]*)
11180 if test ia64 = "$host_cpu"; then
11181 # On IA64, the linker does run time linking by default, so we don't
11182 # have to do anything special.
11183 aix_use_runtimelinking=no
11184 exp_sym_flag='-Bexport'
11185 no_entry_flag=
11186 else
11187 # If we're using GNU nm, then we don't want the "-C" option.
11188 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11189 # Without the "-l" option, or with the "-B" option, AIX nm treats
11190 # weak defined symbols like other global defined symbols, whereas
11191 # GNU nm marks them as "W".
11192 # While the 'weak' keyword is ignored in the Export File, we need
11193 # it in the Import File for the 'aix-soname' feature, so we have
11194 # to replace the "-B" option with "-P" for AIX nm.
11195 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11196 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'
11197 else
11198 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'
11199 fi
11200 aix_use_runtimelinking=no
11201
11202 # Test if we are trying to use run time linking or normal
11203 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11204 # have runtime linking enabled, and use it for executables.
11205 # For shared libraries, we enable/disable runtime linking
11206 # depending on the kind of the shared library created -
11207 # when "with_aix_soname,aix_use_runtimelinking" is:
11208 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11209 # "aix,yes" lib.so shared, rtl:yes, for executables
11210 # lib.a static archive
11211 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11212 # lib.a(lib.so.V) shared, rtl:no, for executables
11213 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11214 # lib.a(lib.so.V) shared, rtl:no
11215 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11216 # lib.a static archive
11217 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11218 for ld_flag in $LDFLAGS; do
11219 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11220 aix_use_runtimelinking=yes
11221 break
11222 fi
11223 done
11224 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11225 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11226 # so we don't have lib.a shared libs to link our executables.
11227 # We have to force runtime linking in this case.
11228 aix_use_runtimelinking=yes
11229 LDFLAGS="$LDFLAGS -Wl,-brtl"
11230 fi
11231 ;;
11232 esac
11233
11234 exp_sym_flag='-bexport'
11235 no_entry_flag='-bnoentry'
11236 fi
11237
11238 # When large executables or shared objects are built, AIX ld can
11239 # have problems creating the table of contents. If linking a library
11240 # or program results in "error TOC overflow" add -mminimal-toc to
11241 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11242 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11243
11244 archive_cmds=''
11245 hardcode_direct=yes
11246 hardcode_direct_absolute=yes
11247 hardcode_libdir_separator=':'
11248 link_all_deplibs=yes
11249 file_list_spec='$wl-f,'
11250 case $with_aix_soname,$aix_use_runtimelinking in
11251 aix,*) ;; # traditional, no import file
11252 svr4,* | *,yes) # use import file
11253 # The Import File defines what to hardcode.
11254 hardcode_direct=no
11255 hardcode_direct_absolute=no
11256 ;;
11257 esac
11258
11259 if test yes = "$GCC"; then
11260 case $host_os in aix4.[012]|aix4.[012].*)
11261 # We only want to do this on AIX 4.2 and lower, the check
11262 # below for broken collect2 doesn't work under 4.3+
11263 collect2name=`$CC -print-prog-name=collect2`
11264 if test -f "$collect2name" &&
11265 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11266 then
11267 # We have reworked collect2
11268 :
11269 else
11270 # We have old collect2
11271 hardcode_direct=unsupported
11272 # It fails to find uninstalled libraries when the uninstalled
11273 # path is not listed in the libpath. Setting hardcode_minus_L
11274 # to unsupported forces relinking
11275 hardcode_minus_L=yes
11276 hardcode_libdir_flag_spec='-L$libdir'
11277 hardcode_libdir_separator=
11278 fi
11279 ;;
11280 esac
11281 shared_flag='-shared'
11282 if test yes = "$aix_use_runtimelinking"; then
11283 shared_flag="$shared_flag "'$wl-G'
11284 fi
11285 # Need to ensure runtime linking is disabled for the traditional
11286 # shared library, or the linker may eventually find shared libraries
11287 # /with/ Import File - we do not want to mix them.
11288 shared_flag_aix='-shared'
11289 shared_flag_svr4='-shared $wl-G'
11290 else
11291 # not using gcc
11292 if test ia64 = "$host_cpu"; then
11293 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11294 # chokes on -Wl,-G. The following line is correct:
11295 shared_flag='-G'
11296 else
11297 if test yes = "$aix_use_runtimelinking"; then
11298 shared_flag='$wl-G'
11299 else
11300 shared_flag='$wl-bM:SRE'
11301 fi
11302 shared_flag_aix='$wl-bM:SRE'
11303 shared_flag_svr4='$wl-G'
11304 fi
11305 fi
11306
11307 export_dynamic_flag_spec='$wl-bexpall'
11308 # It seems that -bexpall does not export symbols beginning with
11309 # underscore (_), so it is better to generate a list of symbols to export.
11310 always_export_symbols=yes
11311 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11312 # Warning - without using the other runtime loading flags (-brtl),
11313 # -berok will link without error, but may produce a broken library.
11314 allow_undefined_flag='-berok'
11315 # Determine the default libpath from the value encoded in an
11316 # empty executable.
11317 if test set = "${lt_cv_aix_libpath+set}"; then
11318 aix_libpath=$lt_cv_aix_libpath
11319 else
11320 if test ${lt_cv_aix_libpath_+y}
11321 then :
11322 printf %s "(cached) " >&6
11323 else case e in #(
11324 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11325 /* end confdefs.h. */
11326
11327 int
11328 main (void)
11329 {
11330
11331 ;
11332 return 0;
11333 }
11334 _ACEOF
11335 if ac_fn_c_try_link "$LINENO"
11336 then :
11337
11338 lt_aix_libpath_sed='
11339 /Import File Strings/,/^$/ {
11340 /^0/ {
11341 s/^0 *\([^ ]*\) *$/\1/
11342 p
11343 }
11344 }'
11345 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11346 # Check for a 64-bit object if we didn't find anything.
11347 if test -z "$lt_cv_aix_libpath_"; then
11348 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11349 fi
11350 fi
11351 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11352 conftest$ac_exeext conftest.$ac_ext
11353 if test -z "$lt_cv_aix_libpath_"; then
11354 lt_cv_aix_libpath_=/usr/lib:/lib
11355 fi
11356 ;;
11357 esac
11358 fi
11359
11360 aix_libpath=$lt_cv_aix_libpath_
11361 fi
11362
11363 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11364 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
11365 else
11366 if test ia64 = "$host_cpu"; then
11367 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11368 allow_undefined_flag="-z nodefs"
11369 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"
11370 else
11371 # Determine the default libpath from the value encoded in an
11372 # empty executable.
11373 if test set = "${lt_cv_aix_libpath+set}"; then
11374 aix_libpath=$lt_cv_aix_libpath
11375 else
11376 if test ${lt_cv_aix_libpath_+y}
11377 then :
11378 printf %s "(cached) " >&6
11379 else case e in #(
11380 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11381 /* end confdefs.h. */
11382
11383 int
11384 main (void)
11385 {
11386
11387 ;
11388 return 0;
11389 }
11390 _ACEOF
11391 if ac_fn_c_try_link "$LINENO"
11392 then :
11393
11394 lt_aix_libpath_sed='
11395 /Import File Strings/,/^$/ {
11396 /^0/ {
11397 s/^0 *\([^ ]*\) *$/\1/
11398 p
11399 }
11400 }'
11401 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11402 # Check for a 64-bit object if we didn't find anything.
11403 if test -z "$lt_cv_aix_libpath_"; then
11404 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11405 fi
11406 fi
11407 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11408 conftest$ac_exeext conftest.$ac_ext
11409 if test -z "$lt_cv_aix_libpath_"; then
11410 lt_cv_aix_libpath_=/usr/lib:/lib
11411 fi
11412 ;;
11413 esac
11414 fi
11415
11416 aix_libpath=$lt_cv_aix_libpath_
11417 fi
11418
11419 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11420 # Warning - without using the other run time loading flags,
11421 # -berok will link without error, but may produce a broken library.
11422 no_undefined_flag=' $wl-bernotok'
11423 allow_undefined_flag=' $wl-berok'
11424 if test yes = "$with_gnu_ld"; then
11425 # We only use this code for GNU lds that support --whole-archive.
11426 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11427 else
11428 # Exported symbols can be pulled into shared objects from archives
11429 whole_archive_flag_spec='$convenience'
11430 fi
11431 archive_cmds_need_lc=yes
11432 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11433 # -brtl affects multiple linker settings, -berok does not and is overridden later
11434 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11435 if test svr4 != "$with_aix_soname"; then
11436 # This is similar to how AIX traditionally builds its shared libraries.
11437 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'
11438 fi
11439 if test aix != "$with_aix_soname"; then
11440 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'
11441 else
11442 # used by -dlpreopen to get the symbols
11443 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11444 fi
11445 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11446 fi
11447 fi
11448 ;;
11449
11450 amigaos*)
11451 case $host_cpu in
11452 powerpc)
11453 # see comment about AmigaOS4 .so support
11454 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11455 archive_expsym_cmds=''
11456 ;;
11457 m68k)
11458 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)'
11459 hardcode_libdir_flag_spec='-L$libdir'
11460 hardcode_minus_L=yes
11461 ;;
11462 esac
11463 ;;
11464
11465 bsdi[45]*)
11466 export_dynamic_flag_spec=-rdynamic
11467 ;;
11468
11469 cygwin* | mingw* | windows* | pw32* | cegcc*)
11470 # When not using gcc, we currently assume that we are using
11471 # Microsoft Visual C++ or Intel C++ Compiler.
11472 # hardcode_libdir_flag_spec is actually meaningless, as there is
11473 # no search path for DLLs.
11474 case $cc_basename in
11475 cl* | icl*)
11476 # Native MSVC or ICC
11477 hardcode_libdir_flag_spec=' '
11478 allow_undefined_flag=unsupported
11479 always_export_symbols=yes
11480 file_list_spec='@'
11481 # Tell ltmain to make .lib files, not .a files.
11482 libext=lib
11483 # Tell ltmain to make .dll files, not .so files.
11484 shrext_cmds=.dll
11485 # FIXME: Setting linknames here is a bad hack.
11486 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11487 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11488 cp "$export_symbols" "$output_objdir/$soname.def";
11489 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11490 else
11491 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11492 fi~
11493 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11494 linknames='
11495 # The linker will not automatically build a static lib if we build a DLL.
11496 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11497 enable_shared_with_static_runtimes=yes
11498 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11499 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11500 # Don't use ranlib
11501 old_postinstall_cmds='chmod 644 $oldlib'
11502 postlink_cmds='lt_outputfile="@OUTPUT@"~
11503 lt_tool_outputfile="@TOOL_OUTPUT@"~
11504 case $lt_outputfile in
11505 *.exe|*.EXE) ;;
11506 *)
11507 lt_outputfile=$lt_outputfile.exe
11508 lt_tool_outputfile=$lt_tool_outputfile.exe
11509 ;;
11510 esac~
11511 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11512 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11513 $RM "$lt_outputfile.manifest";
11514 fi'
11515 ;;
11516 *)
11517 # Assume MSVC and ICC wrapper
11518 hardcode_libdir_flag_spec=' '
11519 allow_undefined_flag=unsupported
11520 # Tell ltmain to make .lib files, not .a files.
11521 libext=lib
11522 # Tell ltmain to make .dll files, not .so files.
11523 shrext_cmds=.dll
11524 # FIXME: Setting linknames here is a bad hack.
11525 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11526 # The linker will automatically build a .lib file if we build a DLL.
11527 old_archive_from_new_cmds='true'
11528 # FIXME: Should let the user specify the lib program.
11529 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11530 enable_shared_with_static_runtimes=yes
11531 ;;
11532 esac
11533 ;;
11534
11535 darwin* | rhapsody*)
11536
11537
11538 archive_cmds_need_lc=no
11539 hardcode_direct=no
11540 hardcode_automatic=yes
11541 hardcode_shlibpath_var=unsupported
11542 if test yes = "$lt_cv_ld_force_load"; then
11543 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\"`'
11544
11545 else
11546 whole_archive_flag_spec=''
11547 fi
11548 link_all_deplibs=yes
11549 allow_undefined_flag=$_lt_dar_allow_undefined
11550 case $cc_basename in
11551 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11552 *) _lt_dar_can_shared=$GCC ;;
11553 esac
11554 if test yes = "$_lt_dar_can_shared"; then
11555 output_verbose_link_cmd=func_echo_all
11556 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11557 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11558 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"
11559 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"
11560
11561 else
11562 ld_shlibs=no
11563 fi
11564
11565 ;;
11566
11567 dgux*)
11568 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11569 hardcode_libdir_flag_spec='-L$libdir'
11570 hardcode_shlibpath_var=no
11571 ;;
11572
11573 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11574 # support. Future versions do this automatically, but an explicit c++rt0.o
11575 # does not break anything, and helps significantly (at the cost of a little
11576 # extra space).
11577 freebsd2.2*)
11578 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11579 hardcode_libdir_flag_spec='-R$libdir'
11580 hardcode_direct=yes
11581 hardcode_shlibpath_var=no
11582 ;;
11583
11584 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11585 freebsd2.*)
11586 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11587 hardcode_direct=yes
11588 hardcode_minus_L=yes
11589 hardcode_shlibpath_var=no
11590 ;;
11591
11592 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11593 freebsd* | dragonfly* | midnightbsd*)
11594 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11595 hardcode_libdir_flag_spec='-R$libdir'
11596 hardcode_direct=yes
11597 hardcode_shlibpath_var=no
11598 ;;
11599
11600 hpux9*)
11601 if test yes = "$GCC"; then
11602 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'
11603 else
11604 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'
11605 fi
11606 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11607 hardcode_libdir_separator=:
11608 hardcode_direct=yes
11609
11610 # hardcode_minus_L: Not really in the search PATH,
11611 # but as the default location of the library.
11612 hardcode_minus_L=yes
11613 export_dynamic_flag_spec='$wl-E'
11614 ;;
11615
11616 hpux10*)
11617 if test yes,no = "$GCC,$with_gnu_ld"; then
11618 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11619 else
11620 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11621 fi
11622 if test no = "$with_gnu_ld"; then
11623 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11624 hardcode_libdir_separator=:
11625 hardcode_direct=yes
11626 hardcode_direct_absolute=yes
11627 export_dynamic_flag_spec='$wl-E'
11628 # hardcode_minus_L: Not really in the search PATH,
11629 # but as the default location of the library.
11630 hardcode_minus_L=yes
11631 fi
11632 ;;
11633
11634 hpux11*)
11635 if test yes,no = "$GCC,$with_gnu_ld"; then
11636 case $host_cpu in
11637 hppa*64*)
11638 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11639 ;;
11640 ia64*)
11641 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11642 ;;
11643 *)
11644 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11645 ;;
11646 esac
11647 else
11648 case $host_cpu in
11649 hppa*64*)
11650 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11651 ;;
11652 ia64*)
11653 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11654 ;;
11655 *)
11656
11657 # Older versions of the 11.00 compiler do not understand -b yet
11658 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11660 printf %s "checking if $CC understands -b... " >&6; }
11661 if test ${lt_cv_prog_compiler__b+y}
11662 then :
11663 printf %s "(cached) " >&6
11664 else case e in #(
11665 e) lt_cv_prog_compiler__b=no
11666 save_LDFLAGS=$LDFLAGS
11667 LDFLAGS="$LDFLAGS -b"
11668 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11669 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11670 # The linker can only warn and ignore the option if not recognized
11671 # So say no if there are warnings
11672 if test -s conftest.err; then
11673 # Append any errors to the config.log.
11674 cat conftest.err 1>&5
11675 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11676 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11677 if diff conftest.exp conftest.er2 >/dev/null; then
11678 lt_cv_prog_compiler__b=yes
11679 fi
11680 else
11681 lt_cv_prog_compiler__b=yes
11682 fi
11683 fi
11684 $RM -r conftest*
11685 LDFLAGS=$save_LDFLAGS
11686 ;;
11687 esac
11688 fi
11689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11690 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11691
11692 if test yes = "$lt_cv_prog_compiler__b"; then
11693 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11694 else
11695 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11696 fi
11697
11698 ;;
11699 esac
11700 fi
11701 if test no = "$with_gnu_ld"; then
11702 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11703 hardcode_libdir_separator=:
11704
11705 case $host_cpu in
11706 hppa*64*|ia64*)
11707 hardcode_direct=no
11708 hardcode_shlibpath_var=no
11709 ;;
11710 *)
11711 hardcode_direct=yes
11712 hardcode_direct_absolute=yes
11713 export_dynamic_flag_spec='$wl-E'
11714
11715 # hardcode_minus_L: Not really in the search PATH,
11716 # but as the default location of the library.
11717 hardcode_minus_L=yes
11718 ;;
11719 esac
11720 fi
11721 ;;
11722
11723 irix5* | irix6* | nonstopux*)
11724 if test yes = "$GCC"; then
11725 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'
11726 # Try to use the -exported_symbol ld option, if it does not
11727 # work, assume that -exports_file does not work either and
11728 # implicitly export all symbols.
11729 # This should be the same for all languages, so no per-tag cache variable.
11730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11731 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11732 if test ${lt_cv_irix_exported_symbol+y}
11733 then :
11734 printf %s "(cached) " >&6
11735 else case e in #(
11736 e) save_LDFLAGS=$LDFLAGS
11737 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11739 /* end confdefs.h. */
11740 int foo (void) { return 0; }
11741 _ACEOF
11742 if ac_fn_c_try_link "$LINENO"
11743 then :
11744 lt_cv_irix_exported_symbol=yes
11745 else case e in #(
11746 e) lt_cv_irix_exported_symbol=no ;;
11747 esac
11748 fi
11749 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11750 conftest$ac_exeext conftest.$ac_ext
11751 LDFLAGS=$save_LDFLAGS ;;
11752 esac
11753 fi
11754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11755 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11756 if test yes = "$lt_cv_irix_exported_symbol"; then
11757 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'
11758 fi
11759 link_all_deplibs=no
11760 else
11761 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'
11762 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'
11763 fi
11764 archive_cmds_need_lc='no'
11765 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11766 hardcode_libdir_separator=:
11767 inherit_rpath=yes
11768 link_all_deplibs=yes
11769 ;;
11770
11771 linux*)
11772 case $cc_basename in
11773 tcc*)
11774 # Fabrice Bellard et al's Tiny C Compiler
11775 ld_shlibs=yes
11776 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11777 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11778 ;;
11779 esac
11780 ;;
11781
11782 *-mlibc)
11783 ;;
11784
11785 netbsd* | netbsdelf*-gnu)
11786 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11787 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11788 else
11789 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11790 fi
11791 hardcode_libdir_flag_spec='-R$libdir'
11792 hardcode_direct=yes
11793 hardcode_shlibpath_var=no
11794 ;;
11795
11796 newsos6)
11797 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11798 hardcode_direct=yes
11799 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11800 hardcode_libdir_separator=:
11801 hardcode_shlibpath_var=no
11802 ;;
11803
11804 *nto* | *qnx*)
11805 ;;
11806
11807 openbsd*)
11808 if test -f /usr/libexec/ld.so; then
11809 hardcode_direct=yes
11810 hardcode_shlibpath_var=no
11811 hardcode_direct_absolute=yes
11812 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11813 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11814 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11815 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11816 export_dynamic_flag_spec='$wl-E'
11817 else
11818 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11819 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11820 fi
11821 else
11822 ld_shlibs=no
11823 fi
11824 ;;
11825
11826 os2*)
11827 hardcode_libdir_flag_spec='-L$libdir'
11828 hardcode_minus_L=yes
11829 allow_undefined_flag=unsupported
11830 shrext_cmds=.dll
11831 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11832 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11833 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11834 $ECHO EXPORTS >> $output_objdir/$libname.def~
11835 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11836 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11837 emximp -o $lib $output_objdir/$libname.def'
11838 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11839 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11840 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11841 $ECHO EXPORTS >> $output_objdir/$libname.def~
11842 prefix_cmds="$SED"~
11843 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11844 prefix_cmds="$prefix_cmds -e 1d";
11845 fi~
11846 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11847 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11848 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11849 emximp -o $lib $output_objdir/$libname.def'
11850 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11851 enable_shared_with_static_runtimes=yes
11852 file_list_spec='@'
11853 ;;
11854
11855 osf3*)
11856 if test yes = "$GCC"; then
11857 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11858 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'
11859 else
11860 allow_undefined_flag=' -expect_unresolved \*'
11861 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'
11862 fi
11863 archive_cmds_need_lc='no'
11864 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11865 hardcode_libdir_separator=:
11866 ;;
11867
11868 osf4* | osf5*) # as osf3* with the addition of -msym flag
11869 if test yes = "$GCC"; then
11870 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11871 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'
11872 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11873 else
11874 allow_undefined_flag=' -expect_unresolved \*'
11875 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'
11876 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~
11877 $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'
11878
11879 # Both c and cxx compiler support -rpath directly
11880 hardcode_libdir_flag_spec='-rpath $libdir'
11881 fi
11882 archive_cmds_need_lc='no'
11883 hardcode_libdir_separator=:
11884 ;;
11885
11886 serenity*)
11887 ;;
11888
11889 solaris*)
11890 no_undefined_flag=' -z defs'
11891 if test yes = "$GCC"; then
11892 wlarc='$wl'
11893 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11894 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11895 $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'
11896 else
11897 case `$CC -V 2>&1` in
11898 *"Compilers 5.0"*)
11899 wlarc=''
11900 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11901 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11902 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11903 ;;
11904 *)
11905 wlarc='$wl'
11906 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11907 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11908 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11909 ;;
11910 esac
11911 fi
11912 hardcode_libdir_flag_spec='-R$libdir'
11913 hardcode_shlibpath_var=no
11914 case $host_os in
11915 solaris2.[0-5] | solaris2.[0-5].*) ;;
11916 *)
11917 # The compiler driver will combine and reorder linker options,
11918 # but understands '-z linker_flag'. GCC discards it without '$wl',
11919 # but is careful enough not to reorder.
11920 # Supported since Solaris 2.6 (maybe 2.5.1?)
11921 if test yes = "$GCC"; then
11922 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11923 else
11924 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11925 fi
11926 ;;
11927 esac
11928 link_all_deplibs=yes
11929 ;;
11930
11931 sunos4*)
11932 if test sequent = "$host_vendor"; then
11933 # Use $CC to link under sequent, because it throws in some extra .o
11934 # files that make .init and .fini sections work.
11935 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11936 else
11937 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11938 fi
11939 hardcode_libdir_flag_spec='-L$libdir'
11940 hardcode_direct=yes
11941 hardcode_minus_L=yes
11942 hardcode_shlibpath_var=no
11943 ;;
11944
11945 sysv4)
11946 case $host_vendor in
11947 sni)
11948 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11949 hardcode_direct=yes # is this really true???
11950 ;;
11951 siemens)
11952 ## LD is ld it makes a PLAMLIB
11953 ## CC just makes a GrossModule.
11954 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11955 reload_cmds='$CC -r -o $output$reload_objs'
11956 hardcode_direct=no
11957 ;;
11958 motorola)
11959 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11960 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11961 ;;
11962 esac
11963 runpath_var='LD_RUN_PATH'
11964 hardcode_shlibpath_var=no
11965 ;;
11966
11967 sysv4.3*)
11968 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11969 hardcode_shlibpath_var=no
11970 export_dynamic_flag_spec='-Bexport'
11971 ;;
11972
11973 sysv4*MP*)
11974 if test -d /usr/nec; then
11975 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11976 hardcode_shlibpath_var=no
11977 runpath_var=LD_RUN_PATH
11978 hardcode_runpath_var=yes
11979 ld_shlibs=yes
11980 fi
11981 ;;
11982
11983 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11984 no_undefined_flag='$wl-z,text'
11985 archive_cmds_need_lc=no
11986 hardcode_shlibpath_var=no
11987 runpath_var='LD_RUN_PATH'
11988
11989 if test yes = "$GCC"; then
11990 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11991 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11992 else
11993 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11994 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11995 fi
11996 ;;
11997
11998 sysv5* | sco3.2v5* | sco5v6*)
11999 # Note: We CANNOT use -z defs as we might desire, because we do not
12000 # link with -lc, and that would cause any symbols used from libc to
12001 # always be unresolved, which means just about no library would
12002 # ever link correctly. If we're not using GNU ld we use -z text
12003 # though, which does catch some bad symbols but isn't as heavy-handed
12004 # as -z defs.
12005 no_undefined_flag='$wl-z,text'
12006 allow_undefined_flag='$wl-z,nodefs'
12007 archive_cmds_need_lc=no
12008 hardcode_shlibpath_var=no
12009 hardcode_libdir_flag_spec='$wl-R,$libdir'
12010 hardcode_libdir_separator=':'
12011 link_all_deplibs=yes
12012 export_dynamic_flag_spec='$wl-Bexport'
12013 runpath_var='LD_RUN_PATH'
12014
12015 if test yes = "$GCC"; then
12016 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12017 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12018 else
12019 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12020 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12021 fi
12022 ;;
12023
12024 uts4*)
12025 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12026 hardcode_libdir_flag_spec='-L$libdir'
12027 hardcode_shlibpath_var=no
12028 ;;
12029
12030 *)
12031 ld_shlibs=no
12032 ;;
12033 esac
12034
12035 if test sni = "$host_vendor"; then
12036 case $host in
12037 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12038 export_dynamic_flag_spec='$wl-Blargedynsym'
12039 ;;
12040 esac
12041 fi
12042 fi
12043
12044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12045 printf "%s\n" "$ld_shlibs" >&6; }
12046 test no = "$ld_shlibs" && can_build_shared=no
12047
12048 with_gnu_ld=$with_gnu_ld
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064 #
12065 # Do we need to explicitly link libc?
12066 #
12067 case "x$archive_cmds_need_lc" in
12068 x|xyes)
12069 # Assume -lc should be added
12070 archive_cmds_need_lc=yes
12071
12072 if test yes,yes = "$GCC,$enable_shared"; then
12073 case $archive_cmds in
12074 *'~'*)
12075 # FIXME: we may have to deal with multi-command sequences.
12076 ;;
12077 '$CC '*)
12078 # Test whether the compiler implicitly links with -lc since on some
12079 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12080 # to ld, don't add -lc before -lgcc.
12081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12082 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12083 if test ${lt_cv_archive_cmds_need_lc+y}
12084 then :
12085 printf %s "(cached) " >&6
12086 else case e in #(
12087 e) $RM conftest*
12088 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12089
12090 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12091 (eval $ac_compile) 2>&5
12092 ac_status=$?
12093 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12094 test $ac_status = 0; } 2>conftest.err; then
12095 soname=conftest
12096 lib=conftest
12097 libobjs=conftest.$ac_objext
12098 deplibs=
12099 wl=$lt_prog_compiler_wl
12100 pic_flag=$lt_prog_compiler_pic
12101 compiler_flags=-v
12102 linker_flags=-v
12103 verstring=
12104 output_objdir=.
12105 libname=conftest
12106 lt_save_allow_undefined_flag=$allow_undefined_flag
12107 allow_undefined_flag=
12108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12109 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12110 ac_status=$?
12111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12112 test $ac_status = 0; }
12113 then
12114 lt_cv_archive_cmds_need_lc=no
12115 else
12116 lt_cv_archive_cmds_need_lc=yes
12117 fi
12118 allow_undefined_flag=$lt_save_allow_undefined_flag
12119 else
12120 cat conftest.err 1>&5
12121 fi
12122 $RM conftest*
12123 ;;
12124 esac
12125 fi
12126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12127 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12128 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12129 ;;
12130 esac
12131 fi
12132 ;;
12133 esac
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12287 printf %s "checking dynamic linker characteristics... " >&6; }
12288
12289 if test yes = "$GCC"; then
12290 case $host_os in
12291 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12292 *) lt_awk_arg='/^libraries:/' ;;
12293 esac
12294 case $host_os in
12295 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12296 *) lt_sed_strip_eq='s|=/|/|g' ;;
12297 esac
12298 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12299 case $lt_search_path_spec in
12300 *\;*)
12301 # if the path contains ";" then we assume it to be the separator
12302 # otherwise default to the standard path separator (i.e. ":") - it is
12303 # assumed that no part of a normal pathname contains ";" but that should
12304 # okay in the real world where ";" in dirpaths is itself problematic.
12305 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12306 ;;
12307 *)
12308 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12309 ;;
12310 esac
12311 # Ok, now we have the path, separated by spaces, we can step through it
12312 # and add multilib dir if necessary...
12313 lt_tmp_lt_search_path_spec=
12314 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12315 # ...but if some path component already ends with the multilib dir we assume
12316 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12317 case "$lt_multi_os_dir; $lt_search_path_spec " in
12318 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12319 lt_multi_os_dir=
12320 ;;
12321 esac
12322 for lt_sys_path in $lt_search_path_spec; do
12323 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12324 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12325 elif test -n "$lt_multi_os_dir"; then
12326 test -d "$lt_sys_path" && \
12327 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12328 fi
12329 done
12330 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12331 BEGIN {RS = " "; FS = "/|\n";} {
12332 lt_foo = "";
12333 lt_count = 0;
12334 for (lt_i = NF; lt_i > 0; lt_i--) {
12335 if ($lt_i != "" && $lt_i != ".") {
12336 if ($lt_i == "..") {
12337 lt_count++;
12338 } else {
12339 if (lt_count == 0) {
12340 lt_foo = "/" $lt_i lt_foo;
12341 } else {
12342 lt_count--;
12343 }
12344 }
12345 }
12346 }
12347 if (lt_foo != "") { lt_freq[lt_foo]++; }
12348 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12349 }'`
12350 # AWK program above erroneously prepends '/' to C:/dos/paths
12351 # for these hosts.
12352 case $host_os in
12353 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12354 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12355 esac
12356 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12357 else
12358 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12359 fi
12360 library_names_spec=
12361 libname_spec='lib$name'
12362 soname_spec=
12363 shrext_cmds=.so
12364 postinstall_cmds=
12365 postuninstall_cmds=
12366 finish_cmds=
12367 finish_eval=
12368 shlibpath_var=
12369 shlibpath_overrides_runpath=unknown
12370 version_type=none
12371 dynamic_linker="$host_os ld.so"
12372 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12373 need_lib_prefix=unknown
12374 hardcode_into_libs=no
12375
12376 # when you set need_version to no, make sure it does not cause -set_version
12377 # flags to be left without arguments
12378 need_version=unknown
12379
12380
12381
12382 case $host_os in
12383 aix3*)
12384 version_type=linux # correct to gnu/linux during the next big refactor
12385 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12386 shlibpath_var=LIBPATH
12387
12388 # AIX 3 has no versioning support, so we append a major version to the name.
12389 soname_spec='$libname$release$shared_ext$major'
12390 ;;
12391
12392 aix[4-9]*)
12393 version_type=linux # correct to gnu/linux during the next big refactor
12394 need_lib_prefix=no
12395 need_version=no
12396 hardcode_into_libs=yes
12397 if test ia64 = "$host_cpu"; then
12398 # AIX 5 supports IA64
12399 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12400 shlibpath_var=LD_LIBRARY_PATH
12401 else
12402 # With GCC up to 2.95.x, collect2 would create an import file
12403 # for dependence libraries. The import file would start with
12404 # the line '#! .'. This would cause the generated library to
12405 # depend on '.', always an invalid library. This was fixed in
12406 # development snapshots of GCC prior to 3.0.
12407 case $host_os in
12408 aix4 | aix4.[01] | aix4.[01].*)
12409 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12410 echo ' yes '
12411 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12412 :
12413 else
12414 can_build_shared=no
12415 fi
12416 ;;
12417 esac
12418 # Using Import Files as archive members, it is possible to support
12419 # filename-based versioning of shared library archives on AIX. While
12420 # this would work for both with and without runtime linking, it will
12421 # prevent static linking of such archives. So we do filename-based
12422 # shared library versioning with .so extension only, which is used
12423 # when both runtime linking and shared linking is enabled.
12424 # Unfortunately, runtime linking may impact performance, so we do
12425 # not want this to be the default eventually. Also, we use the
12426 # versioned .so libs for executables only if there is the -brtl
12427 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
12428 # To allow for filename-based versioning support, we need to create
12429 # libNAME.so.V as an archive file, containing:
12430 # *) an Import File, referring to the versioned filename of the
12431 # archive as well as the shared archive member, telling the
12432 # bitwidth (32 or 64) of that shared object, and providing the
12433 # list of exported symbols of that shared object, eventually
12434 # decorated with the 'weak' keyword
12435 # *) the shared object with the F_LOADONLY flag set, to really avoid
12436 # it being seen by the linker.
12437 # At run time we better use the real file rather than another symlink,
12438 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12439
12440 case $with_aix_soname,$aix_use_runtimelinking in
12441 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12442 # soname into executable. Probably we can add versioning support to
12443 # collect2, so additional links can be useful in future.
12444 aix,yes) # traditional libtool
12445 dynamic_linker='AIX unversionable lib.so'
12446 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12447 # instead of lib<name>.a to let people know that these are not
12448 # typical AIX shared libraries.
12449 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12450 ;;
12451 aix,no) # traditional AIX only
12452 dynamic_linker='AIX lib.a(lib.so.V)'
12453 # We preserve .a as extension for shared libraries through AIX4.2
12454 # and later when we are not doing run time linking.
12455 library_names_spec='$libname$release.a $libname.a'
12456 soname_spec='$libname$release$shared_ext$major'
12457 ;;
12458 svr4,*) # full svr4 only
12459 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12460 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12461 # We do not specify a path in Import Files, so LIBPATH fires.
12462 shlibpath_overrides_runpath=yes
12463 ;;
12464 *,yes) # both, prefer svr4
12465 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12466 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12467 # unpreferred sharedlib libNAME.a needs extra handling
12468 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"'
12469 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"'
12470 # We do not specify a path in Import Files, so LIBPATH fires.
12471 shlibpath_overrides_runpath=yes
12472 ;;
12473 *,no) # both, prefer aix
12474 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12475 library_names_spec='$libname$release.a $libname.a'
12476 soname_spec='$libname$release$shared_ext$major'
12477 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12478 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)'
12479 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"'
12480 ;;
12481 esac
12482 shlibpath_var=LIBPATH
12483 fi
12484 ;;
12485
12486 amigaos*)
12487 case $host_cpu in
12488 powerpc)
12489 # Since July 2007 AmigaOS4 officially supports .so libraries.
12490 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12491 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12492 ;;
12493 m68k)
12494 library_names_spec='$libname.ixlibrary $libname.a'
12495 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12496 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'
12497 ;;
12498 esac
12499 ;;
12500
12501 beos*)
12502 library_names_spec='$libname$shared_ext'
12503 dynamic_linker="$host_os ld.so"
12504 shlibpath_var=LIBRARY_PATH
12505 ;;
12506
12507 bsdi[45]*)
12508 version_type=linux # correct to gnu/linux during the next big refactor
12509 need_version=no
12510 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12511 soname_spec='$libname$release$shared_ext$major'
12512 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12513 shlibpath_var=LD_LIBRARY_PATH
12514 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12515 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12516 # the default ld.so.conf also contains /usr/contrib/lib and
12517 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12518 # libtool to hard-code these into programs
12519 ;;
12520
12521 cygwin* | mingw* | windows* | pw32* | cegcc*)
12522 version_type=windows
12523 shrext_cmds=.dll
12524 need_version=no
12525 need_lib_prefix=no
12526
12527 case $GCC,$cc_basename in
12528 yes,*)
12529 # gcc
12530 library_names_spec='$libname.dll.a'
12531 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12532 # If user builds GCC with multilib enabled,
12533 # it should just install on $(libdir)
12534 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
12535 if test xyes = x"$multilib"; then
12536 postinstall_cmds='base_file=`basename \$file`~
12537 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12538 dldir=$destdir/`dirname \$dlpath`~
12539 $install_prog $dir/$dlname $destdir/$dlname~
12540 chmod a+x $destdir/$dlname~
12541 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12542 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
12543 fi'
12544 else
12545 postinstall_cmds='base_file=`basename \$file`~
12546 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12547 dldir=$destdir/`dirname \$dlpath`~
12548 test -d \$dldir || mkdir -p \$dldir~
12549 $install_prog $dir/$dlname \$dldir/$dlname~
12550 chmod a+x \$dldir/$dlname~
12551 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12552 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12553 fi'
12554 fi
12555 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12556 dlpath=$dir/\$dldll~
12557 $RM \$dlpath'
12558 shlibpath_overrides_runpath=yes
12559
12560 case $host_os in
12561 cygwin*)
12562 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12563 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12564
12565 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12566 ;;
12567 mingw* | windows* | cegcc*)
12568 # MinGW DLLs use traditional 'lib' prefix
12569 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12570 ;;
12571 pw32*)
12572 # pw32 DLLs use 'pw' prefix rather than 'lib'
12573 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12574 ;;
12575 esac
12576 dynamic_linker='Win32 ld.exe'
12577 ;;
12578
12579 *,cl* | *,icl*)
12580 # Native MSVC or ICC
12581 libname_spec='$name'
12582 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12583 library_names_spec='$libname.dll.lib'
12584
12585 case $build_os in
12586 mingw* | windows*)
12587 sys_lib_search_path_spec=
12588 lt_save_ifs=$IFS
12589 IFS=';'
12590 for lt_path in $LIB
12591 do
12592 IFS=$lt_save_ifs
12593 # Let DOS variable expansion print the short 8.3 style file name.
12594 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12595 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12596 done
12597 IFS=$lt_save_ifs
12598 # Convert to MSYS style.
12599 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12600 ;;
12601 cygwin*)
12602 # Convert to unix form, then to dos form, then back to unix form
12603 # but this time dos style (no spaces!) so that the unix form looks
12604 # like /cygdrive/c/PROGRA~1:/cygdr...
12605 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12606 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12607 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12608 ;;
12609 *)
12610 sys_lib_search_path_spec=$LIB
12611 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12612 # It is most probably a Windows format PATH.
12613 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12614 else
12615 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12616 fi
12617 # FIXME: find the short name or the path components, as spaces are
12618 # common. (e.g. "Program Files" -> "PROGRA~1")
12619 ;;
12620 esac
12621
12622 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12623 postinstall_cmds='base_file=`basename \$file`~
12624 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12625 dldir=$destdir/`dirname \$dlpath`~
12626 test -d \$dldir || mkdir -p \$dldir~
12627 $install_prog $dir/$dlname \$dldir/$dlname'
12628 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12629 dlpath=$dir/\$dldll~
12630 $RM \$dlpath'
12631 shlibpath_overrides_runpath=yes
12632 dynamic_linker='Win32 link.exe'
12633 ;;
12634
12635 *)
12636 # Assume MSVC and ICC wrapper
12637 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12638 dynamic_linker='Win32 ld.exe'
12639 ;;
12640 esac
12641 # FIXME: first we should search . and the directory the executable is in
12642 shlibpath_var=PATH
12643 ;;
12644
12645 darwin* | rhapsody*)
12646 dynamic_linker="$host_os dyld"
12647 version_type=darwin
12648 need_lib_prefix=no
12649 need_version=no
12650 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12651 soname_spec='$libname$release$major$shared_ext'
12652 shlibpath_overrides_runpath=yes
12653 shlibpath_var=DYLD_LIBRARY_PATH
12654 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12655
12656 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12657 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12658 ;;
12659
12660 dgux*)
12661 version_type=linux # correct to gnu/linux during the next big refactor
12662 need_lib_prefix=no
12663 need_version=no
12664 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12665 soname_spec='$libname$release$shared_ext$major'
12666 shlibpath_var=LD_LIBRARY_PATH
12667 ;;
12668
12669 freebsd* | dragonfly* | midnightbsd*)
12670 # DragonFly does not have aout. When/if they implement a new
12671 # versioning mechanism, adjust this.
12672 if test -x /usr/bin/objformat; then
12673 objformat=`/usr/bin/objformat`
12674 else
12675 case $host_os in
12676 freebsd[23].*) objformat=aout ;;
12677 *) objformat=elf ;;
12678 esac
12679 fi
12680 version_type=freebsd-$objformat
12681 case $version_type in
12682 freebsd-elf*)
12683 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12684 soname_spec='$libname$release$shared_ext$major'
12685 need_version=no
12686 need_lib_prefix=no
12687 ;;
12688 freebsd-*)
12689 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12690 need_version=yes
12691 ;;
12692 esac
12693 case $host_cpu in
12694 powerpc64)
12695 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
12696 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
12697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12698 /* end confdefs.h. */
12699 int test_pointer_size[sizeof (void *) - 5];
12700
12701 _ACEOF
12702 if ac_fn_c_try_compile "$LINENO"
12703 then :
12704 shlibpath_var=LD_LIBRARY_PATH
12705 else case e in #(
12706 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
12707 esac
12708 fi
12709 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12710 ;;
12711 *)
12712 shlibpath_var=LD_LIBRARY_PATH
12713 ;;
12714 esac
12715 case $host_os in
12716 freebsd2.*)
12717 shlibpath_overrides_runpath=yes
12718 ;;
12719 freebsd3.[01]* | freebsdelf3.[01]*)
12720 shlibpath_overrides_runpath=yes
12721 hardcode_into_libs=yes
12722 ;;
12723 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12724 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12725 shlibpath_overrides_runpath=no
12726 hardcode_into_libs=yes
12727 ;;
12728 *) # from 4.6 on, and DragonFly
12729 shlibpath_overrides_runpath=yes
12730 hardcode_into_libs=yes
12731 ;;
12732 esac
12733 ;;
12734
12735 haiku*)
12736 version_type=linux # correct to gnu/linux during the next big refactor
12737 need_lib_prefix=no
12738 need_version=no
12739 dynamic_linker="$host_os runtime_loader"
12740 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12741 soname_spec='$libname$release$shared_ext$major'
12742 shlibpath_var=LIBRARY_PATH
12743 shlibpath_overrides_runpath=no
12744 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
12745 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
12746 hardcode_into_libs=no
12747 ;;
12748
12749 hpux9* | hpux10* | hpux11*)
12750 # Give a soname corresponding to the major version so that dld.sl refuses to
12751 # link against other versions.
12752 version_type=sunos
12753 need_lib_prefix=no
12754 need_version=no
12755 case $host_cpu in
12756 ia64*)
12757 shrext_cmds='.so'
12758 hardcode_into_libs=yes
12759 dynamic_linker="$host_os dld.so"
12760 shlibpath_var=LD_LIBRARY_PATH
12761 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12762 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12763 soname_spec='$libname$release$shared_ext$major'
12764 if test 32 = "$HPUX_IA64_MODE"; then
12765 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12766 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12767 else
12768 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12769 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12770 fi
12771 ;;
12772 hppa*64*)
12773 shrext_cmds='.sl'
12774 hardcode_into_libs=yes
12775 dynamic_linker="$host_os dld.sl"
12776 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12777 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12778 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12779 soname_spec='$libname$release$shared_ext$major'
12780 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12781 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12782 ;;
12783 *)
12784 shrext_cmds='.sl'
12785 dynamic_linker="$host_os dld.sl"
12786 shlibpath_var=SHLIB_PATH
12787 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12788 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12789 soname_spec='$libname$release$shared_ext$major'
12790 ;;
12791 esac
12792 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12793 postinstall_cmds='chmod 555 $lib'
12794 # or fails outright, so override atomically:
12795 install_override_mode=555
12796 ;;
12797
12798 interix[3-9]*)
12799 version_type=linux # correct to gnu/linux during the next big refactor
12800 need_lib_prefix=no
12801 need_version=no
12802 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12803 soname_spec='$libname$release$shared_ext$major'
12804 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12805 shlibpath_var=LD_LIBRARY_PATH
12806 shlibpath_overrides_runpath=no
12807 hardcode_into_libs=yes
12808 ;;
12809
12810 irix5* | irix6* | nonstopux*)
12811 case $host_os in
12812 nonstopux*) version_type=nonstopux ;;
12813 *)
12814 if test yes = "$lt_cv_prog_gnu_ld"; then
12815 version_type=linux # correct to gnu/linux during the next big refactor
12816 else
12817 version_type=irix
12818 fi ;;
12819 esac
12820 need_lib_prefix=no
12821 need_version=no
12822 soname_spec='$libname$release$shared_ext$major'
12823 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12824 case $host_os in
12825 irix5* | nonstopux*)
12826 libsuff= shlibsuff=
12827 ;;
12828 *)
12829 case $LD in # libtool.m4 will add one of these switches to LD
12830 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12831 libsuff= shlibsuff= libmagic=32-bit;;
12832 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12833 libsuff=32 shlibsuff=N32 libmagic=N32;;
12834 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12835 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12836 *) libsuff= shlibsuff= libmagic=never-match;;
12837 esac
12838 ;;
12839 esac
12840 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12841 shlibpath_overrides_runpath=no
12842 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12843 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12844 hardcode_into_libs=yes
12845 ;;
12846
12847 # No shared lib support for Linux oldld, aout, or coff.
12848 linux*oldld* | linux*aout* | linux*coff*)
12849 dynamic_linker=no
12850 ;;
12851
12852 linux*android*)
12853 version_type=none # Android doesn't support versioned libraries.
12854 need_lib_prefix=no
12855 need_version=no
12856 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
12857 soname_spec='$libname$release$shared_ext'
12858 finish_cmds=
12859 shlibpath_var=LD_LIBRARY_PATH
12860 shlibpath_overrides_runpath=yes
12861
12862 # This implies no fast_install, which is unacceptable.
12863 # Some rework will be needed to allow for fast_install
12864 # before this can be enabled.
12865 hardcode_into_libs=yes
12866
12867 dynamic_linker='Android linker'
12868 # -rpath works at least for libraries that are not overridden by
12869 # libraries installed in system locations.
12870 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12871 ;;
12872
12873 # This must be glibc/ELF.
12874 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12875 version_type=linux # correct to gnu/linux during the next big refactor
12876 need_lib_prefix=no
12877 need_version=no
12878 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12879 soname_spec='$libname$release$shared_ext$major'
12880 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12881 shlibpath_var=LD_LIBRARY_PATH
12882 shlibpath_overrides_runpath=no
12883
12884 # Some binutils ld are patched to set DT_RUNPATH
12885 if test ${lt_cv_shlibpath_overrides_runpath+y}
12886 then :
12887 printf %s "(cached) " >&6
12888 else case e in #(
12889 e) lt_cv_shlibpath_overrides_runpath=no
12890 save_LDFLAGS=$LDFLAGS
12891 save_libdir=$libdir
12892 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12893 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12895 /* end confdefs.h. */
12896
12897 int
12898 main (void)
12899 {
12900
12901 ;
12902 return 0;
12903 }
12904 _ACEOF
12905 if ac_fn_c_try_link "$LINENO"
12906 then :
12907 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12908 then :
12909 lt_cv_shlibpath_overrides_runpath=yes
12910 fi
12911 fi
12912 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12913 conftest$ac_exeext conftest.$ac_ext
12914 LDFLAGS=$save_LDFLAGS
12915 libdir=$save_libdir
12916 ;;
12917 esac
12918 fi
12919
12920 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12921
12922 # This implies no fast_install, which is unacceptable.
12923 # Some rework will be needed to allow for fast_install
12924 # before this can be enabled.
12925 hardcode_into_libs=yes
12926
12927 # Ideally, we could use ldconfig to report *all* directories which are
12928 # searched for libraries, however this is still not possible. Aside from not
12929 # being certain /sbin/ldconfig is available, command
12930 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12931 # even though it is searched at run-time. Try to do the best guess by
12932 # appending ld.so.conf contents (and includes) to the search path.
12933 if test -f /etc/ld.so.conf; then
12934 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' ' '`
12935 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12936 fi
12937
12938 # We used to test for /lib/ld.so.1 and disable shared libraries on
12939 # powerpc, because MkLinux only supported shared libraries with the
12940 # GNU dynamic linker. Since this was broken with cross compilers,
12941 # most powerpc-linux boxes support dynamic linking these days and
12942 # people can always --disable-shared, the test was removed, and we
12943 # assume the GNU/Linux dynamic linker is in use.
12944 dynamic_linker='GNU/Linux ld.so'
12945 ;;
12946
12947 netbsdelf*-gnu)
12948 version_type=linux
12949 need_lib_prefix=no
12950 need_version=no
12951 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12952 soname_spec='$libname$release$shared_ext$major'
12953 shlibpath_var=LD_LIBRARY_PATH
12954 shlibpath_overrides_runpath=no
12955 hardcode_into_libs=yes
12956 dynamic_linker='NetBSD ld.elf_so'
12957 ;;
12958
12959 netbsdelf*-gnu)
12960 version_type=linux
12961 need_lib_prefix=no
12962 need_version=no
12963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12964 soname_spec='${libname}${release}${shared_ext}$major'
12965 shlibpath_var=LD_LIBRARY_PATH
12966 shlibpath_overrides_runpath=no
12967 hardcode_into_libs=yes
12968 dynamic_linker='NetBSD ld.elf_so'
12969 ;;
12970
12971 netbsd*)
12972 version_type=sunos
12973 need_lib_prefix=no
12974 need_version=no
12975 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12976 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12977 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12978 dynamic_linker='NetBSD (a.out) ld.so'
12979 else
12980 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12981 soname_spec='$libname$release$shared_ext$major'
12982 dynamic_linker='NetBSD ld.elf_so'
12983 fi
12984 shlibpath_var=LD_LIBRARY_PATH
12985 shlibpath_overrides_runpath=yes
12986 hardcode_into_libs=yes
12987 ;;
12988
12989 *-mlibc)
12990 version_type=linux # correct to gnu/linux during the next big refactor
12991 need_lib_prefix=no
12992 need_version=no
12993 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12994 soname_spec='$libname$release$shared_ext$major'
12995 dynamic_linker='mlibc ld.so'
12996 shlibpath_var=LD_LIBRARY_PATH
12997 shlibpath_overrides_runpath=no
12998 hardcode_into_libs=yes
12999 ;;
13000
13001 newsos6)
13002 version_type=linux # correct to gnu/linux during the next big refactor
13003 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13004 shlibpath_var=LD_LIBRARY_PATH
13005 shlibpath_overrides_runpath=yes
13006 ;;
13007
13008 *nto* | *qnx*)
13009 version_type=qnx
13010 need_lib_prefix=no
13011 need_version=no
13012 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13013 soname_spec='$libname$release$shared_ext$major'
13014 shlibpath_var=LD_LIBRARY_PATH
13015 shlibpath_overrides_runpath=no
13016 hardcode_into_libs=yes
13017 dynamic_linker='ldqnx.so'
13018 ;;
13019
13020 openbsd*)
13021 version_type=sunos
13022 sys_lib_dlsearch_path_spec=/usr/lib
13023 need_lib_prefix=no
13024 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13025 need_version=no
13026 else
13027 need_version=yes
13028 fi
13029 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13030 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13031 shlibpath_var=LD_LIBRARY_PATH
13032 shlibpath_overrides_runpath=yes
13033 ;;
13034
13035 os2*)
13036 libname_spec='$name'
13037 version_type=windows
13038 shrext_cmds=.dll
13039 need_version=no
13040 need_lib_prefix=no
13041 # OS/2 can only load a DLL with a base name of 8 characters or less.
13042 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13043 v=$($ECHO $release$versuffix | tr -d .-);
13044 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13045 $ECHO $n$v`$shared_ext'
13046 library_names_spec='${libname}_dll.$libext'
13047 dynamic_linker='OS/2 ld.exe'
13048 shlibpath_var=BEGINLIBPATH
13049 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13050 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13051 postinstall_cmds='base_file=`basename \$file`~
13052 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13053 dldir=$destdir/`dirname \$dlpath`~
13054 test -d \$dldir || mkdir -p \$dldir~
13055 $install_prog $dir/$dlname \$dldir/$dlname~
13056 chmod a+x \$dldir/$dlname~
13057 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13058 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13059 fi'
13060 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13061 dlpath=$dir/\$dldll~
13062 $RM \$dlpath'
13063 ;;
13064
13065 osf3* | osf4* | osf5*)
13066 version_type=osf
13067 need_lib_prefix=no
13068 need_version=no
13069 soname_spec='$libname$release$shared_ext$major'
13070 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13071 shlibpath_var=LD_LIBRARY_PATH
13072 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13073 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13074 ;;
13075
13076 rdos*)
13077 dynamic_linker=no
13078 ;;
13079
13080 serenity*)
13081 version_type=linux # correct to gnu/linux during the next big refactor
13082 need_lib_prefix=no
13083 need_version=no
13084 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13085 soname_spec='$libname$release$shared_ext$major'
13086 shlibpath_var=LD_LIBRARY_PATH
13087 shlibpath_overrides_runpath=no
13088 dynamic_linker='SerenityOS LibELF'
13089 ;;
13090
13091 solaris*)
13092 version_type=linux # correct to gnu/linux during the next big refactor
13093 need_lib_prefix=no
13094 need_version=no
13095 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13096 soname_spec='$libname$release$shared_ext$major'
13097 shlibpath_var=LD_LIBRARY_PATH
13098 shlibpath_overrides_runpath=yes
13099 hardcode_into_libs=yes
13100 # ldd complains unless libraries are executable
13101 postinstall_cmds='chmod +x $lib'
13102 ;;
13103
13104 sunos4*)
13105 version_type=sunos
13106 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13107 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13108 shlibpath_var=LD_LIBRARY_PATH
13109 shlibpath_overrides_runpath=yes
13110 if test yes = "$with_gnu_ld"; then
13111 need_lib_prefix=no
13112 fi
13113 need_version=yes
13114 ;;
13115
13116 sysv4 | sysv4.3*)
13117 version_type=linux # correct to gnu/linux during the next big refactor
13118 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13119 soname_spec='$libname$release$shared_ext$major'
13120 shlibpath_var=LD_LIBRARY_PATH
13121 case $host_vendor in
13122 sni)
13123 shlibpath_overrides_runpath=no
13124 need_lib_prefix=no
13125 runpath_var=LD_RUN_PATH
13126 ;;
13127 siemens)
13128 need_lib_prefix=no
13129 ;;
13130 motorola)
13131 need_lib_prefix=no
13132 need_version=no
13133 shlibpath_overrides_runpath=no
13134 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13135 ;;
13136 esac
13137 ;;
13138
13139 sysv4*MP*)
13140 if test -d /usr/nec; then
13141 version_type=linux # correct to gnu/linux during the next big refactor
13142 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13143 soname_spec='$libname$shared_ext.$major'
13144 shlibpath_var=LD_LIBRARY_PATH
13145 fi
13146 ;;
13147
13148 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13149 version_type=sco
13150 need_lib_prefix=no
13151 need_version=no
13152 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13153 soname_spec='$libname$release$shared_ext$major'
13154 shlibpath_var=LD_LIBRARY_PATH
13155 shlibpath_overrides_runpath=yes
13156 hardcode_into_libs=yes
13157 if test yes = "$with_gnu_ld"; then
13158 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13159 else
13160 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13161 case $host_os in
13162 sco3.2v5*)
13163 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13164 ;;
13165 esac
13166 fi
13167 sys_lib_dlsearch_path_spec='/usr/lib'
13168 ;;
13169
13170 tpf*)
13171 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13172 version_type=linux # correct to gnu/linux during the next big refactor
13173 need_lib_prefix=no
13174 need_version=no
13175 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13176 shlibpath_var=LD_LIBRARY_PATH
13177 shlibpath_overrides_runpath=no
13178 hardcode_into_libs=yes
13179 ;;
13180
13181 uts4*)
13182 version_type=linux # correct to gnu/linux during the next big refactor
13183 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13184 soname_spec='$libname$release$shared_ext$major'
13185 shlibpath_var=LD_LIBRARY_PATH
13186 ;;
13187
13188 emscripten*)
13189 version_type=none
13190 need_lib_prefix=no
13191 need_version=no
13192 library_names_spec='$libname$release$shared_ext'
13193 soname_spec='$libname$release$shared_ext'
13194 finish_cmds=
13195 dynamic_linker="Emscripten linker"
13196 lt_prog_compiler_wl=
13197 lt_prog_compiler_pic=
13198 lt_prog_compiler_static=
13199
13200
13201 if test yes = "$GCC"; then
13202 lt_prog_compiler_wl='-Wl,'
13203 lt_prog_compiler_static='-static'
13204
13205 case $host_os in
13206 aix*)
13207 # All AIX code is PIC.
13208 if test ia64 = "$host_cpu"; then
13209 # AIX 5 now supports IA64 processor
13210 lt_prog_compiler_static='-Bstatic'
13211 fi
13212 lt_prog_compiler_pic='-fPIC'
13213 ;;
13214
13215 amigaos*)
13216 case $host_cpu in
13217 powerpc)
13218 # see comment about AmigaOS4 .so support
13219 lt_prog_compiler_pic='-fPIC'
13220 ;;
13221 m68k)
13222 # FIXME: we need at least 68020 code to build shared libraries, but
13223 # adding the '-m68020' flag to GCC prevents building anything better,
13224 # like '-m68040'.
13225 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13226 ;;
13227 esac
13228 ;;
13229
13230 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13231 # PIC is the default for these OSes.
13232 ;;
13233
13234 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13235 # This hack is so that the source file can tell whether it is being
13236 # built for inclusion in a dll (and should export symbols for example).
13237 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13238 # (--disable-auto-import) libraries
13239 lt_prog_compiler_pic='-DDLL_EXPORT'
13240 case $host_os in
13241 os2*)
13242 lt_prog_compiler_static='$wl-static'
13243 ;;
13244 esac
13245 ;;
13246
13247 darwin* | rhapsody*)
13248 # PIC is the default on this platform
13249 # Common symbols not allowed in MH_DYLIB files
13250 lt_prog_compiler_pic='-fno-common'
13251 ;;
13252
13253 haiku*)
13254 # PIC is the default for Haiku.
13255 # The "-static" flag exists, but is broken.
13256 lt_prog_compiler_static=
13257 ;;
13258
13259 hpux*)
13260 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13261 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13262 # sets the default TLS model and affects inlining.
13263 case $host_cpu in
13264 hppa*64*)
13265 # +Z the default
13266 ;;
13267 *)
13268 lt_prog_compiler_pic='-fPIC'
13269 ;;
13270 esac
13271 ;;
13272
13273 interix[3-9]*)
13274 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13275 # Instead, we relocate shared libraries at runtime.
13276 ;;
13277
13278 msdosdjgpp*)
13279 # Just because we use GCC doesn't mean we suddenly get shared libraries
13280 # on systems that don't support them.
13281 lt_prog_compiler_can_build_shared=no
13282 enable_shared=no
13283 ;;
13284
13285 *nto* | *qnx*)
13286 # QNX uses GNU C++, but need to define -shared option too, otherwise
13287 # it will coredump.
13288 lt_prog_compiler_pic='-fPIC -shared'
13289 ;;
13290
13291 sysv4*MP*)
13292 if test -d /usr/nec; then
13293 lt_prog_compiler_pic=-Kconform_pic
13294 fi
13295 ;;
13296
13297 *)
13298 lt_prog_compiler_pic='-fPIC'
13299 ;;
13300 esac
13301
13302 case $cc_basename in
13303 nvcc*) # Cuda Compiler Driver 2.2
13304 lt_prog_compiler_wl='-Xlinker '
13305 if test -n "$lt_prog_compiler_pic"; then
13306 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13307 fi
13308 ;;
13309 esac
13310 else
13311 # PORTME Check for flag to pass linker flags through the system compiler.
13312 case $host_os in
13313 aix*)
13314 lt_prog_compiler_wl='-Wl,'
13315 if test ia64 = "$host_cpu"; then
13316 # AIX 5 now supports IA64 processor
13317 lt_prog_compiler_static='-Bstatic'
13318 else
13319 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13320 fi
13321 ;;
13322
13323 darwin* | rhapsody*)
13324 # PIC is the default on this platform
13325 # Common symbols not allowed in MH_DYLIB files
13326 lt_prog_compiler_pic='-fno-common'
13327 case $cc_basename in
13328 nagfor*)
13329 # NAG Fortran compiler
13330 lt_prog_compiler_wl='-Wl,-Wl,,'
13331 lt_prog_compiler_pic='-PIC'
13332 lt_prog_compiler_static='-Bstatic'
13333 ;;
13334 esac
13335 ;;
13336
13337 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13338 # This hack is so that the source file can tell whether it is being
13339 # built for inclusion in a dll (and should export symbols for example).
13340 lt_prog_compiler_pic='-DDLL_EXPORT'
13341 case $host_os in
13342 os2*)
13343 lt_prog_compiler_static='$wl-static'
13344 ;;
13345 esac
13346 ;;
13347
13348 hpux9* | hpux10* | hpux11*)
13349 lt_prog_compiler_wl='-Wl,'
13350 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13351 # not for PA HP-UX.
13352 case $host_cpu in
13353 hppa*64*|ia64*)
13354 # +Z the default
13355 ;;
13356 *)
13357 lt_prog_compiler_pic='+Z'
13358 ;;
13359 esac
13360 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13361 lt_prog_compiler_static='$wl-a ${wl}archive'
13362 ;;
13363
13364 irix5* | irix6* | nonstopux*)
13365 lt_prog_compiler_wl='-Wl,'
13366 # PIC (with -KPIC) is the default.
13367 lt_prog_compiler_static='-non_shared'
13368 ;;
13369
13370 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13371 case $cc_basename in
13372 # old Intel for x86_64, which still supported -KPIC.
13373 ecc*)
13374 lt_prog_compiler_wl='-Wl,'
13375 lt_prog_compiler_pic='-KPIC'
13376 lt_prog_compiler_static='-static'
13377 ;;
13378 *flang* | ftn | f18* | f95*)
13379 # Flang compiler.
13380 lt_prog_compiler_wl='-Wl,'
13381 lt_prog_compiler_pic='-fPIC'
13382 lt_prog_compiler_static='-static'
13383 ;;
13384 # flang / f18. f95 an alias for gfortran or flang on Debian
13385 flang* | f18* | f95*)
13386 lt_prog_compiler_wl='-Wl,'
13387 lt_prog_compiler_pic='-fPIC'
13388 lt_prog_compiler_static='-static'
13389 ;;
13390 # icc used to be incompatible with GCC.
13391 # ICC 10 doesn't accept -KPIC any more.
13392 icc* | ifort*)
13393 lt_prog_compiler_wl='-Wl,'
13394 lt_prog_compiler_pic='-fPIC'
13395 lt_prog_compiler_static='-static'
13396 ;;
13397 # Lahey Fortran 8.1.
13398 lf95*)
13399 lt_prog_compiler_wl='-Wl,'
13400 lt_prog_compiler_pic='--shared'
13401 lt_prog_compiler_static='--static'
13402 ;;
13403 nagfor*)
13404 # NAG Fortran compiler
13405 lt_prog_compiler_wl='-Wl,-Wl,,'
13406 lt_prog_compiler_pic='-PIC'
13407 lt_prog_compiler_static='-Bstatic'
13408 ;;
13409 tcc*)
13410 # Fabrice Bellard et al's Tiny C Compiler
13411 lt_prog_compiler_wl='-Wl,'
13412 lt_prog_compiler_pic='-fPIC'
13413 lt_prog_compiler_static='-static'
13414 ;;
13415 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13416 # Portland Group compilers (*not* the Pentium gcc compiler,
13417 # which looks to be a dead project)
13418 lt_prog_compiler_wl='-Wl,'
13419 lt_prog_compiler_pic='-fpic'
13420 lt_prog_compiler_static='-Bstatic'
13421 ;;
13422 ccc*)
13423 lt_prog_compiler_wl='-Wl,'
13424 # All Alpha code is PIC.
13425 lt_prog_compiler_static='-non_shared'
13426 ;;
13427 xl* | bgxl* | bgf* | mpixl*)
13428 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13429 lt_prog_compiler_wl='-Wl,'
13430 lt_prog_compiler_pic='-qpic'
13431 lt_prog_compiler_static='-qstaticlink'
13432 ;;
13433 *)
13434 case `$CC -V 2>&1 | $SED 5q` in
13435 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13436 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13437 lt_prog_compiler_pic='-KPIC'
13438 lt_prog_compiler_static='-Bstatic'
13439 lt_prog_compiler_wl=''
13440 ;;
13441 *Sun\ F* | *Sun*Fortran*)
13442 lt_prog_compiler_pic='-KPIC'
13443 lt_prog_compiler_static='-Bstatic'
13444 lt_prog_compiler_wl='-Qoption ld '
13445 ;;
13446 *Sun\ C*)
13447 # Sun C 5.9
13448 lt_prog_compiler_pic='-KPIC'
13449 lt_prog_compiler_static='-Bstatic'
13450 lt_prog_compiler_wl='-Wl,'
13451 ;;
13452 *Intel*\ [CF]*Compiler*)
13453 lt_prog_compiler_wl='-Wl,'
13454 lt_prog_compiler_pic='-fPIC'
13455 lt_prog_compiler_static='-static'
13456 ;;
13457 *Portland\ Group*)
13458 lt_prog_compiler_wl='-Wl,'
13459 lt_prog_compiler_pic='-fpic'
13460 lt_prog_compiler_static='-Bstatic'
13461 ;;
13462 esac
13463 ;;
13464 esac
13465 ;;
13466
13467 newsos6)
13468 lt_prog_compiler_pic='-KPIC'
13469 lt_prog_compiler_static='-Bstatic'
13470 ;;
13471
13472 *-mlibc)
13473 lt_prog_compiler_wl='-Wl,'
13474 lt_prog_compiler_pic='-fPIC'
13475 lt_prog_compiler_static='-static'
13476 ;;
13477
13478 *nto* | *qnx*)
13479 # QNX uses GNU C++, but need to define -shared option too, otherwise
13480 # it will coredump.
13481 lt_prog_compiler_pic='-fPIC -shared'
13482 ;;
13483
13484 osf3* | osf4* | osf5*)
13485 lt_prog_compiler_wl='-Wl,'
13486 # All OSF/1 code is PIC.
13487 lt_prog_compiler_static='-non_shared'
13488 ;;
13489
13490 rdos*)
13491 lt_prog_compiler_static='-non_shared'
13492 ;;
13493
13494 serenity*)
13495 ;;
13496
13497 solaris*)
13498 lt_prog_compiler_pic='-KPIC'
13499 lt_prog_compiler_static='-Bstatic'
13500 case $cc_basename in
13501 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13502 lt_prog_compiler_wl='-Qoption ld ';;
13503 *)
13504 lt_prog_compiler_wl='-Wl,';;
13505 esac
13506 ;;
13507
13508 sunos4*)
13509 lt_prog_compiler_wl='-Qoption ld '
13510 lt_prog_compiler_pic='-PIC'
13511 lt_prog_compiler_static='-Bstatic'
13512 ;;
13513
13514 sysv4 | sysv4.2uw2* | sysv4.3*)
13515 lt_prog_compiler_wl='-Wl,'
13516 lt_prog_compiler_pic='-KPIC'
13517 lt_prog_compiler_static='-Bstatic'
13518 ;;
13519
13520 sysv4*MP*)
13521 if test -d /usr/nec; then
13522 lt_prog_compiler_pic='-Kconform_pic'
13523 lt_prog_compiler_static='-Bstatic'
13524 fi
13525 ;;
13526
13527 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13528 lt_prog_compiler_wl='-Wl,'
13529 lt_prog_compiler_pic='-KPIC'
13530 lt_prog_compiler_static='-Bstatic'
13531 ;;
13532
13533 unicos*)
13534 lt_prog_compiler_wl='-Wl,'
13535 lt_prog_compiler_can_build_shared=no
13536 ;;
13537
13538 uts4*)
13539 lt_prog_compiler_pic='-pic'
13540 lt_prog_compiler_static='-Bstatic'
13541 ;;
13542
13543 *)
13544 lt_prog_compiler_can_build_shared=no
13545 ;;
13546 esac
13547 fi
13548
13549 case $host_os in
13550 # For platforms that do not support PIC, -DPIC is meaningless:
13551 *djgpp*)
13552 lt_prog_compiler_pic=
13553 ;;
13554 *)
13555 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13556 ;;
13557 esac
13558
13559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13560 printf %s "checking for $compiler option to produce PIC... " >&6; }
13561 if test ${lt_cv_prog_compiler_pic+y}
13562 then :
13563 printf %s "(cached) " >&6
13564 else case e in #(
13565 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
13566 esac
13567 fi
13568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13569 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13570 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13571
13572 #
13573 # Check to make sure the PIC flag actually works.
13574 #
13575 if test -n "$lt_prog_compiler_pic"; then
13576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13577 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13578 if test ${lt_cv_prog_compiler_pic_works+y}
13579 then :
13580 printf %s "(cached) " >&6
13581 else case e in #(
13582 e) lt_cv_prog_compiler_pic_works=no
13583 ac_outfile=conftest.$ac_objext
13584 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13585 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
13586 # Insert the option either (1) after the last *FLAGS variable, or
13587 # (2) before a word containing "conftest.", or (3) at the end.
13588 # Note that $ac_compile itself does not contain backslashes and begins
13589 # with a dollar sign (not a hyphen), so the echo should work correctly.
13590 # The option is referenced via a variable to avoid confusing sed.
13591 lt_compile=`echo "$ac_compile" | $SED \
13592 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13593 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13594 -e 's:$: $lt_compiler_flag:'`
13595 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13596 (eval "$lt_compile" 2>conftest.err)
13597 ac_status=$?
13598 cat conftest.err >&5
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 if (exit $ac_status) && test -s "$ac_outfile"; then
13601 # The compiler can only warn and ignore the option if not recognized
13602 # So say no if there are warnings other than the usual output.
13603 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13604 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13605 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13606 lt_cv_prog_compiler_pic_works=yes
13607 fi
13608 fi
13609 $RM conftest*
13610 ;;
13611 esac
13612 fi
13613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13614 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13615
13616 if test yes = "$lt_cv_prog_compiler_pic_works"; then
13617 case $lt_prog_compiler_pic in
13618 "" | " "*) ;;
13619 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13620 esac
13621 else
13622 lt_prog_compiler_pic=
13623 lt_prog_compiler_can_build_shared=no
13624 fi
13625
13626 fi
13627
13628
13629
13630
13631
13632 #
13633 # Check to make sure the static flag actually works.
13634 #
13635 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13637 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13638 if test ${lt_cv_prog_compiler_static_works+y}
13639 then :
13640 printf %s "(cached) " >&6
13641 else case e in #(
13642 e) lt_cv_prog_compiler_static_works=no
13643 save_LDFLAGS=$LDFLAGS
13644 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13645 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13646 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13647 # The linker can only warn and ignore the option if not recognized
13648 # So say no if there are warnings
13649 if test -s conftest.err; then
13650 # Append any errors to the config.log.
13651 cat conftest.err 1>&5
13652 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13653 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13654 if diff conftest.exp conftest.er2 >/dev/null; then
13655 lt_cv_prog_compiler_static_works=yes
13656 fi
13657 else
13658 lt_cv_prog_compiler_static_works=yes
13659 fi
13660 fi
13661 $RM -r conftest*
13662 LDFLAGS=$save_LDFLAGS
13663 ;;
13664 esac
13665 fi
13666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13667 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13668
13669 if test yes = "$lt_cv_prog_compiler_static_works"; then
13670 :
13671 else
13672 lt_prog_compiler_static=
13673 fi
13674
13675
13676
13677 ='-fPIC'
13678 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
13679 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'
13680 archive_cmds_need_lc=no
13681 no_undefined_flag=
13682 ;;
13683
13684 *)
13685 dynamic_linker=no
13686 ;;
13687 esac
13688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13689 printf "%s\n" "$dynamic_linker" >&6; }
13690 test no = "$dynamic_linker" && can_build_shared=no
13691
13692 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13693 if test yes = "$GCC"; then
13694 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13695 fi
13696
13697 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13698 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13699 fi
13700
13701 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13702 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13703 fi
13704
13705 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13706 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13707
13708 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13709 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13710
13711 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13712 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13811 printf %s "checking how to hardcode library paths into programs... " >&6; }
13812 hardcode_action=
13813 if test -n "$hardcode_libdir_flag_spec" ||
13814 test -n "$runpath_var" ||
13815 test yes = "$hardcode_automatic"; then
13816
13817 # We can hardcode non-existent directories.
13818 if test no != "$hardcode_direct" &&
13819 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13820 # have to relink, otherwise we might link with an installed library
13821 # when we should be linking with a yet-to-be-installed one
13822 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13823 test no != "$hardcode_minus_L"; then
13824 # Linking always hardcodes the temporary library directory.
13825 hardcode_action=relink
13826 else
13827 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13828 hardcode_action=immediate
13829 fi
13830 else
13831 # We cannot hardcode anything, or else we can only hardcode existing
13832 # directories.
13833 hardcode_action=unsupported
13834 fi
13835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13836 printf "%s\n" "$hardcode_action" >&6; }
13837
13838 if test relink = "$hardcode_action" ||
13839 test yes = "$inherit_rpath"; then
13840 # Fast installation is not supported
13841 enable_fast_install=no
13842 elif test yes = "$shlibpath_overrides_runpath" ||
13843 test no = "$enable_shared"; then
13844 # Fast installation is not necessary
13845 enable_fast_install=needless
13846 fi
13847
13848
13849
13850
13851
13852
13853 if test yes != "$enable_dlopen"; then
13854 enable_dlopen=unknown
13855 enable_dlopen_self=unknown
13856 enable_dlopen_self_static=unknown
13857 else
13858 lt_cv_dlopen=no
13859 lt_cv_dlopen_libs=
13860
13861 case $host_os in
13862 beos*)
13863 lt_cv_dlopen=load_add_on
13864 lt_cv_dlopen_libs=
13865 lt_cv_dlopen_self=yes
13866 ;;
13867
13868 mingw* | windows* | pw32* | cegcc*)
13869 lt_cv_dlopen=LoadLibrary
13870 lt_cv_dlopen_libs=
13871 ;;
13872
13873 cygwin*)
13874 lt_cv_dlopen=dlopen
13875 lt_cv_dlopen_libs=
13876 ;;
13877
13878 darwin*)
13879 # if libdl is installed we need to link against it
13880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13881 printf %s "checking for dlopen in -ldl... " >&6; }
13882 if test ${ac_cv_lib_dl_dlopen+y}
13883 then :
13884 printf %s "(cached) " >&6
13885 else case e in #(
13886 e) ac_check_lib_save_LIBS=$LIBS
13887 LIBS="-ldl $LIBS"
13888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13889 /* end confdefs.h. */
13890
13891 /* Override any GCC internal prototype to avoid an error.
13892 Use char because int might match the return type of a GCC
13893 builtin and then its argument prototype would still apply.
13894 The 'extern "C"' is for builds by C++ compilers;
13895 although this is not generally supported in C code supporting it here
13896 has little cost and some practical benefit (sr 110532). */
13897 #ifdef __cplusplus
13898 extern "C"
13899 #endif
13900 char dlopen (void);
13901 int
13902 main (void)
13903 {
13904 return dlopen ();
13905 ;
13906 return 0;
13907 }
13908 _ACEOF
13909 if ac_fn_c_try_link "$LINENO"
13910 then :
13911 ac_cv_lib_dl_dlopen=yes
13912 else case e in #(
13913 e) ac_cv_lib_dl_dlopen=no ;;
13914 esac
13915 fi
13916 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13917 conftest$ac_exeext conftest.$ac_ext
13918 LIBS=$ac_check_lib_save_LIBS ;;
13919 esac
13920 fi
13921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13922 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13923 if test "x$ac_cv_lib_dl_dlopen" = xyes
13924 then :
13925 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13926 else case e in #(
13927 e)
13928 lt_cv_dlopen=dyld
13929 lt_cv_dlopen_libs=
13930 lt_cv_dlopen_self=yes
13931 ;;
13932 esac
13933 fi
13934
13935 ;;
13936
13937 tpf*)
13938 # Don't try to run any link tests for TPF. We know it's impossible
13939 # because TPF is a cross-compiler, and we know how we open DSOs.
13940 lt_cv_dlopen=dlopen
13941 lt_cv_dlopen_libs=
13942 lt_cv_dlopen_self=no
13943 ;;
13944
13945 *)
13946 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13947 if test "x$ac_cv_func_shl_load" = xyes
13948 then :
13949 lt_cv_dlopen=shl_load
13950 else case e in #(
13951 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13952 printf %s "checking for shl_load in -ldld... " >&6; }
13953 if test ${ac_cv_lib_dld_shl_load+y}
13954 then :
13955 printf %s "(cached) " >&6
13956 else case e in #(
13957 e) ac_check_lib_save_LIBS=$LIBS
13958 LIBS="-ldld $LIBS"
13959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13960 /* end confdefs.h. */
13961
13962 /* Override any GCC internal prototype to avoid an error.
13963 Use char because int might match the return type of a GCC
13964 builtin and then its argument prototype would still apply.
13965 The 'extern "C"' is for builds by C++ compilers;
13966 although this is not generally supported in C code supporting it here
13967 has little cost and some practical benefit (sr 110532). */
13968 #ifdef __cplusplus
13969 extern "C"
13970 #endif
13971 char shl_load (void);
13972 int
13973 main (void)
13974 {
13975 return shl_load ();
13976 ;
13977 return 0;
13978 }
13979 _ACEOF
13980 if ac_fn_c_try_link "$LINENO"
13981 then :
13982 ac_cv_lib_dld_shl_load=yes
13983 else case e in #(
13984 e) ac_cv_lib_dld_shl_load=no ;;
13985 esac
13986 fi
13987 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13988 conftest$ac_exeext conftest.$ac_ext
13989 LIBS=$ac_check_lib_save_LIBS ;;
13990 esac
13991 fi
13992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13993 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13994 if test "x$ac_cv_lib_dld_shl_load" = xyes
13995 then :
13996 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13997 else case e in #(
13998 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13999 if test "x$ac_cv_func_dlopen" = xyes
14000 then :
14001 lt_cv_dlopen=dlopen
14002 else case e in #(
14003 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14004 printf %s "checking for dlopen in -ldl... " >&6; }
14005 if test ${ac_cv_lib_dl_dlopen+y}
14006 then :
14007 printf %s "(cached) " >&6
14008 else case e in #(
14009 e) ac_check_lib_save_LIBS=$LIBS
14010 LIBS="-ldl $LIBS"
14011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14012 /* end confdefs.h. */
14013
14014 /* Override any GCC internal prototype to avoid an error.
14015 Use char because int might match the return type of a GCC
14016 builtin and then its argument prototype would still apply.
14017 The 'extern "C"' is for builds by C++ compilers;
14018 although this is not generally supported in C code supporting it here
14019 has little cost and some practical benefit (sr 110532). */
14020 #ifdef __cplusplus
14021 extern "C"
14022 #endif
14023 char dlopen (void);
14024 int
14025 main (void)
14026 {
14027 return dlopen ();
14028 ;
14029 return 0;
14030 }
14031 _ACEOF
14032 if ac_fn_c_try_link "$LINENO"
14033 then :
14034 ac_cv_lib_dl_dlopen=yes
14035 else case e in #(
14036 e) ac_cv_lib_dl_dlopen=no ;;
14037 esac
14038 fi
14039 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14040 conftest$ac_exeext conftest.$ac_ext
14041 LIBS=$ac_check_lib_save_LIBS ;;
14042 esac
14043 fi
14044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14045 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14046 if test "x$ac_cv_lib_dl_dlopen" = xyes
14047 then :
14048 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14049 else case e in #(
14050 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14051 printf %s "checking for dlopen in -lsvld... " >&6; }
14052 if test ${ac_cv_lib_svld_dlopen+y}
14053 then :
14054 printf %s "(cached) " >&6
14055 else case e in #(
14056 e) ac_check_lib_save_LIBS=$LIBS
14057 LIBS="-lsvld $LIBS"
14058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14059 /* end confdefs.h. */
14060
14061 /* Override any GCC internal prototype to avoid an error.
14062 Use char because int might match the return type of a GCC
14063 builtin and then its argument prototype would still apply.
14064 The 'extern "C"' is for builds by C++ compilers;
14065 although this is not generally supported in C code supporting it here
14066 has little cost and some practical benefit (sr 110532). */
14067 #ifdef __cplusplus
14068 extern "C"
14069 #endif
14070 char dlopen (void);
14071 int
14072 main (void)
14073 {
14074 return dlopen ();
14075 ;
14076 return 0;
14077 }
14078 _ACEOF
14079 if ac_fn_c_try_link "$LINENO"
14080 then :
14081 ac_cv_lib_svld_dlopen=yes
14082 else case e in #(
14083 e) ac_cv_lib_svld_dlopen=no ;;
14084 esac
14085 fi
14086 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14087 conftest$ac_exeext conftest.$ac_ext
14088 LIBS=$ac_check_lib_save_LIBS ;;
14089 esac
14090 fi
14091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14092 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
14093 if test "x$ac_cv_lib_svld_dlopen" = xyes
14094 then :
14095 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14096 else case e in #(
14097 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14098 printf %s "checking for dld_link in -ldld... " >&6; }
14099 if test ${ac_cv_lib_dld_dld_link+y}
14100 then :
14101 printf %s "(cached) " >&6
14102 else case e in #(
14103 e) ac_check_lib_save_LIBS=$LIBS
14104 LIBS="-ldld $LIBS"
14105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14106 /* end confdefs.h. */
14107
14108 /* Override any GCC internal prototype to avoid an error.
14109 Use char because int might match the return type of a GCC
14110 builtin and then its argument prototype would still apply.
14111 The 'extern "C"' is for builds by C++ compilers;
14112 although this is not generally supported in C code supporting it here
14113 has little cost and some practical benefit (sr 110532). */
14114 #ifdef __cplusplus
14115 extern "C"
14116 #endif
14117 char dld_link (void);
14118 int
14119 main (void)
14120 {
14121 return dld_link ();
14122 ;
14123 return 0;
14124 }
14125 _ACEOF
14126 if ac_fn_c_try_link "$LINENO"
14127 then :
14128 ac_cv_lib_dld_dld_link=yes
14129 else case e in #(
14130 e) ac_cv_lib_dld_dld_link=no ;;
14131 esac
14132 fi
14133 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14134 conftest$ac_exeext conftest.$ac_ext
14135 LIBS=$ac_check_lib_save_LIBS ;;
14136 esac
14137 fi
14138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14139 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14140 if test "x$ac_cv_lib_dld_dld_link" = xyes
14141 then :
14142 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14143 fi
14144
14145 ;;
14146 esac
14147 fi
14148
14149 ;;
14150 esac
14151 fi
14152
14153 ;;
14154 esac
14155 fi
14156
14157 ;;
14158 esac
14159 fi
14160
14161 ;;
14162 esac
14163 fi
14164
14165 ;;
14166 esac
14167
14168 if test no = "$lt_cv_dlopen"; then
14169 enable_dlopen=no
14170 else
14171 enable_dlopen=yes
14172 fi
14173
14174 case $lt_cv_dlopen in
14175 dlopen)
14176 save_CPPFLAGS=$CPPFLAGS
14177 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14178
14179 save_LDFLAGS=$LDFLAGS
14180 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14181
14182 save_LIBS=$LIBS
14183 LIBS="$lt_cv_dlopen_libs $LIBS"
14184
14185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14186 printf %s "checking whether a program can dlopen itself... " >&6; }
14187 if test ${lt_cv_dlopen_self+y}
14188 then :
14189 printf %s "(cached) " >&6
14190 else case e in #(
14191 e) if test yes = "$cross_compiling"; then :
14192 lt_cv_dlopen_self=cross
14193 else
14194 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14195 lt_status=$lt_dlunknown
14196 cat > conftest.$ac_ext <<_LT_EOF
14197 #line $LINENO "configure"
14198 #include "confdefs.h"
14199
14200 #if HAVE_DLFCN_H
14201 #include <dlfcn.h>
14202 #endif
14203
14204 #include <stdio.h>
14205
14206 #ifdef RTLD_GLOBAL
14207 # define LT_DLGLOBAL RTLD_GLOBAL
14208 #else
14209 # ifdef DL_GLOBAL
14210 # define LT_DLGLOBAL DL_GLOBAL
14211 # else
14212 # define LT_DLGLOBAL 0
14213 # endif
14214 #endif
14215
14216 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14217 find out it does not work in some platform. */
14218 #ifndef LT_DLLAZY_OR_NOW
14219 # ifdef RTLD_LAZY
14220 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14221 # else
14222 # ifdef DL_LAZY
14223 # define LT_DLLAZY_OR_NOW DL_LAZY
14224 # else
14225 # ifdef RTLD_NOW
14226 # define LT_DLLAZY_OR_NOW RTLD_NOW
14227 # else
14228 # ifdef DL_NOW
14229 # define LT_DLLAZY_OR_NOW DL_NOW
14230 # else
14231 # define LT_DLLAZY_OR_NOW 0
14232 # endif
14233 # endif
14234 # endif
14235 # endif
14236 #endif
14237
14238 /* When -fvisibility=hidden is used, assume the code has been annotated
14239 correspondingly for the symbols needed. */
14240 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14241 int fnord (void) __attribute__((visibility("default")));
14242 #endif
14243
14244 int fnord (void) { return 42; }
14245 int main (void)
14246 {
14247 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14248 int status = $lt_dlunknown;
14249
14250 if (self)
14251 {
14252 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14253 else
14254 {
14255 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14256 else puts (dlerror ());
14257 }
14258 /* dlclose (self); */
14259 }
14260 else
14261 puts (dlerror ());
14262
14263 return status;
14264 }
14265 _LT_EOF
14266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14267 (eval $ac_link) 2>&5
14268 ac_status=$?
14269 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14270 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14271 (./conftest; exit; ) >&5 2>/dev/null
14272 lt_status=$?
14273 case x$lt_status in
14274 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14275 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14276 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14277 esac
14278 else :
14279 # compilation failed
14280 lt_cv_dlopen_self=no
14281 fi
14282 fi
14283 rm -fr conftest*
14284
14285 ;;
14286 esac
14287 fi
14288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14289 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14290
14291 if test yes = "$lt_cv_dlopen_self"; then
14292 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14294 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14295 if test ${lt_cv_dlopen_self_static+y}
14296 then :
14297 printf %s "(cached) " >&6
14298 else case e in #(
14299 e) if test yes = "$cross_compiling"; then :
14300 lt_cv_dlopen_self_static=cross
14301 else
14302 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14303 lt_status=$lt_dlunknown
14304 cat > conftest.$ac_ext <<_LT_EOF
14305 #line $LINENO "configure"
14306 #include "confdefs.h"
14307
14308 #if HAVE_DLFCN_H
14309 #include <dlfcn.h>
14310 #endif
14311
14312 #include <stdio.h>
14313
14314 #ifdef RTLD_GLOBAL
14315 # define LT_DLGLOBAL RTLD_GLOBAL
14316 #else
14317 # ifdef DL_GLOBAL
14318 # define LT_DLGLOBAL DL_GLOBAL
14319 # else
14320 # define LT_DLGLOBAL 0
14321 # endif
14322 #endif
14323
14324 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14325 find out it does not work in some platform. */
14326 #ifndef LT_DLLAZY_OR_NOW
14327 # ifdef RTLD_LAZY
14328 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14329 # else
14330 # ifdef DL_LAZY
14331 # define LT_DLLAZY_OR_NOW DL_LAZY
14332 # else
14333 # ifdef RTLD_NOW
14334 # define LT_DLLAZY_OR_NOW RTLD_NOW
14335 # else
14336 # ifdef DL_NOW
14337 # define LT_DLLAZY_OR_NOW DL_NOW
14338 # else
14339 # define LT_DLLAZY_OR_NOW 0
14340 # endif
14341 # endif
14342 # endif
14343 # endif
14344 #endif
14345
14346 /* When -fvisibility=hidden is used, assume the code has been annotated
14347 correspondingly for the symbols needed. */
14348 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14349 int fnord (void) __attribute__((visibility("default")));
14350 #endif
14351
14352 int fnord (void) { return 42; }
14353 int main (void)
14354 {
14355 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14356 int status = $lt_dlunknown;
14357
14358 if (self)
14359 {
14360 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14361 else
14362 {
14363 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14364 else puts (dlerror ());
14365 }
14366 /* dlclose (self); */
14367 }
14368 else
14369 puts (dlerror ());
14370
14371 return status;
14372 }
14373 _LT_EOF
14374 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14375 (eval $ac_link) 2>&5
14376 ac_status=$?
14377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14378 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14379 (./conftest; exit; ) >&5 2>/dev/null
14380 lt_status=$?
14381 case x$lt_status in
14382 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14383 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14384 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14385 esac
14386 else :
14387 # compilation failed
14388 lt_cv_dlopen_self_static=no
14389 fi
14390 fi
14391 rm -fr conftest*
14392
14393 ;;
14394 esac
14395 fi
14396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14397 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14398 fi
14399
14400 CPPFLAGS=$save_CPPFLAGS
14401 LDFLAGS=$save_LDFLAGS
14402 LIBS=$save_LIBS
14403 ;;
14404 esac
14405
14406 case $lt_cv_dlopen_self in
14407 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14408 *) enable_dlopen_self=unknown ;;
14409 esac
14410
14411 case $lt_cv_dlopen_self_static in
14412 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14413 *) enable_dlopen_self_static=unknown ;;
14414 esac
14415 fi
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433 striplib=
14434 old_striplib=
14435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14436 printf %s "checking whether stripping libraries is possible... " >&6; }
14437 if test -z "$STRIP"; then
14438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14439 printf "%s\n" "no" >&6; }
14440 else
14441 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14442 old_striplib="$STRIP --strip-debug"
14443 striplib="$STRIP --strip-unneeded"
14444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14445 printf "%s\n" "yes" >&6; }
14446 else
14447 case $host_os in
14448 darwin*)
14449 # FIXME - insert some real tests, host_os isn't really good enough
14450 striplib="$STRIP -x"
14451 old_striplib="$STRIP -S"
14452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14453 printf "%s\n" "yes" >&6; }
14454 ;;
14455 freebsd*)
14456 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14457 old_striplib="$STRIP --strip-debug"
14458 striplib="$STRIP --strip-unneeded"
14459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14460 printf "%s\n" "yes" >&6; }
14461 else
14462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14463 printf "%s\n" "no" >&6; }
14464 fi
14465 ;;
14466 *)
14467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14468 printf "%s\n" "no" >&6; }
14469 ;;
14470 esac
14471 fi
14472 fi
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485 # Report what library types will actually be built
14486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14487 printf %s "checking if libtool supports shared libraries... " >&6; }
14488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14489 printf "%s\n" "$can_build_shared" >&6; }
14490
14491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14492 printf %s "checking whether to build shared libraries... " >&6; }
14493 test no = "$can_build_shared" && enable_shared=no
14494
14495 # On AIX, shared libraries and static libraries use the same namespace, and
14496 # are all built from PIC.
14497 case $host_os in
14498 aix3*)
14499 test yes = "$enable_shared" && enable_static=no
14500 if test -n "$RANLIB"; then
14501 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14502 postinstall_cmds='$RANLIB $lib'
14503 fi
14504 ;;
14505
14506 aix[4-9]*)
14507 if test ia64 != "$host_cpu"; then
14508 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14509 yes,aix,yes) ;; # shared object as lib.so file only
14510 yes,svr4,*) ;; # shared object as lib.so archive member only
14511 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14512 esac
14513 fi
14514 ;;
14515 esac
14516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14517 printf "%s\n" "$enable_shared" >&6; }
14518
14519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14520 printf %s "checking whether to build static libraries... " >&6; }
14521 # Make sure either enable_shared or enable_static is yes.
14522 test yes = "$enable_shared" || enable_static=yes
14523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14524 printf "%s\n" "$enable_static" >&6; }
14525
14526
14527
14528
14529 fi
14530 ac_ext=cpp
14531 ac_cpp='$CXXCPP $CPPFLAGS'
14532 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14533 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14534 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14535
14536 CC=$lt_save_CC
14537
14538 if test -n "$CXX" && ( test no != "$CXX" &&
14539 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14540 (test g++ != "$CXX"))); then
14541 ac_ext=cpp
14542 ac_cpp='$CXXCPP $CPPFLAGS'
14543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14547 printf %s "checking how to run the C++ preprocessor... " >&6; }
14548 if test -z "$CXXCPP"; then
14549 if test ${ac_cv_prog_CXXCPP+y}
14550 then :
14551 printf %s "(cached) " >&6
14552 else case e in #(
14553 e) # Double quotes because $CXX needs to be expanded
14554 for CXXCPP in "$CXX -E" cpp /lib/cpp
14555 do
14556 ac_preproc_ok=false
14557 for ac_cxx_preproc_warn_flag in '' yes
14558 do
14559 # Use a header file that comes with gcc, so configuring glibc
14560 # with a fresh cross-compiler works.
14561 # On the NeXT, cc -E runs the code through the compiler's parser,
14562 # not just through cpp. "Syntax error" is here to catch this case.
14563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14564 /* end confdefs.h. */
14565 #include <limits.h>
14566 Syntax error
14567 _ACEOF
14568 if ac_fn_cxx_try_cpp "$LINENO"
14569 then :
14570
14571 else case e in #(
14572 e) # Broken: fails on valid input.
14573 continue ;;
14574 esac
14575 fi
14576 rm -f conftest.err conftest.i conftest.$ac_ext
14577
14578 # OK, works on sane cases. Now check whether nonexistent headers
14579 # can be detected and how.
14580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14581 /* end confdefs.h. */
14582 #include <ac_nonexistent.h>
14583 _ACEOF
14584 if ac_fn_cxx_try_cpp "$LINENO"
14585 then :
14586 # Broken: success on invalid input.
14587 continue
14588 else case e in #(
14589 e) # Passes both tests.
14590 ac_preproc_ok=:
14591 break ;;
14592 esac
14593 fi
14594 rm -f conftest.err conftest.i conftest.$ac_ext
14595
14596 done
14597 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14598 rm -f conftest.i conftest.err conftest.$ac_ext
14599 if $ac_preproc_ok
14600 then :
14601 break
14602 fi
14603
14604 done
14605 ac_cv_prog_CXXCPP=$CXXCPP
14606 ;;
14607 esac
14608 fi
14609 CXXCPP=$ac_cv_prog_CXXCPP
14610 else
14611 ac_cv_prog_CXXCPP=$CXXCPP
14612 fi
14613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14614 printf "%s\n" "$CXXCPP" >&6; }
14615 ac_preproc_ok=false
14616 for ac_cxx_preproc_warn_flag in '' yes
14617 do
14618 # Use a header file that comes with gcc, so configuring glibc
14619 # with a fresh cross-compiler works.
14620 # On the NeXT, cc -E runs the code through the compiler's parser,
14621 # not just through cpp. "Syntax error" is here to catch this case.
14622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14623 /* end confdefs.h. */
14624 #include <limits.h>
14625 Syntax error
14626 _ACEOF
14627 if ac_fn_cxx_try_cpp "$LINENO"
14628 then :
14629
14630 else case e in #(
14631 e) # Broken: fails on valid input.
14632 continue ;;
14633 esac
14634 fi
14635 rm -f conftest.err conftest.i conftest.$ac_ext
14636
14637 # OK, works on sane cases. Now check whether nonexistent headers
14638 # can be detected and how.
14639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14640 /* end confdefs.h. */
14641 #include <ac_nonexistent.h>
14642 _ACEOF
14643 if ac_fn_cxx_try_cpp "$LINENO"
14644 then :
14645 # Broken: success on invalid input.
14646 continue
14647 else case e in #(
14648 e) # Passes both tests.
14649 ac_preproc_ok=:
14650 break ;;
14651 esac
14652 fi
14653 rm -f conftest.err conftest.i conftest.$ac_ext
14654
14655 done
14656 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14657 rm -f conftest.i conftest.err conftest.$ac_ext
14658 if $ac_preproc_ok
14659 then :
14660
14661 else case e in #(
14662 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14663 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14664 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14665 See 'config.log' for more details" "$LINENO" 5; } ;;
14666 esac
14667 fi
14668
14669 ac_ext=cpp
14670 ac_cpp='$CXXCPP $CPPFLAGS'
14671 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14672 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14673 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14674
14675 else
14676 _lt_caught_CXX_error=yes
14677 fi
14678
14679 ac_ext=cpp
14680 ac_cpp='$CXXCPP $CPPFLAGS'
14681 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14682 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14683 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14684
14685 archive_cmds_need_lc_CXX=no
14686 allow_undefined_flag_CXX=
14687 always_export_symbols_CXX=no
14688 archive_expsym_cmds_CXX=
14689 compiler_needs_object_CXX=no
14690 export_dynamic_flag_spec_CXX=
14691 hardcode_direct_CXX=no
14692 hardcode_direct_absolute_CXX=no
14693 hardcode_libdir_flag_spec_CXX=
14694 hardcode_libdir_separator_CXX=
14695 hardcode_minus_L_CXX=no
14696 hardcode_shlibpath_var_CXX=unsupported
14697 hardcode_automatic_CXX=no
14698 inherit_rpath_CXX=no
14699 module_cmds_CXX=
14700 module_expsym_cmds_CXX=
14701 link_all_deplibs_CXX=unknown
14702 old_archive_cmds_CXX=$old_archive_cmds
14703 reload_flag_CXX=$reload_flag
14704 reload_cmds_CXX=$reload_cmds
14705 no_undefined_flag_CXX=
14706 whole_archive_flag_spec_CXX=
14707 enable_shared_with_static_runtimes_CXX=no
14708
14709 # Source file extension for C++ test sources.
14710 ac_ext=cpp
14711
14712 # Object file extension for compiled C++ test sources.
14713 objext=o
14714 objext_CXX=$objext
14715
14716 # No sense in running all these tests if we already determined that
14717 # the CXX compiler isn't working. Some variables (like enable_shared)
14718 # are currently assumed to apply to all compilers on this platform,
14719 # and will be corrupted by setting them based on a non-working compiler.
14720 if test yes != "$_lt_caught_CXX_error"; then
14721 # Code to be used in simple compile tests
14722 lt_simple_compile_test_code="int some_variable = 0;"
14723
14724 # Code to be used in simple link tests
14725 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14726
14727 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14728
14729
14730
14731
14732
14733
14734 # If no C compiler was specified, use CC.
14735 LTCC=${LTCC-"$CC"}
14736
14737 # If no C compiler flags were specified, use CFLAGS.
14738 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14739
14740 # Allow CC to be a program name with arguments.
14741 compiler=$CC
14742
14743
14744 # save warnings/boilerplate of simple test code
14745 ac_outfile=conftest.$ac_objext
14746 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14747 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14748 _lt_compiler_boilerplate=`cat conftest.err`
14749 $RM conftest*
14750
14751 ac_outfile=conftest.$ac_objext
14752 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14753 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14754 _lt_linker_boilerplate=`cat conftest.err`
14755 $RM -r conftest*
14756
14757
14758 # Allow CC to be a program name with arguments.
14759 lt_save_CC=$CC
14760 lt_save_CFLAGS=$CFLAGS
14761 lt_save_LD=$LD
14762 lt_save_GCC=$GCC
14763 GCC=$GXX
14764 lt_save_with_gnu_ld=$with_gnu_ld
14765 lt_save_path_LD=$lt_cv_path_LD
14766 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14767 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14768 else
14769 $as_unset lt_cv_prog_gnu_ld
14770 fi
14771 if test -n "${lt_cv_path_LDCXX+set}"; then
14772 lt_cv_path_LD=$lt_cv_path_LDCXX
14773 else
14774 $as_unset lt_cv_path_LD
14775 fi
14776 test -z "${LDCXX+set}" || LD=$LDCXX
14777 CC=${CXX-"c++"}
14778 CFLAGS=$CXXFLAGS
14779 compiler=$CC
14780 compiler_CXX=$CC
14781 func_cc_basename $compiler
14782 cc_basename=$func_cc_basename_result
14783
14784
14785 if test -n "$compiler"; then
14786 # We don't want -fno-exception when compiling C++ code, so set the
14787 # no_builtin_flag separately
14788 if test yes = "$GXX"; then
14789 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14790 else
14791 lt_prog_compiler_no_builtin_flag_CXX=
14792 fi
14793
14794 if test yes = "$GXX"; then
14795 # Set up default GNU C++ configuration
14796
14797
14798
14799 # Check whether --with-gnu-ld was given.
14800 if test ${with_gnu_ld+y}
14801 then :
14802 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14803 else case e in #(
14804 e) with_gnu_ld=no ;;
14805 esac
14806 fi
14807
14808 ac_prog=ld
14809 if test yes = "$GCC"; then
14810 # Check if gcc -print-prog-name=ld gives a path.
14811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14812 printf %s "checking for ld used by $CC... " >&6; }
14813 case $host in
14814 *-*-mingw* | *-*-windows*)
14815 # gcc leaves a trailing carriage return, which upsets mingw
14816 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14817 *)
14818 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14819 esac
14820 case $ac_prog in
14821 # Accept absolute paths.
14822 [\\/]* | ?:[\\/]*)
14823 re_direlt='/[^/][^/]*/\.\./'
14824 # Canonicalize the pathname of ld
14825 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14826 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14827 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14828 done
14829 test -z "$LD" && LD=$ac_prog
14830 ;;
14831 "")
14832 # If it fails, then pretend we aren't using GCC.
14833 ac_prog=ld
14834 ;;
14835 *)
14836 # If it is relative, then search for the first ld in PATH.
14837 with_gnu_ld=unknown
14838 ;;
14839 esac
14840 elif test yes = "$with_gnu_ld"; then
14841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14842 printf %s "checking for GNU ld... " >&6; }
14843 else
14844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14845 printf %s "checking for non-GNU ld... " >&6; }
14846 fi
14847 if test ${lt_cv_path_LD+y}
14848 then :
14849 printf %s "(cached) " >&6
14850 else case e in #(
14851 e) if test -z "$LD"; then
14852 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14853 for ac_dir in $PATH; do
14854 IFS=$lt_save_ifs
14855 test -z "$ac_dir" && ac_dir=.
14856 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14857 lt_cv_path_LD=$ac_dir/$ac_prog
14858 # Check to see if the program is GNU ld. I'd rather use --version,
14859 # but apparently some variants of GNU ld only accept -v.
14860 # Break only if it was the GNU/non-GNU ld that we prefer.
14861 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14862 *GNU* | *'with BFD'*)
14863 test no != "$with_gnu_ld" && break
14864 ;;
14865 *)
14866 test yes != "$with_gnu_ld" && break
14867 ;;
14868 esac
14869 fi
14870 done
14871 IFS=$lt_save_ifs
14872 else
14873 lt_cv_path_LD=$LD # Let the user override the test with a path.
14874 fi ;;
14875 esac
14876 fi
14877
14878 LD=$lt_cv_path_LD
14879 if test -n "$LD"; then
14880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14881 printf "%s\n" "$LD" >&6; }
14882 else
14883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14884 printf "%s\n" "no" >&6; }
14885 fi
14886 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14888 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
14889 if test ${lt_cv_prog_gnu_ld+y}
14890 then :
14891 printf %s "(cached) " >&6
14892 else case e in #(
14893 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
14894 case `$LD -v 2>&1 </dev/null` in
14895 *GNU* | *'with BFD'*)
14896 lt_cv_prog_gnu_ld=yes
14897 ;;
14898 *)
14899 lt_cv_prog_gnu_ld=no
14900 ;;
14901 esac ;;
14902 esac
14903 fi
14904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14905 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
14906 with_gnu_ld=$lt_cv_prog_gnu_ld
14907
14908
14909
14910
14911
14912
14913
14914 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14915 # archiving commands below assume that GNU ld is being used.
14916 if test yes = "$with_gnu_ld"; then
14917 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14918 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'
14919
14920 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14921 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14922
14923 # If archive_cmds runs LD, not CC, wlarc should be empty
14924 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14925 # investigate it a little bit more. (MM)
14926 wlarc='$wl'
14927
14928 # ancient GNU ld didn't support --whole-archive et. al.
14929 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14930 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14931 else
14932 whole_archive_flag_spec_CXX=
14933 fi
14934 else
14935 with_gnu_ld=no
14936 wlarc=
14937
14938 # A generic and very simple default shared library creation
14939 # command for GNU C++ for the case where it uses the native
14940 # linker, instead of GNU ld. If possible, this setting should
14941 # overridden to take advantage of the native linker features on
14942 # the platform it is being used on.
14943 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14944 fi
14945
14946 # Commands to make compiler produce verbose output that lists
14947 # what "hidden" libraries, object files and flags are used when
14948 # linking a shared library.
14949 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
14950
14951 else
14952 GXX=no
14953 with_gnu_ld=no
14954 wlarc=
14955 fi
14956
14957 # PORTME: fill in a description of your system's C++ link characteristics
14958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14959 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14960 ld_shlibs_CXX=yes
14961 case $host_os in
14962 aix3*)
14963 # FIXME: insert proper C++ library support
14964 ld_shlibs_CXX=no
14965 ;;
14966 aix[4-9]*)
14967 if test ia64 = "$host_cpu"; then
14968 # On IA64, the linker does run time linking by default, so we don't
14969 # have to do anything special.
14970 aix_use_runtimelinking=no
14971 exp_sym_flag='-Bexport'
14972 no_entry_flag=
14973 else
14974 aix_use_runtimelinking=no
14975
14976 # Test if we are trying to use run time linking or normal
14977 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14978 # have runtime linking enabled, and use it for executables.
14979 # For shared libraries, we enable/disable runtime linking
14980 # depending on the kind of the shared library created -
14981 # when "with_aix_soname,aix_use_runtimelinking" is:
14982 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
14983 # "aix,yes" lib.so shared, rtl:yes, for executables
14984 # lib.a static archive
14985 # "both,no" lib.so.V(shr.o) shared, rtl:yes
14986 # lib.a(lib.so.V) shared, rtl:no, for executables
14987 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14988 # lib.a(lib.so.V) shared, rtl:no
14989 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
14990 # lib.a static archive
14991 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14992 for ld_flag in $LDFLAGS; do
14993 case $ld_flag in
14994 *-brtl*)
14995 aix_use_runtimelinking=yes
14996 break
14997 ;;
14998 esac
14999 done
15000 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15001 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15002 # so we don't have lib.a shared libs to link our executables.
15003 # We have to force runtime linking in this case.
15004 aix_use_runtimelinking=yes
15005 LDFLAGS="$LDFLAGS -Wl,-brtl"
15006 fi
15007 ;;
15008 esac
15009
15010 exp_sym_flag='-bexport'
15011 no_entry_flag='-bnoentry'
15012 fi
15013
15014 # When large executables or shared objects are built, AIX ld can
15015 # have problems creating the table of contents. If linking a library
15016 # or program results in "error TOC overflow" add -mminimal-toc to
15017 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15018 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15019
15020 archive_cmds_CXX=''
15021 hardcode_direct_CXX=yes
15022 hardcode_direct_absolute_CXX=yes
15023 hardcode_libdir_separator_CXX=':'
15024 link_all_deplibs_CXX=yes
15025 file_list_spec_CXX='$wl-f,'
15026 case $with_aix_soname,$aix_use_runtimelinking in
15027 aix,*) ;; # no import file
15028 svr4,* | *,yes) # use import file
15029 # The Import File defines what to hardcode.
15030 hardcode_direct_CXX=no
15031 hardcode_direct_absolute_CXX=no
15032 ;;
15033 esac
15034
15035 if test yes = "$GXX"; then
15036 case $host_os in aix4.[012]|aix4.[012].*)
15037 # We only want to do this on AIX 4.2 and lower, the check
15038 # below for broken collect2 doesn't work under 4.3+
15039 collect2name=`$CC -print-prog-name=collect2`
15040 if test -f "$collect2name" &&
15041 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15042 then
15043 # We have reworked collect2
15044 :
15045 else
15046 # We have old collect2
15047 hardcode_direct_CXX=unsupported
15048 # It fails to find uninstalled libraries when the uninstalled
15049 # path is not listed in the libpath. Setting hardcode_minus_L
15050 # to unsupported forces relinking
15051 hardcode_minus_L_CXX=yes
15052 hardcode_libdir_flag_spec_CXX='-L$libdir'
15053 hardcode_libdir_separator_CXX=
15054 fi
15055 esac
15056 shared_flag='-shared'
15057 if test yes = "$aix_use_runtimelinking"; then
15058 shared_flag=$shared_flag' $wl-G'
15059 fi
15060 # Need to ensure runtime linking is disabled for the traditional
15061 # shared library, or the linker may eventually find shared libraries
15062 # /with/ Import File - we do not want to mix them.
15063 shared_flag_aix='-shared'
15064 shared_flag_svr4='-shared $wl-G'
15065 else
15066 # not using gcc
15067 if test ia64 = "$host_cpu"; then
15068 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15069 # chokes on -Wl,-G. The following line is correct:
15070 shared_flag='-G'
15071 else
15072 if test yes = "$aix_use_runtimelinking"; then
15073 shared_flag='$wl-G'
15074 else
15075 shared_flag='$wl-bM:SRE'
15076 fi
15077 shared_flag_aix='$wl-bM:SRE'
15078 shared_flag_svr4='$wl-G'
15079 fi
15080 fi
15081
15082 export_dynamic_flag_spec_CXX='$wl-bexpall'
15083 # It seems that -bexpall does not export symbols beginning with
15084 # underscore (_), so it is better to generate a list of symbols to
15085 # export.
15086 always_export_symbols_CXX=yes
15087 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15088 # Warning - without using the other runtime loading flags (-brtl),
15089 # -berok will link without error, but may produce a broken library.
15090 # The "-G" linker flag allows undefined symbols.
15091 no_undefined_flag_CXX='-bernotok'
15092 # Determine the default libpath from the value encoded in an empty
15093 # executable.
15094 if test set = "${lt_cv_aix_libpath+set}"; then
15095 aix_libpath=$lt_cv_aix_libpath
15096 else
15097 if test ${lt_cv_aix_libpath__CXX+y}
15098 then :
15099 printf %s "(cached) " >&6
15100 else case e in #(
15101 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15102 /* end confdefs.h. */
15103
15104 int
15105 main (void)
15106 {
15107
15108 ;
15109 return 0;
15110 }
15111 _ACEOF
15112 if ac_fn_cxx_try_link "$LINENO"
15113 then :
15114
15115 lt_aix_libpath_sed='
15116 /Import File Strings/,/^$/ {
15117 /^0/ {
15118 s/^0 *\([^ ]*\) *$/\1/
15119 p
15120 }
15121 }'
15122 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15123 # Check for a 64-bit object if we didn't find anything.
15124 if test -z "$lt_cv_aix_libpath__CXX"; then
15125 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15126 fi
15127 fi
15128 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15129 conftest$ac_exeext conftest.$ac_ext
15130 if test -z "$lt_cv_aix_libpath__CXX"; then
15131 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15132 fi
15133 ;;
15134 esac
15135 fi
15136
15137 aix_libpath=$lt_cv_aix_libpath__CXX
15138 fi
15139
15140 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15141
15142 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
15143 else
15144 if test ia64 = "$host_cpu"; then
15145 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15146 allow_undefined_flag_CXX="-z nodefs"
15147 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"
15148 else
15149 # Determine the default libpath from the value encoded in an
15150 # empty executable.
15151 if test set = "${lt_cv_aix_libpath+set}"; then
15152 aix_libpath=$lt_cv_aix_libpath
15153 else
15154 if test ${lt_cv_aix_libpath__CXX+y}
15155 then :
15156 printf %s "(cached) " >&6
15157 else case e in #(
15158 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15159 /* end confdefs.h. */
15160
15161 int
15162 main (void)
15163 {
15164
15165 ;
15166 return 0;
15167 }
15168 _ACEOF
15169 if ac_fn_cxx_try_link "$LINENO"
15170 then :
15171
15172 lt_aix_libpath_sed='
15173 /Import File Strings/,/^$/ {
15174 /^0/ {
15175 s/^0 *\([^ ]*\) *$/\1/
15176 p
15177 }
15178 }'
15179 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15180 # Check for a 64-bit object if we didn't find anything.
15181 if test -z "$lt_cv_aix_libpath__CXX"; then
15182 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15183 fi
15184 fi
15185 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15186 conftest$ac_exeext conftest.$ac_ext
15187 if test -z "$lt_cv_aix_libpath__CXX"; then
15188 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15189 fi
15190 ;;
15191 esac
15192 fi
15193
15194 aix_libpath=$lt_cv_aix_libpath__CXX
15195 fi
15196
15197 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15198 # Warning - without using the other run time loading flags,
15199 # -berok will link without error, but may produce a broken library.
15200 no_undefined_flag_CXX=' $wl-bernotok'
15201 allow_undefined_flag_CXX=' $wl-berok'
15202 if test yes = "$with_gnu_ld"; then
15203 # We only use this code for GNU lds that support --whole-archive.
15204 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15205 else
15206 # Exported symbols can be pulled into shared objects from archives
15207 whole_archive_flag_spec_CXX='$convenience'
15208 fi
15209 archive_cmds_need_lc_CXX=yes
15210 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15211 # -brtl affects multiple linker settings, -berok does not and is overridden later
15212 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15213 if test svr4 != "$with_aix_soname"; then
15214 # This is similar to how AIX traditionally builds its shared
15215 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15216 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'
15217 fi
15218 if test aix != "$with_aix_soname"; then
15219 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'
15220 else
15221 # used by -dlpreopen to get the symbols
15222 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
15223 fi
15224 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15225 fi
15226 fi
15227 ;;
15228
15229 beos*)
15230 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15231 allow_undefined_flag_CXX=unsupported
15232 # Joseph Beckenbach <[email protected]> says some releases of gcc
15233 # support --undefined. This deserves some investigation. FIXME
15234 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15235 else
15236 ld_shlibs_CXX=no
15237 fi
15238 ;;
15239
15240 chorus*)
15241 case $cc_basename in
15242 *)
15243 # FIXME: insert proper C++ library support
15244 ld_shlibs_CXX=no
15245 ;;
15246 esac
15247 ;;
15248
15249 cygwin* | mingw* | windows* | pw32* | cegcc*)
15250 case $GXX,$cc_basename in
15251 ,cl* | no,cl* | ,icl* | no,icl*)
15252 # Native MSVC or ICC
15253 # hardcode_libdir_flag_spec is actually meaningless, as there is
15254 # no search path for DLLs.
15255 hardcode_libdir_flag_spec_CXX=' '
15256 allow_undefined_flag_CXX=unsupported
15257 always_export_symbols_CXX=yes
15258 file_list_spec_CXX='@'
15259 # Tell ltmain to make .lib files, not .a files.
15260 libext=lib
15261 # Tell ltmain to make .dll files, not .so files.
15262 shrext_cmds=.dll
15263 # FIXME: Setting linknames here is a bad hack.
15264 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15265 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15266 cp "$export_symbols" "$output_objdir/$soname.def";
15267 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15268 else
15269 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15270 fi~
15271 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15272 linknames='
15273 # The linker will not automatically build a static lib if we build a DLL.
15274 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15275 enable_shared_with_static_runtimes_CXX=yes
15276 # Don't use ranlib
15277 old_postinstall_cmds_CXX='chmod 644 $oldlib'
15278 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15279 lt_tool_outputfile="@TOOL_OUTPUT@"~
15280 case $lt_outputfile in
15281 *.exe|*.EXE) ;;
15282 *)
15283 lt_outputfile=$lt_outputfile.exe
15284 lt_tool_outputfile=$lt_tool_outputfile.exe
15285 ;;
15286 esac~
15287 func_to_tool_file "$lt_outputfile"~
15288 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15289 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15290 $RM "$lt_outputfile.manifest";
15291 fi'
15292 ;;
15293 *)
15294 # g++
15295 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15296 # as there is no search path for DLLs.
15297 hardcode_libdir_flag_spec_CXX='-L$libdir'
15298 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15299 allow_undefined_flag_CXX=unsupported
15300 always_export_symbols_CXX=no
15301 enable_shared_with_static_runtimes_CXX=yes
15302 file_list_spec_CXX='@'
15303
15304 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15305 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'
15306 # If the export-symbols file already is a .def file, use it as
15307 # is; otherwise, prepend EXPORTS...
15308 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15309 cp $export_symbols $output_objdir/$soname.def;
15310 else
15311 echo EXPORTS > $output_objdir/$soname.def;
15312 cat $export_symbols >> $output_objdir/$soname.def;
15313 fi~
15314 $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'
15315 else
15316 ld_shlibs_CXX=no
15317 fi
15318 ;;
15319 esac
15320 ;;
15321 darwin* | rhapsody*)
15322
15323
15324 archive_cmds_need_lc_CXX=no
15325 hardcode_direct_CXX=no
15326 hardcode_automatic_CXX=yes
15327 hardcode_shlibpath_var_CXX=unsupported
15328 if test yes = "$lt_cv_ld_force_load"; then
15329 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\"`'
15330
15331 else
15332 whole_archive_flag_spec_CXX=''
15333 fi
15334 link_all_deplibs_CXX=yes
15335 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15336 case $cc_basename in
15337 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15338 *) _lt_dar_can_shared=$GCC ;;
15339 esac
15340 if test yes = "$_lt_dar_can_shared"; then
15341 output_verbose_link_cmd=func_echo_all
15342 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"
15343 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15344 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"
15345 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"
15346 if test yes = "$_lt_dar_needs_single_mod" -a yes != "$lt_cv_apple_cc_single_mod"; then
15347 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"
15348 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"
15349 fi
15350
15351 else
15352 ld_shlibs_CXX=no
15353 fi
15354
15355 ;;
15356
15357 os2*)
15358 hardcode_libdir_flag_spec_CXX='-L$libdir'
15359 hardcode_minus_L_CXX=yes
15360 allow_undefined_flag_CXX=unsupported
15361 shrext_cmds=.dll
15362 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15363 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15364 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15365 $ECHO EXPORTS >> $output_objdir/$libname.def~
15366 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15367 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15368 emximp -o $lib $output_objdir/$libname.def'
15369 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15370 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15371 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15372 $ECHO EXPORTS >> $output_objdir/$libname.def~
15373 prefix_cmds="$SED"~
15374 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15375 prefix_cmds="$prefix_cmds -e 1d";
15376 fi~
15377 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15378 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15379 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15380 emximp -o $lib $output_objdir/$libname.def'
15381 old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15382 enable_shared_with_static_runtimes_CXX=yes
15383 file_list_spec_CXX='@'
15384 ;;
15385
15386 dgux*)
15387 case $cc_basename in
15388 ec++*)
15389 # FIXME: insert proper C++ library support
15390 ld_shlibs_CXX=no
15391 ;;
15392 ghcx*)
15393 # Green Hills C++ Compiler
15394 # FIXME: insert proper C++ library support
15395 ld_shlibs_CXX=no
15396 ;;
15397 *)
15398 # FIXME: insert proper C++ library support
15399 ld_shlibs_CXX=no
15400 ;;
15401 esac
15402 ;;
15403
15404 freebsd2.*)
15405 # C++ shared libraries reported to be fairly broken before
15406 # switch to ELF
15407 ld_shlibs_CXX=no
15408 ;;
15409
15410 freebsd-elf*)
15411 archive_cmds_need_lc_CXX=no
15412 ;;
15413
15414 freebsd* | dragonfly* | midnightbsd*)
15415 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15416 # conventions
15417 ld_shlibs_CXX=yes
15418 ;;
15419
15420 haiku*)
15421 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15422 link_all_deplibs_CXX=no
15423 ;;
15424
15425 hpux9*)
15426 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15427 hardcode_libdir_separator_CXX=:
15428 export_dynamic_flag_spec_CXX='$wl-E'
15429 hardcode_direct_CXX=yes
15430 hardcode_minus_L_CXX=yes # Not in the search PATH,
15431 # but as the default
15432 # location of the library.
15433
15434 case $cc_basename in
15435 CC*)
15436 # FIXME: insert proper C++ library support
15437 ld_shlibs_CXX=no
15438 ;;
15439 aCC*)
15440 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'
15441 # Commands to make compiler produce verbose output that lists
15442 # what "hidden" libraries, object files and flags are used when
15443 # linking a shared library.
15444 #
15445 # There doesn't appear to be a way to prevent this compiler from
15446 # explicitly linking system object files so we need to strip them
15447 # from the output so that they don't get included in the library
15448 # dependencies.
15449 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"'
15450 ;;
15451 *)
15452 if test yes = "$GXX"; then
15453 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'
15454 else
15455 # FIXME: insert proper C++ library support
15456 ld_shlibs_CXX=no
15457 fi
15458 ;;
15459 esac
15460 ;;
15461
15462 hpux10*|hpux11*)
15463 if test no = "$with_gnu_ld"; then
15464 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15465 hardcode_libdir_separator_CXX=:
15466
15467 case $host_cpu in
15468 hppa*64*|ia64*)
15469 ;;
15470 *)
15471 export_dynamic_flag_spec_CXX='$wl-E'
15472 ;;
15473 esac
15474 fi
15475 case $host_cpu in
15476 hppa*64*|ia64*)
15477 hardcode_direct_CXX=no
15478 hardcode_shlibpath_var_CXX=no
15479 ;;
15480 *)
15481 hardcode_direct_CXX=yes
15482 hardcode_direct_absolute_CXX=yes
15483 hardcode_minus_L_CXX=yes # Not in the search PATH,
15484 # but as the default
15485 # location of the library.
15486 ;;
15487 esac
15488
15489 case $cc_basename in
15490 CC*)
15491 # FIXME: insert proper C++ library support
15492 ld_shlibs_CXX=no
15493 ;;
15494 aCC*)
15495 case $host_cpu in
15496 hppa*64*)
15497 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15498 ;;
15499 ia64*)
15500 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15501 ;;
15502 *)
15503 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15504 ;;
15505 esac
15506 # Commands to make compiler produce verbose output that lists
15507 # what "hidden" libraries, object files and flags are used when
15508 # linking a shared library.
15509 #
15510 # There doesn't appear to be a way to prevent this compiler from
15511 # explicitly linking system object files so we need to strip them
15512 # from the output so that they don't get included in the library
15513 # dependencies.
15514 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"'
15515 ;;
15516 *)
15517 if test yes = "$GXX"; then
15518 if test no = "$with_gnu_ld"; then
15519 case $host_cpu in
15520 hppa*64*)
15521 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15522 ;;
15523 ia64*)
15524 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15525 ;;
15526 *)
15527 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'
15528 ;;
15529 esac
15530 fi
15531 else
15532 # FIXME: insert proper C++ library support
15533 ld_shlibs_CXX=no
15534 fi
15535 ;;
15536 esac
15537 ;;
15538
15539 interix[3-9]*)
15540 hardcode_direct_CXX=no
15541 hardcode_shlibpath_var_CXX=no
15542 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15543 export_dynamic_flag_spec_CXX='$wl-E'
15544 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15545 # Instead, shared libraries are loaded at an image base (0x10000000 by
15546 # default) and relocated if they conflict, which is a slow very memory
15547 # consuming and fragmenting process. To avoid this, we pick a random,
15548 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15549 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15550 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'
15551 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'
15552 ;;
15553 irix5* | irix6*)
15554 case $cc_basename in
15555 CC*)
15556 # SGI C++
15557 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'
15558
15559 # Archives containing C++ object files must be created using
15560 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15561 # necessary to make sure instantiated templates are included
15562 # in the archive.
15563 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15564 ;;
15565 *)
15566 if test yes = "$GXX"; then
15567 if test no = "$with_gnu_ld"; then
15568 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'
15569 else
15570 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'
15571 fi
15572 fi
15573 link_all_deplibs_CXX=yes
15574 ;;
15575 esac
15576 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15577 hardcode_libdir_separator_CXX=:
15578 inherit_rpath_CXX=yes
15579 ;;
15580
15581 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15582 case $cc_basename in
15583 KCC*)
15584 # Kuck and Associates, Inc. (KAI) C++ Compiler
15585
15586 # KCC will only create a shared library if the output file
15587 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15588 # to its proper name (with version) after linking.
15589 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'
15590 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'
15591 # Commands to make compiler produce verbose output that lists
15592 # what "hidden" libraries, object files and flags are used when
15593 # linking a shared library.
15594 #
15595 # There doesn't appear to be a way to prevent this compiler from
15596 # explicitly linking system object files so we need to strip them
15597 # from the output so that they don't get included in the library
15598 # dependencies.
15599 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"'
15600
15601 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15602 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15603
15604 # Archives containing C++ object files must be created using
15605 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15606 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15607 ;;
15608 icpc* | ecpc* )
15609 # Intel C++
15610 with_gnu_ld=yes
15611 # version 8.0 and above of icpc choke on multiply defined symbols
15612 # if we add $predep_objects and $postdep_objects, however 7.1 and
15613 # earlier do not add the objects themselves.
15614 case `$CC -V 2>&1` in
15615 *"Version 7."*)
15616 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15617 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'
15618 ;;
15619 *) # Version 8.0 or newer
15620 tmp_idyn=
15621 case $host_cpu in
15622 ia64*) tmp_idyn=' -i_dynamic';;
15623 esac
15624 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15625 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'
15626 ;;
15627 esac
15628 archive_cmds_need_lc_CXX=no
15629 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15630 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15631 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15632 ;;
15633 pgCC* | pgcpp*)
15634 # Portland Group C++ compiler
15635 case `$CC -V` in
15636 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15637 prelink_cmds_CXX='tpldir=Template.dir~
15638 rm -rf $tpldir~
15639 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15640 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15641 old_archive_cmds_CXX='tpldir=Template.dir~
15642 rm -rf $tpldir~
15643 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15644 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15645 $RANLIB $oldlib'
15646 archive_cmds_CXX='tpldir=Template.dir~
15647 rm -rf $tpldir~
15648 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15649 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15650 archive_expsym_cmds_CXX='tpldir=Template.dir~
15651 rm -rf $tpldir~
15652 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15653 $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'
15654 ;;
15655 *) # Version 6 and above use weak symbols
15656 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15657 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'
15658 ;;
15659 esac
15660
15661 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15662 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15663 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'
15664 ;;
15665 cxx*)
15666 # Compaq C++
15667 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15668 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'
15669
15670 runpath_var=LD_RUN_PATH
15671 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15672 hardcode_libdir_separator_CXX=:
15673
15674 # Commands to make compiler produce verbose output that lists
15675 # what "hidden" libraries, object files and flags are used when
15676 # linking a shared library.
15677 #
15678 # There doesn't appear to be a way to prevent this compiler from
15679 # explicitly linking system object files so we need to strip them
15680 # from the output so that they don't get included in the library
15681 # dependencies.
15682 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'
15683 ;;
15684 xl* | mpixl* | bgxl*)
15685 # IBM XL 8.0 on PPC, with GNU ld
15686 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15687 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15688 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15689 if test yes = "$supports_anon_versioning"; then
15690 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15691 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15692 echo "local: *; };" >> $output_objdir/$libname.ver~
15693 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15694 fi
15695 ;;
15696 *)
15697 case `$CC -V 2>&1 | $SED 5q` in
15698 *Sun\ C*)
15699 # Sun C++ 5.9
15700 no_undefined_flag_CXX=' -zdefs'
15701 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15702 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'
15703 hardcode_libdir_flag_spec_CXX='-R$libdir'
15704 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'
15705 compiler_needs_object_CXX=yes
15706
15707 # Not sure whether something based on
15708 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15709 # would be better.
15710 output_verbose_link_cmd='func_echo_all'
15711
15712 # Archives containing C++ object files must be created using
15713 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15714 # necessary to make sure instantiated templates are included
15715 # in the archive.
15716 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15717 ;;
15718 esac
15719 ;;
15720 esac
15721 ;;
15722
15723 lynxos*)
15724 # FIXME: insert proper C++ library support
15725 ld_shlibs_CXX=no
15726 ;;
15727
15728 m88k*)
15729 # FIXME: insert proper C++ library support
15730 ld_shlibs_CXX=no
15731 ;;
15732
15733 mvs*)
15734 case $cc_basename in
15735 cxx*)
15736 # FIXME: insert proper C++ library support
15737 ld_shlibs_CXX=no
15738 ;;
15739 *)
15740 # FIXME: insert proper C++ library support
15741 ld_shlibs_CXX=no
15742 ;;
15743 esac
15744 ;;
15745
15746 *-mlibc)
15747 ld_shlibs_CXX=yes
15748 ;;
15749
15750 netbsd*)
15751 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15752 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15753 wlarc=
15754 hardcode_libdir_flag_spec_CXX='-R$libdir'
15755 hardcode_direct_CXX=yes
15756 hardcode_shlibpath_var_CXX=no
15757 fi
15758 # Workaround some broken pre-1.5 toolchains
15759 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15760 ;;
15761
15762 *nto* | *qnx*)
15763 ld_shlibs_CXX=yes
15764 ;;
15765
15766 openbsd*)
15767 if test -f /usr/libexec/ld.so; then
15768 hardcode_direct_CXX=yes
15769 hardcode_shlibpath_var_CXX=no
15770 hardcode_direct_absolute_CXX=yes
15771 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15772 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15773 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15774 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15775 export_dynamic_flag_spec_CXX='$wl-E'
15776 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15777 fi
15778 output_verbose_link_cmd=func_echo_all
15779 else
15780 ld_shlibs_CXX=no
15781 fi
15782 ;;
15783
15784 osf3* | osf4* | osf5*)
15785 case $cc_basename in
15786 KCC*)
15787 # Kuck and Associates, Inc. (KAI) C++ Compiler
15788
15789 # KCC will only create a shared library if the output file
15790 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15791 # to its proper name (with version) after linking.
15792 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'
15793
15794 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15795 hardcode_libdir_separator_CXX=:
15796
15797 # Archives containing C++ object files must be created using
15798 # the KAI C++ compiler.
15799 case $host in
15800 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15801 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15802 esac
15803 ;;
15804 RCC*)
15805 # Rational C++ 2.4.1
15806 # FIXME: insert proper C++ library support
15807 ld_shlibs_CXX=no
15808 ;;
15809 cxx*)
15810 case $host in
15811 osf3*)
15812 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15813 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'
15814 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15815 ;;
15816 *)
15817 allow_undefined_flag_CXX=' -expect_unresolved \*'
15818 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'
15819 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15820 echo "-hidden">> $lib.exp~
15821 $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~
15822 $RM $lib.exp'
15823 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15824 ;;
15825 esac
15826
15827 hardcode_libdir_separator_CXX=:
15828
15829 # Commands to make compiler produce verbose output that lists
15830 # what "hidden" libraries, object files and flags are used when
15831 # linking a shared library.
15832 #
15833 # There doesn't appear to be a way to prevent this compiler from
15834 # explicitly linking system object files so we need to strip them
15835 # from the output so that they don't get included in the library
15836 # dependencies.
15837 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"'
15838 ;;
15839 *)
15840 if test yes,no = "$GXX,$with_gnu_ld"; then
15841 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15842 case $host in
15843 osf3*)
15844 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'
15845 ;;
15846 *)
15847 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'
15848 ;;
15849 esac
15850
15851 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15852 hardcode_libdir_separator_CXX=:
15853
15854 # Commands to make compiler produce verbose output that lists
15855 # what "hidden" libraries, object files and flags are used when
15856 # linking a shared library.
15857 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
15858
15859 else
15860 # FIXME: insert proper C++ library support
15861 ld_shlibs_CXX=no
15862 fi
15863 ;;
15864 esac
15865 ;;
15866
15867 psos*)
15868 # FIXME: insert proper C++ library support
15869 ld_shlibs_CXX=no
15870 ;;
15871
15872 serenity*)
15873 ;;
15874
15875 sunos4*)
15876 case $cc_basename in
15877 CC*)
15878 # Sun C++ 4.x
15879 # FIXME: insert proper C++ library support
15880 ld_shlibs_CXX=no
15881 ;;
15882 lcc*)
15883 # Lucid
15884 # FIXME: insert proper C++ library support
15885 ld_shlibs_CXX=no
15886 ;;
15887 *)
15888 # FIXME: insert proper C++ library support
15889 ld_shlibs_CXX=no
15890 ;;
15891 esac
15892 ;;
15893
15894 solaris*)
15895 case $cc_basename in
15896 CC* | sunCC*)
15897 # Sun C++ 4.2, 5.x and Centerline C++
15898 archive_cmds_need_lc_CXX=yes
15899 no_undefined_flag_CXX=' -zdefs'
15900 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15901 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15902 $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'
15903
15904 hardcode_libdir_flag_spec_CXX='-R$libdir'
15905 hardcode_shlibpath_var_CXX=no
15906 case $host_os in
15907 solaris2.[0-5] | solaris2.[0-5].*) ;;
15908 *)
15909 # The compiler driver will combine and reorder linker options,
15910 # but understands '-z linker_flag'.
15911 # Supported since Solaris 2.6 (maybe 2.5.1?)
15912 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15913 ;;
15914 esac
15915 link_all_deplibs_CXX=yes
15916
15917 output_verbose_link_cmd='func_echo_all'
15918
15919 # Archives containing C++ object files must be created using
15920 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15921 # necessary to make sure instantiated templates are included
15922 # in the archive.
15923 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15924 ;;
15925 gcx*)
15926 # Green Hills C++ Compiler
15927 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15928
15929 # The C++ compiler must be used to create the archive.
15930 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15931 ;;
15932 *)
15933 # GNU C++ compiler with Solaris linker
15934 if test yes,no = "$GXX,$with_gnu_ld"; then
15935 no_undefined_flag_CXX=' $wl-z ${wl}defs'
15936 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15937 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15938 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15939 $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'
15940
15941 # Commands to make compiler produce verbose output that lists
15942 # what "hidden" libraries, object files and flags are used when
15943 # linking a shared library.
15944 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
15945 else
15946 # g++ 2.7 appears to require '-G' NOT '-shared' on this
15947 # platform.
15948 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15949 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15950 $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'
15951
15952 # Commands to make compiler produce verbose output that lists
15953 # what "hidden" libraries, object files and flags are used when
15954 # linking a shared library.
15955 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
15956 fi
15957
15958 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
15959 case $host_os in
15960 solaris2.[0-5] | solaris2.[0-5].*) ;;
15961 *)
15962 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15963 ;;
15964 esac
15965 fi
15966 ;;
15967 esac
15968 ;;
15969
15970 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15971 no_undefined_flag_CXX='$wl-z,text'
15972 archive_cmds_need_lc_CXX=no
15973 hardcode_shlibpath_var_CXX=no
15974 runpath_var='LD_RUN_PATH'
15975
15976 case $cc_basename in
15977 CC*)
15978 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15979 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15980 ;;
15981 *)
15982 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15983 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15984 ;;
15985 esac
15986 ;;
15987
15988 sysv5* | sco3.2v5* | sco5v6*)
15989 # Note: We CANNOT use -z defs as we might desire, because we do not
15990 # link with -lc, and that would cause any symbols used from libc to
15991 # always be unresolved, which means just about no library would
15992 # ever link correctly. If we're not using GNU ld we use -z text
15993 # though, which does catch some bad symbols but isn't as heavy-handed
15994 # as -z defs.
15995 no_undefined_flag_CXX='$wl-z,text'
15996 allow_undefined_flag_CXX='$wl-z,nodefs'
15997 archive_cmds_need_lc_CXX=no
15998 hardcode_shlibpath_var_CXX=no
15999 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16000 hardcode_libdir_separator_CXX=':'
16001 link_all_deplibs_CXX=yes
16002 export_dynamic_flag_spec_CXX='$wl-Bexport'
16003 runpath_var='LD_RUN_PATH'
16004
16005 case $cc_basename in
16006 CC*)
16007 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16008 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16009 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16010 '"$old_archive_cmds_CXX"
16011 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16012 '"$reload_cmds_CXX"
16013 ;;
16014 *)
16015 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16016 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16017 ;;
16018 esac
16019 ;;
16020
16021 tandem*)
16022 case $cc_basename in
16023 NCC*)
16024 # NonStop-UX NCC 3.20
16025 # FIXME: insert proper C++ library support
16026 ld_shlibs_CXX=no
16027 ;;
16028 *)
16029 # FIXME: insert proper C++ library support
16030 ld_shlibs_CXX=no
16031 ;;
16032 esac
16033 ;;
16034
16035 vxworks*)
16036 # FIXME: insert proper C++ library support
16037 ld_shlibs_CXX=no
16038 ;;
16039
16040 *)
16041 # FIXME: insert proper C++ library support
16042 ld_shlibs_CXX=no
16043 ;;
16044 esac
16045
16046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16047 printf "%s\n" "$ld_shlibs_CXX" >&6; }
16048 test no = "$ld_shlibs_CXX" && can_build_shared=no
16049
16050 GCC_CXX=$GXX
16051 LD_CXX=$LD
16052
16053 ## CAVEAT EMPTOR:
16054 ## There is no encapsulation within the following macros, do not change
16055 ## the running order or otherwise move them around unless you know exactly
16056 ## what you are doing...
16057 # Dependencies to place before and after the object being linked:
16058 predep_objects_CXX=
16059 postdep_objects_CXX=
16060 predeps_CXX=
16061 postdeps_CXX=
16062 compiler_lib_search_path_CXX=
16063
16064 cat > conftest.$ac_ext <<_LT_EOF
16065 class Foo
16066 {
16067 public:
16068 Foo (void) { a = 0; }
16069 private:
16070 int a;
16071 };
16072 _LT_EOF
16073
16074
16075 _lt_libdeps_save_CFLAGS=$CFLAGS
16076 case "$CC $CFLAGS " in #(
16077 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16078 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16079 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16080 esac
16081
16082 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16083 (eval $ac_compile) 2>&5
16084 ac_status=$?
16085 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16086 test $ac_status = 0; }; then
16087 # Parse the compiler output and extract the necessary
16088 # objects, libraries and library flags.
16089
16090 # Sentinel used to keep track of whether or not we are before
16091 # the conftest object file.
16092 pre_test_object_deps_done=no
16093
16094 for p in `eval "$output_verbose_link_cmd"`; do
16095 case $prev$p in
16096
16097 -L* | -R* | -l*)
16098 # Some compilers place space between "-{L,R,l}" and the path.
16099 # Remove the space.
16100 if test x-L = x"$p" ||
16101 test x-R = x"$p" ||
16102 test x-l = x"$p"; then
16103 prev=$p
16104 continue
16105 fi
16106
16107 # Expand the sysroot to ease extracting the directories later.
16108 if test -z "$prev"; then
16109 case $p in
16110 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16111 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16112 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16113 esac
16114 fi
16115 case $p in
16116 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16117 esac
16118 if test no = "$pre_test_object_deps_done"; then
16119 case $prev in
16120 -L | -R)
16121 # Internal compiler library paths should come after those
16122 # provided the user. The postdeps already come after the
16123 # user supplied libs so there is no need to process them.
16124 if test -z "$compiler_lib_search_path_CXX"; then
16125 compiler_lib_search_path_CXX=$prev$p
16126 else
16127 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16128 fi
16129 ;;
16130 # The "-l" case would never come before the object being
16131 # linked, so don't bother handling this case.
16132 esac
16133 else
16134 if test -z "$postdeps_CXX"; then
16135 postdeps_CXX=$prev$p
16136 else
16137 postdeps_CXX="${postdeps_CXX} $prev$p"
16138 fi
16139 fi
16140 prev=
16141 ;;
16142
16143 *.lto.$objext) ;; # Ignore GCC LTO objects
16144 *.$objext)
16145 # This assumes that the test object file only shows up
16146 # once in the compiler output.
16147 if test "$p" = "conftest.$objext"; then
16148 pre_test_object_deps_done=yes
16149 continue
16150 fi
16151
16152 if test no = "$pre_test_object_deps_done"; then
16153 if test -z "$predep_objects_CXX"; then
16154 predep_objects_CXX=$p
16155 else
16156 predep_objects_CXX="$predep_objects_CXX $p"
16157 fi
16158 else
16159 if test -z "$postdep_objects_CXX"; then
16160 postdep_objects_CXX=$p
16161 else
16162 postdep_objects_CXX="$postdep_objects_CXX $p"
16163 fi
16164 fi
16165 ;;
16166
16167 *) ;; # Ignore the rest.
16168
16169 esac
16170 done
16171
16172 # Clean up.
16173 rm -f a.out a.exe
16174 else
16175 echo "libtool.m4: error: problem compiling CXX test program"
16176 fi
16177
16178 $RM -f confest.$objext
16179 CFLAGS=$_lt_libdeps_save_CFLAGS
16180
16181 # PORTME: override above test on systems where it is broken
16182 case $host_os in
16183 interix[3-9]*)
16184 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16185 # hack all around it, let's just trust "g++" to DTRT.
16186 predep_objects_CXX=
16187 postdep_objects_CXX=
16188 postdeps_CXX=
16189 ;;
16190 esac
16191
16192
16193 case " $postdeps_CXX " in
16194 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16195 esac
16196 compiler_lib_search_dirs_CXX=
16197 if test -n "${compiler_lib_search_path_CXX}"; then
16198 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16199 fi
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231 lt_prog_compiler_wl_CXX=
16232 lt_prog_compiler_pic_CXX=
16233 lt_prog_compiler_static_CXX=
16234
16235
16236 # C++ specific cases for pic, static, wl, etc.
16237 if test yes = "$GXX"; then
16238 lt_prog_compiler_wl_CXX='-Wl,'
16239 lt_prog_compiler_static_CXX='-static'
16240
16241 case $host_os in
16242 aix*)
16243 # All AIX code is PIC.
16244 if test ia64 = "$host_cpu"; then
16245 # AIX 5 now supports IA64 processor
16246 lt_prog_compiler_static_CXX='-Bstatic'
16247 fi
16248 lt_prog_compiler_pic_CXX='-fPIC'
16249 ;;
16250
16251 amigaos*)
16252 case $host_cpu in
16253 powerpc)
16254 # see comment about AmigaOS4 .so support
16255 lt_prog_compiler_pic_CXX='-fPIC'
16256 ;;
16257 m68k)
16258 # FIXME: we need at least 68020 code to build shared libraries, but
16259 # adding the '-m68020' flag to GCC prevents building anything better,
16260 # like '-m68040'.
16261 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16262 ;;
16263 esac
16264 ;;
16265
16266 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16267 # PIC is the default for these OSes.
16268 ;;
16269 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
16270 # This hack is so that the source file can tell whether it is being
16271 # built for inclusion in a dll (and should export symbols for example).
16272 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16273 # (--disable-auto-import) libraries
16274 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16275 case $host_os in
16276 os2*)
16277 lt_prog_compiler_static_CXX='$wl-static'
16278 ;;
16279 esac
16280 ;;
16281 darwin* | rhapsody*)
16282 # PIC is the default on this platform
16283 # Common symbols not allowed in MH_DYLIB files
16284 lt_prog_compiler_pic_CXX='-fno-common'
16285 ;;
16286 *djgpp*)
16287 # DJGPP does not support shared libraries at all
16288 lt_prog_compiler_pic_CXX=
16289 ;;
16290 haiku*)
16291 # PIC is the default for Haiku.
16292 # The "-static" flag exists, but is broken.
16293 lt_prog_compiler_static_CXX=
16294 ;;
16295 interix[3-9]*)
16296 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16297 # Instead, we relocate shared libraries at runtime.
16298 ;;
16299 sysv4*MP*)
16300 if test -d /usr/nec; then
16301 lt_prog_compiler_pic_CXX=-Kconform_pic
16302 fi
16303 ;;
16304 hpux*)
16305 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16306 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16307 # sets the default TLS model and affects inlining.
16308 case $host_cpu in
16309 hppa*64*)
16310 ;;
16311 *)
16312 lt_prog_compiler_pic_CXX='-fPIC'
16313 ;;
16314 esac
16315 ;;
16316 *qnx* | *nto*)
16317 # QNX uses GNU C++, but need to define -shared option too, otherwise
16318 # it will coredump.
16319 lt_prog_compiler_pic_CXX='-fPIC -shared'
16320 ;;
16321 *)
16322 lt_prog_compiler_pic_CXX='-fPIC'
16323 ;;
16324 esac
16325 else
16326 case $host_os in
16327 aix[4-9]*)
16328 # All AIX code is PIC.
16329 if test ia64 = "$host_cpu"; then
16330 # AIX 5 now supports IA64 processor
16331 lt_prog_compiler_static_CXX='-Bstatic'
16332 else
16333 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16334 fi
16335 ;;
16336 chorus*)
16337 case $cc_basename in
16338 cxch68*)
16339 # Green Hills C++ Compiler
16340 # _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"
16341 ;;
16342 esac
16343 ;;
16344 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
16345 # This hack is so that the source file can tell whether it is being
16346 # built for inclusion in a dll (and should export symbols for example).
16347 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16348 ;;
16349 dgux*)
16350 case $cc_basename in
16351 ec++*)
16352 lt_prog_compiler_pic_CXX='-KPIC'
16353 ;;
16354 ghcx*)
16355 # Green Hills C++ Compiler
16356 lt_prog_compiler_pic_CXX='-pic'
16357 ;;
16358 *)
16359 ;;
16360 esac
16361 ;;
16362 freebsd* | dragonfly* | midnightbsd*)
16363 # FreeBSD uses GNU C++
16364 ;;
16365 hpux9* | hpux10* | hpux11*)
16366 case $cc_basename in
16367 CC*)
16368 lt_prog_compiler_wl_CXX='-Wl,'
16369 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16370 if test ia64 != "$host_cpu"; then
16371 lt_prog_compiler_pic_CXX='+Z'
16372 fi
16373 ;;
16374 aCC*)
16375 lt_prog_compiler_wl_CXX='-Wl,'
16376 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16377 case $host_cpu in
16378 hppa*64*|ia64*)
16379 # +Z the default
16380 ;;
16381 *)
16382 lt_prog_compiler_pic_CXX='+Z'
16383 ;;
16384 esac
16385 ;;
16386 *)
16387 ;;
16388 esac
16389 ;;
16390 interix*)
16391 # This is c89, which is MS Visual C++ (no shared libs)
16392 # Anyone wants to do a port?
16393 ;;
16394 irix5* | irix6* | nonstopux*)
16395 case $cc_basename in
16396 CC*)
16397 lt_prog_compiler_wl_CXX='-Wl,'
16398 lt_prog_compiler_static_CXX='-non_shared'
16399 # CC pic flag -KPIC is the default.
16400 ;;
16401 *)
16402 ;;
16403 esac
16404 ;;
16405 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16406 case $cc_basename in
16407 KCC*)
16408 # KAI C++ Compiler
16409 lt_prog_compiler_wl_CXX='--backend -Wl,'
16410 lt_prog_compiler_pic_CXX='-fPIC'
16411 ;;
16412 ecpc* )
16413 # old Intel C++ for x86_64, which still supported -KPIC.
16414 lt_prog_compiler_wl_CXX='-Wl,'
16415 lt_prog_compiler_pic_CXX='-KPIC'
16416 lt_prog_compiler_static_CXX='-static'
16417 ;;
16418 icpc* )
16419 # Intel C++, used to be incompatible with GCC.
16420 # ICC 10 doesn't accept -KPIC any more.
16421 lt_prog_compiler_wl_CXX='-Wl,'
16422 lt_prog_compiler_pic_CXX='-fPIC'
16423 lt_prog_compiler_static_CXX='-static'
16424 ;;
16425 pgCC* | pgcpp*)
16426 # Portland Group C++ compiler
16427 lt_prog_compiler_wl_CXX='-Wl,'
16428 lt_prog_compiler_pic_CXX='-fpic'
16429 lt_prog_compiler_static_CXX='-Bstatic'
16430 ;;
16431 cxx*)
16432 # Compaq C++
16433 # Make sure the PIC flag is empty. It appears that all Alpha
16434 # Linux and Compaq Tru64 Unix objects are PIC.
16435 lt_prog_compiler_pic_CXX=
16436 lt_prog_compiler_static_CXX='-non_shared'
16437 ;;
16438 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16439 # IBM XL 8.0, 9.0 on PPC and BlueGene
16440 lt_prog_compiler_wl_CXX='-Wl,'
16441 lt_prog_compiler_pic_CXX='-qpic'
16442 lt_prog_compiler_static_CXX='-qstaticlink'
16443 ;;
16444 *)
16445 case `$CC -V 2>&1 | $SED 5q` in
16446 *Sun\ C*)
16447 # Sun C++ 5.9
16448 lt_prog_compiler_pic_CXX='-KPIC'
16449 lt_prog_compiler_static_CXX='-Bstatic'
16450 lt_prog_compiler_wl_CXX='-Qoption ld '
16451 ;;
16452 esac
16453 ;;
16454 esac
16455 ;;
16456 lynxos*)
16457 ;;
16458 m88k*)
16459 ;;
16460 mvs*)
16461 case $cc_basename in
16462 cxx*)
16463 lt_prog_compiler_pic_CXX='-W c,exportall'
16464 ;;
16465 *)
16466 ;;
16467 esac
16468 ;;
16469 netbsd* | netbsdelf*-gnu)
16470 ;;
16471 *-mlibc)
16472 ;;
16473 *qnx* | *nto*)
16474 # QNX uses GNU C++, but need to define -shared option too, otherwise
16475 # it will coredump.
16476 lt_prog_compiler_pic_CXX='-fPIC -shared'
16477 ;;
16478 osf3* | osf4* | osf5*)
16479 case $cc_basename in
16480 KCC*)
16481 lt_prog_compiler_wl_CXX='--backend -Wl,'
16482 ;;
16483 RCC*)
16484 # Rational C++ 2.4.1
16485 lt_prog_compiler_pic_CXX='-pic'
16486 ;;
16487 cxx*)
16488 # Digital/Compaq C++
16489 lt_prog_compiler_wl_CXX='-Wl,'
16490 # Make sure the PIC flag is empty. It appears that all Alpha
16491 # Linux and Compaq Tru64 Unix objects are PIC.
16492 lt_prog_compiler_pic_CXX=
16493 lt_prog_compiler_static_CXX='-non_shared'
16494 ;;
16495 *)
16496 ;;
16497 esac
16498 ;;
16499 psos*)
16500 ;;
16501 serenity*)
16502 ;;
16503 solaris*)
16504 case $cc_basename in
16505 CC* | sunCC*)
16506 # Sun C++ 4.2, 5.x and Centerline C++
16507 lt_prog_compiler_pic_CXX='-KPIC'
16508 lt_prog_compiler_static_CXX='-Bstatic'
16509 lt_prog_compiler_wl_CXX='-Qoption ld '
16510 ;;
16511 gcx*)
16512 # Green Hills C++ Compiler
16513 lt_prog_compiler_pic_CXX='-PIC'
16514 ;;
16515 *)
16516 ;;
16517 esac
16518 ;;
16519 sunos4*)
16520 case $cc_basename in
16521 CC*)
16522 # Sun C++ 4.x
16523 lt_prog_compiler_pic_CXX='-pic'
16524 lt_prog_compiler_static_CXX='-Bstatic'
16525 ;;
16526 lcc*)
16527 # Lucid
16528 lt_prog_compiler_pic_CXX='-pic'
16529 ;;
16530 *)
16531 ;;
16532 esac
16533 ;;
16534 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16535 case $cc_basename in
16536 CC*)
16537 lt_prog_compiler_wl_CXX='-Wl,'
16538 lt_prog_compiler_pic_CXX='-KPIC'
16539 lt_prog_compiler_static_CXX='-Bstatic'
16540 ;;
16541 esac
16542 ;;
16543 tandem*)
16544 case $cc_basename in
16545 NCC*)
16546 # NonStop-UX NCC 3.20
16547 lt_prog_compiler_pic_CXX='-KPIC'
16548 ;;
16549 *)
16550 ;;
16551 esac
16552 ;;
16553 vxworks*)
16554 ;;
16555 *)
16556 lt_prog_compiler_can_build_shared_CXX=no
16557 ;;
16558 esac
16559 fi
16560
16561 case $host_os in
16562 # For platforms that do not support PIC, -DPIC is meaningless:
16563 *djgpp*)
16564 lt_prog_compiler_pic_CXX=
16565 ;;
16566 *)
16567 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16568 ;;
16569 esac
16570
16571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16572 printf %s "checking for $compiler option to produce PIC... " >&6; }
16573 if test ${lt_cv_prog_compiler_pic_CXX+y}
16574 then :
16575 printf %s "(cached) " >&6
16576 else case e in #(
16577 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
16578 esac
16579 fi
16580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16581 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
16582 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16583
16584 #
16585 # Check to make sure the PIC flag actually works.
16586 #
16587 if test -n "$lt_prog_compiler_pic_CXX"; then
16588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16589 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16590 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
16591 then :
16592 printf %s "(cached) " >&6
16593 else case e in #(
16594 e) lt_cv_prog_compiler_pic_works_CXX=no
16595 ac_outfile=conftest.$ac_objext
16596 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16597 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
16598 # Insert the option either (1) after the last *FLAGS variable, or
16599 # (2) before a word containing "conftest.", or (3) at the end.
16600 # Note that $ac_compile itself does not contain backslashes and begins
16601 # with a dollar sign (not a hyphen), so the echo should work correctly.
16602 # The option is referenced via a variable to avoid confusing sed.
16603 lt_compile=`echo "$ac_compile" | $SED \
16604 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16605 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16606 -e 's:$: $lt_compiler_flag:'`
16607 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16608 (eval "$lt_compile" 2>conftest.err)
16609 ac_status=$?
16610 cat conftest.err >&5
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 if (exit $ac_status) && test -s "$ac_outfile"; then
16613 # The compiler can only warn and ignore the option if not recognized
16614 # So say no if there are warnings other than the usual output.
16615 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16616 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16617 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16618 lt_cv_prog_compiler_pic_works_CXX=yes
16619 fi
16620 fi
16621 $RM conftest*
16622 ;;
16623 esac
16624 fi
16625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16626 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16627
16628 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16629 case $lt_prog_compiler_pic_CXX in
16630 "" | " "*) ;;
16631 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16632 esac
16633 else
16634 lt_prog_compiler_pic_CXX=
16635 lt_prog_compiler_can_build_shared_CXX=no
16636 fi
16637
16638 fi
16639
16640
16641
16642
16643
16644 #
16645 # Check to make sure the static flag actually works.
16646 #
16647 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16649 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16650 if test ${lt_cv_prog_compiler_static_works_CXX+y}
16651 then :
16652 printf %s "(cached) " >&6
16653 else case e in #(
16654 e) lt_cv_prog_compiler_static_works_CXX=no
16655 save_LDFLAGS=$LDFLAGS
16656 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16657 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16658 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16659 # The linker can only warn and ignore the option if not recognized
16660 # So say no if there are warnings
16661 if test -s conftest.err; then
16662 # Append any errors to the config.log.
16663 cat conftest.err 1>&5
16664 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16665 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16666 if diff conftest.exp conftest.er2 >/dev/null; then
16667 lt_cv_prog_compiler_static_works_CXX=yes
16668 fi
16669 else
16670 lt_cv_prog_compiler_static_works_CXX=yes
16671 fi
16672 fi
16673 $RM -r conftest*
16674 LDFLAGS=$save_LDFLAGS
16675 ;;
16676 esac
16677 fi
16678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16679 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16680
16681 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16682 :
16683 else
16684 lt_prog_compiler_static_CXX=
16685 fi
16686
16687
16688
16689
16690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16691 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16692 if test ${lt_cv_prog_compiler_c_o_CXX+y}
16693 then :
16694 printf %s "(cached) " >&6
16695 else case e in #(
16696 e) lt_cv_prog_compiler_c_o_CXX=no
16697 $RM -r conftest 2>/dev/null
16698 mkdir conftest
16699 cd conftest
16700 mkdir out
16701 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16702
16703 lt_compiler_flag="-o out/conftest2.$ac_objext"
16704 # Insert the option either (1) after the last *FLAGS variable, or
16705 # (2) before a word containing "conftest.", or (3) at the end.
16706 # Note that $ac_compile itself does not contain backslashes and begins
16707 # with a dollar sign (not a hyphen), so the echo should work correctly.
16708 lt_compile=`echo "$ac_compile" | $SED \
16709 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16710 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16711 -e 's:$: $lt_compiler_flag:'`
16712 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16713 (eval "$lt_compile" 2>out/conftest.err)
16714 ac_status=$?
16715 cat out/conftest.err >&5
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16718 then
16719 # The compiler can only warn and ignore the option if not recognized
16720 # So say no if there are warnings
16721 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16722 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16723 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16724 lt_cv_prog_compiler_c_o_CXX=yes
16725 fi
16726 fi
16727 chmod u+w . 2>&5
16728 $RM conftest*
16729 # SGI C++ compiler will create directory out/ii_files/ for
16730 # template instantiation
16731 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16732 $RM out/* && rmdir out
16733 cd ..
16734 $RM -r conftest
16735 $RM conftest*
16736 ;;
16737 esac
16738 fi
16739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16740 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16741
16742
16743
16744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16745 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16746 if test ${lt_cv_prog_compiler_c_o_CXX+y}
16747 then :
16748 printf %s "(cached) " >&6
16749 else case e in #(
16750 e) lt_cv_prog_compiler_c_o_CXX=no
16751 $RM -r conftest 2>/dev/null
16752 mkdir conftest
16753 cd conftest
16754 mkdir out
16755 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16756
16757 lt_compiler_flag="-o out/conftest2.$ac_objext"
16758 # Insert the option either (1) after the last *FLAGS variable, or
16759 # (2) before a word containing "conftest.", or (3) at the end.
16760 # Note that $ac_compile itself does not contain backslashes and begins
16761 # with a dollar sign (not a hyphen), so the echo should work correctly.
16762 lt_compile=`echo "$ac_compile" | $SED \
16763 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16764 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16765 -e 's:$: $lt_compiler_flag:'`
16766 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16767 (eval "$lt_compile" 2>out/conftest.err)
16768 ac_status=$?
16769 cat out/conftest.err >&5
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16772 then
16773 # The compiler can only warn and ignore the option if not recognized
16774 # So say no if there are warnings
16775 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16776 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16777 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16778 lt_cv_prog_compiler_c_o_CXX=yes
16779 fi
16780 fi
16781 chmod u+w . 2>&5
16782 $RM conftest*
16783 # SGI C++ compiler will create directory out/ii_files/ for
16784 # template instantiation
16785 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16786 $RM out/* && rmdir out
16787 cd ..
16788 $RM -r conftest
16789 $RM conftest*
16790 ;;
16791 esac
16792 fi
16793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16794 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16795
16796
16797
16798
16799 hard_links=nottested
16800 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16801 # do not overwrite the value of need_locks provided by the user
16802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16803 printf %s "checking if we can lock with hard links... " >&6; }
16804 hard_links=yes
16805 $RM conftest*
16806 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16807 touch conftest.a
16808 ln conftest.a conftest.b 2>&5 || hard_links=no
16809 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16811 printf "%s\n" "$hard_links" >&6; }
16812 if test no = "$hard_links"; then
16813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16814 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16815 need_locks=warn
16816 fi
16817 else
16818 need_locks=no
16819 fi
16820
16821
16822
16823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16824 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16825
16826 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16827 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16828 case $host_os in
16829 aix[4-9]*)
16830 # If we're using GNU nm, then we don't want the "-C" option.
16831 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16832 # Without the "-l" option, or with the "-B" option, AIX nm treats
16833 # weak defined symbols like other global defined symbols, whereas
16834 # GNU nm marks them as "W".
16835 # While the 'weak' keyword is ignored in the Export File, we need
16836 # it in the Import File for the 'aix-soname' feature, so we have
16837 # to replace the "-B" option with "-P" for AIX nm.
16838 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16839 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'
16840 else
16841 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'
16842 fi
16843 ;;
16844 pw32*)
16845 export_symbols_cmds_CXX=$ltdll_cmds
16846 ;;
16847 cygwin* | mingw* | windows* | cegcc*)
16848 case $cc_basename in
16849 cl* | icl*)
16850 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16851 ;;
16852 *)
16853 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'
16854 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16855 ;;
16856 esac
16857 ;;
16858 linux* | k*bsd*-gnu | gnu*)
16859 link_all_deplibs_CXX=no
16860 ;;
16861 *)
16862 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16863 ;;
16864 esac
16865
16866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16867 printf "%s\n" "$ld_shlibs_CXX" >&6; }
16868 test no = "$ld_shlibs_CXX" && can_build_shared=no
16869
16870 with_gnu_ld_CXX=$with_gnu_ld
16871
16872
16873
16874
16875
16876
16877 #
16878 # Do we need to explicitly link libc?
16879 #
16880 case "x$archive_cmds_need_lc_CXX" in
16881 x|xyes)
16882 # Assume -lc should be added
16883 archive_cmds_need_lc_CXX=yes
16884
16885 if test yes,yes = "$GCC,$enable_shared"; then
16886 case $archive_cmds_CXX in
16887 *'~'*)
16888 # FIXME: we may have to deal with multi-command sequences.
16889 ;;
16890 '$CC '*)
16891 # Test whether the compiler implicitly links with -lc since on some
16892 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16893 # to ld, don't add -lc before -lgcc.
16894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16895 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
16896 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
16897 then :
16898 printf %s "(cached) " >&6
16899 else case e in #(
16900 e) $RM conftest*
16901 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16902
16903 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16904 (eval $ac_compile) 2>&5
16905 ac_status=$?
16906 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16907 test $ac_status = 0; } 2>conftest.err; then
16908 soname=conftest
16909 lib=conftest
16910 libobjs=conftest.$ac_objext
16911 deplibs=
16912 wl=$lt_prog_compiler_wl_CXX
16913 pic_flag=$lt_prog_compiler_pic_CXX
16914 compiler_flags=-v
16915 linker_flags=-v
16916 verstring=
16917 output_objdir=.
16918 libname=conftest
16919 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16920 allow_undefined_flag_CXX=
16921 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16922 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16923 ac_status=$?
16924 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16925 test $ac_status = 0; }
16926 then
16927 lt_cv_archive_cmds_need_lc_CXX=no
16928 else
16929 lt_cv_archive_cmds_need_lc_CXX=yes
16930 fi
16931 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16932 else
16933 cat conftest.err 1>&5
16934 fi
16935 $RM conftest*
16936 ;;
16937 esac
16938 fi
16939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16940 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16941 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16942 ;;
16943 esac
16944 fi
16945 ;;
16946 esac
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17010 printf %s "checking dynamic linker characteristics... " >&6; }
17011
17012 library_names_spec=
17013 libname_spec='lib$name'
17014 soname_spec=
17015 shrext_cmds=.so
17016 postinstall_cmds=
17017 postuninstall_cmds=
17018 finish_cmds=
17019 finish_eval=
17020 shlibpath_var=
17021 shlibpath_overrides_runpath=unknown
17022 version_type=none
17023 dynamic_linker="$host_os ld.so"
17024 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17025 need_lib_prefix=unknown
17026 hardcode_into_libs=no
17027
17028 # when you set need_version to no, make sure it does not cause -set_version
17029 # flags to be left without arguments
17030 need_version=unknown
17031
17032
17033
17034 case $host_os in
17035 aix3*)
17036 version_type=linux # correct to gnu/linux during the next big refactor
17037 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17038 shlibpath_var=LIBPATH
17039
17040 # AIX 3 has no versioning support, so we append a major version to the name.
17041 soname_spec='$libname$release$shared_ext$major'
17042 ;;
17043
17044 aix[4-9]*)
17045 version_type=linux # correct to gnu/linux during the next big refactor
17046 need_lib_prefix=no
17047 need_version=no
17048 hardcode_into_libs=yes
17049 if test ia64 = "$host_cpu"; then
17050 # AIX 5 supports IA64
17051 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17052 shlibpath_var=LD_LIBRARY_PATH
17053 else
17054 # With GCC up to 2.95.x, collect2 would create an import file
17055 # for dependence libraries. The import file would start with
17056 # the line '#! .'. This would cause the generated library to
17057 # depend on '.', always an invalid library. This was fixed in
17058 # development snapshots of GCC prior to 3.0.
17059 case $host_os in
17060 aix4 | aix4.[01] | aix4.[01].*)
17061 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17062 echo ' yes '
17063 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17064 :
17065 else
17066 can_build_shared=no
17067 fi
17068 ;;
17069 esac
17070 # Using Import Files as archive members, it is possible to support
17071 # filename-based versioning of shared library archives on AIX. While
17072 # this would work for both with and without runtime linking, it will
17073 # prevent static linking of such archives. So we do filename-based
17074 # shared library versioning with .so extension only, which is used
17075 # when both runtime linking and shared linking is enabled.
17076 # Unfortunately, runtime linking may impact performance, so we do
17077 # not want this to be the default eventually. Also, we use the
17078 # versioned .so libs for executables only if there is the -brtl
17079 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
17080 # To allow for filename-based versioning support, we need to create
17081 # libNAME.so.V as an archive file, containing:
17082 # *) an Import File, referring to the versioned filename of the
17083 # archive as well as the shared archive member, telling the
17084 # bitwidth (32 or 64) of that shared object, and providing the
17085 # list of exported symbols of that shared object, eventually
17086 # decorated with the 'weak' keyword
17087 # *) the shared object with the F_LOADONLY flag set, to really avoid
17088 # it being seen by the linker.
17089 # At run time we better use the real file rather than another symlink,
17090 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17091
17092 case $with_aix_soname,$aix_use_runtimelinking in
17093 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17094 # soname into executable. Probably we can add versioning support to
17095 # collect2, so additional links can be useful in future.
17096 aix,yes) # traditional libtool
17097 dynamic_linker='AIX unversionable lib.so'
17098 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17099 # instead of lib<name>.a to let people know that these are not
17100 # typical AIX shared libraries.
17101 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17102 ;;
17103 aix,no) # traditional AIX only
17104 dynamic_linker='AIX lib.a(lib.so.V)'
17105 # We preserve .a as extension for shared libraries through AIX4.2
17106 # and later when we are not doing run time linking.
17107 library_names_spec='$libname$release.a $libname.a'
17108 soname_spec='$libname$release$shared_ext$major'
17109 ;;
17110 svr4,*) # full svr4 only
17111 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17112 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17113 # We do not specify a path in Import Files, so LIBPATH fires.
17114 shlibpath_overrides_runpath=yes
17115 ;;
17116 *,yes) # both, prefer svr4
17117 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17118 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17119 # unpreferred sharedlib libNAME.a needs extra handling
17120 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"'
17121 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"'
17122 # We do not specify a path in Import Files, so LIBPATH fires.
17123 shlibpath_overrides_runpath=yes
17124 ;;
17125 *,no) # both, prefer aix
17126 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17127 library_names_spec='$libname$release.a $libname.a'
17128 soname_spec='$libname$release$shared_ext$major'
17129 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17130 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)'
17131 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"'
17132 ;;
17133 esac
17134 shlibpath_var=LIBPATH
17135 fi
17136 ;;
17137
17138 amigaos*)
17139 case $host_cpu in
17140 powerpc)
17141 # Since July 2007 AmigaOS4 officially supports .so libraries.
17142 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17143 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17144 ;;
17145 m68k)
17146 library_names_spec='$libname.ixlibrary $libname.a'
17147 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17148 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'
17149 ;;
17150 esac
17151 ;;
17152
17153 beos*)
17154 library_names_spec='$libname$shared_ext'
17155 dynamic_linker="$host_os ld.so"
17156 shlibpath_var=LIBRARY_PATH
17157 ;;
17158
17159 bsdi[45]*)
17160 version_type=linux # correct to gnu/linux during the next big refactor
17161 need_version=no
17162 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17163 soname_spec='$libname$release$shared_ext$major'
17164 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17165 shlibpath_var=LD_LIBRARY_PATH
17166 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17167 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17168 # the default ld.so.conf also contains /usr/contrib/lib and
17169 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17170 # libtool to hard-code these into programs
17171 ;;
17172
17173 cygwin* | mingw* | windows* | pw32* | cegcc*)
17174 version_type=windows
17175 shrext_cmds=.dll
17176 need_version=no
17177 need_lib_prefix=no
17178
17179 case $GCC,$cc_basename in
17180 yes,*)
17181 # gcc
17182 library_names_spec='$libname.dll.a'
17183 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17184 # If user builds GCC with multilib enabled,
17185 # it should just install on $(libdir)
17186 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
17187 if test xyes = x"$multilib"; then
17188 postinstall_cmds='base_file=`basename \$file`~
17189 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17190 dldir=$destdir/`dirname \$dlpath`~
17191 $install_prog $dir/$dlname $destdir/$dlname~
17192 chmod a+x $destdir/$dlname~
17193 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17194 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
17195 fi'
17196 else
17197 postinstall_cmds='base_file=`basename \$file`~
17198 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17199 dldir=$destdir/`dirname \$dlpath`~
17200 test -d \$dldir || mkdir -p \$dldir~
17201 $install_prog $dir/$dlname \$dldir/$dlname~
17202 chmod a+x \$dldir/$dlname~
17203 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17204 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17205 fi'
17206 fi
17207 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17208 dlpath=$dir/\$dldll~
17209 $RM \$dlpath'
17210 shlibpath_overrides_runpath=yes
17211
17212 case $host_os in
17213 cygwin*)
17214 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17215 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17216
17217 ;;
17218 mingw* | windows* | cegcc*)
17219 # MinGW DLLs use traditional 'lib' prefix
17220 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17221 ;;
17222 pw32*)
17223 # pw32 DLLs use 'pw' prefix rather than 'lib'
17224 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17225 ;;
17226 esac
17227 dynamic_linker='Win32 ld.exe'
17228 ;;
17229
17230 *,cl* | *,icl*)
17231 # Native MSVC or ICC
17232 libname_spec='$name'
17233 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17234 library_names_spec='$libname.dll.lib'
17235
17236 case $build_os in
17237 mingw* | windows*)
17238 sys_lib_search_path_spec=
17239 lt_save_ifs=$IFS
17240 IFS=';'
17241 for lt_path in $LIB
17242 do
17243 IFS=$lt_save_ifs
17244 # Let DOS variable expansion print the short 8.3 style file name.
17245 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17246 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17247 done
17248 IFS=$lt_save_ifs
17249 # Convert to MSYS style.
17250 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17251 ;;
17252 cygwin*)
17253 # Convert to unix form, then to dos form, then back to unix form
17254 # but this time dos style (no spaces!) so that the unix form looks
17255 # like /cygdrive/c/PROGRA~1:/cygdr...
17256 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17257 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17258 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17259 ;;
17260 *)
17261 sys_lib_search_path_spec=$LIB
17262 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17263 # It is most probably a Windows format PATH.
17264 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17265 else
17266 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17267 fi
17268 # FIXME: find the short name or the path components, as spaces are
17269 # common. (e.g. "Program Files" -> "PROGRA~1")
17270 ;;
17271 esac
17272
17273 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17274 postinstall_cmds='base_file=`basename \$file`~
17275 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17276 dldir=$destdir/`dirname \$dlpath`~
17277 test -d \$dldir || mkdir -p \$dldir~
17278 $install_prog $dir/$dlname \$dldir/$dlname'
17279 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17280 dlpath=$dir/\$dldll~
17281 $RM \$dlpath'
17282 shlibpath_overrides_runpath=yes
17283 dynamic_linker='Win32 link.exe'
17284 ;;
17285
17286 *)
17287 # Assume MSVC and ICC wrapper
17288 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17289 dynamic_linker='Win32 ld.exe'
17290 ;;
17291 esac
17292 # FIXME: first we should search . and the directory the executable is in
17293 shlibpath_var=PATH
17294 ;;
17295
17296 darwin* | rhapsody*)
17297 dynamic_linker="$host_os dyld"
17298 version_type=darwin
17299 need_lib_prefix=no
17300 need_version=no
17301 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17302 soname_spec='$libname$release$major$shared_ext'
17303 shlibpath_overrides_runpath=yes
17304 shlibpath_var=DYLD_LIBRARY_PATH
17305 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17306
17307 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17308 ;;
17309
17310 dgux*)
17311 version_type=linux # correct to gnu/linux during the next big refactor
17312 need_lib_prefix=no
17313 need_version=no
17314 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17315 soname_spec='$libname$release$shared_ext$major'
17316 shlibpath_var=LD_LIBRARY_PATH
17317 ;;
17318
17319 freebsd* | dragonfly* | midnightbsd*)
17320 # DragonFly does not have aout. When/if they implement a new
17321 # versioning mechanism, adjust this.
17322 if test -x /usr/bin/objformat; then
17323 objformat=`/usr/bin/objformat`
17324 else
17325 case $host_os in
17326 freebsd[23].*) objformat=aout ;;
17327 *) objformat=elf ;;
17328 esac
17329 fi
17330 version_type=freebsd-$objformat
17331 case $version_type in
17332 freebsd-elf*)
17333 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17334 soname_spec='$libname$release$shared_ext$major'
17335 need_version=no
17336 need_lib_prefix=no
17337 ;;
17338 freebsd-*)
17339 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17340 need_version=yes
17341 ;;
17342 esac
17343 case $host_cpu in
17344 powerpc64)
17345 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
17346 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
17347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17348 /* end confdefs.h. */
17349 int test_pointer_size[sizeof (void *) - 5];
17350
17351 _ACEOF
17352 if ac_fn_cxx_try_compile "$LINENO"
17353 then :
17354 shlibpath_var=LD_LIBRARY_PATH
17355 else case e in #(
17356 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
17357 esac
17358 fi
17359 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17360 ;;
17361 *)
17362 shlibpath_var=LD_LIBRARY_PATH
17363 ;;
17364 esac
17365 case $host_os in
17366 freebsd2.*)
17367 shlibpath_overrides_runpath=yes
17368 ;;
17369 freebsd3.[01]* | freebsdelf3.[01]*)
17370 shlibpath_overrides_runpath=yes
17371 hardcode_into_libs=yes
17372 ;;
17373 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17374 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17375 shlibpath_overrides_runpath=no
17376 hardcode_into_libs=yes
17377 ;;
17378 *) # from 4.6 on, and DragonFly
17379 shlibpath_overrides_runpath=yes
17380 hardcode_into_libs=yes
17381 ;;
17382 esac
17383 ;;
17384
17385 haiku*)
17386 version_type=linux # correct to gnu/linux during the next big refactor
17387 need_lib_prefix=no
17388 need_version=no
17389 dynamic_linker="$host_os runtime_loader"
17390 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17391 soname_spec='$libname$release$shared_ext$major'
17392 shlibpath_var=LIBRARY_PATH
17393 shlibpath_overrides_runpath=no
17394 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
17395 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
17396 hardcode_into_libs=no
17397 ;;
17398
17399 hpux9* | hpux10* | hpux11*)
17400 # Give a soname corresponding to the major version so that dld.sl refuses to
17401 # link against other versions.
17402 version_type=sunos
17403 need_lib_prefix=no
17404 need_version=no
17405 case $host_cpu in
17406 ia64*)
17407 shrext_cmds='.so'
17408 hardcode_into_libs=yes
17409 dynamic_linker="$host_os dld.so"
17410 shlibpath_var=LD_LIBRARY_PATH
17411 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17412 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17413 soname_spec='$libname$release$shared_ext$major'
17414 if test 32 = "$HPUX_IA64_MODE"; then
17415 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17416 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17417 else
17418 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17419 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17420 fi
17421 ;;
17422 hppa*64*)
17423 shrext_cmds='.sl'
17424 hardcode_into_libs=yes
17425 dynamic_linker="$host_os dld.sl"
17426 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17427 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17428 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17429 soname_spec='$libname$release$shared_ext$major'
17430 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17431 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17432 ;;
17433 *)
17434 shrext_cmds='.sl'
17435 dynamic_linker="$host_os dld.sl"
17436 shlibpath_var=SHLIB_PATH
17437 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17438 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17439 soname_spec='$libname$release$shared_ext$major'
17440 ;;
17441 esac
17442 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17443 postinstall_cmds='chmod 555 $lib'
17444 # or fails outright, so override atomically:
17445 install_override_mode=555
17446 ;;
17447
17448 interix[3-9]*)
17449 version_type=linux # correct to gnu/linux during the next big refactor
17450 need_lib_prefix=no
17451 need_version=no
17452 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17453 soname_spec='$libname$release$shared_ext$major'
17454 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17455 shlibpath_var=LD_LIBRARY_PATH
17456 shlibpath_overrides_runpath=no
17457 hardcode_into_libs=yes
17458 ;;
17459
17460 irix5* | irix6* | nonstopux*)
17461 case $host_os in
17462 nonstopux*) version_type=nonstopux ;;
17463 *)
17464 if test yes = "$lt_cv_prog_gnu_ld"; then
17465 version_type=linux # correct to gnu/linux during the next big refactor
17466 else
17467 version_type=irix
17468 fi ;;
17469 esac
17470 need_lib_prefix=no
17471 need_version=no
17472 soname_spec='$libname$release$shared_ext$major'
17473 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17474 case $host_os in
17475 irix5* | nonstopux*)
17476 libsuff= shlibsuff=
17477 ;;
17478 *)
17479 case $LD in # libtool.m4 will add one of these switches to LD
17480 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17481 libsuff= shlibsuff= libmagic=32-bit;;
17482 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17483 libsuff=32 shlibsuff=N32 libmagic=N32;;
17484 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17485 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17486 *) libsuff= shlibsuff= libmagic=never-match;;
17487 esac
17488 ;;
17489 esac
17490 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17491 shlibpath_overrides_runpath=no
17492 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17493 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17494 hardcode_into_libs=yes
17495 ;;
17496
17497 # No shared lib support for Linux oldld, aout, or coff.
17498 linux*oldld* | linux*aout* | linux*coff*)
17499 dynamic_linker=no
17500 ;;
17501
17502 linux*android*)
17503 version_type=none # Android doesn't support versioned libraries.
17504 need_lib_prefix=no
17505 need_version=no
17506 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
17507 soname_spec='$libname$release$shared_ext'
17508 finish_cmds=
17509 shlibpath_var=LD_LIBRARY_PATH
17510 shlibpath_overrides_runpath=yes
17511
17512 # This implies no fast_install, which is unacceptable.
17513 # Some rework will be needed to allow for fast_install
17514 # before this can be enabled.
17515 hardcode_into_libs=yes
17516
17517 dynamic_linker='Android linker'
17518 # -rpath works at least for libraries that are not overridden by
17519 # libraries installed in system locations.
17520 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17521 ;;
17522
17523 # This must be glibc/ELF.
17524 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17525 version_type=linux # correct to gnu/linux during the next big refactor
17526 need_lib_prefix=no
17527 need_version=no
17528 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17529 soname_spec='$libname$release$shared_ext$major'
17530 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17531 shlibpath_var=LD_LIBRARY_PATH
17532 shlibpath_overrides_runpath=no
17533
17534 # Some binutils ld are patched to set DT_RUNPATH
17535 if test ${lt_cv_shlibpath_overrides_runpath+y}
17536 then :
17537 printf %s "(cached) " >&6
17538 else case e in #(
17539 e) lt_cv_shlibpath_overrides_runpath=no
17540 save_LDFLAGS=$LDFLAGS
17541 save_libdir=$libdir
17542 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17543 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17545 /* end confdefs.h. */
17546
17547 int
17548 main (void)
17549 {
17550
17551 ;
17552 return 0;
17553 }
17554 _ACEOF
17555 if ac_fn_cxx_try_link "$LINENO"
17556 then :
17557 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
17558 then :
17559 lt_cv_shlibpath_overrides_runpath=yes
17560 fi
17561 fi
17562 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17563 conftest$ac_exeext conftest.$ac_ext
17564 LDFLAGS=$save_LDFLAGS
17565 libdir=$save_libdir
17566 ;;
17567 esac
17568 fi
17569
17570 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17571
17572 # This implies no fast_install, which is unacceptable.
17573 # Some rework will be needed to allow for fast_install
17574 # before this can be enabled.
17575 hardcode_into_libs=yes
17576
17577 # Ideally, we could use ldconfig to report *all* directories which are
17578 # searched for libraries, however this is still not possible. Aside from not
17579 # being certain /sbin/ldconfig is available, command
17580 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17581 # even though it is searched at run-time. Try to do the best guess by
17582 # appending ld.so.conf contents (and includes) to the search path.
17583 if test -f /etc/ld.so.conf; then
17584 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' ' '`
17585 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17586 fi
17587
17588 # We used to test for /lib/ld.so.1 and disable shared libraries on
17589 # powerpc, because MkLinux only supported shared libraries with the
17590 # GNU dynamic linker. Since this was broken with cross compilers,
17591 # most powerpc-linux boxes support dynamic linking these days and
17592 # people can always --disable-shared, the test was removed, and we
17593 # assume the GNU/Linux dynamic linker is in use.
17594 dynamic_linker='GNU/Linux ld.so'
17595 ;;
17596
17597 netbsdelf*-gnu)
17598 version_type=linux
17599 need_lib_prefix=no
17600 need_version=no
17601 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17602 soname_spec='$libname$release$shared_ext$major'
17603 shlibpath_var=LD_LIBRARY_PATH
17604 shlibpath_overrides_runpath=no
17605 hardcode_into_libs=yes
17606 dynamic_linker='NetBSD ld.elf_so'
17607 ;;
17608
17609 netbsdelf*-gnu)
17610 version_type=linux
17611 need_lib_prefix=no
17612 need_version=no
17613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17614 soname_spec='${libname}${release}${shared_ext}$major'
17615 shlibpath_var=LD_LIBRARY_PATH
17616 shlibpath_overrides_runpath=no
17617 hardcode_into_libs=yes
17618 dynamic_linker='NetBSD ld.elf_so'
17619 ;;
17620
17621 netbsd*)
17622 version_type=sunos
17623 need_lib_prefix=no
17624 need_version=no
17625 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17626 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17627 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17628 dynamic_linker='NetBSD (a.out) ld.so'
17629 else
17630 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17631 soname_spec='$libname$release$shared_ext$major'
17632 dynamic_linker='NetBSD ld.elf_so'
17633 fi
17634 shlibpath_var=LD_LIBRARY_PATH
17635 shlibpath_overrides_runpath=yes
17636 hardcode_into_libs=yes
17637 ;;
17638
17639 *-mlibc)
17640 version_type=linux # correct to gnu/linux during the next big refactor
17641 need_lib_prefix=no
17642 need_version=no
17643 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17644 soname_spec='$libname$release$shared_ext$major'
17645 dynamic_linker='mlibc ld.so'
17646 shlibpath_var=LD_LIBRARY_PATH
17647 shlibpath_overrides_runpath=no
17648 hardcode_into_libs=yes
17649 ;;
17650
17651 newsos6)
17652 version_type=linux # correct to gnu/linux during the next big refactor
17653 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17654 shlibpath_var=LD_LIBRARY_PATH
17655 shlibpath_overrides_runpath=yes
17656 ;;
17657
17658 *nto* | *qnx*)
17659 version_type=qnx
17660 need_lib_prefix=no
17661 need_version=no
17662 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17663 soname_spec='$libname$release$shared_ext$major'
17664 shlibpath_var=LD_LIBRARY_PATH
17665 shlibpath_overrides_runpath=no
17666 hardcode_into_libs=yes
17667 dynamic_linker='ldqnx.so'
17668 ;;
17669
17670 openbsd*)
17671 version_type=sunos
17672 sys_lib_dlsearch_path_spec=/usr/lib
17673 need_lib_prefix=no
17674 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17675 need_version=no
17676 else
17677 need_version=yes
17678 fi
17679 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17680 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17681 shlibpath_var=LD_LIBRARY_PATH
17682 shlibpath_overrides_runpath=yes
17683 ;;
17684
17685 os2*)
17686 libname_spec='$name'
17687 version_type=windows
17688 shrext_cmds=.dll
17689 need_version=no
17690 need_lib_prefix=no
17691 # OS/2 can only load a DLL with a base name of 8 characters or less.
17692 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17693 v=$($ECHO $release$versuffix | tr -d .-);
17694 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17695 $ECHO $n$v`$shared_ext'
17696 library_names_spec='${libname}_dll.$libext'
17697 dynamic_linker='OS/2 ld.exe'
17698 shlibpath_var=BEGINLIBPATH
17699 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17700 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17701 postinstall_cmds='base_file=`basename \$file`~
17702 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17703 dldir=$destdir/`dirname \$dlpath`~
17704 test -d \$dldir || mkdir -p \$dldir~
17705 $install_prog $dir/$dlname \$dldir/$dlname~
17706 chmod a+x \$dldir/$dlname~
17707 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17708 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17709 fi'
17710 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17711 dlpath=$dir/\$dldll~
17712 $RM \$dlpath'
17713 ;;
17714
17715 osf3* | osf4* | osf5*)
17716 version_type=osf
17717 need_lib_prefix=no
17718 need_version=no
17719 soname_spec='$libname$release$shared_ext$major'
17720 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17721 shlibpath_var=LD_LIBRARY_PATH
17722 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17723 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17724 ;;
17725
17726 rdos*)
17727 dynamic_linker=no
17728 ;;
17729
17730 serenity*)
17731 version_type=linux # correct to gnu/linux during the next big refactor
17732 need_lib_prefix=no
17733 need_version=no
17734 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17735 soname_spec='$libname$release$shared_ext$major'
17736 shlibpath_var=LD_LIBRARY_PATH
17737 shlibpath_overrides_runpath=no
17738 dynamic_linker='SerenityOS LibELF'
17739 ;;
17740
17741 solaris*)
17742 version_type=linux # correct to gnu/linux during the next big refactor
17743 need_lib_prefix=no
17744 need_version=no
17745 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17746 soname_spec='$libname$release$shared_ext$major'
17747 shlibpath_var=LD_LIBRARY_PATH
17748 shlibpath_overrides_runpath=yes
17749 hardcode_into_libs=yes
17750 # ldd complains unless libraries are executable
17751 postinstall_cmds='chmod +x $lib'
17752 ;;
17753
17754 sunos4*)
17755 version_type=sunos
17756 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17757 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17758 shlibpath_var=LD_LIBRARY_PATH
17759 shlibpath_overrides_runpath=yes
17760 if test yes = "$with_gnu_ld"; then
17761 need_lib_prefix=no
17762 fi
17763 need_version=yes
17764 ;;
17765
17766 sysv4 | sysv4.3*)
17767 version_type=linux # correct to gnu/linux during the next big refactor
17768 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17769 soname_spec='$libname$release$shared_ext$major'
17770 shlibpath_var=LD_LIBRARY_PATH
17771 case $host_vendor in
17772 sni)
17773 shlibpath_overrides_runpath=no
17774 need_lib_prefix=no
17775 runpath_var=LD_RUN_PATH
17776 ;;
17777 siemens)
17778 need_lib_prefix=no
17779 ;;
17780 motorola)
17781 need_lib_prefix=no
17782 need_version=no
17783 shlibpath_overrides_runpath=no
17784 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17785 ;;
17786 esac
17787 ;;
17788
17789 sysv4*MP*)
17790 if test -d /usr/nec; then
17791 version_type=linux # correct to gnu/linux during the next big refactor
17792 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17793 soname_spec='$libname$shared_ext.$major'
17794 shlibpath_var=LD_LIBRARY_PATH
17795 fi
17796 ;;
17797
17798 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17799 version_type=sco
17800 need_lib_prefix=no
17801 need_version=no
17802 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17803 soname_spec='$libname$release$shared_ext$major'
17804 shlibpath_var=LD_LIBRARY_PATH
17805 shlibpath_overrides_runpath=yes
17806 hardcode_into_libs=yes
17807 if test yes = "$with_gnu_ld"; then
17808 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17809 else
17810 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17811 case $host_os in
17812 sco3.2v5*)
17813 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17814 ;;
17815 esac
17816 fi
17817 sys_lib_dlsearch_path_spec='/usr/lib'
17818 ;;
17819
17820 tpf*)
17821 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17822 version_type=linux # correct to gnu/linux during the next big refactor
17823 need_lib_prefix=no
17824 need_version=no
17825 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17826 shlibpath_var=LD_LIBRARY_PATH
17827 shlibpath_overrides_runpath=no
17828 hardcode_into_libs=yes
17829 ;;
17830
17831 uts4*)
17832 version_type=linux # correct to gnu/linux during the next big refactor
17833 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17834 soname_spec='$libname$release$shared_ext$major'
17835 shlibpath_var=LD_LIBRARY_PATH
17836 ;;
17837
17838 emscripten*)
17839 version_type=none
17840 need_lib_prefix=no
17841 need_version=no
17842 library_names_spec='$libname$release$shared_ext'
17843 soname_spec='$libname$release$shared_ext'
17844 finish_cmds=
17845 dynamic_linker="Emscripten linker"
17846 lt_prog_compiler_wl_CXX=
17847 lt_prog_compiler_pic_CXX=
17848 lt_prog_compiler_static_CXX=
17849
17850
17851 # C++ specific cases for pic, static, wl, etc.
17852 if test yes = "$GXX"; then
17853 lt_prog_compiler_wl_CXX='-Wl,'
17854 lt_prog_compiler_static_CXX='-static'
17855
17856 case $host_os in
17857 aix*)
17858 # All AIX code is PIC.
17859 if test ia64 = "$host_cpu"; then
17860 # AIX 5 now supports IA64 processor
17861 lt_prog_compiler_static_CXX='-Bstatic'
17862 fi
17863 lt_prog_compiler_pic_CXX='-fPIC'
17864 ;;
17865
17866 amigaos*)
17867 case $host_cpu in
17868 powerpc)
17869 # see comment about AmigaOS4 .so support
17870 lt_prog_compiler_pic_CXX='-fPIC'
17871 ;;
17872 m68k)
17873 # FIXME: we need at least 68020 code to build shared libraries, but
17874 # adding the '-m68020' flag to GCC prevents building anything better,
17875 # like '-m68040'.
17876 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17877 ;;
17878 esac
17879 ;;
17880
17881 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17882 # PIC is the default for these OSes.
17883 ;;
17884 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
17885 # This hack is so that the source file can tell whether it is being
17886 # built for inclusion in a dll (and should export symbols for example).
17887 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17888 # (--disable-auto-import) libraries
17889 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17890 case $host_os in
17891 os2*)
17892 lt_prog_compiler_static_CXX='$wl-static'
17893 ;;
17894 esac
17895 ;;
17896 darwin* | rhapsody*)
17897 # PIC is the default on this platform
17898 # Common symbols not allowed in MH_DYLIB files
17899 lt_prog_compiler_pic_CXX='-fno-common'
17900 ;;
17901 *djgpp*)
17902 # DJGPP does not support shared libraries at all
17903 lt_prog_compiler_pic_CXX=
17904 ;;
17905 haiku*)
17906 # PIC is the default for Haiku.
17907 # The "-static" flag exists, but is broken.
17908 lt_prog_compiler_static_CXX=
17909 ;;
17910 interix[3-9]*)
17911 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17912 # Instead, we relocate shared libraries at runtime.
17913 ;;
17914 sysv4*MP*)
17915 if test -d /usr/nec; then
17916 lt_prog_compiler_pic_CXX=-Kconform_pic
17917 fi
17918 ;;
17919 hpux*)
17920 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17921 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17922 # sets the default TLS model and affects inlining.
17923 case $host_cpu in
17924 hppa*64*)
17925 ;;
17926 *)
17927 lt_prog_compiler_pic_CXX='-fPIC'
17928 ;;
17929 esac
17930 ;;
17931 *qnx* | *nto*)
17932 # QNX uses GNU C++, but need to define -shared option too, otherwise
17933 # it will coredump.
17934 lt_prog_compiler_pic_CXX='-fPIC -shared'
17935 ;;
17936 *)
17937 lt_prog_compiler_pic_CXX='-fPIC'
17938 ;;
17939 esac
17940 else
17941 case $host_os in
17942 aix[4-9]*)
17943 # All AIX code is PIC.
17944 if test ia64 = "$host_cpu"; then
17945 # AIX 5 now supports IA64 processor
17946 lt_prog_compiler_static_CXX='-Bstatic'
17947 else
17948 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17949 fi
17950 ;;
17951 chorus*)
17952 case $cc_basename in
17953 cxch68*)
17954 # Green Hills C++ Compiler
17955 # _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"
17956 ;;
17957 esac
17958 ;;
17959 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
17960 # This hack is so that the source file can tell whether it is being
17961 # built for inclusion in a dll (and should export symbols for example).
17962 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17963 ;;
17964 dgux*)
17965 case $cc_basename in
17966 ec++*)
17967 lt_prog_compiler_pic_CXX='-KPIC'
17968 ;;
17969 ghcx*)
17970 # Green Hills C++ Compiler
17971 lt_prog_compiler_pic_CXX='-pic'
17972 ;;
17973 *)
17974 ;;
17975 esac
17976 ;;
17977 freebsd* | dragonfly* | midnightbsd*)
17978 # FreeBSD uses GNU C++
17979 ;;
17980 hpux9* | hpux10* | hpux11*)
17981 case $cc_basename in
17982 CC*)
17983 lt_prog_compiler_wl_CXX='-Wl,'
17984 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17985 if test ia64 != "$host_cpu"; then
17986 lt_prog_compiler_pic_CXX='+Z'
17987 fi
17988 ;;
17989 aCC*)
17990 lt_prog_compiler_wl_CXX='-Wl,'
17991 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17992 case $host_cpu in
17993 hppa*64*|ia64*)
17994 # +Z the default
17995 ;;
17996 *)
17997 lt_prog_compiler_pic_CXX='+Z'
17998 ;;
17999 esac
18000 ;;
18001 *)
18002 ;;
18003 esac
18004 ;;
18005 interix*)
18006 # This is c89, which is MS Visual C++ (no shared libs)
18007 # Anyone wants to do a port?
18008 ;;
18009 irix5* | irix6* | nonstopux*)
18010 case $cc_basename in
18011 CC*)
18012 lt_prog_compiler_wl_CXX='-Wl,'
18013 lt_prog_compiler_static_CXX='-non_shared'
18014 # CC pic flag -KPIC is the default.
18015 ;;
18016 *)
18017 ;;
18018 esac
18019 ;;
18020 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18021 case $cc_basename in
18022 KCC*)
18023 # KAI C++ Compiler
18024 lt_prog_compiler_wl_CXX='--backend -Wl,'
18025 lt_prog_compiler_pic_CXX='-fPIC'
18026 ;;
18027 ecpc* )
18028 # old Intel C++ for x86_64, which still supported -KPIC.
18029 lt_prog_compiler_wl_CXX='-Wl,'
18030 lt_prog_compiler_pic_CXX='-KPIC'
18031 lt_prog_compiler_static_CXX='-static'
18032 ;;
18033 icpc* )
18034 # Intel C++, used to be incompatible with GCC.
18035 # ICC 10 doesn't accept -KPIC any more.
18036 lt_prog_compiler_wl_CXX='-Wl,'
18037 lt_prog_compiler_pic_CXX='-fPIC'
18038 lt_prog_compiler_static_CXX='-static'
18039 ;;
18040 pgCC* | pgcpp*)
18041 # Portland Group C++ compiler
18042 lt_prog_compiler_wl_CXX='-Wl,'
18043 lt_prog_compiler_pic_CXX='-fpic'
18044 lt_prog_compiler_static_CXX='-Bstatic'
18045 ;;
18046 cxx*)
18047 # Compaq C++
18048 # Make sure the PIC flag is empty. It appears that all Alpha
18049 # Linux and Compaq Tru64 Unix objects are PIC.
18050 lt_prog_compiler_pic_CXX=
18051 lt_prog_compiler_static_CXX='-non_shared'
18052 ;;
18053 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18054 # IBM XL 8.0, 9.0 on PPC and BlueGene
18055 lt_prog_compiler_wl_CXX='-Wl,'
18056 lt_prog_compiler_pic_CXX='-qpic'
18057 lt_prog_compiler_static_CXX='-qstaticlink'
18058 ;;
18059 *)
18060 case `$CC -V 2>&1 | $SED 5q` in
18061 *Sun\ C*)
18062 # Sun C++ 5.9
18063 lt_prog_compiler_pic_CXX='-KPIC'
18064 lt_prog_compiler_static_CXX='-Bstatic'
18065 lt_prog_compiler_wl_CXX='-Qoption ld '
18066 ;;
18067 esac
18068 ;;
18069 esac
18070 ;;
18071 lynxos*)
18072 ;;
18073 m88k*)
18074 ;;
18075 mvs*)
18076 case $cc_basename in
18077 cxx*)
18078 lt_prog_compiler_pic_CXX='-W c,exportall'
18079 ;;
18080 *)
18081 ;;
18082 esac
18083 ;;
18084 netbsd* | netbsdelf*-gnu)
18085 ;;
18086 *-mlibc)
18087 ;;
18088 *qnx* | *nto*)
18089 # QNX uses GNU C++, but need to define -shared option too, otherwise
18090 # it will coredump.
18091 lt_prog_compiler_pic_CXX='-fPIC -shared'
18092 ;;
18093 osf3* | osf4* | osf5*)
18094 case $cc_basename in
18095 KCC*)
18096 lt_prog_compiler_wl_CXX='--backend -Wl,'
18097 ;;
18098 RCC*)
18099 # Rational C++ 2.4.1
18100 lt_prog_compiler_pic_CXX='-pic'
18101 ;;
18102 cxx*)
18103 # Digital/Compaq C++
18104 lt_prog_compiler_wl_CXX='-Wl,'
18105 # Make sure the PIC flag is empty. It appears that all Alpha
18106 # Linux and Compaq Tru64 Unix objects are PIC.
18107 lt_prog_compiler_pic_CXX=
18108 lt_prog_compiler_static_CXX='-non_shared'
18109 ;;
18110 *)
18111 ;;
18112 esac
18113 ;;
18114 psos*)
18115 ;;
18116 serenity*)
18117 ;;
18118 solaris*)
18119 case $cc_basename in
18120 CC* | sunCC*)
18121 # Sun C++ 4.2, 5.x and Centerline C++
18122 lt_prog_compiler_pic_CXX='-KPIC'
18123 lt_prog_compiler_static_CXX='-Bstatic'
18124 lt_prog_compiler_wl_CXX='-Qoption ld '
18125 ;;
18126 gcx*)
18127 # Green Hills C++ Compiler
18128 lt_prog_compiler_pic_CXX='-PIC'
18129 ;;
18130 *)
18131 ;;
18132 esac
18133 ;;
18134 sunos4*)
18135 case $cc_basename in
18136 CC*)
18137 # Sun C++ 4.x
18138 lt_prog_compiler_pic_CXX='-pic'
18139 lt_prog_compiler_static_CXX='-Bstatic'
18140 ;;
18141 lcc*)
18142 # Lucid
18143 lt_prog_compiler_pic_CXX='-pic'
18144 ;;
18145 *)
18146 ;;
18147 esac
18148 ;;
18149 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18150 case $cc_basename in
18151 CC*)
18152 lt_prog_compiler_wl_CXX='-Wl,'
18153 lt_prog_compiler_pic_CXX='-KPIC'
18154 lt_prog_compiler_static_CXX='-Bstatic'
18155 ;;
18156 esac
18157 ;;
18158 tandem*)
18159 case $cc_basename in
18160 NCC*)
18161 # NonStop-UX NCC 3.20
18162 lt_prog_compiler_pic_CXX='-KPIC'
18163 ;;
18164 *)
18165 ;;
18166 esac
18167 ;;
18168 vxworks*)
18169 ;;
18170 *)
18171 lt_prog_compiler_can_build_shared_CXX=no
18172 ;;
18173 esac
18174 fi
18175
18176 case $host_os in
18177 # For platforms that do not support PIC, -DPIC is meaningless:
18178 *djgpp*)
18179 lt_prog_compiler_pic_CXX=
18180 ;;
18181 *)
18182 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18183 ;;
18184 esac
18185
18186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18187 printf %s "checking for $compiler option to produce PIC... " >&6; }
18188 if test ${lt_cv_prog_compiler_pic_CXX+y}
18189 then :
18190 printf %s "(cached) " >&6
18191 else case e in #(
18192 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
18193 esac
18194 fi
18195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18196 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
18197 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
18198
18199 #
18200 # Check to make sure the PIC flag actually works.
18201 #
18202 if test -n "$lt_prog_compiler_pic_CXX"; then
18203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18204 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18205 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
18206 then :
18207 printf %s "(cached) " >&6
18208 else case e in #(
18209 e) lt_cv_prog_compiler_pic_works_CXX=no
18210 ac_outfile=conftest.$ac_objext
18211 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18212 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
18213 # Insert the option either (1) after the last *FLAGS variable, or
18214 # (2) before a word containing "conftest.", or (3) at the end.
18215 # Note that $ac_compile itself does not contain backslashes and begins
18216 # with a dollar sign (not a hyphen), so the echo should work correctly.
18217 # The option is referenced via a variable to avoid confusing sed.
18218 lt_compile=`echo "$ac_compile" | $SED \
18219 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18220 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18221 -e 's:$: $lt_compiler_flag:'`
18222 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18223 (eval "$lt_compile" 2>conftest.err)
18224 ac_status=$?
18225 cat conftest.err >&5
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 if (exit $ac_status) && test -s "$ac_outfile"; then
18228 # The compiler can only warn and ignore the option if not recognized
18229 # So say no if there are warnings other than the usual output.
18230 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18231 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18232 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18233 lt_cv_prog_compiler_pic_works_CXX=yes
18234 fi
18235 fi
18236 $RM conftest*
18237 ;;
18238 esac
18239 fi
18240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18241 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18242
18243 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
18244 case $lt_prog_compiler_pic_CXX in
18245 "" | " "*) ;;
18246 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18247 esac
18248 else
18249 lt_prog_compiler_pic_CXX=
18250 lt_prog_compiler_can_build_shared_CXX=no
18251 fi
18252
18253 fi
18254
18255
18256
18257
18258
18259 #
18260 # Check to make sure the static flag actually works.
18261 #
18262 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18264 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18265 if test ${lt_cv_prog_compiler_static_works_CXX+y}
18266 then :
18267 printf %s "(cached) " >&6
18268 else case e in #(
18269 e) lt_cv_prog_compiler_static_works_CXX=no
18270 save_LDFLAGS=$LDFLAGS
18271 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18272 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18273 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18274 # The linker can only warn and ignore the option if not recognized
18275 # So say no if there are warnings
18276 if test -s conftest.err; then
18277 # Append any errors to the config.log.
18278 cat conftest.err 1>&5
18279 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18280 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18281 if diff conftest.exp conftest.er2 >/dev/null; then
18282 lt_cv_prog_compiler_static_works_CXX=yes
18283 fi
18284 else
18285 lt_cv_prog_compiler_static_works_CXX=yes
18286 fi
18287 fi
18288 $RM -r conftest*
18289 LDFLAGS=$save_LDFLAGS
18290 ;;
18291 esac
18292 fi
18293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18294 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18295
18296 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
18297 :
18298 else
18299 lt_prog_compiler_static_CXX=
18300 fi
18301
18302
18303
18304 ='-fPIC'
18305 archive_cmds_CXX='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
18306 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'
18307 archive_cmds_need_lc_CXX=no
18308 no_undefined_flag_CXX=
18309 ;;
18310
18311 *)
18312 dynamic_linker=no
18313 ;;
18314 esac
18315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18316 printf "%s\n" "$dynamic_linker" >&6; }
18317 test no = "$dynamic_linker" && can_build_shared=no
18318
18319 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18320 if test yes = "$GCC"; then
18321 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18322 fi
18323
18324 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18325 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18326 fi
18327
18328 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18329 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18330 fi
18331
18332 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18333 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18334
18335 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18336 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18337
18338 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18339 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375
18376
18377
18378
18379
18380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18381 printf %s "checking how to hardcode library paths into programs... " >&6; }
18382 hardcode_action_CXX=
18383 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18384 test -n "$runpath_var_CXX" ||
18385 test yes = "$hardcode_automatic_CXX"; then
18386
18387 # We can hardcode non-existent directories.
18388 if test no != "$hardcode_direct_CXX" &&
18389 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18390 # have to relink, otherwise we might link with an installed library
18391 # when we should be linking with a yet-to-be-installed one
18392 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18393 test no != "$hardcode_minus_L_CXX"; then
18394 # Linking always hardcodes the temporary library directory.
18395 hardcode_action_CXX=relink
18396 else
18397 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18398 hardcode_action_CXX=immediate
18399 fi
18400 else
18401 # We cannot hardcode anything, or else we can only hardcode existing
18402 # directories.
18403 hardcode_action_CXX=unsupported
18404 fi
18405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18406 printf "%s\n" "$hardcode_action_CXX" >&6; }
18407
18408 if test relink = "$hardcode_action_CXX" ||
18409 test yes = "$inherit_rpath_CXX"; then
18410 # Fast installation is not supported
18411 enable_fast_install=no
18412 elif test yes = "$shlibpath_overrides_runpath" ||
18413 test no = "$enable_shared"; then
18414 # Fast installation is not necessary
18415 enable_fast_install=needless
18416 fi
18417
18418
18419
18420
18421
18422
18423
18424 fi # test -n "$compiler"
18425
18426 CC=$lt_save_CC
18427 CFLAGS=$lt_save_CFLAGS
18428 LDCXX=$LD
18429 LD=$lt_save_LD
18430 GCC=$lt_save_GCC
18431 with_gnu_ld=$lt_save_with_gnu_ld
18432 lt_cv_path_LDCXX=$lt_cv_path_LD
18433 lt_cv_path_LD=$lt_save_path_LD
18434 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18435 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18436 fi # test yes != "$_lt_caught_CXX_error"
18437
18438 ac_ext=cpp
18439 ac_cpp='$CXXCPP $CPPFLAGS'
18440 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18441 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18442 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458 ac_config_commands="$ac_config_commands libtool"
18459
18460
18461
18462
18463 # Only expand once:
18464
18465
18466
18467
18468
18469 # Check whether --enable-debug was given.
18470 if test ${enable_debug+y}
18471 then :
18472 enableval=$enable_debug;
18473 case $enableval in
18474 yes)
18475 use_debug_code="yes"
18476 use_debug_define=yes
18477 ;;
18478 full)
18479 use_debug_code="full"
18480 use_debug_define=yes
18481 ;;
18482 *)
18483 use_debug_code="no"
18484 use_debug_define=no
18485 ;;
18486 esac
18487
18488 else case e in #(
18489 e) use_debug_code="no"
18490 use_debug_define=no
18491 ;;
18492 esac
18493 fi
18494
18495
18496 CXXFLAGS=
18497 if test "$use_debug_code" != "no"; then
18498 if test $use_debug_code = "full"; then
18499 CXXFLAGS="-g3 $CXXFLAGS"
18500 else
18501 CXXFLAGS="-g -O2 $CXXFLAGS"
18502 fi
18503 else
18504 CXXFLAGS="-O2 $CXXFLAGS"
18505 fi
18506
18507 if test "$use_debug_define" = "yes"; then
18508 CXXFLAGS="-DDEBUG $CXXFLAGS"
18509 fi
18510
18511
18512
18513 if test $version_type = "windows"; then
18514 SO_WINDOWS="yes"
18515 else
18516 SO_WINDOWS="no"
18517 fi
18518
18519 if test x$SO_WINDOWS = xno; then
18520 BUILD_DEBUGGER_TRUE=
18521 BUILD_DEBUGGER_FALSE='#'
18522 else
18523 BUILD_DEBUGGER_TRUE='#'
18524 BUILD_DEBUGGER_FALSE=
18525 fi
18526
18527
18528
18529 # Extract the first word of "runantlr", so it can be a program name with args.
18530 set dummy runantlr; ac_word=$2
18531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18532 printf %s "checking for $ac_word... " >&6; }
18533 if test ${ac_cv_path_ANTLR_BIN+y}
18534 then :
18535 printf %s "(cached) " >&6
18536 else case e in #(
18537 e) case $ANTLR_BIN in
18538 [\\/]* | ?:[\\/]*)
18539 ac_cv_path_ANTLR_BIN="$ANTLR_BIN" # Let the user override the test with a path.
18540 ;;
18541 *)
18542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18543 for as_dir in $PATH
18544 do
18545 IFS=$as_save_IFS
18546 case $as_dir in #(((
18547 '') as_dir=./ ;;
18548 */) ;;
18549 *) as_dir=$as_dir/ ;;
18550 esac
18551 for ac_exec_ext in '' $ac_executable_extensions; do
18552 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18553 ac_cv_path_ANTLR_BIN="$as_dir$ac_word$ac_exec_ext"
18554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18555 break 2
18556 fi
18557 done
18558 done
18559 IFS=$as_save_IFS
18560
18561 ;;
18562 esac ;;
18563 esac
18564 fi
18565 ANTLR_BIN=$ac_cv_path_ANTLR_BIN
18566 if test -n "$ANTLR_BIN"; then
18567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ANTLR_BIN" >&5
18568 printf "%s\n" "$ANTLR_BIN" >&6; }
18569 else
18570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18571 printf "%s\n" "no" >&6; }
18572 fi
18573
18574
18575
18576 if test "x${ANTLR}" = "x"; then
18577 # Extract the first word of "runantlr", so it can be a program name with args.
18578 set dummy runantlr; ac_word=$2
18579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18580 printf %s "checking for $ac_word... " >&6; }
18581 if test ${ac_cv_path_ANTLR_BIN+y}
18582 then :
18583 printf %s "(cached) " >&6
18584 else case e in #(
18585 e) case $ANTLR_BIN in
18586 [\\/]* | ?:[\\/]*)
18587 ac_cv_path_ANTLR_BIN="$ANTLR_BIN" # Let the user override the test with a path.
18588 ;;
18589 *)
18590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18591 for as_dir in $PATH
18592 do
18593 IFS=$as_save_IFS
18594 case $as_dir in #(((
18595 '') as_dir=./ ;;
18596 */) ;;
18597 *) as_dir=$as_dir/ ;;
18598 esac
18599 for ac_exec_ext in '' $ac_executable_extensions; do
18600 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18601 ac_cv_path_ANTLR_BIN="$as_dir$ac_word$ac_exec_ext"
18602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18603 break 2
18604 fi
18605 done
18606 done
18607 IFS=$as_save_IFS
18608
18609 ;;
18610 esac ;;
18611 esac
18612 fi
18613 ANTLR_BIN=$ac_cv_path_ANTLR_BIN
18614 if test -n "$ANTLR_BIN"; then
18615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ANTLR_BIN" >&5
18616 printf "%s\n" "$ANTLR_BIN" >&6; }
18617 else
18618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18619 printf "%s\n" "no" >&6; }
18620 fi
18621
18622
18623 fi
18624
18625 if test "x${ANTLR_BIN}" = "x"; then
18626 as_fn_error $? "
18627 O programa \"antlr\" (ou runantlr) nao foi encontrado no seu sistema (PATH).
18628 GPT precisa do ANTLR (versao 2.7.x) instalado.
18629 Baixe em: http://www.antlr.org
18630 " "$LINENO" 5
18631 fi
18632
18633 # Extract the first word of "antlr-config", so it can be a program name with args.
18634 set dummy antlr-config; ac_word=$2
18635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18636 printf %s "checking for $ac_word... " >&6; }
18637 if test ${ac_cv_path_ANTLR_CFG+y}
18638 then :
18639 printf %s "(cached) " >&6
18640 else case e in #(
18641 e) case $ANTLR_CFG in
18642 [\\/]* | ?:[\\/]*)
18643 ac_cv_path_ANTLR_CFG="$ANTLR_CFG" # Let the user override the test with a path.
18644 ;;
18645 *)
18646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18647 for as_dir in $PATH
18648 do
18649 IFS=$as_save_IFS
18650 case $as_dir in #(((
18651 '') as_dir=./ ;;
18652 */) ;;
18653 *) as_dir=$as_dir/ ;;
18654 esac
18655 for ac_exec_ext in '' $ac_executable_extensions; do
18656 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18657 ac_cv_path_ANTLR_CFG="$as_dir$ac_word$ac_exec_ext"
18658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18659 break 2
18660 fi
18661 done
18662 done
18663 IFS=$as_save_IFS
18664
18665 ;;
18666 esac ;;
18667 esac
18668 fi
18669 ANTLR_CFG=$ac_cv_path_ANTLR_CFG
18670 if test -n "$ANTLR_CFG"; then
18671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ANTLR_CFG" >&5
18672 printf "%s\n" "$ANTLR_CFG" >&6; }
18673 else
18674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18675 printf "%s\n" "no" >&6; }
18676 fi
18677
18678
18679 if test "x${ANTLR_CFG}" = "x"; then
18680 as_fn_error $? "
18681 O programa \"antlr-config\" nao foi encontrado no seu sistema (PATH).
18682 GPT precisa do ANTLR (versao 2.7.x) instalado.
18683 Baixe em: http://www.antlr.org
18684 " "$LINENO" 5
18685 fi
18686
18687 ANTLR_LIB=`${ANTLR_CFG} --libs`
18688 ANTLR_INC=`${ANTLR_CFG} --cflags`
18689
18690
18691
18692
18693
18694
18695
18696 # AC_MSG_CHECKING(for pcre)
18697
18698 # Extract the first word of "pcre2-config", so it can be a program name with args.
18699 set dummy pcre2-config; ac_word=$2
18700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18701 printf %s "checking for $ac_word... " >&6; }
18702 if test ${ac_cv_prog_has_pcre+y}
18703 then :
18704 printf %s "(cached) " >&6
18705 else case e in #(
18706 e) if test -n "$has_pcre"; then
18707 ac_cv_prog_has_pcre="$has_pcre" # Let the user override the test.
18708 else
18709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18710 for as_dir in $PATH
18711 do
18712 IFS=$as_save_IFS
18713 case $as_dir in #(((
18714 '') as_dir=./ ;;
18715 */) ;;
18716 *) as_dir=$as_dir/ ;;
18717 esac
18718 for ac_exec_ext in '' $ac_executable_extensions; do
18719 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18720 ac_cv_prog_has_pcre="yes"
18721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18722 break 2
18723 fi
18724 done
18725 done
18726 IFS=$as_save_IFS
18727
18728 fi ;;
18729 esac
18730 fi
18731 has_pcre=$ac_cv_prog_has_pcre
18732 if test -n "$has_pcre"; then
18733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pcre" >&5
18734 printf "%s\n" "$has_pcre" >&6; }
18735 else
18736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18737 printf "%s\n" "no" >&6; }
18738 fi
18739
18740
18741
18742 if test "x$has_pcre" = "xyes"; then
18743 PCRE_CONFIG="pcre2-config"
18744 else
18745 as_fn_error $? "
18746 GPT precisa da biblioteca PCRE instalada
18747 Baixe em: http://www.pcre.org/
18748 " "$LINENO" 5
18749 fi
18750
18751 #pcrecpp
18752
18753 PCRE_INC=`${PCRE_CONFIG} --cflags`
18754 PCRE_LIB=`${PCRE_CONFIG} --libs8`
18755
18756
18757
18758
18759
18760 # Check whether --enable-install-devel was given.
18761 if test ${enable_install_devel+y}
18762 then :
18763 enableval=$enable_install_devel; INSTALL_DEVEL="yes"
18764 else case e in #(
18765 e) INSTALL_DEVEL="no"
18766 ;;
18767 esac
18768 fi
18769
18770
18771 if test x$INSTALL_DEVEL = xyes; then
18772 INSTALL_DEVEL_TRUE=
18773 INSTALL_DEVEL_FALSE='#'
18774 else
18775 INSTALL_DEVEL_TRUE='#'
18776 INSTALL_DEVEL_FALSE=
18777 fi
18778
18779
18780
18781
18782 ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile doc/man/Makefile doc/man/pt_BR/Makefile exemplos/Makefile lib/Makefile src/modules/Makefile src/modules/parser/Makefile src/modules/interpreter/Makefile src/modules/c_translator/Makefile src/modules/x86/Makefile"
18783
18784 cat >confcache <<\_ACEOF
18785 # This file is a shell script that caches the results of configure
18786 # tests run on this system so they can be shared between configure
18787 # scripts and configure runs, see configure's option --config-cache.
18788 # It is not useful on other systems. If it contains results you don't
18789 # want to keep, you may remove or edit it.
18790 #
18791 # config.status only pays attention to the cache file if you give it
18792 # the --recheck option to rerun configure.
18793 #
18794 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
18795 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
18796 # following values.
18797
18798 _ACEOF
18799
18800 # The following way of writing the cache mishandles newlines in values,
18801 # but we know of no workaround that is simple, portable, and efficient.
18802 # So, we kill variables containing newlines.
18803 # Ultrix sh set writes to stderr and can't be redirected directly,
18804 # and sets the high bit in the cache file unless we assign to the vars.
18805 (
18806 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18807 eval ac_val=\$$ac_var
18808 case $ac_val in #(
18809 *${as_nl}*)
18810 case $ac_var in #(
18811 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18812 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18813 esac
18814 case $ac_var in #(
18815 _ | IFS | as_nl) ;; #(
18816 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18817 *) { eval $ac_var=; unset $ac_var;} ;;
18818 esac ;;
18819 esac
18820 done
18821
18822 (set) 2>&1 |
18823 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18824 *${as_nl}ac_space=\ *)
18825 # 'set' does not quote correctly, so add quotes: double-quote
18826 # substitution turns \\\\ into \\, and sed turns \\ into \.
18827 sed -n \
18828 "s/'/'\\\\''/g;
18829 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18830 ;; #(
18831 *)
18832 # 'set' quotes correctly as required by POSIX, so do not add quotes.
18833 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18834 ;;
18835 esac |
18836 sort
18837 ) |
18838 sed '
18839 /^ac_cv_env_/b end
18840 t clear
18841 :clear
18842 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
18843 t end
18844 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18845 :end' >>confcache
18846 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18847 if test -w "$cache_file"; then
18848 if test "x$cache_file" != "x/dev/null"; then
18849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18850 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
18851 if test ! -f "$cache_file" || test -h "$cache_file"; then
18852 cat confcache >"$cache_file"
18853 else
18854 case $cache_file in #(
18855 */* | ?:*)
18856 mv -f confcache "$cache_file"$$ &&
18857 mv -f "$cache_file"$$ "$cache_file" ;; #(
18858 *)
18859 mv -f confcache "$cache_file" ;;
18860 esac
18861 fi
18862 fi
18863 else
18864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18865 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
18866 fi
18867 fi
18868 rm -f confcache
18869
18870 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18871 # Let make expand exec_prefix.
18872 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18873
18874 DEFS=-DHAVE_CONFIG_H
18875
18876 ac_libobjs=
18877 ac_ltlibobjs=
18878 U=
18879 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18880 # 1. Remove the extension, and $U if already installed.
18881 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18882 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
18883 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18884 # will be set to the directory where LIBOBJS objects are built.
18885 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18886 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18887 done
18888 LIBOBJS=$ac_libobjs
18889
18890 LTLIBOBJS=$ac_ltlibobjs
18891
18892
18893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18894 printf %s "checking that generated files are newer than configure... " >&6; }
18895 if test -n "$am_sleep_pid"; then
18896 # Hide warnings about reused PIDs.
18897 wait $am_sleep_pid 2>/dev/null
18898 fi
18899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
18900 printf "%s\n" "done" >&6; }
18901 case $enable_silent_rules in # (((
18902 yes) AM_DEFAULT_VERBOSITY=0;;
18903 no) AM_DEFAULT_VERBOSITY=1;;
18904 esac
18905 if test $am_cv_make_support_nested_variables = yes; then
18906 AM_V='$(V)'
18907 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18908 else
18909 AM_V=$AM_DEFAULT_VERBOSITY
18910 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18911 fi
18912
18913 if test -n "$EXEEXT"; then
18914 am__EXEEXT_TRUE=
18915 am__EXEEXT_FALSE='#'
18916 else
18917 am__EXEEXT_TRUE='#'
18918 am__EXEEXT_FALSE=
18919 fi
18920
18921 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18922 as_fn_error $? "conditional \"AMDEP\" was never defined.
18923 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18924 fi
18925 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18926 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18927 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18928 fi
18929 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18930 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18931 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18932 fi
18933 if test -z "${BUILD_DEBUGGER_TRUE}" && test -z "${BUILD_DEBUGGER_FALSE}"; then
18934 as_fn_error $? "conditional \"BUILD_DEBUGGER\" was never defined.
18935 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18936 fi
18937 if test -z "${INSTALL_DEVEL_TRUE}" && test -z "${INSTALL_DEVEL_FALSE}"; then
18938 as_fn_error $? "conditional \"INSTALL_DEVEL\" was never defined.
18939 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18940 fi
18941
18942 : "${CONFIG_STATUS=./config.status}"
18943 ac_write_fail=0
18944 ac_clean_files_save=$ac_clean_files
18945 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18947 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
18948 as_write_fail=0
18949 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18950 #! $SHELL
18951 # Generated by $as_me.
18952 # Run this file to recreate the current configuration.
18953 # Compiler output produced by configure, useful for debugging
18954 # configure, is in config.log if it exists.
18955
18956 debug=false
18957 ac_cs_recheck=false
18958 ac_cs_silent=false
18959
18960 SHELL=\${CONFIG_SHELL-$SHELL}
18961 export SHELL
18962 _ASEOF
18963 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18964 ## -------------------- ##
18965 ## M4sh Initialization. ##
18966 ## -------------------- ##
18967
18968 # Be more Bourne compatible
18969 DUALCASE=1; export DUALCASE # for MKS sh
18970 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
18971 then :
18972 emulate sh
18973 NULLCMD=:
18974 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18975 # is contrary to our usage. Disable this feature.
18976 alias -g '${1+"$@"}'='"$@"'
18977 setopt NO_GLOB_SUBST
18978 else case e in #(
18979 e) case `(set -o) 2>/dev/null` in #(
18980 *posix*) :
18981 set -o posix ;; #(
18982 *) :
18983 ;;
18984 esac ;;
18985 esac
18986 fi
18987
18988
18989
18990 # Reset variables that may have inherited troublesome values from
18991 # the environment.
18992
18993 # IFS needs to be set, to space, tab, and newline, in precisely that order.
18994 # (If _AS_PATH_WALK were called with IFS unset, it would have the
18995 # side effect of setting IFS to empty, thus disabling word splitting.)
18996 # Quoting is to prevent editors from complaining about space-tab.
18997 as_nl='
18998 '
18999 export as_nl
19000 IFS=" "" $as_nl"
19001
19002 PS1='$ '
19003 PS2='> '
19004 PS4='+ '
19005
19006 # Ensure predictable behavior from utilities with locale-dependent output.
19007 LC_ALL=C
19008 export LC_ALL
19009 LANGUAGE=C
19010 export LANGUAGE
19011
19012 # We cannot yet rely on "unset" to work, but we need these variables
19013 # to be unset--not just set to an empty or harmless value--now, to
19014 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
19015 # also avoids known problems related to "unset" and subshell syntax
19016 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19017 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19018 do eval test \${$as_var+y} \
19019 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19020 done
19021
19022 # Ensure that fds 0, 1, and 2 are open.
19023 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19024 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19025 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
19026
19027 # The user is always right.
19028 if ${PATH_SEPARATOR+false} :; then
19029 PATH_SEPARATOR=:
19030 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19031 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19032 PATH_SEPARATOR=';'
19033 }
19034 fi
19035
19036
19037 # Find who we are. Look in the path if we contain no directory separator.
19038 as_myself=
19039 case $0 in #((
19040 *[\\/]* ) as_myself=$0 ;;
19041 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19042 for as_dir in $PATH
19043 do
19044 IFS=$as_save_IFS
19045 case $as_dir in #(((
19046 '') as_dir=./ ;;
19047 */) ;;
19048 *) as_dir=$as_dir/ ;;
19049 esac
19050 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19051 done
19052 IFS=$as_save_IFS
19053
19054 ;;
19055 esac
19056 # We did not find ourselves, most probably we were run as 'sh COMMAND'
19057 # in which case we are not to be found in the path.
19058 if test "x$as_myself" = x; then
19059 as_myself=$0
19060 fi
19061 if test ! -f "$as_myself"; then
19062 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19063 exit 1
19064 fi
19065
19066
19067
19068 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19069 # ----------------------------------------
19070 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19071 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19072 # script with STATUS, using 1 if that was 0.
19073 as_fn_error ()
19074 {
19075 as_status=$1; test $as_status -eq 0 && as_status=1
19076 if test "$4"; then
19077 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19078 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19079 fi
19080 printf "%s\n" "$as_me: error: $2" >&2
19081 as_fn_exit $as_status
19082 } # as_fn_error
19083
19084
19085 # as_fn_set_status STATUS
19086 # -----------------------
19087 # Set $? to STATUS, without forking.
19088 as_fn_set_status ()
19089 {
19090 return $1
19091 } # as_fn_set_status
19092
19093 # as_fn_exit STATUS
19094 # -----------------
19095 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19096 as_fn_exit ()
19097 {
19098 set +e
19099 as_fn_set_status $1
19100 exit $1
19101 } # as_fn_exit
19102
19103 # as_fn_unset VAR
19104 # ---------------
19105 # Portably unset VAR.
19106 as_fn_unset ()
19107 {
19108 { eval $1=; unset $1;}
19109 }
19110 as_unset=as_fn_unset
19111
19112 # as_fn_append VAR VALUE
19113 # ----------------------
19114 # Append the text in VALUE to the end of the definition contained in VAR. Take
19115 # advantage of any shell optimizations that allow amortized linear growth over
19116 # repeated appends, instead of the typical quadratic growth present in naive
19117 # implementations.
19118 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
19119 then :
19120 eval 'as_fn_append ()
19121 {
19122 eval $1+=\$2
19123 }'
19124 else case e in #(
19125 e) as_fn_append ()
19126 {
19127 eval $1=\$$1\$2
19128 } ;;
19129 esac
19130 fi # as_fn_append
19131
19132 # as_fn_arith ARG...
19133 # ------------------
19134 # Perform arithmetic evaluation on the ARGs, and store the result in the
19135 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19136 # must be portable across $(()) and expr.
19137 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
19138 then :
19139 eval 'as_fn_arith ()
19140 {
19141 as_val=$(( $* ))
19142 }'
19143 else case e in #(
19144 e) as_fn_arith ()
19145 {
19146 as_val=`expr "$@" || test $? -eq 1`
19147 } ;;
19148 esac
19149 fi # as_fn_arith
19150
19151
19152 if expr a : '\(a\)' >/dev/null 2>&1 &&
19153 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19154 as_expr=expr
19155 else
19156 as_expr=false
19157 fi
19158
19159 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19160 as_basename=basename
19161 else
19162 as_basename=false
19163 fi
19164
19165 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19166 as_dirname=dirname
19167 else
19168 as_dirname=false
19169 fi
19170
19171 as_me=`$as_basename -- "$0" ||
19172 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19173 X"$0" : 'X\(//\)$' \| \
19174 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19175 printf "%s\n" X/"$0" |
19176 sed '/^.*\/\([^/][^/]*\)\/*$/{
19177 s//\1/
19178 q
19179 }
19180 /^X\/\(\/\/\)$/{
19181 s//\1/
19182 q
19183 }
19184 /^X\/\(\/\).*/{
19185 s//\1/
19186 q
19187 }
19188 s/.*/./; q'`
19189
19190 # Avoid depending upon Character Ranges.
19191 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19192 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19193 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19194 as_cr_digits='0123456789'
19195 as_cr_alnum=$as_cr_Letters$as_cr_digits
19196
19197
19198 # Determine whether it's possible to make 'echo' print without a newline.
19199 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
19200 # for compatibility with existing Makefiles.
19201 ECHO_C= ECHO_N= ECHO_T=
19202 case `echo -n x` in #(((((
19203 -n*)
19204 case `echo 'xy\c'` in
19205 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19206 xy) ECHO_C='\c';;
19207 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19208 ECHO_T=' ';;
19209 esac;;
19210 *)
19211 ECHO_N='-n';;
19212 esac
19213
19214 # For backward compatibility with old third-party macros, we provide
19215 # the shell variables $as_echo and $as_echo_n. New code should use
19216 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
19217 as_echo='printf %s\n'
19218 as_echo_n='printf %s'
19219
19220 rm -f conf$$ conf$$.exe conf$$.file
19221 if test -d conf$$.dir; then
19222 rm -f conf$$.dir/conf$$.file
19223 else
19224 rm -f conf$$.dir
19225 mkdir conf$$.dir 2>/dev/null
19226 fi
19227 if (echo >conf$$.file) 2>/dev/null; then
19228 if ln -s conf$$.file conf$$ 2>/dev/null; then
19229 as_ln_s='ln -s'
19230 # ... but there are two gotchas:
19231 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
19232 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
19233 # In both cases, we have to default to 'cp -pR'.
19234 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19235 as_ln_s='cp -pR'
19236 elif ln conf$$.file conf$$ 2>/dev/null; then
19237 as_ln_s=ln
19238 else
19239 as_ln_s='cp -pR'
19240 fi
19241 else
19242 as_ln_s='cp -pR'
19243 fi
19244 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19245 rmdir conf$$.dir 2>/dev/null
19246
19247
19248 # as_fn_mkdir_p
19249 # -------------
19250 # Create "$as_dir" as a directory, including parents if necessary.
19251 as_fn_mkdir_p ()
19252 {
19253
19254 case $as_dir in #(
19255 -*) as_dir=./$as_dir;;
19256 esac
19257 test -d "$as_dir" || eval $as_mkdir_p || {
19258 as_dirs=
19259 while :; do
19260 case $as_dir in #(
19261 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19262 *) as_qdir=$as_dir;;
19263 esac
19264 as_dirs="'$as_qdir' $as_dirs"
19265 as_dir=`$as_dirname -- "$as_dir" ||
19266 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19267 X"$as_dir" : 'X\(//\)[^/]' \| \
19268 X"$as_dir" : 'X\(//\)$' \| \
19269 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19270 printf "%s\n" X"$as_dir" |
19271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19272 s//\1/
19273 q
19274 }
19275 /^X\(\/\/\)[^/].*/{
19276 s//\1/
19277 q
19278 }
19279 /^X\(\/\/\)$/{
19280 s//\1/
19281 q
19282 }
19283 /^X\(\/\).*/{
19284 s//\1/
19285 q
19286 }
19287 s/.*/./; q'`
19288 test -d "$as_dir" && break
19289 done
19290 test -z "$as_dirs" || eval "mkdir $as_dirs"
19291 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19292
19293
19294 } # as_fn_mkdir_p
19295 if mkdir -p . 2>/dev/null; then
19296 as_mkdir_p='mkdir -p "$as_dir"'
19297 else
19298 test -d ./-p && rmdir ./-p
19299 as_mkdir_p=false
19300 fi
19301
19302
19303 # as_fn_executable_p FILE
19304 # -----------------------
19305 # Test if FILE is an executable regular file.
19306 as_fn_executable_p ()
19307 {
19308 test -f "$1" && test -x "$1"
19309 } # as_fn_executable_p
19310 as_test_x='test -x'
19311 as_executable_p=as_fn_executable_p
19312
19313 # Sed expression to map a string onto a valid CPP name.
19314 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19315 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
19316
19317 # Sed expression to map a string onto a valid variable name.
19318 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19319 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
19320
19321
19322 exec 6>&1
19323 ## ----------------------------------- ##
19324 ## Main body of $CONFIG_STATUS script. ##
19325 ## ----------------------------------- ##
19326 _ASEOF
19327 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19328
19329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19330 # Save the log message, to keep $0 and so on meaningful, and to
19331 # report actual input values of CONFIG_FILES etc. instead of their
19332 # values after options handling.
19333 ac_log="
19334 This file was extended by gpt $as_me 1.2.0, which was
19335 generated by GNU Autoconf 2.72. Invocation command line was
19336
19337 CONFIG_FILES = $CONFIG_FILES
19338 CONFIG_HEADERS = $CONFIG_HEADERS
19339 CONFIG_LINKS = $CONFIG_LINKS
19340 CONFIG_COMMANDS = $CONFIG_COMMANDS
19341 $ $0 $@
19342
19343 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19344 "
19345
19346 _ACEOF
19347
19348 case $ac_config_files in *"
19349 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19350 esac
19351
19352 case $ac_config_headers in *"
19353 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19354 esac
19355
19356
19357 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19358 # Files that config.status was made for.
19359 config_files="$ac_config_files"
19360 config_headers="$ac_config_headers"
19361 config_commands="$ac_config_commands"
19362
19363 _ACEOF
19364
19365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19366 ac_cs_usage="\
19367 '$as_me' instantiates files and other configuration actions
19368 from templates according to the current configuration. Unless the files
19369 and actions are specified as TAGs, all are instantiated by default.
19370
19371 Usage: $0 [OPTION]... [TAG]...
19372
19373 -h, --help print this help, then exit
19374 -V, --version print version number and configuration settings, then exit
19375 --config print configuration, then exit
19376 -q, --quiet, --silent
19377 do not print progress messages
19378 -d, --debug don't remove temporary files
19379 --recheck update $as_me by reconfiguring in the same conditions
19380 --file=FILE[:TEMPLATE]
19381 instantiate the configuration file FILE
19382 --header=FILE[:TEMPLATE]
19383 instantiate the configuration header FILE
19384
19385 Configuration files:
19386 $config_files
19387
19388 Configuration headers:
19389 $config_headers
19390
19391 Configuration commands:
19392 $config_commands
19393
19394 Report bugs to the package provider."
19395
19396 _ACEOF
19397 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
19398 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
19399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19400 ac_cs_config='$ac_cs_config_escaped'
19401 ac_cs_version="\\
19402 gpt config.status 1.2.0
19403 configured by $0, generated by GNU Autoconf 2.72,
19404 with options \\"\$ac_cs_config\\"
19405
19406 Copyright (C) 2023 Free Software Foundation, Inc.
19407 This config.status script is free software; the Free Software Foundation
19408 gives unlimited permission to copy, distribute and modify it."
19409
19410 ac_pwd='$ac_pwd'
19411 srcdir='$srcdir'
19412 INSTALL='$INSTALL'
19413 MKDIR_P='$MKDIR_P'
19414 AWK='$AWK'
19415 test -n "\$AWK" || AWK=awk
19416 _ACEOF
19417
19418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19419 # The default lists apply if the user does not specify any file.
19420 ac_need_defaults=:
19421 while test $# != 0
19422 do
19423 case $1 in
19424 --*=?*)
19425 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19426 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19427 ac_shift=:
19428 ;;
19429 --*=)
19430 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19431 ac_optarg=
19432 ac_shift=:
19433 ;;
19434 *)
19435 ac_option=$1
19436 ac_optarg=$2
19437 ac_shift=shift
19438 ;;
19439 esac
19440
19441 case $ac_option in
19442 # Handling of the options.
19443 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19444 ac_cs_recheck=: ;;
19445 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19446 printf "%s\n" "$ac_cs_version"; exit ;;
19447 --config | --confi | --conf | --con | --co | --c )
19448 printf "%s\n" "$ac_cs_config"; exit ;;
19449 --debug | --debu | --deb | --de | --d | -d )
19450 debug=: ;;
19451 --file | --fil | --fi | --f )
19452 $ac_shift
19453 case $ac_optarg in
19454 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19455 '') as_fn_error $? "missing file argument" ;;
19456 esac
19457 as_fn_append CONFIG_FILES " '$ac_optarg'"
19458 ac_need_defaults=false;;
19459 --header | --heade | --head | --hea )
19460 $ac_shift
19461 case $ac_optarg in
19462 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19463 esac
19464 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19465 ac_need_defaults=false;;
19466 --he | --h)
19467 # Conflict between --help and --header
19468 as_fn_error $? "ambiguous option: '$1'
19469 Try '$0 --help' for more information.";;
19470 --help | --hel | -h )
19471 printf "%s\n" "$ac_cs_usage"; exit ;;
19472 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19473 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19474 ac_cs_silent=: ;;
19475
19476 # This is an error.
19477 -*) as_fn_error $? "unrecognized option: '$1'
19478 Try '$0 --help' for more information." ;;
19479
19480 *) as_fn_append ac_config_targets " $1"
19481 ac_need_defaults=false ;;
19482
19483 esac
19484 shift
19485 done
19486
19487 ac_configure_extra_args=
19488
19489 if $ac_cs_silent; then
19490 exec 6>/dev/null
19491 ac_configure_extra_args="$ac_configure_extra_args --silent"
19492 fi
19493
19494 _ACEOF
19495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19496 if \$ac_cs_recheck; then
19497 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19498 shift
19499 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
19500 CONFIG_SHELL='$SHELL'
19501 export CONFIG_SHELL
19502 exec "\$@"
19503 fi
19504
19505 _ACEOF
19506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19507 exec 5>>config.log
19508 {
19509 echo
19510 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19511 ## Running $as_me. ##
19512 _ASBOX
19513 printf "%s\n" "$ac_log"
19514 } >&5
19515
19516 _ACEOF
19517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19518 #
19519 # INIT-COMMANDS
19520 #
19521 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
19522
19523
19524 # The HP-UX ksh and POSIX shell print the target directory to stdout
19525 # if CDPATH is set.
19526 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19527
19528 sed_quote_subst='$sed_quote_subst'
19529 double_quote_subst='$double_quote_subst'
19530 delay_variable_subst='$delay_variable_subst'
19531 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19532 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19533 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19534 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19535 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19536 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19537 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19538 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19539 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19540 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19541 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19542 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19543 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19544 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19545 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19546 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19547 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19548 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19549 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19550 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19551 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19552 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19553 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19554 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19555 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19556 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19557 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19558 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19559 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19560 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19561 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19562 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19563 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19564 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19565 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
19566 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19567 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19568 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19569 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19570 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19571 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19572 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19573 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19574 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
19575 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19576 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19577 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19578 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19579 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19580 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19581 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19582 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19583 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19584 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19585 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19586 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19587 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19588 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19589 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19590 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19591 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"`'
19592 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19593 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19594 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19595 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19596 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19597 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19598 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19599 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19600 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19601 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19602 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19603 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19604 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19605 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19606 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19607 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19608 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19609 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19610 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19611 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19612 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19613 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19614 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19615 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19616 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19617 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19618 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19619 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19620 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19621 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19622 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19623 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19624 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19625 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19626 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19627 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19628 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19629 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19630 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19631 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19632 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19633 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19634 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19635 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19636 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19637 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19638 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19639 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19640 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19641 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19642 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19643 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19644 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19645 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19646 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19647 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19648 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19649 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19650 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19651 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19652 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19653 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19654 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19655 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19656 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19657 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19658 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19659 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19660 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19661 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19662 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19663 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19664 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19665 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19666 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19667 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19668 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19669 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19670 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19671 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19672 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19673 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19674 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19675 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19676 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19677 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19678 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19679 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19680 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19681 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19682 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19683 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19684 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19685 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19686 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19687 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19688 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19689 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19690 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19691 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19692 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19693 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19694 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19695 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19696 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19697 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19698 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19699 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19700 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19701 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19702 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19703 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19704 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19705 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19706 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19707 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19708 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19709 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19710 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19711 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19712 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19713 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19714 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19715 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19716 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19717 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19718 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19719 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19720 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19721 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19722
19723 LTCC='$LTCC'
19724 LTCFLAGS='$LTCFLAGS'
19725 compiler='$compiler_DEFAULT'
19726
19727 # A function that is used when there is no print builtin or printf.
19728 func_fallback_echo ()
19729 {
19730 eval 'cat <<_LTECHO_EOF
19731 \$1
19732 _LTECHO_EOF'
19733 }
19734
19735 # Quote evaled strings.
19736 for var in SHELL \
19737 ECHO \
19738 PATH_SEPARATOR \
19739 SED \
19740 GREP \
19741 EGREP \
19742 FGREP \
19743 LD \
19744 NM \
19745 LN_S \
19746 lt_SP2NL \
19747 lt_NL2SP \
19748 reload_flag \
19749 FILECMD \
19750 OBJDUMP \
19751 deplibs_check_method \
19752 file_magic_cmd \
19753 file_magic_glob \
19754 want_nocaseglob \
19755 DLLTOOL \
19756 sharedlib_from_linklib_cmd \
19757 AR \
19758 archiver_list_spec \
19759 STRIP \
19760 RANLIB \
19761 CC \
19762 CFLAGS \
19763 compiler \
19764 lt_cv_sys_global_symbol_pipe \
19765 lt_cv_sys_global_symbol_to_cdecl \
19766 lt_cv_sys_global_symbol_to_import \
19767 lt_cv_sys_global_symbol_to_c_name_address \
19768 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19769 lt_cv_nm_interface \
19770 nm_file_list_spec \
19771 lt_cv_truncate_bin \
19772 lt_prog_compiler_no_builtin_flag \
19773 lt_prog_compiler_pic \
19774 lt_prog_compiler_wl \
19775 lt_prog_compiler_static \
19776 lt_cv_prog_compiler_c_o \
19777 need_locks \
19778 MANIFEST_TOOL \
19779 DSYMUTIL \
19780 NMEDIT \
19781 LIPO \
19782 OTOOL \
19783 OTOOL64 \
19784 shrext_cmds \
19785 export_dynamic_flag_spec \
19786 whole_archive_flag_spec \
19787 compiler_needs_object \
19788 with_gnu_ld \
19789 allow_undefined_flag \
19790 no_undefined_flag \
19791 hardcode_libdir_flag_spec \
19792 hardcode_libdir_separator \
19793 exclude_expsyms \
19794 include_expsyms \
19795 file_list_spec \
19796 variables_saved_for_relink \
19797 libname_spec \
19798 library_names_spec \
19799 soname_spec \
19800 install_override_mode \
19801 finish_eval \
19802 old_striplib \
19803 striplib \
19804 compiler_lib_search_dirs \
19805 predep_objects \
19806 postdep_objects \
19807 predeps \
19808 postdeps \
19809 compiler_lib_search_path \
19810 LD_CXX \
19811 reload_flag_CXX \
19812 compiler_CXX \
19813 lt_prog_compiler_no_builtin_flag_CXX \
19814 lt_prog_compiler_pic_CXX \
19815 lt_prog_compiler_wl_CXX \
19816 lt_prog_compiler_static_CXX \
19817 lt_cv_prog_compiler_c_o_CXX \
19818 export_dynamic_flag_spec_CXX \
19819 whole_archive_flag_spec_CXX \
19820 compiler_needs_object_CXX \
19821 with_gnu_ld_CXX \
19822 allow_undefined_flag_CXX \
19823 no_undefined_flag_CXX \
19824 hardcode_libdir_flag_spec_CXX \
19825 hardcode_libdir_separator_CXX \
19826 exclude_expsyms_CXX \
19827 include_expsyms_CXX \
19828 file_list_spec_CXX \
19829 compiler_lib_search_dirs_CXX \
19830 predep_objects_CXX \
19831 postdep_objects_CXX \
19832 predeps_CXX \
19833 postdeps_CXX \
19834 compiler_lib_search_path_CXX; do
19835 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19836 *[\\\\\\\`\\"\\\$]*)
19837 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19838 ;;
19839 *)
19840 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19841 ;;
19842 esac
19843 done
19844
19845 # Double-quote double-evaled strings.
19846 for var in reload_cmds \
19847 old_postinstall_cmds \
19848 old_postuninstall_cmds \
19849 old_archive_cmds \
19850 extract_expsyms_cmds \
19851 old_archive_from_new_cmds \
19852 old_archive_from_expsyms_cmds \
19853 archive_cmds \
19854 archive_expsym_cmds \
19855 module_cmds \
19856 module_expsym_cmds \
19857 export_symbols_cmds \
19858 prelink_cmds \
19859 postlink_cmds \
19860 postinstall_cmds \
19861 postuninstall_cmds \
19862 finish_cmds \
19863 sys_lib_search_path_spec \
19864 configure_time_dlsearch_path \
19865 configure_time_lt_sys_library_path \
19866 reload_cmds_CXX \
19867 old_archive_cmds_CXX \
19868 old_archive_from_new_cmds_CXX \
19869 old_archive_from_expsyms_cmds_CXX \
19870 archive_cmds_CXX \
19871 archive_expsym_cmds_CXX \
19872 module_cmds_CXX \
19873 module_expsym_cmds_CXX \
19874 export_symbols_cmds_CXX \
19875 prelink_cmds_CXX \
19876 postlink_cmds_CXX; do
19877 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19878 *[\\\\\\\`\\"\\\$]*)
19879 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19880 ;;
19881 *)
19882 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19883 ;;
19884 esac
19885 done
19886
19887 ac_aux_dir='$ac_aux_dir'
19888
19889 # See if we are running on zsh, and set the options that allow our
19890 # commands through without removal of \ escapes INIT.
19891 if test -n "\${ZSH_VERSION+set}"; then
19892 setopt NO_GLOB_SUBST
19893 fi
19894
19895
19896 PACKAGE='$PACKAGE'
19897 VERSION='$VERSION'
19898 RM='$RM'
19899 ofile='$ofile'
19900
19901
19902
19903
19904
19905
19906 _ACEOF
19907
19908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19909
19910 # Handling of arguments.
19911 for ac_config_target in $ac_config_targets
19912 do
19913 case $ac_config_target in
19914 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19915 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19916 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19917 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19918 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19919 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19920 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
19921 "doc/man/pt_BR/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/pt_BR/Makefile" ;;
19922 "exemplos/Makefile") CONFIG_FILES="$CONFIG_FILES exemplos/Makefile" ;;
19923 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
19924 "src/modules/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/Makefile" ;;
19925 "src/modules/parser/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/parser/Makefile" ;;
19926 "src/modules/interpreter/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/interpreter/Makefile" ;;
19927 "src/modules/c_translator/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/c_translator/Makefile" ;;
19928 "src/modules/x86/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/x86/Makefile" ;;
19929
19930 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
19931 esac
19932 done
19933
19934
19935 # If the user did not use the arguments to specify the items to instantiate,
19936 # then the envvar interface is used. Set only those that are not.
19937 # We use the long form for the default assignment because of an extremely
19938 # bizarre bug on SunOS 4.1.3.
19939 if $ac_need_defaults; then
19940 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
19941 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
19942 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
19943 fi
19944
19945 # Have a temporary directory for convenience. Make it in the build tree
19946 # simply because there is no reason against having it here, and in addition,
19947 # creating and moving files from /tmp can sometimes cause problems.
19948 # Hook for its removal unless debugging.
19949 # Note that there is a small window in which the directory will not be cleaned:
19950 # after its creation but before its name has been assigned to '$tmp'.
19951 $debug ||
19952 {
19953 tmp= ac_tmp=
19954 trap 'exit_status=$?
19955 : "${ac_tmp:=$tmp}"
19956 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19957 ' 0
19958 trap 'as_fn_exit 1' 1 2 13 15
19959 }
19960 # Create a (secure) tmp directory for tmp files.
19961
19962 {
19963 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19964 test -d "$tmp"
19965 } ||
19966 {
19967 tmp=./conf$$-$RANDOM
19968 (umask 077 && mkdir "$tmp")
19969 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19970 ac_tmp=$tmp
19971
19972 # Set up the scripts for CONFIG_FILES section.
19973 # No need to generate them if there are no CONFIG_FILES.
19974 # This happens for instance with './config.status config.h'.
19975 if test -n "$CONFIG_FILES"; then
19976
19977
19978 ac_cr=`echo X | tr X '\015'`
19979 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19980 # But we know of no other shell where ac_cr would be empty at this
19981 # point, so we can use a bashism as a fallback.
19982 if test "x$ac_cr" = x; then
19983 eval ac_cr=\$\'\\r\'
19984 fi
19985 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19986 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19987 ac_cs_awk_cr='\\r'
19988 else
19989 ac_cs_awk_cr=$ac_cr
19990 fi
19991
19992 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19993 _ACEOF
19994
19995
19996 {
19997 echo "cat >conf$$subs.awk <<_ACEOF" &&
19998 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19999 echo "_ACEOF"
20000 } >conf$$subs.sh ||
20001 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20002 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20003 ac_delim='%!_!# '
20004 for ac_last_try in false false false false false :; do
20005 . ./conf$$subs.sh ||
20006 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20007
20008 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20009 if test $ac_delim_n = $ac_delim_num; then
20010 break
20011 elif $ac_last_try; then
20012 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20013 else
20014 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20015 fi
20016 done
20017 rm -f conf$$subs.sh
20018
20019 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20020 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20021 _ACEOF
20022 sed -n '
20023 h
20024 s/^/S["/; s/!.*/"]=/
20025 p
20026 g
20027 s/^[^!]*!//
20028 :repl
20029 t repl
20030 s/'"$ac_delim"'$//
20031 t delim
20032 :nl
20033 h
20034 s/\(.\{148\}\)..*/\1/
20035 t more1
20036 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20037 p
20038 n
20039 b repl
20040 :more1
20041 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20042 p
20043 g
20044 s/.\{148\}//
20045 t nl
20046 :delim
20047 h
20048 s/\(.\{148\}\)..*/\1/
20049 t more2
20050 s/["\\]/\\&/g; s/^/"/; s/$/"/
20051 p
20052 b
20053 :more2
20054 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20055 p
20056 g
20057 s/.\{148\}//
20058 t delim
20059 ' <conf$$subs.awk | sed '
20060 /^[^""]/{
20061 N
20062 s/\n//
20063 }
20064 ' >>$CONFIG_STATUS || ac_write_fail=1
20065 rm -f conf$$subs.awk
20066 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20067 _ACAWK
20068 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20069 for (key in S) S_is_set[key] = 1
20070 FS = ""
20071
20072 }
20073 {
20074 line = $ 0
20075 nfields = split(line, field, "@")
20076 substed = 0
20077 len = length(field[1])
20078 for (i = 2; i < nfields; i++) {
20079 key = field[i]
20080 keylen = length(key)
20081 if (S_is_set[key]) {
20082 value = S[key]
20083 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20084 len += length(value) + length(field[++i])
20085 substed = 1
20086 } else
20087 len += 1 + keylen
20088 }
20089
20090 print line
20091 }
20092
20093 _ACAWK
20094 _ACEOF
20095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20096 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20097 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20098 else
20099 cat
20100 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20101 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20102 _ACEOF
20103
20104 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20105 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20106 # trailing colons and then remove the whole line if VPATH becomes empty
20107 # (actually we leave an empty line to preserve line numbers).
20108 if test "x$srcdir" = x.; then
20109 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20110 h
20111 s///
20112 s/^/:/
20113 s/[ ]*$/:/
20114 s/:\$(srcdir):/:/g
20115 s/:\${srcdir}:/:/g
20116 s/:@srcdir@:/:/g
20117 s/^:*//
20118 s/:*$//
20119 x
20120 s/\(=[ ]*\).*/\1/
20121 G
20122 s/\n//
20123 s/^[^=]*=[ ]*$//
20124 }'
20125 fi
20126
20127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20128 fi # test -n "$CONFIG_FILES"
20129
20130 # Set up the scripts for CONFIG_HEADERS section.
20131 # No need to generate them if there are no CONFIG_HEADERS.
20132 # This happens for instance with './config.status Makefile'.
20133 if test -n "$CONFIG_HEADERS"; then
20134 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20135 BEGIN {
20136 _ACEOF
20137
20138 # Transform confdefs.h into an awk script 'defines.awk', embedded as
20139 # here-document in config.status, that substitutes the proper values into
20140 # config.h.in to produce config.h.
20141
20142 # Create a delimiter string that does not exist in confdefs.h, to ease
20143 # handling of long lines.
20144 ac_delim='%!_!# '
20145 for ac_last_try in false false :; do
20146 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20147 if test -z "$ac_tt"; then
20148 break
20149 elif $ac_last_try; then
20150 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20151 else
20152 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20153 fi
20154 done
20155
20156 # For the awk script, D is an array of macro values keyed by name,
20157 # likewise P contains macro parameters if any. Preserve backslash
20158 # newline sequences.
20159
20160 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20161 sed -n '
20162 s/.\{148\}/&'"$ac_delim"'/g
20163 t rset
20164 :rset
20165 s/^[ ]*#[ ]*define[ ][ ]*/ /
20166 t def
20167 d
20168 :def
20169 s/\\$//
20170 t bsnl
20171 s/["\\]/\\&/g
20172 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20173 D["\1"]=" \3"/p
20174 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20175 d
20176 :bsnl
20177 s/["\\]/\\&/g
20178 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20179 D["\1"]=" \3\\\\\\n"\\/p
20180 t cont
20181 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20182 t cont
20183 d
20184 :cont
20185 n
20186 s/.\{148\}/&'"$ac_delim"'/g
20187 t clear
20188 :clear
20189 s/\\$//
20190 t bsnlc
20191 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20192 d
20193 :bsnlc
20194 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20195 b cont
20196 ' <confdefs.h | sed '
20197 s/'"$ac_delim"'/"\\\
20198 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20199
20200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20201 for (key in D) D_is_set[key] = 1
20202 FS = ""
20203 }
20204 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20205 line = \$ 0
20206 split(line, arg, " ")
20207 if (arg[1] == "#") {
20208 defundef = arg[2]
20209 mac1 = arg[3]
20210 } else {
20211 defundef = substr(arg[1], 2)
20212 mac1 = arg[2]
20213 }
20214 split(mac1, mac2, "(") #)
20215 macro = mac2[1]
20216 prefix = substr(line, 1, index(line, defundef) - 1)
20217 if (D_is_set[macro]) {
20218 # Preserve the white space surrounding the "#".
20219 print prefix "define", macro P[macro] D[macro]
20220 next
20221 } else {
20222 # Replace #undef with comments. This is necessary, for example,
20223 # in the case of _POSIX_SOURCE, which is predefined and required
20224 # on some systems where configure will not decide to define it.
20225 if (defundef == "undef") {
20226 print "/*", prefix defundef, macro, "*/"
20227 next
20228 }
20229 }
20230 }
20231 { print }
20232 _ACAWK
20233 _ACEOF
20234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20235 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20236 fi # test -n "$CONFIG_HEADERS"
20237
20238
20239 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20240 shift
20241 for ac_tag
20242 do
20243 case $ac_tag in
20244 :[FHLC]) ac_mode=$ac_tag; continue;;
20245 esac
20246 case $ac_mode$ac_tag in
20247 :[FHL]*:*);;
20248 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
20249 :[FH]-) ac_tag=-:-;;
20250 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20251 esac
20252 ac_save_IFS=$IFS
20253 IFS=:
20254 set x $ac_tag
20255 IFS=$ac_save_IFS
20256 shift
20257 ac_file=$1
20258 shift
20259
20260 case $ac_mode in
20261 :L) ac_source=$1;;
20262 :[FH])
20263 ac_file_inputs=
20264 for ac_f
20265 do
20266 case $ac_f in
20267 -) ac_f="$ac_tmp/stdin";;
20268 *) # Look for the file first in the build tree, then in the source tree
20269 # (if the path is not absolute). The absolute path cannot be DOS-style,
20270 # because $ac_f cannot contain ':'.
20271 test -f "$ac_f" ||
20272 case $ac_f in
20273 [\\/$]*) false;;
20274 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20275 esac ||
20276 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
20277 esac
20278 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20279 as_fn_append ac_file_inputs " '$ac_f'"
20280 done
20281
20282 # Let's still pretend it is 'configure' which instantiates (i.e., don't
20283 # use $as_me), people would be surprised to read:
20284 # /* config.h. Generated by config.status. */
20285 configure_input='Generated from '`
20286 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20287 `' by configure.'
20288 if test x"$ac_file" != x-; then
20289 configure_input="$ac_file. $configure_input"
20290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20291 printf "%s\n" "$as_me: creating $ac_file" >&6;}
20292 fi
20293 # Neutralize special characters interpreted by sed in replacement strings.
20294 case $configure_input in #(
20295 *\&* | *\|* | *\\* )
20296 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
20297 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20298 *) ac_sed_conf_input=$configure_input;;
20299 esac
20300
20301 case $ac_tag in
20302 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20303 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20304 esac
20305 ;;
20306 esac
20307
20308 ac_dir=`$as_dirname -- "$ac_file" ||
20309 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20310 X"$ac_file" : 'X\(//\)[^/]' \| \
20311 X"$ac_file" : 'X\(//\)$' \| \
20312 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20313 printf "%s\n" X"$ac_file" |
20314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20315 s//\1/
20316 q
20317 }
20318 /^X\(\/\/\)[^/].*/{
20319 s//\1/
20320 q
20321 }
20322 /^X\(\/\/\)$/{
20323 s//\1/
20324 q
20325 }
20326 /^X\(\/\).*/{
20327 s//\1/
20328 q
20329 }
20330 s/.*/./; q'`
20331 as_dir="$ac_dir"; as_fn_mkdir_p
20332 ac_builddir=.
20333
20334 case "$ac_dir" in
20335 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20336 *)
20337 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
20338 # A ".." for each directory in $ac_dir_suffix.
20339 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20340 case $ac_top_builddir_sub in
20341 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20342 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20343 esac ;;
20344 esac
20345 ac_abs_top_builddir=$ac_pwd
20346 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20347 # for backward compatibility:
20348 ac_top_builddir=$ac_top_build_prefix
20349
20350 case $srcdir in
20351 .) # We are building in place.
20352 ac_srcdir=.
20353 ac_top_srcdir=$ac_top_builddir_sub
20354 ac_abs_top_srcdir=$ac_pwd ;;
20355 [\\/]* | ?:[\\/]* ) # Absolute name.
20356 ac_srcdir=$srcdir$ac_dir_suffix;
20357 ac_top_srcdir=$srcdir
20358 ac_abs_top_srcdir=$srcdir ;;
20359 *) # Relative name.
20360 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20361 ac_top_srcdir=$ac_top_build_prefix$srcdir
20362 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20363 esac
20364 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20365
20366
20367 case $ac_mode in
20368 :F)
20369 #
20370 # CONFIG_FILE
20371 #
20372
20373 case $INSTALL in
20374 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20375 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20376 esac
20377 ac_MKDIR_P=$MKDIR_P
20378 case $MKDIR_P in
20379 [\\/$]* | ?:[\\/]* ) ;;
20380 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20381 esac
20382 _ACEOF
20383
20384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20385 # If the template does not know about datarootdir, expand it.
20386 # FIXME: This hack should be removed a few years after 2.60.
20387 ac_datarootdir_hack=; ac_datarootdir_seen=
20388 ac_sed_dataroot='
20389 /datarootdir/ {
20390 p
20391 q
20392 }
20393 /@datadir@/p
20394 /@docdir@/p
20395 /@infodir@/p
20396 /@localedir@/p
20397 /@mandir@/p'
20398 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20399 *datarootdir*) ac_datarootdir_seen=yes;;
20400 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20402 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20403 _ACEOF
20404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20405 ac_datarootdir_hack='
20406 s&@datadir@&$datadir&g
20407 s&@docdir@&$docdir&g
20408 s&@infodir@&$infodir&g
20409 s&@localedir@&$localedir&g
20410 s&@mandir@&$mandir&g
20411 s&\\\${datarootdir}&$datarootdir&g' ;;
20412 esac
20413 _ACEOF
20414
20415 # Neutralize VPATH when '$srcdir' = '.'.
20416 # Shell code in configure.ac might set extrasub.
20417 # FIXME: do we really want to maintain this feature?
20418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20419 ac_sed_extra="$ac_vpsub
20420 $extrasub
20421 _ACEOF
20422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20423 :t
20424 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20425 s|@configure_input@|$ac_sed_conf_input|;t t
20426 s&@top_builddir@&$ac_top_builddir_sub&;t t
20427 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20428 s&@srcdir@&$ac_srcdir&;t t
20429 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20430 s&@top_srcdir@&$ac_top_srcdir&;t t
20431 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20432 s&@builddir@&$ac_builddir&;t t
20433 s&@abs_builddir@&$ac_abs_builddir&;t t
20434 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20435 s&@INSTALL@&$ac_INSTALL&;t t
20436 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20437 $ac_datarootdir_hack
20438 "
20439 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20440 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20441
20442 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20443 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20444 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20445 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
20447 which seems to be undefined. Please make sure it is defined" >&5
20448 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
20449 which seems to be undefined. Please make sure it is defined" >&2;}
20450
20451 rm -f "$ac_tmp/stdin"
20452 case $ac_file in
20453 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20454 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20455 esac \
20456 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20457 ;;
20458 :H)
20459 #
20460 # CONFIG_HEADER
20461 #
20462 if test x"$ac_file" != x-; then
20463 {
20464 printf "%s\n" "/* $configure_input */" >&1 \
20465 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20466 } >"$ac_tmp/config.h" \
20467 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20468 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20470 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
20471 else
20472 rm -f "$ac_file"
20473 mv "$ac_tmp/config.h" "$ac_file" \
20474 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20475 fi
20476 else
20477 printf "%s\n" "/* $configure_input */" >&1 \
20478 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20479 || as_fn_error $? "could not create -" "$LINENO" 5
20480 fi
20481 # Compute "$ac_file"'s index in $config_headers.
20482 _am_arg="$ac_file"
20483 _am_stamp_count=1
20484 for _am_header in $config_headers :; do
20485 case $_am_header in
20486 $_am_arg | $_am_arg:* )
20487 break ;;
20488 * )
20489 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20490 esac
20491 done
20492 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20493 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20494 X"$_am_arg" : 'X\(//\)[^/]' \| \
20495 X"$_am_arg" : 'X\(//\)$' \| \
20496 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20497 printf "%s\n" X"$_am_arg" |
20498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20499 s//\1/
20500 q
20501 }
20502 /^X\(\/\/\)[^/].*/{
20503 s//\1/
20504 q
20505 }
20506 /^X\(\/\/\)$/{
20507 s//\1/
20508 q
20509 }
20510 /^X\(\/\).*/{
20511 s//\1/
20512 q
20513 }
20514 s/.*/./; q'`/stamp-h$_am_stamp_count
20515 ;;
20516
20517 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20518 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
20519 ;;
20520 esac
20521
20522
20523 case $ac_file$ac_mode in
20524 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20525 # Older Autoconf quotes --file arguments for eval, but not when files
20526 # are listed without --file. Let's play safe and only enable the eval
20527 # if we detect the quoting.
20528 # TODO: see whether this extra hack can be removed once we start
20529 # requiring Autoconf 2.70 or later.
20530 case $CONFIG_FILES in #(
20531 *\'*) :
20532 eval set x "$CONFIG_FILES" ;; #(
20533 *) :
20534 set x $CONFIG_FILES ;; #(
20535 *) :
20536 ;;
20537 esac
20538 shift
20539 # Used to flag and report bootstrapping failures.
20540 am_rc=0
20541 for am_mf
20542 do
20543 # Strip MF so we end up with the name of the file.
20544 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
20545 # Check whether this is an Automake generated Makefile which includes
20546 # dependency-tracking related rules and includes.
20547 # Grep'ing the whole file directly is not great: AIX grep has a line
20548 # limit of 2048, but all sed's we know have understand at least 4000.
20549 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20550 || continue
20551 am_dirpart=`$as_dirname -- "$am_mf" ||
20552 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20553 X"$am_mf" : 'X\(//\)[^/]' \| \
20554 X"$am_mf" : 'X\(//\)$' \| \
20555 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20556 printf "%s\n" X"$am_mf" |
20557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20558 s//\1/
20559 q
20560 }
20561 /^X\(\/\/\)[^/].*/{
20562 s//\1/
20563 q
20564 }
20565 /^X\(\/\/\)$/{
20566 s//\1/
20567 q
20568 }
20569 /^X\(\/\).*/{
20570 s//\1/
20571 q
20572 }
20573 s/.*/./; q'`
20574 am_filepart=`$as_basename -- "$am_mf" ||
20575 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
20576 X"$am_mf" : 'X\(//\)$' \| \
20577 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20578 printf "%s\n" X/"$am_mf" |
20579 sed '/^.*\/\([^/][^/]*\)\/*$/{
20580 s//\1/
20581 q
20582 }
20583 /^X\/\(\/\/\)$/{
20584 s//\1/
20585 q
20586 }
20587 /^X\/\(\/\).*/{
20588 s//\1/
20589 q
20590 }
20591 s/.*/./; q'`
20592 { echo "$as_me:$LINENO: cd "$am_dirpart" \
20593 && sed -e '/# am--include-marker/d' "$am_filepart" \
20594 | $MAKE -f - am--depfiles" >&5
20595 (cd "$am_dirpart" \
20596 && sed -e '/# am--include-marker/d' "$am_filepart" \
20597 | $MAKE -f - am--depfiles) >&5 2>&5
20598 ac_status=$?
20599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600 (exit $ac_status); } || am_rc=$?
20601 done
20602 if test $am_rc -ne 0; then
20603 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20604 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20605 as_fn_error $? "Something went wrong bootstrapping makefile fragments
20606 for automatic dependency tracking. If GNU make was not used, consider
20607 re-running the configure script with MAKE=\"gmake\" (or whatever is
20608 necessary). You can also try re-running configure with the
20609 '--disable-dependency-tracking' option to at least be able to build
20610 the package (albeit without support for automatic dependency tracking).
20611 See 'config.log' for more details" "$LINENO" 5; }
20612 fi
20613 { am_dirpart=; unset am_dirpart;}
20614 { am_filepart=; unset am_filepart;}
20615 { am_mf=; unset am_mf;}
20616 { am_rc=; unset am_rc;}
20617 rm -f conftest-deps.mk
20618 }
20619 ;;
20620 "libtool":C)
20621
20622 # See if we are running on zsh, and set the options that allow our
20623 # commands through without removal of \ escapes.
20624 if test -n "${ZSH_VERSION+set}"; then
20625 setopt NO_GLOB_SUBST
20626 fi
20627
20628 cfgfile=${ofile}T
20629 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20630 $RM "$cfgfile"
20631
20632 cat <<_LT_EOF >> "$cfgfile"
20633 #! $SHELL
20634 # Generated automatically by $as_me ($PACKAGE) $VERSION
20635 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20636
20637 # Provide generalized library-building support services.
20638 # Written by Gordon Matzigkeit, 1996
20639
20640 # Copyright (C) 2024 Free Software Foundation, Inc.
20641 # This is free software; see the source for copying conditions. There is NO
20642 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20643
20644 # GNU Libtool is free software; you can redistribute it and/or modify
20645 # it under the terms of the GNU General Public License as published by
20646 # the Free Software Foundation; either version 2 of the License, or
20647 # (at your option) any later version.
20648 #
20649 # As a special exception to the GNU General Public License, if you
20650 # distribute this file as part of a program or library that is built
20651 # using GNU Libtool, you may include this file under the same
20652 # distribution terms that you use for the rest of that program.
20653 #
20654 # GNU Libtool is distributed in the hope that it will be useful, but
20655 # WITHOUT ANY WARRANTY; without even the implied warranty of
20656 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20657 # GNU General Public License for more details.
20658 #
20659 # You should have received a copy of the GNU General Public License
20660 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20661
20662
20663 # The names of the tagged configurations supported by this script.
20664 available_tags='CXX '
20665
20666 # Configured defaults for sys_lib_dlsearch_path munging.
20667 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20668
20669 # ### BEGIN LIBTOOL CONFIG
20670
20671 # Which release of libtool.m4 was used?
20672 macro_version=$macro_version
20673 macro_revision=$macro_revision
20674
20675 # Whether or not to build shared libraries.
20676 build_libtool_libs=$enable_shared
20677
20678 # Whether or not to build static libraries.
20679 build_old_libs=$enable_static
20680
20681 # What type of objects to build.
20682 pic_mode=$pic_mode
20683
20684 # Whether or not to optimize for fast installation.
20685 fast_install=$enable_fast_install
20686
20687 # Shared archive member basename,for filename based shared library versioning on AIX.
20688 shared_archive_member_spec=$shared_archive_member_spec
20689
20690 # Shell to use when invoking shell scripts.
20691 SHELL=$lt_SHELL
20692
20693 # An echo program that protects backslashes.
20694 ECHO=$lt_ECHO
20695
20696 # The PATH separator for the build system.
20697 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20698
20699 # The host system.
20700 host_alias=$host_alias
20701 host=$host
20702 host_os=$host_os
20703
20704 # The build system.
20705 build_alias=$build_alias
20706 build=$build
20707 build_os=$build_os
20708
20709 # A sed program that does not truncate output.
20710 SED=$lt_SED
20711
20712 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20713 Xsed="\$SED -e 1s/^X//"
20714
20715 # A grep program that handles long lines.
20716 GREP=$lt_GREP
20717
20718 # An ERE matcher.
20719 EGREP=$lt_EGREP
20720
20721 # A literal string matcher.
20722 FGREP=$lt_FGREP
20723
20724 # A BSD- or MS-compatible name lister.
20725 NM=$lt_NM
20726
20727 # Whether we need soft or hard links.
20728 LN_S=$lt_LN_S
20729
20730 # What is the maximum length of a command?
20731 max_cmd_len=$max_cmd_len
20732
20733 # Object file suffix (normally "o").
20734 objext=$ac_objext
20735
20736 # Executable file suffix (normally "").
20737 exeext=$exeext
20738
20739 # whether the shell understands "unset".
20740 lt_unset=$lt_unset
20741
20742 # turn spaces into newlines.
20743 SP2NL=$lt_lt_SP2NL
20744
20745 # turn newlines into spaces.
20746 NL2SP=$lt_lt_NL2SP
20747
20748 # convert \$build file names to \$host format.
20749 to_host_file_cmd=$lt_cv_to_host_file_cmd
20750
20751 # convert \$build files to toolchain format.
20752 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20753
20754 # A file(cmd) program that detects file types.
20755 FILECMD=$lt_FILECMD
20756
20757 # An object symbol dumper.
20758 OBJDUMP=$lt_OBJDUMP
20759
20760 # Method to check whether dependent libraries are shared objects.
20761 deplibs_check_method=$lt_deplibs_check_method
20762
20763 # Command to use when deplibs_check_method = "file_magic".
20764 file_magic_cmd=$lt_file_magic_cmd
20765
20766 # How to find potential files when deplibs_check_method = "file_magic".
20767 file_magic_glob=$lt_file_magic_glob
20768
20769 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20770 want_nocaseglob=$lt_want_nocaseglob
20771
20772 # DLL creation program.
20773 DLLTOOL=$lt_DLLTOOL
20774
20775 # Command to associate shared and link libraries.
20776 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20777
20778 # The archiver.
20779 AR=$lt_AR
20780
20781 # Flags to create an archive (by configure).
20782 lt_ar_flags=$lt_ar_flags
20783
20784 # Flags to create an archive.
20785 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
20786
20787 # How to feed a file listing to the archiver.
20788 archiver_list_spec=$lt_archiver_list_spec
20789
20790 # A symbol stripping program.
20791 STRIP=$lt_STRIP
20792
20793 # Commands used to install an old-style archive.
20794 RANLIB=$lt_RANLIB
20795 old_postinstall_cmds=$lt_old_postinstall_cmds
20796 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20797
20798 # Whether to use a lock for old archive extraction.
20799 lock_old_archive_extraction=$lock_old_archive_extraction
20800
20801 # A C compiler.
20802 LTCC=$lt_CC
20803
20804 # LTCC compiler flags.
20805 LTCFLAGS=$lt_CFLAGS
20806
20807 # Take the output of nm and produce a listing of raw symbols and C names.
20808 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20809
20810 # Transform the output of nm in a proper C declaration.
20811 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20812
20813 # Transform the output of nm into a list of symbols to manually relocate.
20814 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20815
20816 # Transform the output of nm in a C name address pair.
20817 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20818
20819 # Transform the output of nm in a C name address pair when lib prefix is needed.
20820 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20821
20822 # The name lister interface.
20823 nm_interface=$lt_lt_cv_nm_interface
20824
20825 # Specify filename containing input files for \$NM.
20826 nm_file_list_spec=$lt_nm_file_list_spec
20827
20828 # The root where to search for dependent libraries,and where our libraries should be installed.
20829 lt_sysroot=$lt_sysroot
20830
20831 # Command to truncate a binary pipe.
20832 lt_truncate_bin=$lt_lt_cv_truncate_bin
20833
20834 # The name of the directory that contains temporary libtool files.
20835 objdir=$objdir
20836
20837 # Used to examine libraries when file_magic_cmd begins with "file".
20838 MAGIC_CMD=$MAGIC_CMD
20839
20840 # Must we lock files when doing compilation?
20841 need_locks=$lt_need_locks
20842
20843 # Manifest tool.
20844 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20845
20846 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20847 DSYMUTIL=$lt_DSYMUTIL
20848
20849 # Tool to change global to local symbols on Mac OS X.
20850 NMEDIT=$lt_NMEDIT
20851
20852 # Tool to manipulate fat objects and archives on Mac OS X.
20853 LIPO=$lt_LIPO
20854
20855 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20856 OTOOL=$lt_OTOOL
20857
20858 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20859 OTOOL64=$lt_OTOOL64
20860
20861 # Old archive suffix (normally "a").
20862 libext=$libext
20863
20864 # Shared library suffix (normally ".so").
20865 shrext_cmds=$lt_shrext_cmds
20866
20867 # The commands to extract the exported symbol list from a shared archive.
20868 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20869
20870 # Variables whose values should be saved in libtool wrapper scripts and
20871 # restored at link time.
20872 variables_saved_for_relink=$lt_variables_saved_for_relink
20873
20874 # Do we need the "lib" prefix for modules?
20875 need_lib_prefix=$need_lib_prefix
20876
20877 # Do we need a version for libraries?
20878 need_version=$need_version
20879
20880 # Library versioning type.
20881 version_type=$version_type
20882
20883 # Shared library runtime path variable.
20884 runpath_var=$runpath_var
20885
20886 # Shared library path variable.
20887 shlibpath_var=$shlibpath_var
20888
20889 # Is shlibpath searched before the hard-coded library search path?
20890 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20891
20892 # Format of library name prefix.
20893 libname_spec=$lt_libname_spec
20894
20895 # List of archive names. First name is the real one, the rest are links.
20896 # The last name is the one that the linker finds with -lNAME
20897 library_names_spec=$lt_library_names_spec
20898
20899 # The coded name of the library, if different from the real name.
20900 soname_spec=$lt_soname_spec
20901
20902 # Permission mode override for installation of shared libraries.
20903 install_override_mode=$lt_install_override_mode
20904
20905 # Command to use after installation of a shared archive.
20906 postinstall_cmds=$lt_postinstall_cmds
20907
20908 # Command to use after uninstallation of a shared archive.
20909 postuninstall_cmds=$lt_postuninstall_cmds
20910
20911 # Commands used to finish a libtool library installation in a directory.
20912 finish_cmds=$lt_finish_cmds
20913
20914 # As "finish_cmds", except a single script fragment to be evaled but
20915 # not shown.
20916 finish_eval=$lt_finish_eval
20917
20918 # Whether we should hardcode library paths into libraries.
20919 hardcode_into_libs=$hardcode_into_libs
20920
20921 # Compile-time system search path for libraries.
20922 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20923
20924 # Detected run-time system search path for libraries.
20925 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20926
20927 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20928 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20929
20930 # Whether dlopen is supported.
20931 dlopen_support=$enable_dlopen
20932
20933 # Whether dlopen of programs is supported.
20934 dlopen_self=$enable_dlopen_self
20935
20936 # Whether dlopen of statically linked programs is supported.
20937 dlopen_self_static=$enable_dlopen_self_static
20938
20939 # Commands to strip libraries.
20940 old_striplib=$lt_old_striplib
20941 striplib=$lt_striplib
20942
20943
20944 # The linker used to build libraries.
20945 LD=$lt_LD
20946
20947 # How to create reloadable object files.
20948 reload_flag=$lt_reload_flag
20949 reload_cmds=$lt_reload_cmds
20950
20951 # Commands used to build an old-style archive.
20952 old_archive_cmds=$lt_old_archive_cmds
20953
20954 # A language specific compiler.
20955 CC=$lt_compiler
20956
20957 # Is the compiler the GNU compiler?
20958 with_gcc=$GCC
20959
20960 # Compiler flag to turn off builtin functions.
20961 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20962
20963 # Additional compiler flags for building library objects.
20964 pic_flag=$lt_lt_prog_compiler_pic
20965
20966 # How to pass a linker flag through the compiler.
20967 wl=$lt_lt_prog_compiler_wl
20968
20969 # Compiler flag to prevent dynamic linking.
20970 link_static_flag=$lt_lt_prog_compiler_static
20971
20972 # Does compiler simultaneously support -c and -o options?
20973 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20974
20975 # Whether or not to add -lc for building shared libraries.
20976 build_libtool_need_lc=$archive_cmds_need_lc
20977
20978 # Whether or not to disallow shared libs when runtime libs are static.
20979 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20980
20981 # Compiler flag to allow reflexive dlopens.
20982 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20983
20984 # Compiler flag to generate shared objects directly from archives.
20985 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20986
20987 # Whether the compiler copes with passing no objects directly.
20988 compiler_needs_object=$lt_compiler_needs_object
20989
20990 # Create an old-style archive from a shared archive.
20991 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20992
20993 # Create a temporary old-style archive to link instead of a shared archive.
20994 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20995
20996 # Commands used to build a shared archive.
20997 archive_cmds=$lt_archive_cmds
20998 archive_expsym_cmds=$lt_archive_expsym_cmds
20999
21000 # Commands used to build a loadable module if different from building
21001 # a shared archive.
21002 module_cmds=$lt_module_cmds
21003 module_expsym_cmds=$lt_module_expsym_cmds
21004
21005 # Whether we are building with GNU ld or not.
21006 with_gnu_ld=$lt_with_gnu_ld
21007
21008 # Flag that allows shared libraries with undefined symbols to be built.
21009 allow_undefined_flag=$lt_allow_undefined_flag
21010
21011 # Flag that enforces no undefined symbols.
21012 no_undefined_flag=$lt_no_undefined_flag
21013
21014 # Flag to hardcode \$libdir into a binary during linking.
21015 # This must work even if \$libdir does not exist
21016 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21017
21018 # Whether we need a single "-rpath" flag with a separated argument.
21019 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21020
21021 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21022 # DIR into the resulting binary.
21023 hardcode_direct=$hardcode_direct
21024
21025 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21026 # DIR into the resulting binary and the resulting library dependency is
21027 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
21028 # library is relocated.
21029 hardcode_direct_absolute=$hardcode_direct_absolute
21030
21031 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21032 # into the resulting binary.
21033 hardcode_minus_L=$hardcode_minus_L
21034
21035 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21036 # into the resulting binary.
21037 hardcode_shlibpath_var=$hardcode_shlibpath_var
21038
21039 # Set to "yes" if building a shared library automatically hardcodes DIR
21040 # into the library and all subsequent libraries and executables linked
21041 # against it.
21042 hardcode_automatic=$hardcode_automatic
21043
21044 # Set to yes if linker adds runtime paths of dependent libraries
21045 # to runtime path list.
21046 inherit_rpath=$inherit_rpath
21047
21048 # Whether libtool must link a program against all its dependency libraries.
21049 link_all_deplibs=$link_all_deplibs
21050
21051 # Set to "yes" if exported symbols are required.
21052 always_export_symbols=$always_export_symbols
21053
21054 # The commands to list exported symbols.
21055 export_symbols_cmds=$lt_export_symbols_cmds
21056
21057 # Symbols that should not be listed in the preloaded symbols.
21058 exclude_expsyms=$lt_exclude_expsyms
21059
21060 # Symbols that must always be exported.
21061 include_expsyms=$lt_include_expsyms
21062
21063 # Commands necessary for linking programs (against libraries) with templates.
21064 prelink_cmds=$lt_prelink_cmds
21065
21066 # Commands necessary for finishing linking programs.
21067 postlink_cmds=$lt_postlink_cmds
21068
21069 # Specify filename containing input files.
21070 file_list_spec=$lt_file_list_spec
21071
21072 # How to hardcode a shared library path into an executable.
21073 hardcode_action=$hardcode_action
21074
21075 # The directories searched by this compiler when creating a shared library.
21076 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21077
21078 # Dependencies to place before and after the objects being linked to
21079 # create a shared library.
21080 predep_objects=$lt_predep_objects
21081 postdep_objects=$lt_postdep_objects
21082 predeps=$lt_predeps
21083 postdeps=$lt_postdeps
21084
21085 # The library search path used internally by the compiler when linking
21086 # a shared library.
21087 compiler_lib_search_path=$lt_compiler_lib_search_path
21088
21089 # ### END LIBTOOL CONFIG
21090
21091 _LT_EOF
21092
21093 cat <<'_LT_EOF' >> "$cfgfile"
21094
21095 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21096
21097 # func_munge_path_list VARIABLE PATH
21098 # -----------------------------------
21099 # VARIABLE is name of variable containing _space_ separated list of
21100 # directories to be munged by the contents of PATH, which is string
21101 # having a format:
21102 # "DIR[:DIR]:"
21103 # string "DIR[ DIR]" will be prepended to VARIABLE
21104 # ":DIR[:DIR]"
21105 # string "DIR[ DIR]" will be appended to VARIABLE
21106 # "DIRP[:DIRP]::[DIRA:]DIRA"
21107 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21108 # "DIRA[ DIRA]" will be appended to VARIABLE
21109 # "DIR[:DIR]"
21110 # VARIABLE will be replaced by "DIR[ DIR]"
21111 func_munge_path_list ()
21112 {
21113 case x$2 in
21114 x)
21115 ;;
21116 *:)
21117 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21118 ;;
21119 x:*)
21120 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21121 ;;
21122 *::*)
21123 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21124 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21125 ;;
21126 *)
21127 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21128 ;;
21129 esac
21130 }
21131
21132
21133 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21134 func_cc_basename ()
21135 {
21136 for cc_temp in $*""; do
21137 case $cc_temp in
21138 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21139 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21140 \-*) ;;
21141 *) break;;
21142 esac
21143 done
21144 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21145 }
21146
21147
21148 # ### END FUNCTIONS SHARED WITH CONFIGURE
21149
21150 _LT_EOF
21151
21152 case $host_os in
21153 aix3*)
21154 cat <<\_LT_EOF >> "$cfgfile"
21155 # AIX sometimes has problems with the GCC collect2 program. For some
21156 # reason, if we set the COLLECT_NAMES environment variable, the problems
21157 # vanish in a puff of smoke.
21158 if test set != "${COLLECT_NAMES+set}"; then
21159 COLLECT_NAMES=
21160 export COLLECT_NAMES
21161 fi
21162 _LT_EOF
21163 ;;
21164 esac
21165
21166
21167
21168 ltmain=$ac_aux_dir/ltmain.sh
21169
21170
21171 # We use sed instead of cat because bash on DJGPP gets confused if
21172 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21173 # text mode, it properly converts lines to CR/LF. This bash problem
21174 # is reportedly fixed, but why not run on old versions too?
21175 $SED '$q' "$ltmain" >> "$cfgfile" \
21176 || (rm -f "$cfgfile"; exit 1)
21177
21178 mv -f "$cfgfile" "$ofile" ||
21179 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21180 chmod +x "$ofile"
21181
21182
21183 cat <<_LT_EOF >> "$ofile"
21184
21185 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21186
21187 # The linker used to build libraries.
21188 LD=$lt_LD_CXX
21189
21190 # How to create reloadable object files.
21191 reload_flag=$lt_reload_flag_CXX
21192 reload_cmds=$lt_reload_cmds_CXX
21193
21194 # Commands used to build an old-style archive.
21195 old_archive_cmds=$lt_old_archive_cmds_CXX
21196
21197 # A language specific compiler.
21198 CC=$lt_compiler_CXX
21199
21200 # Is the compiler the GNU compiler?
21201 with_gcc=$GCC_CXX
21202
21203 # Compiler flag to turn off builtin functions.
21204 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21205
21206 # Additional compiler flags for building library objects.
21207 pic_flag=$lt_lt_prog_compiler_pic_CXX
21208
21209 # How to pass a linker flag through the compiler.
21210 wl=$lt_lt_prog_compiler_wl_CXX
21211
21212 # Compiler flag to prevent dynamic linking.
21213 link_static_flag=$lt_lt_prog_compiler_static_CXX
21214
21215 # Does compiler simultaneously support -c and -o options?
21216 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21217
21218 # Whether or not to add -lc for building shared libraries.
21219 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21220
21221 # Whether or not to disallow shared libs when runtime libs are static.
21222 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21223
21224 # Compiler flag to allow reflexive dlopens.
21225 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21226
21227 # Compiler flag to generate shared objects directly from archives.
21228 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21229
21230 # Whether the compiler copes with passing no objects directly.
21231 compiler_needs_object=$lt_compiler_needs_object_CXX
21232
21233 # Create an old-style archive from a shared archive.
21234 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21235
21236 # Create a temporary old-style archive to link instead of a shared archive.
21237 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21238
21239 # Commands used to build a shared archive.
21240 archive_cmds=$lt_archive_cmds_CXX
21241 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21242
21243 # Commands used to build a loadable module if different from building
21244 # a shared archive.
21245 module_cmds=$lt_module_cmds_CXX
21246 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21247
21248 # Whether we are building with GNU ld or not.
21249 with_gnu_ld=$lt_with_gnu_ld_CXX
21250
21251 # Flag that allows shared libraries with undefined symbols to be built.
21252 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21253
21254 # Flag that enforces no undefined symbols.
21255 no_undefined_flag=$lt_no_undefined_flag_CXX
21256
21257 # Flag to hardcode \$libdir into a binary during linking.
21258 # This must work even if \$libdir does not exist
21259 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21260
21261 # Whether we need a single "-rpath" flag with a separated argument.
21262 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21263
21264 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21265 # DIR into the resulting binary.
21266 hardcode_direct=$hardcode_direct_CXX
21267
21268 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21269 # DIR into the resulting binary and the resulting library dependency is
21270 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
21271 # library is relocated.
21272 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21273
21274 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21275 # into the resulting binary.
21276 hardcode_minus_L=$hardcode_minus_L_CXX
21277
21278 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21279 # into the resulting binary.
21280 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21281
21282 # Set to "yes" if building a shared library automatically hardcodes DIR
21283 # into the library and all subsequent libraries and executables linked
21284 # against it.
21285 hardcode_automatic=$hardcode_automatic_CXX
21286
21287 # Set to yes if linker adds runtime paths of dependent libraries
21288 # to runtime path list.
21289 inherit_rpath=$inherit_rpath_CXX
21290
21291 # Whether libtool must link a program against all its dependency libraries.
21292 link_all_deplibs=$link_all_deplibs_CXX
21293
21294 # Set to "yes" if exported symbols are required.
21295 always_export_symbols=$always_export_symbols_CXX
21296
21297 # The commands to list exported symbols.
21298 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21299
21300 # Symbols that should not be listed in the preloaded symbols.
21301 exclude_expsyms=$lt_exclude_expsyms_CXX
21302
21303 # Symbols that must always be exported.
21304 include_expsyms=$lt_include_expsyms_CXX
21305
21306 # Commands necessary for linking programs (against libraries) with templates.
21307 prelink_cmds=$lt_prelink_cmds_CXX
21308
21309 # Commands necessary for finishing linking programs.
21310 postlink_cmds=$lt_postlink_cmds_CXX
21311
21312 # Specify filename containing input files.
21313 file_list_spec=$lt_file_list_spec_CXX
21314
21315 # How to hardcode a shared library path into an executable.
21316 hardcode_action=$hardcode_action_CXX
21317
21318 # The directories searched by this compiler when creating a shared library.
21319 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21320
21321 # Dependencies to place before and after the objects being linked to
21322 # create a shared library.
21323 predep_objects=$lt_predep_objects_CXX
21324 postdep_objects=$lt_postdep_objects_CXX
21325 predeps=$lt_predeps_CXX
21326 postdeps=$lt_postdeps_CXX
21327
21328 # The library search path used internally by the compiler when linking
21329 # a shared library.
21330 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21331
21332 # ### END LIBTOOL TAG CONFIG: CXX
21333 _LT_EOF
21334
21335 ;;
21336
21337 esac
21338 done # for ac_tag
21339
21340
21341 as_fn_exit 0
21342 _ACEOF
21343 ac_clean_files=$ac_clean_files_save
21344
21345 test $ac_write_fail = 0 ||
21346 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21347
21348
21349 # configure is writing to config.log, and then calls config.status.
21350 # config.status does its own redirection, appending to config.log.
21351 # Unfortunately, on DOS this fails, as config.log is still kept open
21352 # by configure, so config.status won't be able to write to it; its
21353 # output is simply discarded. So we exec the FD to /dev/null,
21354 # effectively closing config.log, so it can be properly (re)opened and
21355 # appended to by config.status. When coming back to configure, we
21356 # need to make the FD available again.
21357 if test "$no_create" != yes; then
21358 ac_cs_success=:
21359 ac_config_status_args=
21360 test "$silent" = yes &&
21361 ac_config_status_args="$ac_config_status_args --quiet"
21362 exec 5>/dev/null
21363 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21364 exec 5>>config.log
21365 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21366 # would make configure fail if this is the last instruction.
21367 $ac_cs_success || as_fn_exit 1
21368 fi
21369 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21371 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21372 fi
21373
21374
21375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}:
21376 Sumario:
21377 antlr : $ANTLR_BIN
21378 antlr includes : $ANTLR_INC
21379 antr lib : $ANTLR_LIB
21380
21381 pcre includes : $PCRE_INC
21382 pcre lib : $PCRE_LIB
21383
21384 CXXFLAGS : $CXXFLAGS
21385 MS Windows : $SO_WINDOWS
21386 " >&5
21387 printf "%s\n" "$as_me:
21388 Sumario:
21389 antlr : $ANTLR_BIN
21390 antlr includes : $ANTLR_INC
21391 antr lib : $ANTLR_LIB
21392
21393 pcre includes : $PCRE_INC
21394 pcre lib : $PCRE_LIB
21395
21396 CXXFLAGS : $CXXFLAGS
21397 MS Windows : $SO_WINDOWS
21398 " >&6;}
21399