--- unixODBC-2.2.12/Makefile.am- 2010-11-14 20:27:08.000000000 +0300 +++ unixODBC-2.2.12/Makefile.am 2011-02-14 18:42:27.227771398 +0300 @@ -3,7 +3,6 @@ SUBDIRS = \ log \ lst \ ini \ - libltdl \ odbcinst \ DriverManager \ odbcinstQ \ --- unixODBC-2.2.12/configure.in- 2010-11-14 20:27:08.000000000 +0300 +++ unixODBC-2.2.12/configure.in 2011-02-14 18:42:27.227771398 +0300 @@ -148,35 +148,14 @@ dnl and set LIBLTDL accordingly INCLTDL="" LIBLTDL="" -AC_MSG_CHECKING( Have we enabled using RTLD_GROUP ) -if test "x$rtldgroup" = "xtrue"; then -AC_MSG_RESULT( yes ) -AC_LIBLTDL_CONVENIENCE -else -AC_MSG_RESULT( no ); -AC_LIBLTDL_CONVENIENCE_G -fi - -dnl Check for dlopen support -AC_LIBTOOL_DLOPEN - dnl Configure libtool AM_PROG_LIBTOOL -dnl Configure libltdl -AC_CONFIG_SUBDIRS(libltdl) - use_builtin_libtool="no" -dnl override the libtool lines if we use the system libs -if test "x$ltdllib" = "xtrue"; then -AC_CHECK_LIB( ltdl, lt_dlopen, [ LIBLTDL="-lltdl" ], [use_builtin_libtool="yes"] ) -if test "x$use_builtin_libtool" = "xno"; then - AC_CHECK_HEADERS(ltdl.h, [], [use_builtin_libtool="yes"] ) -fi -else -use_builtin_libtool="yes" -fi +AC_CHECK_LIB(ltdl, lt_dlopen, [LIBLTDL="-lltdl"], [AC_MSG_ERROR(libltdl not found)]) +AC_CHECK_HEADERS(ltdl.h, [], [AC_MSG_ERROR(ltdl.h not found)]) + AC_MSG_CHECKING( if we are using the included libltdl ) AC_MSG_RESULT( $use_builtin_libtool ) --- unixODBC-2.2.12/exe/Makefile.am- 2010-11-14 20:27:08.000000000 +0300 +++ unixODBC-2.2.12/exe/Makefile.am 2011-02-14 18:42:27.227771398 +0300 @@ -103,6 +103,6 @@ odbc_config_SOURCES = odbc-config.c if WITHLT dltest_DEPENDENCIES = $(LIBLTDL) -dltest_LDADD = $(LIBLTDL) $(LIBADD_DL) else +dltest_LDADD = $(LIBLTDL) $(LIBADD_DL) endif