diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-07-26 12:44:53 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-07-26 12:44:53 +0200 |
commit | 602f5e3e0824d9c2c9dd1fab29342ecbce3b78da (patch) | |
tree | ef4d4e6643b3b2556b56245568e83a3d182cc159 /configure.ac | |
parent | d78afeb1a0d5c45dcd64e27ff8b7e9ca73bfce21 (diff) |
first steps towards generating (ugly) HTML replies for /orders/
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 0f5a5fb8..399f7592 100644 --- a/configure.ac +++ b/configure.ac @@ -132,6 +132,41 @@ PKG_CHECK_MODULES([JANSSON], [jansson >= 2.3], *** You need libjansson to build this program. ***]])]) + +# test for libqrencode +qrencode=0 +QR_LIBS="-lqrencode" +AC_MSG_CHECKING(for libqrencode) +AC_ARG_WITH(qrencode, + [ --with-qrencode=PFX Base of libqrencode installation], + [AC_MSG_RESULT([$with_qrencode]) + AS_CASE([$with_qrencode], + [no],[], + [yes],[ + AC_CHECK_HEADERS(qrencode.h,qrencode=1) + ], + [ + CPPFLAGS="-I$with_qrencode/include $CPPFLAGS" + QR_CFLAGS="-I$with_qrencode/include" + QR_LIBS="-L$with_qrencode/lib -lqrencode" + AC_CHECK_HEADERS(qrencode.h,qrencode=1) + ]) + ], + [AC_MSG_RESULT([--with-qrencode not specified]) + AC_CHECK_HEADERS(qrencode.h,qrencode=1)]) + +AS_IF([test "$qrencode" != 1], +[AC_MSG_ERROR([[ +*** +*** You need libqrencode to build this program. +*** ]])]) + + +AC_SUBST(QR_CFLAGS) +AC_SUBST(QR_LIBS) + + + # check for libgnurl # libgnurl LIBGNURL_CHECK_CONFIG(,7.34.0,gnurl=1,gnurl=0) |