2 dnl Process this file with autoconf to produce a configure script.
3 AC_INIT(src/gcm_input/message.h)
4 AM_INIT_AUTOMAKE(GNUCOMO, 0.0.5)
7 dnl Checks for programs.
18 AC_PATH_PROG(XML_CONFIG,xml2-config,no)
20 if test $XML_CONFIG = "no"
22 echo "XML library not found (see http://xmlsoft.org/)."
27 dnl Checks for libraries.
30 XML_CFLAGS=`$XML_CONFIG --cflags`
31 XML_LFLAGS=`$XML_CONFIG --libs`
33 LIBS="$LIBS -lAXE -lpq++ $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
34 LDFLAGS="$LDFLAGS -L/usr/local/lib $XML_LFLAGS"
35 CFLAGS="$CFLAGS $X_CFLAGS $XML_CFLAGS -I/usr/include/postgresql"
36 CXXFLAGS="$CXXFLAGS $X_CFLAGS $XML_CFLAGS -I/usr/include/postgresql"
38 AC_CHECK_LIB(AXE, main)
39 AC_CHECK_LIB(X11, XOpenDisplay)
40 AC_CHECK_LIB(Xpm, XpmCreatePixmapFromData)
41 AC_CHECK_LIB(pthread, pthread_create)
42 AC_CHECK_LIB(xml2, xmlParseFile)
44 dnl Checks for header files.
47 AC_CHECK_HEADERS(unistd.h)
49 dnl Checks for typedefs, structures, and compiler characteristics.
52 dnl Checks for library functions.
53 AC_CHECK_FUNCS(strtod strtol strtoul)
55 dnl Edit this to be your web server's document root
57 DocumentRoot=/var/www/html
59 #AC_OUTPUT(Makefile src/Makefile src/lib/Makefile src/gcm_input/Makefile src/web/Makefile)
60 AC_OUTPUT(Makefile src/Makefile src/lib/Makefile src/gcm_input/Makefile)