--- sql/sqlite/Attic/configure.in 2007/09/17 17:10:06 1.3 +++ sql/sqlite/Attic/configure.in 2009/08/23 05:53:11 1.8.2.1 @@ -2,7 +2,7 @@ dnl Process this file with autoconf to p AC_INIT(parser3sqlite.C) AC_PREREQ(2.57) -AM_INIT_AUTOMAKE(parser3sqlite, 9.1, nodefine) +AM_INIT_AUTOMAKE(parser3sqlite, 10.1, nodefine) AM_CONFIG_HEADER(config_auto.h) @@ -19,9 +19,9 @@ dnl Arguments AC_ARG_WITH(sqlite-inc,[ --with-sqlite-inc=DIR DIR is the SQLite includes directory], SQLITE_INC_CHK($withval) - if test -z "$SQLITE_INC"; then + if test -z "$SQLITE_INC"; then AC_MSG_ERROR($SQLITE_INC does not seem to be valid SQLite includes directory) - fi + fi , AC_MSG_CHECKING(for SQLITE_INC directory) for d in \ @@ -30,9 +30,9 @@ AC_ARG_WITH(sqlite-inc,[ --with-sqlite- SQLITE_INC_CHK($d) done - if test -z "$SQLITE_INC"; then - AC_MSG_ERROR(use --with-sqlite-inc=DIR to specify SQLite includes directory) - fi + if test -z "$SQLITE_INC"; then + AC_MSG_ERROR(use --with-sqlite-inc=DIR to specify SQLite includes directory) + fi AC_MSG_RESULT($SQLITE_INC) ) @@ -41,6 +41,16 @@ AC_SUBST(SQLITE_INC) +AC_ARG_WITH(dynamic-stdcpp, [ --with-dynamic-stdcpp link libstdc++ dynamically + by default, libstdc++ is linked statically],[ + LDFLAGS="-lstdc++" +],[ + LDFLAGS="-Wl,-Bstatic -Wl,-lstdc++ -Wl,-Bdynamic" +]) + +AC_SUBST(LDFLAGS) + + dnl Checks for programs. AC_PROG_INSTALL AC_PROG_MAKE_SET