configure.ac

changeset 79
eb9dd60aa791
parent 75
4b976601737d
child 107
f2f201b7cb48
equal deleted inserted replaced
78:c49ab5179bf3 79:eb9dd60aa791
6 AC_SUBST(SUBDIRS) 6 AC_SUBST(SUBDIRS)
7 7
8 dnl General settings 8 dnl General settings
9 dnl After changeing the version number, run autoconf! 9 dnl After changeing the version number, run autoconf!
10 PACKAGE="mbsePi-apps" 10 PACKAGE="mbsePi-apps"
11 VERSION="0.0.8" 11 VERSION="0.0.9"
12 COPYRIGHT="Copyright (C) 2014 Michiel Broek, All Rights Reserved" 12 COPYRIGHT="Copyright (C) 2014 Michiel Broek, All Rights Reserved"
13 CYEARS="2014" 13 CYEARS="2014"
14 AC_SUBST(PACKAGE) 14 AC_SUBST(PACKAGE)
15 AC_SUBST(VERSION) 15 AC_SUBST(VERSION)
16 AC_SUBST(COPYRIGHT) 16 AC_SUBST(COPYRIGHT)
61 else 61 else
62 CFLAGS="-g -O2 -fomit-frame-pointer -fno-strict-aliasing -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes -Winline" 62 CFLAGS="-g -O2 -fomit-frame-pointer -fno-strict-aliasing -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes -Winline"
63 fi 63 fi
64 64
65 65
66 LIBXML2=No
67 AC_CHECK_LIB(xml2,xmlParseFile,result=yes,result=no) 66 AC_CHECK_LIB(xml2,xmlParseFile,result=yes,result=no)
68 if test "$result" = "yes"; then 67 if test "$result" = "yes"; then
69 LIBS="$LIBS -lxml2" 68 LIBS="$LIBS -lxml2"
70 CFLAGS="$CFLAGS $(xml2-config --cflags)" 69 CFLAGS="$CFLAGS $(xml2-config --cflags)"
71 AC_CHECK_HEADERS(libxml/xmlmemory.h,LIBXML2=Yes,LIBXML2=No) 70 AC_CHECK_HEADERS(libxml/xmlmemory.h)
72 else 71 else
73 AC_MSG_ERROR(libxml2 not found) 72 AC_MSG_ERROR(libxml2 not found)
74 fi 73 fi
75 74
75 AC_CHECK_LIB(uuid,uuid_generate,result=yes,result=no)
76 if test "$result" = "yes"; then
77 LIBS="$LIBS $(pkg-config --libs uuid)"
78 CFLAGS="$CFLAGS $(pkg-config --cflags uuid)"
79 AC_CHECK_HEADERS(uuid/uuid.h)
80 else
81 AC_MSG_ERROR(libuuid not found)
82 fi
76 83
77 84
78 dnl Checks for header files. 85 dnl Checks for header files.
79 AC_HEADER_STDC 86 AC_HEADER_STDC
80 87
91 Configuration summary : 98 Configuration summary :
92 99
93 Version : ............ ${VERSION} 100 Version : ............ ${VERSION}
94 Main directory : ..... ${prefix} 101 Main directory : ..... ${prefix}
95 WiringPi : ........... ${WIRINGPI} 102 WiringPi : ........... ${WIRINGPI}
96 XML2: ................ ${LIBXML2}
97 103
98 Now type 'make' and 'sudo make install' 104 Now type 'make' and 'sudo make install'
99 ]) 105 ])
100 106

mercurial