@@ -1235,12 +1235,10 @@ dnl=== SECTION 4: Check for programs we need and that they are the right version
1235
1235
dnl ===
1236
1236
dnl ===-----------------------------------------------------------------------===
1237
1237
1238
- AC_PROG_NM
1239
- AC_SUBST ( NM )
1240
-
1241
1238
dnl Check for the tools that the makefiles require
1242
1239
AC_CHECK_GNU_MAKE
1243
1240
AC_PROG_LN_S
1241
+ AC_PATH_PROG ( NM , [ nm] , [ nm] )
1244
1242
AC_PATH_PROG ( CMP , [ cmp] , [ cmp] )
1245
1243
AC_PATH_PROG ( CP , [ cp] , [ cp] )
1246
1244
AC_PATH_PROG ( DATE , [ date] , [ date] )
@@ -1386,11 +1384,15 @@ AC_LINK_EXPORT_DYNAMIC
1386
1384
dnl Determine whether the linker supports the --version-script option.
1387
1385
AC_LINK_VERSION_SCRIPT
1388
1386
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] )
1394
1396
1395
1397
AC_MSG_CHECKING ( [ tool compatibility] )
1396
1398
@@ -1900,7 +1902,7 @@ AC_CHECK_FUNCS([__dso_handle])
1900
1902
1901
1903
dnl Propagate the shared library extension that the libltdl checks did to
1902
1904
dnl the Makefiles so we can use it there too
1903
- AC_SUBST ( SHLIBEXT ,$libltdl_cv_shlibext )
1905
+ AC_SUBST ( SHLIBEXT ,$llvm_shlib_ext )
1904
1906
1905
1907
dnl Translate the various configuration directories and other basic
1906
1908
dnl information into substitutions that will end up in Makefile.config.in
0 commit comments