aboutsummaryrefslogtreecommitdiff
path: root/test/postinstall/c_app/configure.ac
blob: 43ae48355979ee7102749ea9608f334e6a1265e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
AC_INIT([c_app], [0.1])
AM_INIT_AUTOMAKE
AC_PROG_CC
AC_CONFIG_MACRO_DIR([../../../m4])

PKG_CHECK_MODULES([PROJ], [proj])

AC_ARG_ENABLE([static-proj],
  AS_HELP_STRING([--enable-static-proj],
    [Enable linking to static PROJ library]))

# If enabled, force static linking for Linux
if test "x$enable_static_proj" = "xyes" -a "x$(uname)" = "xLinux"; then
  PROJ_LIBS=$(echo "$PROJ_LIBS" | sed 's/-lproj/-Wl,-Bstatic -lproj -Wl,-Bdynamic/')
fi

AC_CONFIG_FILES([Makefile])
AC_OUTPUT