18
18
# You should have received a copy of the GNU General Public License
19
19
# along with this program; if not, write to the Free Software
20
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22
22
# As a special exception to the GNU General Public License, if you
23
23
# distribute this file as part of a program that contains a
24
24
# configuration script generated by Autoconf, you may include it under
25
25
# the same distribution terms that you use for the rest of that program.
29
# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
30
# is ksh but when the shell is invoked as "sh" and the current value of
31
# the _XPG environment variable is not equal to 1 (one), the special
32
# positional parameter $0, within a function call, is the name of the
36
# The name of this program:
37
progname=`echo "$progpath" | $SED $basename`
47
TIMESTAMP=" (1.1220.2.287 2005/08/31 18:54:15)"
49
# See if we are running on zsh, and set the options which allow our
50
# commands through without removal of \ escapes.
51
if test -n "${ZSH_VERSION+set}" ; then
27
55
# Check that we have a working $echo.
28
56
if test "X$1" = X--no-reexec; then
29
57
# Discard the --no-reexec flag, and continue.
114
135
lo2o="s/\\.lo\$/.${objext}/"
115
136
o2lo="s/\\.${objext}\$/.lo/"
138
#####################################
139
# Shell function definitions:
140
# This seems to be the best place for them
142
# func_win32_libid arg
143
# return the library type of file 'arg'
145
# Need a lot of goo to handle *both* DLLs and import libs
146
# Has to be a shell function in order to 'eat' the argument
147
# that is supplied when $file_magic_command is called.
150
win32_libid_type="unknown"
151
win32_fileres=`file -L $1 2>/dev/null`
152
case $win32_fileres in
153
*ar\ archive\ import\ library*) # definitely import
154
win32_libid_type="x86 archive import"
156
*ar\ archive*) # could be an import, or static
157
if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
158
$EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
159
win32_nmres=`eval $NM -f posix -A $1 | \
160
sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'`
161
if test "X$win32_nmres" = "Ximport" ; then
162
win32_libid_type="x86 archive import"
164
win32_libid_type="x86 archive static"
169
win32_libid_type="x86 DLL"
171
*executable*) # but shell scripts are "executable" too...
172
case $win32_fileres in
173
*MS\ Windows\ PE\ Intel*)
174
win32_libid_type="x86 DLL"
179
$echo $win32_libid_type
184
# Infer tagged configuration to use if any are available and
185
# if one wasn't chosen via the "--tag" command line option.
186
# Only attempt this if the compiler in the base compile
187
# command doesn't match the default compiler.
188
# arg is usually of the form 'gcc ...'
191
if test -n "$available_tags" && test -z "$tagname"; then
195
*[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
199
CC_quoted="$CC_quoted $arg"
202
# Blanks in the command may have been stripped by the calling shell,
203
# but not from the CC environment variable when configure was run.
204
" $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
205
# Blanks at the start of $base_compile will cause this to fail
206
# if we don't check for them as well.
208
for z in $available_tags; do
209
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
210
# Evaluate the configuration.
211
eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
214
# Double-quote args containing other shell metacharacters.
216
*[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
220
CC_quoted="$CC_quoted $arg"
223
" $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
224
# The compiler in the base compile command matches
225
# the one in the tagged configuration.
226
# Assume this is the tagged configuration we want.
233
# If $tagname still isn't set, then no tagged configuration
234
# was found and let the user know that the "--tag" command
235
# line option must be used.
236
if test -z "$tagname"; then
237
$echo "$modename: unable to infer tagged configuration"
238
$echo "$modename: specify a tag with \`--tag'" 1>&2
241
# $echo "$modename: using $tagname tagged configuration"
249
# func_extract_an_archive dir oldlib
250
func_extract_an_archive ()
252
f_ex_an_ar_dir="$1"; shift
253
f_ex_an_ar_oldlib="$1"
255
$show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
256
$run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
257
if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
260
$echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
265
# func_extract_archives gentop oldlib ...
266
func_extract_archives ()
268
my_gentop="$1"; shift
276
$show "${rm}r $my_gentop"
277
$run ${rm}r "$my_gentop"
278
$show "$mkdir $my_gentop"
279
$run $mkdir "$my_gentop"
281
if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
285
for my_xlib in $my_oldlibs; do
286
# Extract the objects.
288
[\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
289
*) my_xabs=`pwd`"/$my_xlib" ;;
291
my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
292
my_xdir="$my_gentop/$my_xlib"
294
$show "${rm}r $my_xdir"
295
$run ${rm}r "$my_xdir"
296
$show "$mkdir $my_xdir"
297
$run $mkdir "$my_xdir"
299
if test "$status" -ne 0 && test ! -d "$my_xdir"; then
304
$show "Extracting $my_xabs"
305
# Do not bother doing anything if just a dry run
306
if test -z "$run"; then
307
darwin_orig_dir=`pwd`
308
cd $my_xdir || exit $?
309
darwin_archive=$my_xabs
311
darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
312
darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
313
if test -n "$darwin_arches"; then
314
darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
316
$show "$darwin_base_archive has multiple architectures $darwin_arches"
317
for darwin_arch in $darwin_arches ; do
318
mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
319
lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
320
cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
321
func_extract_an_archive "`pwd`" "${darwin_base_archive}"
323
$rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
324
done # $darwin_arches
325
## Okay now we have a bunch of thin objects, gotta fatten them up :)
326
darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
329
for darwin_file in $darwin_filelist; do
330
darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
331
lipo -create -output "$darwin_file" $darwin_files
332
done # $darwin_filelist
334
cd "$darwin_orig_dir"
336
cd "$darwin_orig_dir"
337
func_extract_an_archive "$my_xdir" "$my_xabs"
342
func_extract_an_archive "$my_xdir" "$my_xabs"
345
my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
347
func_extract_archives_result="$my_oldobjs"
349
# End of Shell function definitions
350
#####################################
353
eval std_shrext=\"$shrext_cmds\"
117
355
# Parse our command line options once, thoroughly.
356
while test "$#" -gt 0
281
567
modename="$modename: compile"
282
568
# Get the compilation command and the source file.
570
srcfile="$nonopt" # always keep a non-empty value in "srcfile"
295
# Aesthetically quote the previous argument.
297
lastarg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
300
# Double-quote args containing other shell metacharacters.
301
# Many Bourne shells cannot handle close brackets correctly
302
# in scan sets, so we specify it separately.
303
*[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
308
# Add the previous argument to base_compile.
309
if test -z "$base_compile"; then
310
base_compile="$lastarg"
312
base_compile="$base_compile $lastarg"
318
# Accept any command-line options.
321
if test "$user_target" != "no"; then
322
$echo "$modename: you cannot specify \`-o' more than once" 1>&2
349
args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
351
save_ifs="$IFS"; IFS=','
355
# Double-quote args containing other shell metacharacters.
356
# Many Bourne shells cannot handle close brackets correctly
357
# in scan sets, so we specify it separately.
359
*[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
363
lastarg="$lastarg $arg"
366
lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
368
# Add the arguments to base_compile.
369
if test -z "$base_compile"; then
370
base_compile="$lastarg"
372
base_compile="$base_compile $lastarg"
380
# The next one is the -o target name
385
# We got the output file
581
# do not "continue". Instead, add this to base_compile
392
# Accept the current argument as the source file.
593
# Accept any command-line options.
596
if test -n "$libobj" ; then
597
$echo "$modename: you cannot specify \`-o' more than once" 1>&2
604
-static | -prefer-pic | -prefer-non-pic)
615
arg_mode=arg # the next one goes into the "base_compile" arg list
616
continue # The current "srcfile" will either be retained or
617
;; # replaced later. I would guess that would be a bug.
620
args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
622
save_ifs="$IFS"; IFS=','
626
# Double-quote args containing other shell metacharacters.
627
# Many Bourne shells cannot handle close brackets correctly
628
# in scan sets, so we specify it separately.
630
*[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
634
lastarg="$lastarg $arg"
637
lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
639
# Add the arguments to base_compile.
640
base_compile="$base_compile $lastarg"
645
# Accept the current argument as the source file.
646
# The previous "srcfile" becomes the current argument.
653
esac # case $arg_mode
396
655
# Aesthetically quote the previous argument.
398
# Backslashify any backslashes, double quotes, and dollar signs.
399
# These are the only characters that are still specially
400
# interpreted inside of double-quoted scrings.
401
656
lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
403
659
# Double-quote args containing other shell metacharacters.
404
660
# Many Bourne shells cannot handle close brackets correctly
405
# in scan sets, so we specify it separately.
661
# in scan sets, and some SunOS ksh mistreat backslash-escaping
662
# in scan sets (worked around with variable expansion),
663
# and furthermore cannot handle '|' '&' '(' ')' in scan sets
664
# at all, so we specify them separately.
407
665
*[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
408
666
lastarg="\"$lastarg\""
412
# Add the previous argument to base_compile.
413
if test -z "$base_compile"; then
414
base_compile="$lastarg"
416
base_compile="$base_compile $lastarg"
670
base_compile="$base_compile $lastarg"
675
$echo "$modename: you must specify an argument for -Xcompile"
679
$echo "$modename: you must specify a target with \`-o'" 1>&2
424
683
# Get the name of the library object.
425
libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
428
$echo "$modename: you must specify a target with \`-o'" 1>&2
684
[ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
433
688
# Recognize several different file suffixes.
434
689
# If the user specifies -o file.o, it is replaced with file.lo
437
692
*.ada) xform=ada ;;
438
693
*.adb) xform=adb ;;
452
710
*.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
454
712
$echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
717
func_infer_tag $base_compile
719
for arg in $later; do
738
qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
740
*[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
741
qlibobj="\"$qlibobj\"" ;;
743
test "X$libobj" != "X$qlibobj" \
744
&& $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
745
&& $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
746
objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
747
xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
748
if test "X$xdir" = "X$obj"; then
753
lobj=${xdir}$objdir/$objname
459
755
if test -z "$base_compile"; then
460
756
$echo "$modename: you must specify a compilation command" 1>&2
461
757
$echo "$help" 1>&2
465
761
# Delete any leftover library objects.
466
762
if test "$build_old_libs" = yes; then
467
removelist="$obj $libobj"
763
removelist="$obj $lobj $libobj ${libobj}T"
765
removelist="$lobj $libobj ${libobj}T"
472
768
$run $rm $removelist
473
trap "$run $rm $removelist; exit 1" 1 2 15
769
trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
475
771
# On Cygwin there's no "real" PIC flag so we must build both object types
531
847
fbsd_hideous_sh_bug=$base_compile
533
849
if test "$pic_mode" != no; then
534
# All platforms use -DPIC, to notify preprocessed assembler code.
535
command="$base_compile $srcfile $pic_flag -DPIC"
850
command="$base_compile $qsrcfile $pic_flag"
537
852
# Don't build PIC code
538
command="$base_compile $srcfile"
540
if test "$build_old_libs" = yes; then
542
dir=`$echo "X$libobj" | $Xsed -e 's%/[^/]*$%%'`
543
if test "X$dir" = "X$libobj"; then
548
libobj="$dir/"`$echo "X$libobj" | $Xsed -e 's%^.*/%%'`
550
if test -d "$dir"; then
557
if test $status -ne 0 && test ! -d $dir; then
562
if test "$compiler_o_lo" = yes; then
564
command="$command -o $output_obj"
565
elif test "$compiler_c_o" = yes; then
567
command="$command -o $output_obj"
570
$run $rm "$output_obj"
853
command="$base_compile $qsrcfile"
856
if test ! -d "${xdir}$objdir"; then
857
$show "$mkdir ${xdir}$objdir"
858
$run $mkdir ${xdir}$objdir
860
if test "$status" -ne 0 && test ! -d "${xdir}$objdir"; then
865
if test -z "$output_obj"; then
866
# Place PIC objects in $objdir
867
command="$command -o $lobj"
870
$run $rm "$lobj" "$output_obj"
572
873
if $run eval "$command"; then :
574
875
test -n "$output_obj" && $run $rm $removelist
578
879
if test "$need_locks" = warn &&
579
test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then
880
test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
581
882
*** ERROR, $lockfile contains:
582
883
`cat $lockfile 2>/dev/null`
594
895
$run $rm $removelist
598
899
# Just move the object if needed, then go on to compile the next one
599
if test x"$output_obj" != x"$libobj"; then
600
$show "$mv $output_obj $libobj"
601
if $run $mv $output_obj $libobj; then :
609
# If we have no pic_flag, then copy the object into place and finish.
610
if (test -z "$pic_flag" || test "$pic_mode" != default) &&
611
test "$build_old_libs" = yes; then
612
# Rename the .lo from within objdir to obj
613
if test -f $obj; then
618
$show "$mv $libobj $obj"
619
if $run $mv $libobj $obj; then :
626
xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
627
if test "X$xdir" = "X$obj"; then
632
baseobj=`$echo "X$obj" | $Xsed -e "s%.*/%%"`
633
libobj=`$echo "X$baseobj" | $Xsed -e "$o2lo"`
634
# Now arrange that obj and lo_libobj become the same file
635
$show "(cd $xdir && $LN_S $baseobj $libobj)"
636
if $run eval '(cd $xdir && $LN_S $baseobj $libobj)'; then
637
# Unlock the critical section if it was locked
638
if test "$need_locks" != no; then
900
if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
901
$show "$mv $output_obj $lobj"
902
if $run $mv $output_obj $lobj; then :
910
# Append the name of the PIC object to the libtool object file.
911
test -z "$run" && cat >> ${libobj}T <<EOF
912
pic_object='$objdir/$objname'
649
916
# Allow error messages only from the first compilation.
650
suppress_output=' >/dev/null 2>&1'
917
if test "$suppress_opt" = yes; then
918
suppress_output=' >/dev/null 2>&1'
921
# No PIC object so indicate it doesn't exist in the libtool
923
test -z "$run" && cat >> ${libobj}T <<EOF
653
929
# Only build a position-dependent object if we build old libraries.
654
930
if test "$build_old_libs" = yes; then
655
931
if test "$pic_mode" != yes; then
656
932
# Don't build PIC code
657
command="$base_compile $srcfile"
933
command="$base_compile $qsrcfile"
659
# All platforms use -DPIC, to notify preprocessed assembler code.
660
command="$base_compile $srcfile $pic_flag -DPIC"
935
command="$base_compile $qsrcfile $pic_flag"
662
937
if test "$compiler_c_o" = yes; then
663
938
command="$command -o $obj"
667
941
# Suppress compiler output if we already did a PIC compilation.
668
942
command="$command$suppress_output"
669
$run $rm "$output_obj"
943
$run $rm "$obj" "$output_obj"
671
945
if $run eval "$command"; then :
673
947
$run $rm $removelist
677
951
if test "$need_locks" = warn &&
678
test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then
952
test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
680
954
*** ERROR, $lockfile contains:
681
955
`cat $lockfile 2>/dev/null`
708
# Create an invalid libtool object if no PIC, so that we do not
709
# accidentally link it into a program.
710
if test "$build_libtool_libs" != yes; then
711
$show "echo timestamp > $libobj"
712
$run eval "echo timestamp > \$libobj" || exit $?
714
# Move the .lo from within objdir
715
$show "$mv $libobj $lo_libobj"
716
if $run $mv $libobj $lo_libobj; then :
982
# Append the name of the non-PIC object the libtool object file.
983
# Only append if the libtool object file exists.
984
test -z "$run" && cat >> ${libobj}T <<EOF
985
# Name of the non-PIC object.
986
non_pic_object='$objname'
990
# Append the name of the non-PIC object the libtool object file.
991
# Only append if the libtool object file exists.
992
test -z "$run" && cat >> ${libobj}T <<EOF
993
# Name of the non-PIC object.
999
$run $mv "${libobj}T" "${libobj}"
725
1001
# Unlock the critical section if it was locked
726
1002
if test "$need_locks" != no; then
727
1003
$run $rm "$lockfile"
733
1009
# libtool link mode
1185
inst_prefix_dir="$arg"
1190
precious_files_regex="$arg"
1200
if test -f "$arg"; then
1203
for fil in `cat $save_arg`
1205
# moreargs="$moreargs $fil"
1207
# A libtool-controlled object.
1209
# Check to see that this really is a libtool object.
1210
if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
1215
# If there is no directory component, then add one.
1217
*/* | *\\*) . $arg ;;
1221
if test -z "$pic_object" || \
1222
test -z "$non_pic_object" ||
1223
test "$pic_object" = none && \
1224
test "$non_pic_object" = none; then
1225
$echo "$modename: cannot find name of object for \`$arg'" 1>&2
1229
# Extract subdirectory from the argument.
1230
xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1231
if test "X$xdir" = "X$arg"; then
1237
if test "$pic_object" != none; then
1238
# Prepend the subdirectory the object is found in.
1239
pic_object="$xdir$pic_object"
1241
if test "$prev" = dlfiles; then
1242
if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
1243
dlfiles="$dlfiles $pic_object"
1247
# If libtool objects are unsupported, then we need to preload.
1252
# CHECK ME: I think I busted this. -Ossama
1253
if test "$prev" = dlprefiles; then
1254
# Preload the old-style object.
1255
dlprefiles="$dlprefiles $pic_object"
1260
libobjs="$libobjs $pic_object"
1265
if test "$non_pic_object" != none; then
1266
# Prepend the subdirectory the object is found in.
1267
non_pic_object="$xdir$non_pic_object"
1269
# A standard non-PIC object
1270
non_pic_objects="$non_pic_objects $non_pic_object"
1271
if test -z "$pic_object" || test "$pic_object" = none ; then
1272
arg="$non_pic_object"
1276
# Only an error if not doing a dry-run.
1277
if test -z "$run"; then
1278
$echo "$modename: \`$arg' is not a valid libtool object" 1>&2
1283
# Extract subdirectory from the argument.
1284
xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1285
if test "X$xdir" = "X$arg"; then
1291
pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
1292
non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
1293
libobjs="$libobjs $pic_object"
1294
non_pic_objects="$non_pic_objects $non_pic_object"
1299
$echo "$modename: link input file \`$save_arg' does not exist"
907
1307
# We need an absolute path.
909
1309
[\\/]* | [A-Za-z]:[\\/]*) ;;
911
1311
$echo "$modename: only absolute run-paths are allowed" 1>&2
915
1315
if test "$prev" = rpath; then
1054
1487
# These systems don't actually have a C library (as such)
1055
1488
test "X$arg" = "X-lc" && continue
1057
*-*-openbsd* | *-*-freebsd*)
1490
*-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
1058
1491
# Do not include libc due to us having libc/libc_r.
1059
1492
test "X$arg" = "X-lc" && continue
1062
elif test "X$arg" = "X-lc_r"; then
1064
*-*-openbsd* | *-*-freebsd*)
1065
# Do not include libc_r directly, use -pthread flag.
1494
*-*-rhapsody* | *-*-darwin1.[012])
1495
# Rhapsody C and math libraries are in the System framework
1496
deplibs="$deplibs -framework System"
1499
elif test "X$arg" = "X-lc_r"; then
1501
*-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
1502
# Do not include libc_r directly, use -pthread flag.
1070
1507
deplibs="$deplibs $arg"
1511
# Tru64 UNIX uses -model [arg] to determine the layout of C++
1512
# classes, name mangling, and exception handling.
1514
compile_command="$compile_command $arg"
1515
compiler_flags="$compiler_flags $arg"
1516
finalize_command="$finalize_command $arg"
1521
-mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
1522
compiler_flags="$compiler_flags $arg"
1523
compile_command="$compile_command $arg"
1524
finalize_command="$finalize_command $arg"
1533
# -64, -mips[0-9] enable 64-bit mode on the SGI compiler
1534
# -r[0-9][0-9]* specifies the processor on the SGI compiler
1535
# -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
1536
# +DA*, +DD* enable 64-bit mode on the HP compiler
1537
# -q* pass through compiler args for the IBM compiler
1538
# -m* pass through architecture-specific compiler args for GCC
1539
-64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*)
1541
# Unknown arguments in both finalize_command and compile_command need
1542
# to be aesthetically quoted because they are evaled later.
1543
arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1545
*[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1549
compile_command="$compile_command $arg"
1550
finalize_command="$finalize_command $arg"
1551
if test "$with_gcc" = "yes" ; then
1552
compiler_flags="$compiler_flags $arg"
1079
1562
-no-fast-install)
1080
1563
fast_install=no
1216
# A library or standard object.
1217
if test "$prev" = dlfiles; then
1218
# This file was specified with -dlopen.
1219
if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
1220
dlfiles="$dlfiles $arg"
1224
# If libtool objects are unsupported, then we need to preload.
1229
if test "$prev" = dlprefiles; then
1230
# Preload the old-style object.
1231
dlprefiles="$dlprefiles "`$echo "X$arg" | $Xsed -e "$lo2o"`
1719
# A standard object.
1724
# A libtool-controlled object.
1726
# Check to see that this really is a libtool object.
1727
if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
1732
# If there is no directory component, then add one.
1235
*.lo) libobjs="$libobjs $arg" ;;
1236
*) objs="$objs $arg" ;;
1734
*/* | *\\*) . $arg ;;
1738
if test -z "$pic_object" || \
1739
test -z "$non_pic_object" ||
1740
test "$pic_object" = none && \
1741
test "$non_pic_object" = none; then
1742
$echo "$modename: cannot find name of object for \`$arg'" 1>&2
1746
# Extract subdirectory from the argument.
1747
xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1748
if test "X$xdir" = "X$arg"; then
1754
if test "$pic_object" != none; then
1755
# Prepend the subdirectory the object is found in.
1756
pic_object="$xdir$pic_object"
1758
if test "$prev" = dlfiles; then
1759
if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
1760
dlfiles="$dlfiles $pic_object"
1764
# If libtool objects are unsupported, then we need to preload.
1769
# CHECK ME: I think I busted this. -Ossama
1770
if test "$prev" = dlprefiles; then
1771
# Preload the old-style object.
1772
dlprefiles="$dlprefiles $pic_object"
1777
libobjs="$libobjs $pic_object"
1782
if test "$non_pic_object" != none; then
1783
# Prepend the subdirectory the object is found in.
1784
non_pic_object="$xdir$non_pic_object"
1786
# A standard non-PIC object
1787
non_pic_objects="$non_pic_objects $non_pic_object"
1788
if test -z "$pic_object" || test "$pic_object" = none ; then
1789
arg="$non_pic_object"
1793
# Only an error if not doing a dry-run.
1794
if test -z "$run"; then
1795
$echo "$modename: \`$arg' is not a valid libtool object" 1>&2
1800
# Extract subdirectory from the argument.
1801
xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1802
if test "X$xdir" = "X$arg"; then
1808
pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
1809
non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
1810
libobjs="$libobjs $pic_object"
1811
non_pic_objects="$non_pic_objects $non_pic_object"
1381
1986
for pass in $passes; do
1382
if test $linkmode = prog; then
1383
# Determine which files to process
1987
if test "$linkmode,$pass" = "lib,link" ||
1988
test "$linkmode,$pass" = "prog,scan"; then
1992
if test "$linkmode" = prog; then
1387
save_deplibs="$deplibs" # Collect dlpreopened libraries
1994
dlopen) libs="$dlfiles" ;;
1390
1995
dlpreopen) libs="$dlprefiles" ;;
1391
1996
link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
1999
if test "$pass" = dlopen; then
2000
# Collect dlpreopened libraries
2001
save_deplibs="$deplibs"
1394
2004
for deplib in $libs; do
1397
2007
case $deplib in
2008
-mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
2009
if test "$linkmode,$pass" = "prog,link"; then
2010
compile_deplibs="$deplib $compile_deplibs"
2011
finalize_deplibs="$deplib $finalize_deplibs"
2013
compiler_flags="$compiler_flags $deplib"
1399
if test $linkmode = oldlib && test $linkmode = obj; then
1400
$echo "$modename: warning: \`-l' is ignored for archives/objects: $deplib" 1>&2
1403
if test $pass = conv; then
1404
deplibs="$deplib $deplibs"
2018
if test "$linkmode" != lib && test "$linkmode" != prog; then
2019
$echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
1407
2022
name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
1408
2023
for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
1409
# Search the libtool library
1410
lib="$searchdir/lib${name}.la"
1411
if test -f "$lib"; then
2024
for search_ext in .la $std_shrext .so .a; do
2025
# Search the libtool library
2026
lib="$searchdir/lib${name}${search_ext}"
2027
if test -f "$lib"; then
2028
if test "$search_ext" = ".la"; then
1416
2037
if test "$found" != yes; then
1417
2038
# deplib doesn't seem to be a libtool library
1420
2041
finalize_deplibs="$deplib $finalize_deplibs"
1422
2043
deplibs="$deplib $deplibs"
1423
test $linkmode = lib && newdependency_libs="$deplib $newdependency_libs"
2044
test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
2047
else # deplib is a libtool library
2048
# If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
2049
# We need to do some special things here, and not later.
2050
if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
2051
case " $predeps $postdeps " in
2053
if (${SED} -e '2q' $lib |
2054
grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
2058
*/* | *\\*) . $lib ;;
2061
for l in $old_library $library_names; do
2064
if test "X$ll" = "X$old_library" ; then # only static version available
2066
ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
2067
test "X$ladir" = "X$lib" && ladir="."
2068
lib=$ladir/$old_library
2069
if test "$linkmode,$pass" = "prog,link"; then
2070
compile_deplibs="$deplib $compile_deplibs"
2071
finalize_deplibs="$deplib $finalize_deplibs"
2073
deplibs="$deplib $deplibs"
2074
test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
1429
2086
case $linkmode in
1431
2088
deplibs="$deplib $deplibs"
1432
test $pass = conv && continue
2089
test "$pass" = conv && continue
1433
2090
newdependency_libs="$deplib $newdependency_libs"
1434
2091
newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
1437
if test $pass = conv; then
2094
if test "$pass" = conv; then
1438
2095
deplibs="$deplib $deplibs"
1441
if test $pass = scan; then
2098
if test "$pass" = scan; then
1442
2099
deplibs="$deplib $deplibs"
1443
newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
1445
2101
compile_deplibs="$deplib $compile_deplibs"
1446
2102
finalize_deplibs="$deplib $finalize_deplibs"
2104
newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
1450
$echo "$modename: warning: \`-L' is ignored for archives/objects: $deplib" 1>&2
2107
$echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
1452
2109
esac # linkmode
1456
if test $pass = link; then
2113
if test "$pass" = link; then
1457
2114
dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
1458
2115
# Make sure the xrpath contains only unique directories.
1459
2116
case "$xrpath " in
1467
2124
*.la) lib="$deplib" ;;
1469
if test $pass = conv; then
2126
if test "$pass" = conv; then
1470
2127
deplibs="$deplib $deplibs"
1473
2130
case $linkmode in
1475
if test "$deplibs_check_method" != pass_all; then
1477
echo "*** Warning: Trying to link with static lib archive $deplib."
1478
echo "*** I have the capability to make that library automatically link in when"
1479
echo "*** you link to this library. But I can only do this if you have a"
1480
echo "*** shared version of the library, which you do not appear to have"
1481
echo "*** because the file extensions .$libext of this argument makes me believe"
1482
echo "*** that it is just a static archive that I should not used here."
2133
case $deplibs_check_method in
2135
set dummy $deplibs_check_method
2136
match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
2137
if eval $echo \"$deplib\" 2>/dev/null \
2139
| $EGREP "$match_pattern_regex" > /dev/null; then
2147
if test "$valid_a_lib" != yes; then
2149
$echo "*** Warning: Trying to link with static lib archive $deplib."
2150
$echo "*** I have the capability to make that library automatically link in when"
2151
$echo "*** you link to this library. But I can only do this if you have a"
2152
$echo "*** shared version of the library, which you do not appear to have"
2153
$echo "*** because the file extensions .$libext of this argument makes me believe"
2154
$echo "*** that it is just a static archive that I should not used here."
1485
echo "*** Warning: Linking the shared library $output against the"
1486
echo "*** static library $deplib is not portable!"
2157
$echo "*** Warning: Linking the shared library $output against the"
2158
$echo "*** static library $deplib is not portable!"
1487
2159
deplibs="$deplib $deplibs"
1492
if test $pass != link; then
2164
if test "$pass" != link; then
1493
2165
deplibs="$deplib $deplibs"
1495
2167
compile_deplibs="$deplib $compile_deplibs"
1592
2271
if test -z "$linklib"; then
1593
2272
$echo "$modename: cannot find name of link library for \`$lib'" 1>&2
1597
2276
# This library was specified with -dlopen.
1598
if test $pass = dlopen; then
2277
if test "$pass" = dlopen; then
1599
2278
if test -z "$libdir"; then
1600
2279
$echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
1603
if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
2282
if test -z "$dlname" ||
2283
test "$dlopen_support" != yes ||
2284
test "$build_libtool_libs" = no; then
1604
2285
# If there is no dlname, no dlopen support or we're linking
1605
# statically, we need to preload.
1606
dlprefiles="$dlprefiles $lib"
2286
# statically, we need to preload. We also need to preload any
2287
# dependent libraries so libltdl's deplib preloader doesn't
2288
# bomb out in the load deplibs phase.
2289
dlprefiles="$dlprefiles $lib $dependency_libs"
1608
2291
newdlfiles="$newdlfiles $lib"
1708
2400
fi # $linkmode = prog...
2402
if test "$linkmode,$pass" = "prog,link"; then
2403
if test -n "$library_names" &&
2404
{ test "$prefer_static_libs" = no || test -z "$old_library"; }; then
2405
# We need to hardcode the library path
2406
if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
2407
# Make sure the rpath contains only unique directories.
2408
case "$temp_rpath " in
2411
*) temp_rpath="$temp_rpath $absdir" ;;
2415
# Hardcode the library path.
2416
# Skip directories that are in the system default run-time
2418
case " $sys_lib_dlsearch_path " in
2421
case "$compile_rpath " in
2423
*) compile_rpath="$compile_rpath $absdir"
2427
case " $sys_lib_dlsearch_path " in
2430
case "$finalize_rpath " in
2432
*) finalize_rpath="$finalize_rpath $libdir"
2436
fi # $linkmode,$pass = prog,link...
2438
if test "$alldeplibs" = yes &&
2439
{ test "$deplibs_check_method" = pass_all ||
2440
{ test "$build_libtool_libs" = yes &&
2441
test -n "$library_names"; }; }; then
2442
# We only need to search for static libraries
1710
2447
link_static=no # Whether the deplib will be linked statically
1711
2448
if test -n "$library_names" &&
1712
2449
{ test "$prefer_static_libs" = no || test -z "$old_library"; }; then
1713
# Link against this shared library
1715
if test "$linkmode,$pass" = "prog,link" ||
1716
{ test $linkmode = lib && test $hardcode_into_libs = yes; }; then
1717
# Hardcode the library path.
1718
# Skip directories that are in the system default run-time
1720
case " $sys_lib_dlsearch_path " in
1723
case "$compile_rpath " in
1725
*) compile_rpath="$compile_rpath $absdir"
1729
case " $sys_lib_dlsearch_path " in
1732
case "$finalize_rpath " in
1734
*) finalize_rpath="$finalize_rpath $libdir"
1738
if test $linkmode = prog; then
1739
# We need to hardcode the library path
1740
if test -n "$shlibpath_var"; then
1741
# Make sure the rpath contains only unique directories.
1742
case "$temp_rpath " in
1745
*) temp_rpath="$temp_rpath $dir" ;;
1749
fi # $linkmode,$pass = prog,link...
1751
if test "$alldeplibs" = yes &&
1752
{ test "$deplibs_check_method" = pass_all ||
1753
{ test "$build_libtool_libs" = yes &&
1754
test -n "$library_names"; }; }; then
1755
# We only need to search for static libraries
1759
2450
if test "$installed" = no; then
1760
2451
notinst_deplibs="$notinst_deplibs $lib"
1761
2452
need_relink=yes
2454
# This is a shared library
2456
# Warn about portability, can't link against -module's on
2457
# some systems (darwin)
2458
if test "$shouldnotlink" = yes && test "$pass" = link ; then
2460
if test "$linkmode" = prog; then
2461
$echo "*** Warning: Linking the executable $output against the loadable module"
2463
$echo "*** Warning: Linking the shared library $output against the loadable module"
2465
$echo "*** $linklib is not portable!"
2467
if test "$linkmode" = lib &&
2468
test "$hardcode_into_libs" = yes; then
2469
# Hardcode the library path.
2470
# Skip directories that are in the system default run-time
2472
case " $sys_lib_dlsearch_path " in
2475
case "$compile_rpath " in
2477
*) compile_rpath="$compile_rpath $absdir"
2481
case " $sys_lib_dlsearch_path " in
2484
case "$finalize_rpath " in
2486
*) finalize_rpath="$finalize_rpath $libdir"
1764
2492
if test -n "$old_archive_from_expsyms_cmds"; then
1765
2493
# figure out the soname
1945
2705
# Just print a warning and add the library to dependency_libs so
1946
2706
# that the program can be linked against the static library.
1948
echo "*** Warning: This system can not link to static lib archive $lib."
1949
echo "*** I have the capability to make that library automatically link in when"
1950
echo "*** you link to this library. But I can only do this if you have a"
1951
echo "*** shared version of the library, which you do not appear to have."
2708
$echo "*** Warning: This system can not link to static lib archive $lib."
2709
$echo "*** I have the capability to make that library automatically link in when"
2710
$echo "*** you link to this library. But I can only do this if you have a"
2711
$echo "*** shared version of the library, which you do not appear to have."
1952
2712
if test "$module" = yes; then
1953
echo "*** But as you try to build a module library, libtool will still create "
1954
echo "*** a static module, that should work as long as the dlopening application"
1955
echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
2713
$echo "*** But as you try to build a module library, libtool will still create "
2714
$echo "*** a static module, that should work as long as the dlopening application"
2715
$echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
1956
2716
if test -z "$global_symbol_pipe"; then
1958
echo "*** However, this would only work if libtool was able to extract symbol"
1959
echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
1960
echo "*** not find such a program. So, this module is probably useless."
1961
echo "*** \`nm' from GNU binutils and a full rebuild may help."
2718
$echo "*** However, this would only work if libtool was able to extract symbol"
2719
$echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
2720
$echo "*** not find such a program. So, this module is probably useless."
2721
$echo "*** \`nm' from GNU binutils and a full rebuild may help."
1963
2723
if test "$build_old_libs" = no; then
1964
2724
build_libtool_libs=module
2031
2790
if grep "^installed=no" $deplib > /dev/null; then
2032
path="-L$absdir/$objdir"
2791
path="$absdir/$objdir"
2034
2793
eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
2035
2794
if test -z "$libdir"; then
2036
2795
$echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
2039
2798
if test "$absdir" != "$libdir"; then
2040
2799
$echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
2806
# we do not want to link against static libs,
2807
# but need to link against shared
2808
eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
2809
if test -n "$deplibrary_names" ; then
2810
for tmp in $deplibrary_names ; do
2813
if test -f "$path/$depdepl" ; then
2814
depdepl="$path/$depdepl"
2816
# do not add paths which are already there
2817
case " $newlib_search_path " in
2819
*) newlib_search_path="$newlib_search_path $path";;
2832
# Again, we only want to link against shared libraries
2833
eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
2834
for tmp in $newlib_search_path ; do
2835
if test -f "$tmp/lib$tmp_libs.dylib" ; then
2836
eval depdepl="$tmp/lib$tmp_libs.dylib"
2047
2847
case " $deplibs " in
2048
2848
*" $path "*) ;;
2049
*) deplibs="$deplibs $path" ;;
2849
*) deplibs="$path $deplibs" ;;
2851
case " $deplibs " in
2853
*) deplibs="$depdepl $deplibs" ;;
2052
2856
fi # link_all_deplibs != no
2053
2857
fi # linkmode = lib
2054
2858
done # for deplib in $libs
2055
if test $pass = dlpreopen; then
2859
dependency_libs="$newdependency_libs"
2860
if test "$pass" = dlpreopen; then
2056
2861
# Link the dlpreopened libraries before other libraries
2057
2862
for deplib in $save_deplibs; do
2058
2863
deplibs="$deplib $deplibs"
2061
if test $pass != dlopen; then
2062
test $pass != scan && dependency_libs="$newdependency_libs"
2063
if test $pass != conv; then
2866
if test "$pass" != dlopen; then
2867
if test "$pass" != conv; then
2064
2868
# Make sure lib_search_path contains only unique directories.
2065
2869
lib_search_path=
2066
2870
for dir in $newlib_search_path; do
2082
2886
eval tmp_libs=\"\$$var\"
2084
2888
for deplib in $tmp_libs; do
2889
# FIXME: Pedantically, this is the right thing to do, so
2890
# that some nasty dependency loop isn't accidentally
2892
#new_libs="$deplib $new_libs"
2893
# Pragmatically, this seems to cause very few problems in
2085
2895
case $deplib in
2086
2896
-L*) new_libs="$deplib $new_libs" ;;
2899
# And here is the reason: when a library appears more
2900
# than once as an explicit dependence of a library, or
2901
# is implicitly linked in more than once by the
2902
# compiler, it is considered special, and multiple
2903
# occurrences thereof are not removed. Compare this
2904
# with having the same library being listed as a
2905
# dependency of multiple other libraries: in this case,
2906
# we know (pedantically, we assume) the library does not
2907
# need to be listed more than once, so we keep only the
2908
# last copy. This is not always right, but it is rare
2909
# enough that we require users that really mean to play
2910
# such unportable linking tricks to link the library
2911
# using -Wl,-lname, so that libtool does not consider it
2912
# for duplicate removal.
2088
2913
case " $specialdeplibs " in
2089
2914
*" $deplib "*) new_libs="$deplib $new_libs" ;;
2227
3069
if test -n "$8"; then
2228
3070
$echo "$modename: too many parameters to \`-version-info'" 1>&2
2229
3071
$echo "$help" 1>&2
3075
# convert absolute version numbers to libtool ages
3076
# this retains compatibility with .la files and attempts
3077
# to make the code below a bit more comprehensible
3079
case $vinfo_number in
3083
number_revision="$4"
3085
# There are really only two kinds -- those that
3086
# use the current revision as the major version
3087
# and those that subtract age and use age as
3088
# a minor version. But, then there is irix
3089
# which has an extra 1 added just for fun
3091
case $version_type in
3092
darwin|linux|osf|windows)
3093
current=`expr $number_major + $number_minor`
3095
revision="$number_revision"
3097
freebsd-aout|freebsd-elf|sunos)
3098
current="$number_major"
3099
revision="$number_minor"
3103
current=`expr $number_major + $number_minor - 1`
3105
revision="$number_minor"
2237
3116
# Check that each of the things are valid numbers.
2238
3117
case $current in
2239
0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
3118
0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
2241
$echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
3120
$echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
2242
3121
$echo "$modename: \`$vinfo' is not valid version information" 1>&2
2247
3126
case $revision in
2248
0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
3127
0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
2250
$echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
3129
$echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
2251
3130
$echo "$modename: \`$vinfo' is not valid version information" 1>&2
2257
0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
3136
0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
2259
$echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
3138
$echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
2260
3139
$echo "$modename: \`$vinfo' is not valid version information" 1>&2
2265
if test $age -gt $current; then
3144
if test "$age" -gt "$current"; then
2266
3145
$echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
2267
3146
$echo "$modename: \`$vinfo' is not valid version information" 1>&2
2271
3150
# Calculate the version variables.
2513
3413
int main() { return 0; }
2516
$CC -o conftest conftest.c $deplibs
2517
if test $? -eq 0 ; then
3416
$LTCC -o conftest conftest.c $deplibs
3417
if test "$?" -eq 0 ; then
2518
3418
ldd_output=`ldd conftest`
2519
3419
for i in $deplibs; do
2520
name="`expr $i : '-l\(.*\)'`"
3420
name=`expr $i : '-l\(.*\)'`
2521
3421
# If $name is empty we are operating on a -L argument.
2522
if test -n "$name" && test "$name" != "0"; then
2523
libname=`eval \\$echo \"$libname_spec\"`
2524
deplib_matches=`eval \\$echo \"$library_names_spec\"`
2525
set dummy $deplib_matches
2527
if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
2528
newdeplibs="$newdeplibs $i"
2532
echo "*** Warning: dynamic linker does not accept needed library $i."
2533
echo "*** I have the capability to make that library automatically link in when"
2534
echo "*** you link to this library. But I can only do this if you have a"
2535
echo "*** shared version of the library, which I believe you do not have"
2536
echo "*** because a test_compile did reveal that the linker did not use it for"
2537
echo "*** its dynamic dependency list that programs get resolved with at runtime."
2540
newdeplibs="$newdeplibs $i"
2544
# Error occured in the first compile. Let's try to salvage
2545
# the situation: Compile a separate program for each library.
2546
for i in $deplibs; do
2547
name="`expr $i : '-l\(.*\)'`"
2548
# If $name is empty we are operating on a -L argument.
2549
if test -n "$name" && test "$name" != "0"; then
2551
$CC -o conftest conftest.c $i
2553
if test $? -eq 0 ; then
2554
ldd_output=`ldd conftest`
3422
if test "$name" != "" && test "$name" -ne "0"; then
3423
if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3424
case " $predeps $postdeps " in
3426
newdeplibs="$newdeplibs $i"
3431
if test -n "$i" ; then
2555
3432
libname=`eval \\$echo \"$libname_spec\"`
2556
3433
deplib_matches=`eval \\$echo \"$library_names_spec\"`
2557
3434
set dummy $deplib_matches
2560
3437
newdeplibs="$newdeplibs $i"
2562
3439
droppeddeps=yes
2564
echo "*** Warning: dynamic linker does not accept needed library $i."
2565
echo "*** I have the capability to make that library automatically link in when"
2566
echo "*** you link to this library. But I can only do this if you have a"
2567
echo "*** shared version of the library, which you do not appear to have"
2568
echo "*** because a test_compile did reveal that the linker did not use this one"
2569
echo "*** as a dynamic dependency that programs can get resolved with at runtime."
3441
$echo "*** Warning: dynamic linker does not accept needed library $i."
3442
$echo "*** I have the capability to make that library automatically link in when"
3443
$echo "*** you link to this library. But I can only do this if you have a"
3444
$echo "*** shared version of the library, which I believe you do not have"
3445
$echo "*** because a test_compile did reveal that the linker did not use it for"
3446
$echo "*** its dynamic dependency list that programs get resolved with at runtime."
3450
newdeplibs="$newdeplibs $i"
3454
# Error occurred in the first compile. Let's try to salvage
3455
# the situation: Compile a separate program for each library.
3456
for i in $deplibs; do
3457
name=`expr $i : '-l\(.*\)'`
3458
# If $name is empty we are operating on a -L argument.
3459
if test "$name" != "" && test "$name" != "0"; then
3461
$LTCC -o conftest conftest.c $i
3463
if test "$?" -eq 0 ; then
3464
ldd_output=`ldd conftest`
3465
if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3466
case " $predeps $postdeps " in
3468
newdeplibs="$newdeplibs $i"
3473
if test -n "$i" ; then
3474
libname=`eval \\$echo \"$libname_spec\"`
3475
deplib_matches=`eval \\$echo \"$library_names_spec\"`
3476
set dummy $deplib_matches
3478
if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
3479
newdeplibs="$newdeplibs $i"
3483
$echo "*** Warning: dynamic linker does not accept needed library $i."
3484
$echo "*** I have the capability to make that library automatically link in when"
3485
$echo "*** you link to this library. But I can only do this if you have a"
3486
$echo "*** shared version of the library, which you do not appear to have"
3487
$echo "*** because a test_compile did reveal that the linker did not use this one"
3488
$echo "*** as a dynamic dependency that programs can get resolved with at runtime."
2572
3492
droppeddeps=yes
2574
echo "*** Warning! Library $i is needed by this library but I was not able to"
2575
echo "*** make it link in! You will probably need to install it or some"
2576
echo "*** library that it depends on before this library will be fully"
2577
echo "*** functional. Installing it before continuing would be even better."
3494
$echo "*** Warning! Library $i is needed by this library but I was not able to"
3495
$echo "*** make it link in! You will probably need to install it or some"
3496
$echo "*** library that it depends on before this library will be fully"
3497
$echo "*** functional. Installing it before continuing would be even better."
2580
3500
newdeplibs="$newdeplibs $i"
2586
3506
set dummy $deplibs_check_method
2587
3507
file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
2588
3508
for a_deplib in $deplibs; do
2589
name="`expr $a_deplib : '-l\(.*\)'`"
3509
name=`expr $a_deplib : '-l\(.*\)'`
2590
3510
# If $name is empty we are operating on a -L argument.
2591
if test -n "$name" && test "$name" != "0"; then
2592
libname=`eval \\$echo \"$libname_spec\"`
2593
for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
2594
potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
2595
for potent_lib in $potential_libs; do
3511
if test "$name" != "" && test "$name" != "0"; then
3512
if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3513
case " $predeps $postdeps " in
3515
newdeplibs="$newdeplibs $a_deplib"
3520
if test -n "$a_deplib" ; then
3521
libname=`eval \\$echo \"$libname_spec\"`
3522
for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
3523
potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
3524
for potent_lib in $potential_libs; do
2596
3525
# Follow soft links.
2597
3526
if ls -lLd "$potent_lib" 2>/dev/null \
2598
3527
| grep " -> " >/dev/null; then
2614
3543
if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
2616
| egrep "$file_magic_regex" > /dev/null; then
3545
| $EGREP "$file_magic_regex" > /dev/null; then
2617
3546
newdeplibs="$newdeplibs $a_deplib"
2623
3553
if test -n "$a_deplib" ; then
2624
3554
droppeddeps=yes
2626
echo "*** Warning: linker path does not have real file for library $a_deplib."
2627
echo "*** I have the capability to make that library automatically link in when"
2628
echo "*** you link to this library. But I can only do this if you have a"
2629
echo "*** shared version of the library, which you do not appear to have"
2630
echo "*** because I did check the linker path looking for a file starting"
3556
$echo "*** Warning: linker path does not have real file for library $a_deplib."
3557
$echo "*** I have the capability to make that library automatically link in when"
3558
$echo "*** you link to this library. But I can only do this if you have a"
3559
$echo "*** shared version of the library, which you do not appear to have"
3560
$echo "*** because I did check the linker path looking for a file starting"
2631
3561
if test -z "$potlib" ; then
2632
echo "*** with $libname but no candidates were found. (...for file magic test)"
3562
$echo "*** with $libname but no candidates were found. (...for file magic test)"
2634
echo "*** with $libname and none of the candidates passed a file format test"
2635
echo "*** using a file magic. Last file checked: $potlib"
3564
$echo "*** with $libname and none of the candidates passed a file format test"
3565
$echo "*** using a file magic. Last file checked: $potlib"
2645
3575
set dummy $deplibs_check_method
2646
3576
match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
2647
3577
for a_deplib in $deplibs; do
2648
name="`expr $a_deplib : '-l\(.*\)'`"
3578
name=`expr $a_deplib : '-l\(.*\)'`
2649
3579
# If $name is empty we are operating on a -L argument.
2650
3580
if test -n "$name" && test "$name" != "0"; then
2651
libname=`eval \\$echo \"$libname_spec\"`
2652
for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
2653
potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
2654
for potent_lib in $potential_libs; do
2655
potlib="$potent_lib" # see symlink-check below in file_magic test
2656
if eval echo \"$potent_lib\" 2>/dev/null \
2658
| egrep "$match_pattern_regex" > /dev/null; then
2659
newdeplibs="$newdeplibs $a_deplib"
3581
if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3582
case " $predeps $postdeps " in
3584
newdeplibs="$newdeplibs $a_deplib"
3589
if test -n "$a_deplib" ; then
3590
libname=`eval \\$echo \"$libname_spec\"`
3591
for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
3592
potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
3593
for potent_lib in $potential_libs; do
3594
potlib="$potent_lib" # see symlink-check above in file_magic test
3595
if eval $echo \"$potent_lib\" 2>/dev/null \
3597
| $EGREP "$match_pattern_regex" > /dev/null; then
3598
newdeplibs="$newdeplibs $a_deplib"
2665
3605
if test -n "$a_deplib" ; then
2666
3606
droppeddeps=yes
2668
echo "*** Warning: linker path does not have real file for library $a_deplib."
2669
echo "*** I have the capability to make that library automatically link in when"
2670
echo "*** you link to this library. But I can only do this if you have a"
2671
echo "*** shared version of the library, which you do not appear to have"
2672
echo "*** because I did check the linker path looking for a file starting"
3608
$echo "*** Warning: linker path does not have real file for library $a_deplib."
3609
$echo "*** I have the capability to make that library automatically link in when"
3610
$echo "*** you link to this library. But I can only do this if you have a"
3611
$echo "*** shared version of the library, which you do not appear to have"
3612
$echo "*** because I did check the linker path looking for a file starting"
2673
3613
if test -z "$potlib" ; then
2674
echo "*** with $libname but no candidates were found. (...for regex pattern test)"
3614
$echo "*** with $libname but no candidates were found. (...for regex pattern test)"
2676
echo "*** with $libname and none of the candidates passed a file format test"
2677
echo "*** using a regex pattern. Last file checked: $potlib"
3616
$echo "*** with $libname and none of the candidates passed a file format test"
3617
$echo "*** using a regex pattern. Last file checked: $potlib"
2686
3626
none | unknown | *)
2688
if $echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
2689
-e 's/ -[LR][^ ]*//g' -e 's/[ ]//g' |
2690
grep . >/dev/null; then
3628
tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
3629
-e 's/ -[LR][^ ]*//g'`
3630
if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3631
for i in $predeps $postdeps ; do
3632
# can't use Xsed below, because $i might contain '/'
3633
tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
3636
if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
3637
| grep . >/dev/null; then
2692
3639
if test "X$deplibs_check_method" = "Xnone"; then
2693
echo "*** Warning: inter-library dependencies are not supported in this platform."
3640
$echo "*** Warning: inter-library dependencies are not supported in this platform."
2695
echo "*** Warning: inter-library dependencies are not known to be supported."
3642
$echo "*** Warning: inter-library dependencies are not known to be supported."
2697
echo "*** All declared inter-library dependencies are being dropped."
3644
$echo "*** All declared inter-library dependencies are being dropped."
2698
3645
droppeddeps=yes
2715
3662
if test "$droppeddeps" = yes; then
2716
3663
if test "$module" = yes; then
2718
echo "*** Warning: libtool could not satisfy all declared inter-library"
2719
echo "*** dependencies of module $libname. Therefore, libtool will create"
2720
echo "*** a static module, that should work as long as the dlopening"
2721
echo "*** application is linked with the -dlopen flag."
3665
$echo "*** Warning: libtool could not satisfy all declared inter-library"
3666
$echo "*** dependencies of module $libname. Therefore, libtool will create"
3667
$echo "*** a static module, that should work as long as the dlopening"
3668
$echo "*** application is linked with the -dlopen flag."
2722
3669
if test -z "$global_symbol_pipe"; then
2724
echo "*** However, this would only work if libtool was able to extract symbol"
2725
echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
2726
echo "*** not find such a program. So, this module is probably useless."
2727
echo "*** \`nm' from GNU binutils and a full rebuild may help."
3671
$echo "*** However, this would only work if libtool was able to extract symbol"
3672
$echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
3673
$echo "*** not find such a program. So, this module is probably useless."
3674
$echo "*** \`nm' from GNU binutils and a full rebuild may help."
2729
3676
if test "$build_old_libs" = no; then
2730
3677
oldlibs="$output_objdir/$libname.$libext"
2734
3681
build_libtool_libs=no
2737
echo "*** The inter-library dependencies that have been dropped here will be"
2738
echo "*** automatically added whenever a program is linked with this library"
2739
echo "*** or is declared to -dlopen it."
3684
$echo "*** The inter-library dependencies that have been dropped here will be"
3685
$echo "*** automatically added whenever a program is linked with this library"
3686
$echo "*** or is declared to -dlopen it."
2741
if test $allow_undefined = no; then
2743
echo "*** Since this library must not contain undefined symbols,"
2744
echo "*** because either the platform does not support them or"
2745
echo "*** it was explicitly requested with -no-undefined,"
2746
echo "*** libtool will only create a static version of it."
3688
if test "$allow_undefined" = no; then
3690
$echo "*** Since this library must not contain undefined symbols,"
3691
$echo "*** because either the platform does not support them or"
3692
$echo "*** it was explicitly requested with -no-undefined,"
3693
$echo "*** libtool will only create a static version of it."
2747
3694
if test "$build_old_libs" = no; then
2748
3695
oldlibs="$output_objdir/$libname.$libext"
2749
3696
build_libtool_libs=module
2865
3802
$show "generating symbol list for \`$libname.la'"
2866
3803
export_symbols="$output_objdir/$libname.exp"
2867
3804
$run $rm $export_symbols
2868
eval cmds=\"$export_symbols_cmds\"
3805
cmds=$export_symbols_cmds
2869
3806
save_ifs="$IFS"; IFS='~'
2870
3807
for cmd in $cmds; do
2871
3808
IFS="$save_ifs"
2873
$run eval "$cmd" || exit $?
3810
if len=`expr "X$cmd" : ".*"` &&
3811
test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
3813
$run eval "$cmd" || exit $?
3814
skipped_export=false
3816
# The command line is too long to execute in one step.
3817
$show "using reloadable object file for export list..."
3819
# Break out early, otherwise skipped_export may be
3820
# set to false by a later but shorter cmd.
2875
3824
IFS="$save_ifs"
2876
3825
if test -n "$export_symbols_regex"; then
2877
$show "egrep -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
2878
$run eval 'egrep -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
3826
$show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
3827
$run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
2879
3828
$show "$mv \"${export_symbols}T\" \"$export_symbols\""
2880
3829
$run eval '$mv "${export_symbols}T" "$export_symbols"'
2886
3835
$run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
3839
for test_deplib in $deplibs; do
3840
case " $convenience " in
3841
*" $test_deplib "*) ;;
3843
tmp_deplibs="$tmp_deplibs $test_deplib"
3847
deplibs="$tmp_deplibs"
2889
3849
if test -n "$convenience"; then
2890
3850
if test -n "$whole_archive_flag_spec"; then
3851
save_libobjs=$libobjs
2891
3852
eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
2893
3854
gentop="$output_objdir/${outputname}x"
2894
$show "${rm}r $gentop"
2895
$run ${rm}r "$gentop"
2896
$show "mkdir $gentop"
2897
$run mkdir "$gentop"
2899
if test $status -ne 0 && test ! -d "$gentop"; then
2902
3855
generated="$generated $gentop"
2904
for xlib in $convenience; do
2905
# Extract the objects.
2907
[\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
2908
*) xabs=`pwd`"/$xlib" ;;
2910
xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
2911
xdir="$gentop/$xlib"
2913
$show "${rm}r $xdir"
2918
if test $status -ne 0 && test ! -d "$xdir"; then
2921
$show "(cd $xdir && $AR x $xabs)"
2922
$run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
2924
libobjs="$libobjs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP`
3857
func_extract_archives $gentop $convenience
3858
libobjs="$libobjs $func_extract_archives_result"
2929
3862
if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
2930
3863
eval flag=\"$thread_safe_flag_spec\"
2931
3864
linker_flags="$linker_flags $flag"
2939
3872
# Do each of the archive commands.
3873
if test "$module" = yes && test -n "$module_cmds" ; then
3874
if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
3875
eval test_cmds=\"$module_expsym_cmds\"
3876
cmds=$module_expsym_cmds
3878
eval test_cmds=\"$module_cmds\"
2940
3882
if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
2941
eval cmds=\"$archive_expsym_cmds\"
2943
save_deplibs="$deplibs"
2944
for conv in $convenience; do
2946
for test_deplib in $deplibs; do
2947
if test "$test_deplib" != "$conv"; then
2948
tmp_deplibs="$tmp_deplibs $test_deplib"
3883
eval test_cmds=\"$archive_expsym_cmds\"
3884
cmds=$archive_expsym_cmds
3886
eval test_cmds=\"$archive_cmds\"
3891
if test "X$skipped_export" != "X:" &&
3892
len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
3893
test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
3896
# The command line is too long to link in one step, link piecewise.
3897
$echo "creating reloadable object files..."
3899
# Save the value of $output and $libobjs because we want to
3900
# use them later. If we have whole_archive_flag_spec, we
3901
# want to use save_libobjs as it was before
3902
# whole_archive_flag_spec was expanded, because we can't
3903
# assume the linker understands whole_archive_flag_spec.
3904
# This may have to be revisited, in case too many
3905
# convenience libraries get linked in and end up exceeding
3907
if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
3908
save_libobjs=$libobjs
3911
output_la=`$echo "X$output" | $Xsed -e "$basename"`
3913
# Clear the reloadable object creation command queue and
3914
# initialize k to one.
3921
output=$output_objdir/$output_la-${k}.$objext
3922
# Loop over the list of objects to be linked.
3923
for obj in $save_libobjs
3925
eval test_cmds=\"$reload_cmds $objlist $last_robj\"
3926
if test "X$objlist" = X ||
3927
{ len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
3928
test "$len" -le "$max_cmd_len"; }; then
3929
objlist="$objlist $obj"
3931
# The command $test_cmds is almost too long, add a
3932
# command to the queue.
3933
if test "$k" -eq 1 ; then
3934
# The first file doesn't have a previous command to add.
3935
eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
3937
# All subsequent reloadable object files will link in
3938
# the last one created.
3939
eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
2951
deplibs="$tmp_deplibs"
2953
eval cmds=\"$archive_cmds\"
2954
deplibs="$save_deplibs"
3941
last_robj=$output_objdir/$output_la-${k}.$objext
3943
output=$output_objdir/$output_la-${k}.$objext
3948
# Handle the remaining objects by creating one last
3949
# reloadable object file. All subsequent reloadable object
3950
# files will link in the last one created.
3951
test -z "$concat_cmds" || concat_cmds=$concat_cmds~
3952
eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
3954
if ${skipped_export-false}; then
3955
$show "generating symbol list for \`$libname.la'"
3956
export_symbols="$output_objdir/$libname.exp"
3957
$run $rm $export_symbols
3959
# Append the command to create the export file.
3960
eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
3963
# Set up a command to remove the reloadable object files
3964
# after they are used.
3966
while test "$i" -lt "$k"
3969
delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
3972
$echo "creating a temporary reloadable object file: $output"
3974
# Loop through the commands generated above and execute them.
3975
save_ifs="$IFS"; IFS='~'
3976
for cmd in $concat_cmds; do
3979
$run eval "$cmd" || exit $?
3984
# Restore the value of output.
3987
if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
3988
eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
3990
# Expand the library linking commands again to reset the
3991
# value of $libobjs for piecewise linking.
3993
# Do each of the archive commands.
3994
if test "$module" = yes && test -n "$module_cmds" ; then
3995
if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
3996
cmds=$module_expsym_cmds
4001
if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
4002
cmds=$archive_expsym_cmds
4008
# Append the command to remove the reloadable object files
4009
# to the just-reset $cmds.
4010
eval cmds=\"\$cmds~\$rm $delfiles\"
2956
4012
save_ifs="$IFS"; IFS='~'
2957
4013
for cmd in $cmds; do
2958
4014
IFS="$save_ifs"
2960
$run eval "$cmd" || exit $?
4017
$run eval "$cmd" || {
4020
# Restore the uninstalled library and exit
4021
if test "$mode" = relink; then
4022
$run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
2962
4028
IFS="$save_ifs"
2964
4030
# Restore the uninstalled library and exit
2965
4031
if test "$mode" = relink; then
2966
4032
$run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
4034
if test -n "$convenience"; then
4035
if test -z "$whole_archive_flag_spec"; then
4036
$show "${rm}r $gentop"
4037
$run ${rm}r "$gentop"
2970
4044
# Create links to the real library.
3334
4371
if test -n "$exclude_expsyms"; then
3335
$run eval 'egrep -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
4372
$run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
3336
4373
$run eval '$mv "$nlist"T "$nlist"'
3339
4376
if test -n "$export_symbols_regex"; then
3340
$run eval 'egrep -e "$export_symbols_regex" "$nlist" > "$nlist"T'
4377
$run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
3341
4378
$run eval '$mv "$nlist"T "$nlist"'
3344
4381
# Prepare the list of exported symbols
3345
4382
if test -z "$export_symbols"; then
3346
export_symbols="$output_objdir/$output.exp"
4383
export_symbols="$output_objdir/$outputname.exp"
3347
4384
$run $rm $export_symbols
3348
$run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
4385
$run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
3350
$run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
3351
$run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
4387
$run eval "${SED} -e 's/\([ ][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
4388
$run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
3352
4389
$run eval 'mv "$nlist"T "$nlist"'
3356
4393
for arg in $dlprefiles; do
3357
4394
$show "extracting global C symbols from \`$arg'"
3358
name=`echo "$arg" | ${SED} -e 's%^.*/%%'`
3359
$run eval 'echo ": $name " >> "$nlist"'
4395
name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
4396
$run eval '$echo ": $name " >> "$nlist"'
3360
4397
$run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
3618
4674
# win32 will think the script is a binary if it has
3619
4675
# a .exe suffix, so we strip it off here.
3620
4676
case $output in
3621
*.exe) output=`echo $output|${SED} 's,.exe$,,'` ;;
4677
*.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
3623
4679
# test for cygwin because mv fails w/o .exe extensions
3625
*cygwin*) exeext=.exe ;;
4683
outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
4687
*cygwin* | *mingw* )
4688
cwrappersource=`$echo ${objdir}/lt-${outputname}.c`
4689
cwrapper=`$echo ${output}.exe`
4690
$rm $cwrappersource $cwrapper
4691
trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
4693
cat > $cwrappersource <<EOF
4695
/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
4696
Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
4698
The $output program cannot be directly executed until all the libtool
4699
libraries that it depends on are installed.
4701
This wrapper executable should never be moved out of the build directory.
4702
If it is, it will not operate correctly.
4704
Currently, it simply execs the wrapper *script* "/bin/sh $output",
4705
but could eventually absorb all of the scripts functionality and
4706
exec $objdir/$outputname directly.
4709
cat >> $cwrappersource<<"EOF"
4717
#if defined(PATH_MAX)
4718
# define LT_PATHMAX PATH_MAX
4719
#elif defined(MAXPATHLEN)
4720
# define LT_PATHMAX MAXPATHLEN
4722
# define LT_PATHMAX 1024
4725
#ifndef DIR_SEPARATOR
4726
#define DIR_SEPARATOR '/'
4729
#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
4731
#define HAVE_DOS_BASED_FILE_SYSTEM
4732
#ifndef DIR_SEPARATOR_2
4733
#define DIR_SEPARATOR_2 '\\'
4737
#ifndef DIR_SEPARATOR_2
4738
# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
4739
#else /* DIR_SEPARATOR_2 */
4740
# define IS_DIR_SEPARATOR(ch) \
4741
(((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
4742
#endif /* DIR_SEPARATOR_2 */
4744
#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
4745
#define XFREE(stale) do { \
4746
if (stale) { free ((void *) stale); stale = 0; } \
4749
const char *program_name = NULL;
4751
void * xmalloc (size_t num);
4752
char * xstrdup (const char *string);
4753
char * basename (const char *name);
4754
char * fnqualify(const char *path);
4755
char * strendzap(char *str, const char *pat);
4756
void lt_fatal (const char *message, ...);
4759
main (int argc, char *argv[])
4764
program_name = (char *) xstrdup ((char *) basename (argv[0]));
4765
newargz = XMALLOC(char *, argc+2);
4768
cat >> $cwrappersource <<EOF
4769
newargz[0] = "$SHELL";
4772
cat >> $cwrappersource <<"EOF"
4773
newargz[1] = fnqualify(argv[0]);
4774
/* we know the script has the same name, without the .exe */
4775
/* so make sure newargz[1] doesn't end in .exe */
4776
strendzap(newargz[1],".exe");
4777
for (i = 1; i < argc; i++)
4778
newargz[i+1] = xstrdup(argv[i]);
4779
newargz[argc+1] = NULL;
4782
cat >> $cwrappersource <<EOF
4783
execv("$SHELL",newargz);
4786
cat >> $cwrappersource <<"EOF"
4791
xmalloc (size_t num)
4793
void * p = (void *) malloc (num);
4795
lt_fatal ("Memory exhausted");
4801
xstrdup (const char *string)
4803
return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
4808
basename (const char *name)
4812
#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
4813
/* Skip over the disk name in MSDOS pathnames. */
4814
if (isalpha (name[0]) && name[1] == ':')
4818
for (base = name; *name; name++)
4819
if (IS_DIR_SEPARATOR (*name))
4821
return (char *) base;
4825
fnqualify(const char *path)
4829
char tmp[LT_PATHMAX + 1];
4831
assert(path != NULL);
4833
/* Is it qualified already? */
4834
#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
4835
if (isalpha (path[0]) && path[1] == ':')
4836
return xstrdup (path);
4838
if (IS_DIR_SEPARATOR (path[0]))
4839
return xstrdup (path);
4841
/* prepend the current directory */
4842
/* doesn't handle '~' */
4843
if (getcwd (tmp, LT_PATHMAX) == NULL)
4844
lt_fatal ("getcwd failed");
4845
size = strlen(tmp) + 1 + strlen(path) + 1; /* +2 for '/' and '\0' */
4846
p = XMALLOC(char, size);
4847
sprintf(p, "%s%c%s", tmp, DIR_SEPARATOR, path);
4852
strendzap(char *str, const char *pat)
4856
assert(str != NULL);
4857
assert(pat != NULL);
4860
patlen = strlen(pat);
4864
str += len - patlen;
4865
if (strcmp(str, pat) == 0)
4872
lt_error_core (int exit_status, const char * mode,
4873
const char * message, va_list ap)
4875
fprintf (stderr, "%s: %s: ", program_name, mode);
4876
vfprintf (stderr, message, ap);
4877
fprintf (stderr, ".\n");
4879
if (exit_status >= 0)
4884
lt_fatal (const char *message, ...)
4887
va_start (ap, message);
4888
lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
4892
# we should really use a build-platform specific compiler
4893
# here, but OTOH, the wrappers (shell script and this C one)
4894
# are only useful if you want to execute the "real" binary.
4895
# Since the "real" binary is built for $host, then this
4896
# wrapper might as well be built for $host, too.
4897
$run $LTCC -s -o $cwrapper $cwrappersource
3629
trap "$rm $output; exit 1" 1 2 15
4901
trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
3631
4903
$echo > $output "\
3829
5089
oldobjs="$libobjs_save"
3830
5090
build_libtool_libs=no
3832
oldobjs="$objs$old_deplibs "`$echo "X$libobjs_save" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`
5092
oldobjs="$old_deplibs $non_pic_objects"
3834
5094
addlibs="$old_convenience"
3837
5097
if test -n "$addlibs"; then
3838
5098
gentop="$output_objdir/${outputname}x"
3839
$show "${rm}r $gentop"
3840
$run ${rm}r "$gentop"
3841
$show "mkdir $gentop"
3842
$run mkdir "$gentop"
3844
if test $status -ne 0 && test ! -d "$gentop"; then
3847
5099
generated="$generated $gentop"
3849
# Add in members from convenience archives.
3850
for xlib in $addlibs; do
3851
# Extract the objects.
3853
[\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
3854
*) xabs=`pwd`"/$xlib" ;;
3856
xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
3857
xdir="$gentop/$xlib"
3859
$show "${rm}r $xdir"
3864
if test $status -ne 0 && test ! -d "$xdir"; then
3867
$show "(cd $xdir && $AR x $xabs)"
3868
$run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
3870
oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
5101
func_extract_archives $gentop $addlibs
5102
oldobjs="$oldobjs $func_extract_archives_result"
3874
5105
# Do each command in the archive commands.
3875
5106
if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
3876
eval cmds=\"$old_archive_from_new_cmds\"
5107
cmds=$old_archive_from_new_cmds
3878
# Ensure that we have .o objects in place in case we decided
3879
# not to build a shared library, and have fallen back to building
3880
# static libs even though --disable-static was passed!
3881
for oldobj in $oldobjs; do
3882
if test ! -f $oldobj; then
3883
xdir=`$echo "X$oldobj" | $Xsed -e 's%/[^/]*$%%'`
3884
if test "X$xdir" = "X$oldobj"; then
5109
# POSIX demands no paths to be encoded in archives. We have
5110
# to avoid creating archives with duplicate basenames if we
5111
# might have to extract them afterwards, e.g., when creating a
5112
# static archive out of a convenience library, or when linking
5113
# the entirety of a libtool archive into another (currently
5114
# not supported by libtool).
5115
if (for obj in $oldobjs
5117
$echo "X$obj" | $Xsed -e 's%^.*/%%'
5118
done | sort | sort -uc >/dev/null 2>&1); then
5121
$echo "copying selected object files to avoid basename conflicts..."
5123
if test -z "$gentop"; then
5124
gentop="$output_objdir/${outputname}x"
5125
generated="$generated $gentop"
5127
$show "${rm}r $gentop"
5128
$run ${rm}r "$gentop"
5129
$show "$mkdir $gentop"
5130
$run $mkdir "$gentop"
5132
if test "$status" -ne 0 && test ! -d "$gentop"; then
3889
baseobj=`$echo "X$oldobj" | $Xsed -e 's%^.*/%%'`
3890
obj=`$echo "X$baseobj" | $Xsed -e "$o2lo"`
3891
$show "(cd $xdir && ${LN_S} $obj $baseobj)"
3892
$run eval '(cd $xdir && ${LN_S} $obj $baseobj)' || exit $?
5137
save_oldobjs=$oldobjs
5140
for obj in $save_oldobjs
5142
objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
5143
case " $oldobjs " in
5144
" ") oldobjs=$obj ;;
5147
# Make sure we don't pick an alternate name that also
5149
newobj=lt$counter-$objbase
5150
counter=`expr $counter + 1`
5151
case " $oldobjs " in
5152
*[\ /]"$newobj "*) ;;
5153
*) if test ! -f "$gentop/$newobj"; then break; fi ;;
5156
$show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
5157
$run ln "$obj" "$gentop/$newobj" ||
5158
$run cp "$obj" "$gentop/$newobj"
5159
oldobjs="$oldobjs $gentop/$newobj"
5161
*) oldobjs="$oldobjs $obj" ;;
3896
5166
eval cmds=\"$old_archive_cmds\"
5168
if len=`expr "X$cmds" : ".*"` &&
5169
test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
5170
cmds=$old_archive_cmds
5172
# the command line is too long to link in one step, link in parts
5173
$echo "using piecewise archive linking..."
5178
save_oldobjs=$oldobjs
5180
# Is there a better way of finding the last object in the list?
5181
for obj in $save_oldobjs
5185
for obj in $save_oldobjs
5187
oldobjs="$objlist $obj"
5188
objlist="$objlist $obj"
5189
eval test_cmds=\"$old_archive_cmds\"
5190
if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
5191
test "$len" -le "$max_cmd_len"; then
5194
# the above command should be used before it gets too long
5196
if test "$obj" = "$last_oldobj" ; then
5199
test -z "$concat_cmds" || concat_cmds=$concat_cmds~
5200
eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
5206
if test "X$oldobjs" = "X" ; then
5207
eval cmds=\"\$concat_cmds\"
5209
eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
3898
5213
save_ifs="$IFS"; IFS='~'
3899
5214
for cmd in $cmds; do
3900
5216
IFS="$save_ifs"
3902
5218
$run eval "$cmd" || exit $?
3973
5293
eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
3974
5294
if test -z "$libdir"; then
3975
5295
$echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
3978
5298
newdlprefiles="$newdlprefiles $libdir/$name"
3980
5300
dlprefiles="$newdlprefiles"
5303
for lib in $dlfiles; do
5305
[\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
5306
*) abs=`pwd`"/$lib" ;;
5308
newdlfiles="$newdlfiles $abs"
5310
dlfiles="$newdlfiles"
5312
for lib in $dlprefiles; do
5314
[\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
5315
*) abs=`pwd`"/$lib" ;;
5317
newdlprefiles="$newdlprefiles $abs"
5319
dlprefiles="$newdlprefiles"
3983
5322
# place dlname in correct position for cygwin
3984
5323
tdlname=$dlname
3985
5324
case $host,$output,$installed,$module,$dlname in
3986
*cygwin*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
5325
*cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
3988
5327
$echo > $output "\
3989
5328
# $outputname - a libtool library file
4229
5574
dir="$dir$objdir"
4231
5576
if test -n "$relink_command"; then
5577
# Determine the prefix the user has applied to our future dir.
5578
inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
5580
# Don't allow the user to place us outside of our expected
5581
# location b/c this prevents finding dependent libraries that
5582
# are installed to the same prefix.
5583
# At present, this check doesn't affect windows .dll's that
5584
# are installed into $libdir/../bin (currently, that works fine)
5585
# but it's something to keep an eye on.
5586
if test "$inst_prefix_dir" = "$destdir"; then
5587
$echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
5591
if test -n "$inst_prefix_dir"; then
5592
# Stick the inst_prefix_dir data into the link command.
5593
relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
5595
relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
4232
5598
$echo "$modename: warning: relinking \`$file'" 1>&2
4233
5599
$show "$relink_command"
4234
5600
if $run eval "$relink_command"; then :
4236
5602
$echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
4342
5721
destfile="$destdir/$destfile"
5724
# If the file is missing, and there is a .exe on the end, strip it
5725
# because it is most likely a libtool script we actually want to
5730
if test ! -f "$file"; then
5731
file=`$echo $file|${SED} 's,.exe$,,'`
4345
5737
# Do a test to see if this is really a libtool program.
4347
5739
*cygwin*|*mingw*)
4348
wrapper=`echo $file | ${SED} -e 's,.exe$,,'`
5740
wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
4354
if (${SED} -e '4q' $wrapper | egrep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
5746
if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
4355
5747
notinst_deplibs=
4356
5748
relink_command=
5750
# Note that it is not necessary on cygwin/mingw to append a dot to
5751
# foo even if both foo and FILE.exe exist: automatic-append-.exe
5752
# behavior happens only for exec(3), not for open(2)! Also, sourcing
5753
# `FILE.' does not work on cygwin managed mounts.
4358
5755
# If there is no directory component, then add one.
4360
*/* | *\\*) . $wrapper ;;
5757
*/* | *\\*) . ${wrapper} ;;
5758
*) . ./${wrapper} ;;
4364
5761
# Check the variables that should have been set.
4365
5762
if test -z "$notinst_deplibs"; then
4366
5763
$echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
4524
5932
# Exit here if they wanted silent mode.
4525
test "$show" = ":" && exit 0
5933
test "$show" = : && exit $EXIT_SUCCESS
4527
echo "----------------------------------------------------------------------"
4528
echo "Libraries have been installed in:"
5935
$echo "----------------------------------------------------------------------"
5936
$echo "Libraries have been installed in:"
4529
5937
for libdir in $libdirs; do
4533
echo "If you ever happen to want to link against installed libraries"
4534
echo "in a given directory, LIBDIR, you must either use libtool, and"
4535
echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
4536
echo "flag during linking and do at least one of the following:"
5941
$echo "If you ever happen to want to link against installed libraries"
5942
$echo "in a given directory, LIBDIR, you must either use libtool, and"
5943
$echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
5944
$echo "flag during linking and do at least one of the following:"
4537
5945
if test -n "$shlibpath_var"; then
4538
echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
4539
echo " during execution"
5946
$echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
5947
$echo " during execution"
4541
5949
if test -n "$runpath_var"; then
4542
echo " - add LIBDIR to the \`$runpath_var' environment variable"
4543
echo " during linking"
5950
$echo " - add LIBDIR to the \`$runpath_var' environment variable"
5951
$echo " during linking"
4545
5953
if test -n "$hardcode_libdir_flag_spec"; then
4547
5955
eval flag=\"$hardcode_libdir_flag_spec\"
4549
echo " - use the \`$flag' linker flag"
5957
$echo " - use the \`$flag' linker flag"
4551
5959
if test -n "$admincmds"; then
4552
echo " - have your system administrator run these commands:$admincmds"
5960
$echo " - have your system administrator run these commands:$admincmds"
4554
5962
if test -f /etc/ld.so.conf; then
4555
echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
5963
$echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
4558
echo "See any operating system documentation about shared libraries for"
4559
echo "more information, such as the ld(1) and ld.so(8) manual pages."
4560
echo "----------------------------------------------------------------------"
5966
$echo "See any operating system documentation about shared libraries for"
5967
$echo "more information, such as the ld(1) and ld.so(8) manual pages."
5968
$echo "----------------------------------------------------------------------"
4564
5972
# libtool execute mode
4814
if test "$build_old_libs" = yes; then
4815
oldobj=`$echo "X$name" | $Xsed -e "$lo2o"`
4816
rmfiles="$rmfiles $dir/$oldobj"
6225
# Possibly a libtool object, so verify it.
6226
if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
6231
# Add PIC object to the list of files to remove.
6232
if test -n "$pic_object" \
6233
&& test "$pic_object" != none; then
6234
rmfiles="$rmfiles $dir/$pic_object"
6237
# Add non-PIC object to the list of files to remove.
6238
if test -n "$non_pic_object" \
6239
&& test "$non_pic_object" != none; then
6240
rmfiles="$rmfiles $dir/$non_pic_object"
4821
# Do a test to see if this is a libtool program.
4822
if test $mode = clean &&
4823
(${SED} -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
6246
if test "$mode" = clean ; then
6250
file=`$echo $file|${SED} 's,.exe$,,'`
6251
noexename=`$echo $name|${SED} 's,.exe$,,'`
6252
# $file with .exe has already been added to rmfiles,
6253
# add $file without .exe
6254
rmfiles="$rmfiles $file"
6257
# Do a test to see if this is a libtool program.
6258
if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
4827
rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
4828
if test "$fast_install" = yes && test -n "$relink_command"; then
4829
rmfiles="$rmfiles $objdir/lt-$name"
6262
# note $name still contains .exe if it was in $file originally
6263
# as does the version of $file that was added into $rmfiles
6264
rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
6265
if test "$fast_install" = yes && test -n "$relink_command"; then
6266
rmfiles="$rmfiles $objdir/lt-$name"
6268
if test "X$noexename" != "X$name" ; then
6269
rmfiles="$rmfiles $objdir/lt-${noexename}.c"
5048
6496
$echo "$modename: invalid operation mode \`$mode'" 1>&2
5049
6497
$echo "$help" 1>&2
5055
6503
$echo "Try \`$modename --help' for more information about other modes."
6507
# The TAGs below are defined such that we never get into a situation
6508
# in which we disable both kinds of libraries. Given conflicting
6509
# choices, we go for a static library, that is the most portable,
6510
# since we can't tell whether shared libraries were disabled because
6511
# the user asked for that or because the platform doesn't support
6512
# them. This is particularly important on AIX, because we don't
6513
# support having both static and shared libraries enabled at the same
6514
# time on that platform, so we default to a shared-only configuration.
6515
# If a disable-shared tag is given, we'll fallback to a static-only
6516
# configuration. But we'll never go from static-only to shared-only.
6518
# ### BEGIN LIBTOOL TAG CONFIG: disable-shared
6519
build_libtool_libs=no
6521
# ### END LIBTOOL TAG CONFIG: disable-shared
6523
# ### BEGIN LIBTOOL TAG CONFIG: disable-static
6524
build_old_libs=`case $build_libtool_libs in yes) $echo no;; *) $echo yes;; esac`
6525
# ### END LIBTOOL TAG CONFIG: disable-static
5059
6527
# Local Variables:
5060
6528
# mode:shell-script