Switch to unified view

a b/configure.ac
1
AC_INIT([sc2mpd], [0.1.0], [jf@dockes.org],
2
             [sc2mpd], [http://www.lesbonscomptes.com/upmpdcli])
3
AC_PREREQ([2.53])
4
AC_CONFIG_SRCDIR([src/sc2mpd.cpp])
5
AC_CONFIG_HEADERS([src/config.h])
6
7
AM_INIT_AUTOMAKE([1.10 no-define subdir-objects foreign])
8
9
AC_PROG_CXX
10
11
AC_ARG_WITH(openhome, 
12
    AC_HELP_STRING([--with-openhome=topOpenhomeDir],
13
   [Set the path for the directory where ohNet, ohNetGenerated, ohdevtools,
14
    ohTopology and ohSongcast were extracted and built]),
15
        withOH=$withval, withOH=no)
16
17
if test X$withOH = Xno ; then
18
   AC_MSG_ERROR([Please provide the location for the OpenHome sources and libraries])
19
fi
20
TOPOH="$withOH"
21
AC_SUBST(TOPOH)                     
22
23
AC_CHECK_LIB([pthread], [pthread_create], , [lpthread=no])
24
if test X$lpthread = Xno; then
25
   AC_MSG_ERROR([pthread_create not found in -lpthread])
26
fi
27
AC_CHECK_LIB([microhttpd], [MHD_start_daemon], , [lmh=no])
28
if test X$lmh = Xno; then
29
   AC_MSG_ERROR([libmicrohttpd development files not found])
30
fi
31
32
OTHERLIBS=$LIBS
33
echo OTHERLIBS $OTHERLIBS
34
AC_SUBST(OTHERLIBS)
35
36
AC_CONFIG_FILES([Makefile])
37
AC_OUTPUT