Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Side by Side Diff: third_party/sqlite/src/autoconf/configure.ac

Issue 2751253002: [sql] Import SQLite 3.17.0. (Closed)
Patch Set: also clang on Linux i386 Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 1
2 #----------------------------------------------------------------------- 2 #-----------------------------------------------------------------------
3 # Supports the following non-standard switches. 3 # Supports the following non-standard switches.
4 # 4 #
5 # --enable-threadsafe 5 # --enable-threadsafe
6 # --enable-readline 6 # --enable-readline
7 # --enable-editline 7 # --enable-editline
8 # --enable-static-shell 8 # --enable-static-shell
9 # --enable-dynamic-extensions 9 # --enable-dynamic-extensions
10 # 10 #
(...skipping 12 matching lines...) Expand all
23 AC_PROG_LIBTOOL 23 AC_PROG_LIBTOOL
24 AC_PROG_MKDIR_P 24 AC_PROG_MKDIR_P
25 25
26 # Check for library functions that SQLite can optionally use. 26 # Check for library functions that SQLite can optionally use.
27 AC_CHECK_FUNCS([fdatasync usleep fullfsync localtime_r gmtime_r]) 27 AC_CHECK_FUNCS([fdatasync usleep fullfsync localtime_r gmtime_r])
28 AC_FUNC_STRERROR_R 28 AC_FUNC_STRERROR_R
29 29
30 AC_CONFIG_FILES([Makefile sqlite3.pc]) 30 AC_CONFIG_FILES([Makefile sqlite3.pc])
31 AC_SUBST(BUILD_CFLAGS) 31 AC_SUBST(BUILD_CFLAGS)
32 32
33 #----------------------------------------------------------------------- 33 #-------------------------------------------------------------------------
34 # Two options to enable readline compatible libraries:
35 #
34 # --enable-editline 36 # --enable-editline
35 # --enable-readline 37 # --enable-readline
36 # 38 #
37 AC_ARG_ENABLE(editline, [AS_HELP_STRING( 39 # Both are enabled by default. If, after command line processing both are
38 [--enable-editline], 40 # still enabled, the script searches for editline first and automatically
39 [use BSD libedit])], 41 # disables readline if it is found. So, to use readline explicitly, the
40 [], [enable_editline=yes]) 42 # user must pass "--disable-editline". To disable command line editing
41 AC_ARG_ENABLE(readline, [AS_HELP_STRING( 43 # support altogether, "--disable-editline --disable-readline".
42 [--enable-readline], 44 #
43 [use readline])], 45 # When searching for either library, check for headers before libraries
44 [], [enable_readline=no]) 46 # as some distros supply packages that contain libraries but not header
45 if test x"$enable_editline" != xno ; then 47 # files, which come as a separate development package.
46 sLIBS=$LIBS 48 #
47 LIBS="" 49 AC_ARG_ENABLE(editline, [AS_HELP_STRING([--enable-editline],[use BSD libedit])])
48 AC_SEARCH_LIBS([readline],[edit],[enable_readline=no],[enable_editline=no]) 50 AC_ARG_ENABLE(readline, [AS_HELP_STRING([--enable-readline],[use readline])])
49 READLINE_LIBS=$LIBS 51
50 if test x"$LIBS" != "x"; then 52 AS_IF([ test x"$enable_editline" != xno ],[
51 AC_DEFINE([HAVE_EDITLINE],1,Define to use BSD editline) 53 AC_CHECK_HEADERS([editline/readline.h],[
52 else 54 sLIBS=$LIBS
53 unset ac_cv_search_readline 55 LIBS=""
54 fi 56 AC_SEARCH_LIBS([readline],[edit],[
55 LIBS=$sLIBS 57 AC_DEFINE([HAVE_EDITLINE],1,Define to use BSD editline)
56 fi 58 READLINE_LIBS=$LIBS
57 if test x"$enable_readline" != xno ; then 59 enable_readline=no
58 sLIBS=$LIBS 60 ])
59 LIBS="" 61 AS_UNSET(ac_cv_search_readline)
60 AC_SEARCH_LIBS(tgetent, curses ncurses ncursesw, [], []) 62 LIBS=$sLIBS
61 AC_SEARCH_LIBS(readline, readline, [], [enable_readline=no]) 63 ])
62 AC_CHECK_FUNCS(readline, [], []) 64 ])
63 READLINE_LIBS=$LIBS 65
64 LIBS=$sLIBS 66 AS_IF([ test x"$enable_readline" != xno ],[
65 fi 67 AC_CHECK_HEADERS([readline/readline.h],[
68 sLIBS=$LIBS
69 LIBS=""
70 AC_SEARCH_LIBS(tgetent, termcap curses ncurses ncursesw, [], [])
71 AC_SEARCH_LIBS(readline,[readline edit], [
72 AC_DEFINE([HAVE_READLINE],1,Define to use readline or wrapper)
73 READLINE_LIBS=$LIBS
74 ])
75 LIBS=$sLIBS
76 ])
77 ])
78
66 AC_SUBST(READLINE_LIBS) 79 AC_SUBST(READLINE_LIBS)
67 #----------------------------------------------------------------------- 80 #-----------------------------------------------------------------------
68 81
69 #----------------------------------------------------------------------- 82 #-----------------------------------------------------------------------
70 # --enable-threadsafe 83 # --enable-threadsafe
71 # 84 #
72 AC_ARG_ENABLE(threadsafe, [AS_HELP_STRING( 85 AC_ARG_ENABLE(threadsafe, [AS_HELP_STRING(
73 [--enable-threadsafe], [build a thread-safe library [default=yes]])], 86 [--enable-threadsafe], [build a thread-safe library [default=yes]])],
74 [], [enable_threadsafe=yes]) 87 [], [enable_threadsafe=yes])
75 THREADSAFE_FLAGS=-DSQLITE_THREADSAFE=0 88 THREADSAFE_FLAGS=-DSQLITE_THREADSAFE=0
76 if test x"$enable_threadsafe" != "xno"; then 89 if test x"$enable_threadsafe" != "xno"; then
77 THREADSAFE_FLAGS="-D_REENTRANT=1 -DSQLITE_THREADSAFE=1" 90 THREADSAFE_FLAGS="-D_REENTRANT=1 -DSQLITE_THREADSAFE=1"
78 AC_SEARCH_LIBS(pthread_create, pthread) 91 AC_SEARCH_LIBS(pthread_create, pthread)
92 AC_SEARCH_LIBS(pthread_mutexattr_init, pthread)
79 fi 93 fi
80 AC_SUBST(THREADSAFE_FLAGS) 94 AC_SUBST(THREADSAFE_FLAGS)
81 #----------------------------------------------------------------------- 95 #-----------------------------------------------------------------------
82 96
83 #----------------------------------------------------------------------- 97 #-----------------------------------------------------------------------
84 # --enable-dynamic-extensions 98 # --enable-dynamic-extensions
85 # 99 #
86 AC_ARG_ENABLE(dynamic-extensions, [AS_HELP_STRING( 100 AC_ARG_ENABLE(dynamic-extensions, [AS_HELP_STRING(
87 [--enable-dynamic-extensions], [support loadable extensions [default=yes]])], 101 [--enable-dynamic-extensions], [support loadable extensions [default=yes]])],
88 [], [enable_dynamic_extensions=yes]) 102 [], [enable_dynamic_extensions=yes])
89 if test x"$enable_dynamic_extensions" != "xno"; then 103 if test x"$enable_dynamic_extensions" != "xno"; then
90 AC_SEARCH_LIBS(dlopen, dl) 104 AC_SEARCH_LIBS(dlopen, dl)
91 else 105 else
92 DYNAMIC_EXTENSION_FLAGS=-DSQLITE_OMIT_LOAD_EXTENSION=1 106 DYNAMIC_EXTENSION_FLAGS=-DSQLITE_OMIT_LOAD_EXTENSION=1
93 fi 107 fi
94 AC_MSG_CHECKING([for whether to support dynamic extensions]) 108 AC_MSG_CHECKING([for whether to support dynamic extensions])
95 AC_MSG_RESULT($enable_dynamic_extensions) 109 AC_MSG_RESULT($enable_dynamic_extensions)
96 AC_SUBST(DYNAMIC_EXTENSION_FLAGS) 110 AC_SUBST(DYNAMIC_EXTENSION_FLAGS)
97 #----------------------------------------------------------------------- 111 #-----------------------------------------------------------------------
98 112
99 #----------------------------------------------------------------------- 113 #-----------------------------------------------------------------------
100 # --enable-fts5 114 # --enable-fts5
101 # 115 #
102 AC_ARG_ENABLE(fts5, [AS_HELP_STRING( 116 AC_ARG_ENABLE(fts5, [AS_HELP_STRING(
103 [--enable-fts5], [include fts5 support [default=no]])], 117 [--enable-fts5], [include fts5 support [default=no]])],
104 [], [enable_fts5=no]) 118 [], [enable_fts5=no])
105 if test x"$enable_fts5" == "xyes"; then 119 if test x"$enable_fts5" = "xyes"; then
106 AC_SEARCH_LIBS(log, m) 120 AC_SEARCH_LIBS(log, m)
107 FTS5_FLAGS=-DSQLITE_ENABLE_FTS5 121 FTS5_FLAGS=-DSQLITE_ENABLE_FTS5
108 fi 122 fi
109 AC_SUBST(FTS5_FLAGS) 123 AC_SUBST(FTS5_FLAGS)
110 #----------------------------------------------------------------------- 124 #-----------------------------------------------------------------------
111 125
112 #----------------------------------------------------------------------- 126 #-----------------------------------------------------------------------
113 # --enable-json1 127 # --enable-json1
114 # 128 #
115 AC_ARG_ENABLE(json1, [AS_HELP_STRING( 129 AC_ARG_ENABLE(json1, [AS_HELP_STRING(
116 [--enable-json1], [include json1 support [default=no]])], 130 [--enable-json1], [include json1 support [default=no]])],
117 [], [enable_json1=no]) 131 [], [enable_json1=no])
118 if test x"$enable_json1" == "xyes"; then 132 if test x"$enable_json1" = "xyes"; then
119 JSON1_FLAGS=-DSQLITE_ENABLE_JSON1 133 JSON1_FLAGS=-DSQLITE_ENABLE_JSON1
120 fi 134 fi
121 AC_SUBST(JSON1_FLAGS) 135 AC_SUBST(JSON1_FLAGS)
122 #----------------------------------------------------------------------- 136 #-----------------------------------------------------------------------
123 137
124 #----------------------------------------------------------------------- 138 #-----------------------------------------------------------------------
139 # --enable-session
140 #
141 AC_ARG_ENABLE(session, [AS_HELP_STRING(
142 [--enable-session], [enable the session extension [default=no]])],
143 [], [enable_session=no])
144 if test x"$enable_session" = "xyes"; then
145 SESSION_FLAGS="-DSQLITE_ENABLE_SESSION -DSQLITE_ENABLE_PREUPDATE_HOOK"
146 fi
147 AC_SUBST(SESSION_FLAGS)
148 #-----------------------------------------------------------------------
149
150 #-----------------------------------------------------------------------
125 # --enable-static-shell 151 # --enable-static-shell
126 # 152 #
127 AC_ARG_ENABLE(static-shell, [AS_HELP_STRING( 153 AC_ARG_ENABLE(static-shell, [AS_HELP_STRING(
128 [--enable-static-shell], 154 [--enable-static-shell],
129 [statically link libsqlite3 into shell tool [default=yes]])], 155 [statically link libsqlite3 into shell tool [default=yes]])],
130 [], [enable_static_shell=yes]) 156 [], [enable_static_shell=yes])
131 if test x"$enable_static_shell" == "xyes"; then 157 if test x"$enable_static_shell" = "xyes"; then
132 EXTRA_SHELL_OBJ=sqlite3.$OBJEXT 158 EXTRA_SHELL_OBJ=sqlite3-sqlite3.$OBJEXT
133 else 159 else
134 EXTRA_SHELL_OBJ=libsqlite3.la 160 EXTRA_SHELL_OBJ=libsqlite3.la
135 fi 161 fi
136 AC_SUBST(EXTRA_SHELL_OBJ) 162 AC_SUBST(EXTRA_SHELL_OBJ)
137 #----------------------------------------------------------------------- 163 #-----------------------------------------------------------------------
138 164
139 AC_CHECK_FUNCS(posix_fallocate) 165 AC_CHECK_FUNCS(posix_fallocate)
140 166
141 #----------------------------------------------------------------------- 167 #-----------------------------------------------------------------------
142 # UPDATE: Maybe it's better if users just set CFLAGS before invoking 168 # UPDATE: Maybe it's better if users just set CFLAGS before invoking
(...skipping 14 matching lines...) Expand all
157 # * ) 183 # * )
158 # TEMP_STORE=1 184 # TEMP_STORE=1
159 # enable_tempstore=yes 185 # enable_tempstore=yes
160 # ;; 186 # ;;
161 # esac 187 # esac
162 # AC_MSG_RESULT($enable_tempstore) 188 # AC_MSG_RESULT($enable_tempstore)
163 # AC_SUBST(TEMP_STORE) 189 # AC_SUBST(TEMP_STORE)
164 #----------------------------------------------------------------------- 190 #-----------------------------------------------------------------------
165 191
166 AC_OUTPUT 192 AC_OUTPUT
OLDNEW
« no previous file with comments | « third_party/sqlite/src/autoconf/README.txt ('k') | third_party/sqlite/src/autoconf/tea/configure.ac » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698