configure.ac: we should only create ldb.pc when use the internal ldb
authorStefan Metzmacher <metze@samba.org>
Fri, 25 Jan 2008 07:40:03 +0000 (08:40 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 25 Jan 2008 07:40:03 +0000 (08:40 +0100)
metze

source/configure.ac

index 23fc1023ad4953935672c9d5830f4d1642e4e641..e4e205e6268edc281fdff027e6aaba0c7a87fff7 100644 (file)
@@ -60,7 +60,6 @@ SMB_EXT_LIB_FROM_PKGCONFIG(LIBLDB, ldb >= 0.9.1,
                SMB_INCLUDE_MK(lib/ldb/ldb_ildap/config.mk)
                SMB_INCLUDE_MK(lib/ldb/tools/config.mk)
                SMB_SUBSYSTEM(ldb_map, [], [LIBLDB])
                SMB_INCLUDE_MK(lib/ldb/ldb_ildap/config.mk)
                SMB_INCLUDE_MK(lib/ldb/tools/config.mk)
                SMB_SUBSYSTEM(ldb_map, [], [LIBLDB])
-               AC_OUTPUT(lib/ldb/ldb.pc)
                define_ldb_modulesdir=no
        ],
        [
                define_ldb_modulesdir=no
        ],
        [
@@ -84,6 +83,7 @@ SMB_EXT_LIB_FROM_PKGCONFIG(LIBLDB, ldb >= 0.9.1,
                m4_include(lib/ldb/sqlite3.m4)
                m4_include(lib/ldb/libldb.m4)
                SMB_INCLUDE_MK(lib/ldb/config.mk)
                m4_include(lib/ldb/sqlite3.m4)
                m4_include(lib/ldb/libldb.m4)
                SMB_INCLUDE_MK(lib/ldb/config.mk)
+               AC_OUTPUT(lib/ldb/ldb.pc)
        ]
 )
 SMB_INCLUDE_MK(lib/ldb/python.mk) 
        ]
 )
 SMB_INCLUDE_MK(lib/ldb/python.mk)