Mercurial > openid
diff configure.ac @ 0:3c209338e596
Ur/Web module initializes libcurl
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Sun, 26 Dec 2010 12:04:08 -0500 |
parents | |
children | c230e6da3ff6 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/configure.ac Sun Dec 26 12:04:08 2010 -0500 @@ -0,0 +1,41 @@ +AC_INIT([urweb_openid], [1.0]) +AC_USE_SYSTEM_EXTENSIONS +AM_INIT_AUTOMAKE([-Wall -Werror foreign no-define]) +AC_PROG_CC() +AC_PROG_LIBTOOL() +AC_CONFIG_MACRO_DIR([m4]) + +AX_CHECK_OPENSSL([echo >/dev/null], [echo "You must install OpenSSL development files."; exit 1]) + +LIBCURL_CHECK_CONFIG(yes, [], [echo >/dev/null], [echo "You must install libcurl development files."; exit 1]) + +if test [$prefix = "NONE"]; then + prefix=/usr/local +fi + +if test [-z $LIB]; then + LIB=$prefix/lib/urweb +fi + +if test [-z $INCLUDE]; then + INCLUDE=$prefix/include/urweb +fi + +AC_SUBST(LIB) +AC_SUBST(INCLUDE) + +AC_CONFIG_FILES([ + Makefile + src/c/Makefile + src/ur/config.urp +]) + +AC_OUTPUT() + +cat <<EOF + +Ur/Web OpenID library configuration: + lib directory: LIB $LIB + include directory: INCLUDE $INCLUDE + Extra GCC args: GCCARGS $GCCARGS +EOF