59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
+
+
|
AC_ARG_WITH(sqlite3, AS_HELP_STRING([--with-sqlite3=PREFIX],
[build with SQLite3 in the specified prefix]))
AS_IF([test x"$with_sqlite3" != x"no" -a x"$with_sqlite3" != x""], [
SQLITE3_CPPFLAGS="-I$with_sqlite3/include"
SQLITE3_LIBS="-L$with_sqlite3/lib"
CPPFLAGS="$CPPFLAGS $SQLITE3_CPPFLAGS"
LIBS="$LIBS $SQLITE3_LIBS"
FRAMEWORK_LIBS="$FRAMEWORK_LIBS $SQLITE3_LIBS"
])
AC_CHECK_LIB(sqlite3, main, [
SQLITE3_LIBS="$SQLITE3_LIBS -lsqlite3"
LIBS="$LIBS -lsqlite3"
FRAMEWORK_LIBS="$FRAMEWORK_LIBS -lsqlite3"
], [
AC_MSG_ERROR(You need SQLite3 and installed!)
])
AS_IF([test x"$GOBJC" = x"yes"], [
OBJCFLAGS="$OBJCFLAGS -Wall -Werror -Wwrite-strings -Wpointer-arith"
|