USE_LIBTOOL strikes back: use the new and improved way for dealing with

configure scripts created using autoconf 2.13 or later, which allows
to replace many patch-ltmain.sh out there with USE_LIBTOOL and one
additional line in configure script.
This commit is contained in:
Maxim Sobolev 2002-04-25 18:37:03 +00:00
parent f10ac6098c
commit 8a468ffb08
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=58123
6 changed files with 36 additions and 176 deletions

View file

@ -31,7 +31,7 @@ MOZILLA= mozilla
USE_X_PREFIX= yes
USE_NEWGCC= yes
USE_GNOME= yes
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
CONFIGURE_ARGS= --with-mozilla-includes="${X11BASE}/include/mozilla" \
--with-mozilla-libs="${X11BASE}/lib/${MOZILLA}" \
--enable-nautilus-view

View file

@ -1,47 +1,22 @@
$FreeBSD$
--- configure.orig Wed Mar 13 10:57:19 2002
+++ configure Wed Mar 13 10:58:12 2002
@@ -9966,7 +9966,7 @@
--- configure.orig Thu Apr 25 21:02:26 2002
+++ configure Thu Apr 25 21:03:14 2002
@@ -5434,6 +5434,7 @@
# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
+$ac_aux_dir/ltconfig $LIBTOOL_DEPS
# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
@@ -7078,7 +7079,7 @@
#define ENABLE_NAUTILUS_VIEW 1
EOF
- _gnome_modules="$_gnome_modules bonobox nautilus"
+ _gnome_modules="$_gnome_modules bonobox"
fi
echo "$ac_t""$enable_nautilus_view" 1>&6
- CATOBJEXT=.gmo
+ CATOBJEXT=.mo
fi
else
@@ -10088,7 +10088,7 @@
BUILD_INCLUDED_LIBINTL=yes
USE_INCLUDED_LIBINTL=yes
- CATOBJEXT=.gmo
+ CATOBJEXT=.mo
INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
fi
@@ -10173,7 +10173,7 @@
fi
for lang in $ALL_LINGUAS; do
- GMOFILES="$GMOFILES $lang.gmo"
+ GMOFILES="$GMOFILES $lang.mo"
POFILES="$POFILES $lang.po"
done
@@ -10502,10 +10502,10 @@
s%@INSTALL_DATA@%$INSTALL_DATA%g
s%@PACKAGE@%$PACKAGE%g
s%@VERSION@%$VERSION%g
-s%@ACLOCAL@%$ACLOCAL%g
-s%@AUTOCONF@%$AUTOCONF%g
-s%@AUTOMAKE@%$AUTOMAKE%g
-s%@AUTOHEADER@%$AUTOHEADER%g
+s%@ACLOCAL@%/usr/bin/true%g
+s%@AUTOCONF@%/usr/bin/true%g
+s%@AUTOMAKE@%/usr/bin/true%g
+s%@AUTOHEADER@%/usr/bin/true%g
s%@MAKEINFO@%$MAKEINFO%g
s%@SET_MAKE@%$SET_MAKE%g
s%@host@%$host%g

View file

@ -1,45 +0,0 @@
$FreeBSD$
--- ltmain.sh.orig Wed Jan 23 11:38:40 2002
+++ ltmain.sh Sun Feb 3 01:44:17 2002
@@ -1037,8 +1037,16 @@
continue
;;
+ -pthread)
+ compile_command="$compile_command -pthread"
+ finalize_command="$finalize_command -pthread"
+ compiler_flags="$compiler_flags -pthread"
+ continue
+ ;;
+
-module)
module=yes
+ build_old_libs=no
continue
;;
@@ -2412,6 +2420,9 @@
*-*-netbsd*)
# Don't link with libc until the a.out ld.so is fixed.
;;
+ *-*-freebsd*)
+ # FreeBSD doesn't need this...
+ ;;
*)
# Add libc to deplibs on all other systems if necessary.
if test "$build_libtool_need_lc" = "yes"; then
@@ -4179,10 +4190,12 @@
fi
# Install the pseudo-library for information purposes.
+ if /usr/bin/false; then
name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
instname="$dir/$name"i
$show "$install_prog $instname $destdir/$name"
$run eval "$install_prog $instname $destdir/$name" || exit $?
+ fi
# Maybe install the static library, too.
test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"

View file

@ -31,7 +31,7 @@ MOZILLA= mozilla
USE_X_PREFIX= yes
USE_NEWGCC= yes
USE_GNOME= yes
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
CONFIGURE_ARGS= --with-mozilla-includes="${X11BASE}/include/mozilla" \
--with-mozilla-libs="${X11BASE}/lib/${MOZILLA}" \
--enable-nautilus-view

View file

@ -1,47 +1,22 @@
$FreeBSD$
--- configure.orig Wed Mar 13 10:57:19 2002
+++ configure Wed Mar 13 10:58:12 2002
@@ -9966,7 +9966,7 @@
--- configure.orig Thu Apr 25 21:02:26 2002
+++ configure Thu Apr 25 21:03:14 2002
@@ -5434,6 +5434,7 @@
# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
+$ac_aux_dir/ltconfig $LIBTOOL_DEPS
# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
@@ -7078,7 +7079,7 @@
#define ENABLE_NAUTILUS_VIEW 1
EOF
- _gnome_modules="$_gnome_modules bonobox nautilus"
+ _gnome_modules="$_gnome_modules bonobox"
fi
echo "$ac_t""$enable_nautilus_view" 1>&6
- CATOBJEXT=.gmo
+ CATOBJEXT=.mo
fi
else
@@ -10088,7 +10088,7 @@
BUILD_INCLUDED_LIBINTL=yes
USE_INCLUDED_LIBINTL=yes
- CATOBJEXT=.gmo
+ CATOBJEXT=.mo
INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
fi
@@ -10173,7 +10173,7 @@
fi
for lang in $ALL_LINGUAS; do
- GMOFILES="$GMOFILES $lang.gmo"
+ GMOFILES="$GMOFILES $lang.mo"
POFILES="$POFILES $lang.po"
done
@@ -10502,10 +10502,10 @@
s%@INSTALL_DATA@%$INSTALL_DATA%g
s%@PACKAGE@%$PACKAGE%g
s%@VERSION@%$VERSION%g
-s%@ACLOCAL@%$ACLOCAL%g
-s%@AUTOCONF@%$AUTOCONF%g
-s%@AUTOMAKE@%$AUTOMAKE%g
-s%@AUTOHEADER@%$AUTOHEADER%g
+s%@ACLOCAL@%/usr/bin/true%g
+s%@AUTOCONF@%/usr/bin/true%g
+s%@AUTOMAKE@%/usr/bin/true%g
+s%@AUTOHEADER@%/usr/bin/true%g
s%@MAKEINFO@%$MAKEINFO%g
s%@SET_MAKE@%$SET_MAKE%g
s%@host@%$host%g

View file

@ -1,45 +0,0 @@
$FreeBSD$
--- ltmain.sh.orig Wed Jan 23 11:38:40 2002
+++ ltmain.sh Sun Feb 3 01:44:17 2002
@@ -1037,8 +1037,16 @@
continue
;;
+ -pthread)
+ compile_command="$compile_command -pthread"
+ finalize_command="$finalize_command -pthread"
+ compiler_flags="$compiler_flags -pthread"
+ continue
+ ;;
+
-module)
module=yes
+ build_old_libs=no
continue
;;
@@ -2412,6 +2420,9 @@
*-*-netbsd*)
# Don't link with libc until the a.out ld.so is fixed.
;;
+ *-*-freebsd*)
+ # FreeBSD doesn't need this...
+ ;;
*)
# Add libc to deplibs on all other systems if necessary.
if test "$build_libtool_need_lc" = "yes"; then
@@ -4179,10 +4190,12 @@
fi
# Install the pseudo-library for information purposes.
+ if /usr/bin/false; then
name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
instname="$dir/$name"i
$show "$install_prog $instname $destdir/$name"
$run eval "$install_prog $instname $destdir/$name" || exit $?
+ fi
# Maybe install the static library, too.
test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"