diff options
| author | Mike Taves <mwtoews@gmail.com> | 2021-12-05 10:04:21 +1300 |
|---|---|---|
| committer | Mike Taves <mwtoews@gmail.com> | 2021-12-05 10:04:21 +1300 |
| commit | ccb21d563ff0ca928b8055ca6704fcb18de70dfa (patch) | |
| tree | f6a3aa691f342c58316b85fdea4c4ead4fa58c1a /configure.ac | |
| parent | d76024b781361cc7b024e0bd240880cfaf1d091f (diff) | |
| download | PROJ-ccb21d563ff0ca928b8055ca6704fcb18de70dfa.tar.gz PROJ-ccb21d563ff0ca928b8055ca6704fcb18de70dfa.zip | |
Refactor proj.pc to use EXTRA_LIBS; add -lpthread to Libs.private
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index d3b1aa2d..f303cd77 100644 --- a/configure.ac +++ b/configure.ac @@ -325,7 +325,16 @@ dnl --------------------------------------------------------------------------- dnl Check for extra libraries, required for static linking with pkg-config dnl --------------------------------------------------------------------------- -EXTRA_LIBS="-lstdc++" +EXTRA_LIBS="-lstdc++ -lsqlite3" +if test "no$THREAD_LIB" != "no"; then + EXTRA_LIBS="$EXTRA_LIBS $THREAD_LIB" +fi +if test "x$enable_tiff" != "xno" -o "x$enable_tiff" = ""; then + EXTRA_LIBS="$EXTRA_LIBS -ltiff" +fi +if test "$FOUND_CURL" = "yes" ; then + EXTRA_LIBS="$EXTRA_LIBS -lcurl" +fi if test "$HAVE_LIBM" != "no" ; then EXTRA_LIBS="$EXTRA_LIBS -lm" fi |
