Mercurial > openid
annotate configure.ac @ 49:9c83592de908
Merge
author | Robin Green <greenrd@greenrd.org> |
---|---|
date | Mon, 04 Jul 2011 17:29:13 +0100 |
parents | b416b9b9dc38 |
children |
rev | line source |
---|---|
adam@0 | 1 AC_INIT([urweb_openid], [1.0]) |
adam@0 | 2 AC_USE_SYSTEM_EXTENSIONS |
adam@0 | 3 AM_INIT_AUTOMAKE([-Wall -Werror foreign no-define]) |
adam@0 | 4 AC_PROG_CC() |
adam@0 | 5 AC_PROG_LIBTOOL() |
adam@0 | 6 AC_CONFIG_MACRO_DIR([m4]) |
adam@0 | 7 |
adam@0 | 8 AX_CHECK_OPENSSL([echo >/dev/null], [echo "You must install OpenSSL development files."; exit 1]) |
adam@0 | 9 |
adam@0 | 10 LIBCURL_CHECK_CONFIG(yes, [], [echo >/dev/null], [echo "You must install libcurl development files."; exit 1]) |
adam@0 | 11 |
adam@1 | 12 AC_PROG_CXX |
adam@1 | 13 AX_LIB_EXPAT |
adam@1 | 14 |
adam@0 | 15 if test [$prefix = "NONE"]; then |
adam@0 | 16 prefix=/usr/local |
adam@0 | 17 fi |
adam@0 | 18 |
adam@0 | 19 if test [-z $LIB]; then |
adam@0 | 20 LIB=$prefix/lib/urweb |
adam@0 | 21 fi |
adam@0 | 22 |
adam@0 | 23 if test [-z $INCLUDE]; then |
adam@0 | 24 INCLUDE=$prefix/include/urweb |
adam@0 | 25 fi |
adam@0 | 26 |
adam@0 | 27 AC_SUBST(LIB) |
adam@0 | 28 AC_SUBST(INCLUDE) |
adam@0 | 29 |
adam@0 | 30 AC_CONFIG_FILES([ |
adam@0 | 31 Makefile |
adam@0 | 32 src/c/Makefile |
adam@0 | 33 src/ur/config.urp |
adam@0 | 34 ]) |
adam@0 | 35 |
adam@0 | 36 AC_OUTPUT() |
adam@0 | 37 |
adam@0 | 38 cat <<EOF |
adam@0 | 39 |
adam@0 | 40 Ur/Web OpenID library configuration: |
adam@0 | 41 lib directory: LIB $LIB |
adam@0 | 42 include directory: INCLUDE $INCLUDE |
adam@0 | 43 EOF |