annotate configure.ac @ 21:7275f59cab61

tagAOR and a Reddit example of using it
author Adam Chlipala <adam@chlipala.net>
date Sat, 29 Sep 2012 10:30:00 -0400
parents ad85b8813e8a
children
rev   line source
adam@0 1 AC_INIT([urweb_feed], [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 LIBCURL_CHECK_CONFIG(yes, [], [echo >/dev/null], [echo "You must install libcurl development files."; exit 1])
adam@0 9
adam@0 10 if test [$prefix = "NONE"]; then
adam@0 11 prefix=/usr/local
adam@0 12 fi
adam@0 13
adam@0 14 if test [-z $LIB]; then
adam@0 15 LIB=$prefix/lib/urweb
adam@0 16 fi
adam@0 17
adam@0 18 if test [-z $INCLUDE]; then
adam@0 19 INCLUDE=$prefix/include/urweb
adam@0 20 fi
adam@0 21
adam@0 22 AC_SUBST(LIB)
adam@0 23 AC_SUBST(INCLUDE)
adam@0 24
adam@0 25 AC_CONFIG_FILES([
adam@0 26 Makefile
adam@0 27 src/c/Makefile
adam@0 28 src/ur/config.urp
adam@0 29 ])
adam@0 30
adam@0 31 AC_OUTPUT()
adam@0 32
adam@0 33 cat <<EOF
adam@0 34
adam@0 35 Ur/Web XML feed library configuration:
adam@0 36 lib directory: LIB $LIB
adam@0 37 include directory: INCLUDE $INCLUDE
adam@0 38 EOF