Skip to content

Commit fd1355a

Browse files
committedFeb 28, 2014
Drop libtool from llvm.
We were only using it so find the shared library extension and nm. There are simpler ways to do those things :-) llvm-svn: 202524
1 parent 7c6c36d commit fd1355a

File tree

13 files changed

+93
-35277
lines changed

13 files changed

+93
-35277
lines changed
 

‎llvm/autoconf/AutoRegen.sh

-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ clean() {
1717
want_autoconf_version='2\.60'
1818
want_autoheader_version=$want_autoconf_version
1919
want_aclocal_version='1\.9\.6'
20-
want_libtool_version='1\.5\.22'
2120
### END NOTE #########################################################
2221

2322
outfile=configure
@@ -26,7 +25,6 @@ configfile=configure.ac
2625
want_autoconf_version_clean=$(clean $want_autoconf_version)
2726
want_autoheader_version_clean=$(clean $want_autoheader_version)
2827
want_aclocal_version_clean=$(clean $want_aclocal_version)
29-
want_libtool_version_clean=$(clean $want_libtool_version)
3028

3129
test -d autoconf && test -f autoconf/$configfile && cd autoconf
3230
test -f $configfile || die "Can't find 'autoconf' dir; please cd into it first"
@@ -36,8 +34,6 @@ aclocal --version | grep '^aclocal.*'$want_aclocal_version > /dev/null
3634
test $? -eq 0 || die "Your aclocal was not detected as being $want_aclocal_version_clean"
3735
autoheader --version | grep '^autoheader.*'$want_autoheader_version > /dev/null
3836
test $? -eq 0 || die "Your autoheader was not detected as being $want_autoheader_version_clean"
39-
libtool --version | grep $want_libtool_version > /dev/null
40-
test $? -eq 0 || die "Your libtool was not detected as being $want_libtool_version_clean"
4137
echo ""
4238
echo "### NOTE: ############################################################"
4339
echo "### If you get *any* warnings from autoconf below you MUST fix the"

‎llvm/autoconf/configure.ac

+11-9
Original file line numberDiff line numberDiff line change
@@ -1235,12 +1235,10 @@ dnl=== SECTION 4: Check for programs we need and that they are the right version
12351235
dnl===
12361236
dnl===-----------------------------------------------------------------------===
12371237

1238-
AC_PROG_NM
1239-
AC_SUBST(NM)
1240-
12411238
dnl Check for the tools that the makefiles require
12421239
AC_CHECK_GNU_MAKE
12431240
AC_PROG_LN_S
1241+
AC_PATH_PROG(NM, [nm], [nm])
12441242
AC_PATH_PROG(CMP, [cmp], [cmp])
12451243
AC_PATH_PROG(CP, [cp], [cp])
12461244
AC_PATH_PROG(DATE, [date], [date])
@@ -1386,11 +1384,15 @@ AC_LINK_EXPORT_DYNAMIC
13861384
dnl Determine whether the linker supports the --version-script option.
13871385
AC_LINK_VERSION_SCRIPT
13881386

1389-
dnl Check for libtool and the library that has dlopen function (which must come
1390-
dnl before the AC_PROG_LIBTOOL check in order to enable dlopening libraries with
1391-
dnl libtool).
1392-
AC_LIBTOOL_DLOPEN
1393-
AC_LIB_LTDL
1387+
AC_CHECK_HEADERS([errno.h])
1388+
1389+
case "$llvm_cv_os_type" in
1390+
Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
1391+
Darwin) llvm_shlib_ext=.dylib ;;
1392+
*) llvm_shlib_ext=.so ;;
1393+
esac
1394+
1395+
AC_DEFINE_UNQUOTED([LTDL_SHLIB_EXT], ["$llvm_shlib_ext"], [The shared library extension])
13941396

13951397
AC_MSG_CHECKING([tool compatibility])
13961398

@@ -1900,7 +1902,7 @@ AC_CHECK_FUNCS([__dso_handle])
19001902

19011903
dnl Propagate the shared library extension that the libltdl checks did to
19021904
dnl the Makefiles so we can use it there too
1903-
AC_SUBST(SHLIBEXT,$libltdl_cv_shlibext)
1905+
AC_SUBST(SHLIBEXT,$llvm_shlib_ext)
19041906

19051907
dnl Translate the various configuration directories and other basic
19061908
dnl information into substitutions that will end up in Makefile.config.in

0 commit comments

Comments
 (0)