File: configure.in

package info (click to toggle)
dia2code 0.8.3-3%2Blenny1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 772 kB
  • ctags: 392
  • sloc: ansic: 5,672; sh: 716; makefile: 20
file content (34 lines) | stat: -rw-r--r-- 911 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
dnl Process this file with autoconf to produce a configure script.
AC_INIT(Makefile.am)

AM_CONFIG_HEADER(config.h)

AM_INIT_AUTOMAKE(dia2code,0.8.3)

dnl Checks for programs.
AC_PROG_CC
AC_PROG_RANLIB
dnl Checks for libraries.

AC_PATH_PROG(XML_CONFIG, xml2-config, no)
if test "$XML_CONFIG" = "no"; then
  AC_MSG_ERROR([Cannot determine configuration of libxml.
Perhaps you forgot to install the package libxml2-devel ?])
else
  XML_INCLUDES=`$XML_CONFIG --cflags`
  LIBXML_LIBS=`$XML_CONFIG --libs`
  AC_SUBST(XML_INCLUDES)
  LIBS="$LIBS $LIBXML_LIBS"
fi

dnl Checks for header files.

AC_CHECK_HEADERS(dlfcn.h)

AC_CHECK_LIB(dl, dlopen,[LDFLAGS="$LDFLAGS -rdynamic"; LIBS="$LIBS -ldl"; CPPFLAGS="$CPPFLAGS -DDSO"])

dnl Checks for typedefs, structures, and compiler characteristics.

dnl Checks for library functions.

AC_OUTPUT(Makefile dia2code/Makefile dia2code/docs/Makefile dia2code/docs/en/Makefile )