Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Update configure scripts.
[xestiaab/.git] / source / configure.ac
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
4 AC_PREREQ([2.68])
5 AC_INIT([Xestia Address Book], [0.01], [bugs@xestia.co.uk])
6 #AC_CONFIG_SRCDIR([version.h])
7 #AC_CONFIG_HEADERS([config.h])
9 # Checks for programs.
10 AC_PROG_CXX
11 AC_PROG_CC
12 AC_PROG_CPP
14 # Checks for libraries.
16 # wxWidgets
18 AC_LANG_PUSH([C++])
20 # Check for C++11 support for the compiler.
22 CPPFLAGS="$CPPFLAGS -std=c++11"
23 CXXFLAGS="$CXXFLAGS -std=c++11"
25 AC_CHECK_HEADER([thread], [], [echo "The C++ compiler does not support C++11 extensions which is
26 needed for Xestia Address Book. Please install or use a 
27 compiler that supports C++11 extensions."
28         exit -1
29         ])
31 AM_OPTIONS_WXCONFIG
32 reqwx=3.0.0
33 AM_PATH_WXCONFIG($reqwx, wxWin=1)
34 if test "$wxWin" != 1; then
35         AC_MSG_ERROR([
36 wxWidgets must be installed on your system.
37  
38 Please check that wx-config is in path, the directory where wxWidgets libraries 
39 are installed (returned by 'wx-config --libs' or 'wx-config --static --libs' 
40 command) is in LD_LIBRARY_PATH or equivalent variable and wxWidgets version 
41 is $reqwx or above.
42                 ])
43 fi
45 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
46 CXXFLAGS="$CXXFLAGS $WX_CXXFLAGS_ONLY"
47 CFLAGS="$CFLAGS $WX_CFLAGS_ONLY"
48 LIBS="$LIBS $WX_LIBS"
50 # SFML Audio Library
52 AC_CHECK_LIB([sfml-audio], [main], [], [echo "The SFML libraries must be installed on your system.
53 Please check that this library is installed properly before
54 running configure again."
55         exit -1
56         ])
58 AC_CHECK_HEADER([SFML/Audio.hpp], [], [echo "The SFML library headers must be installed on your system.
59 Please check that the library headers are installed properly
60 before running configure again."
61         exit -1
62         ])
64 # ossp-uuid Library
66 AC_CHECK_LIB([ossp-uuid++], [main], [], [echo "The OSSP UUID C++ library must be installed on your system.
67 Please check that this library is installed properly before
68 running configure again."
69         exit -1
70         ])
72 AC_CHECK_HEADER([ossp/uuid++.hh], [], [echo "The OSSP UUID C++ library headers must be installed on your system.
73 Please check that the library headers are installed properly
74 before running configure again."
75         exit -1
76         ])
78 AC_LANG_PUSH([C++])
80 # curl Library
82 AC_CHECK_LIB([curl], [main], [], [echo "The cURL library must be installed on your system.
83 Please check that this library is installed properly before
84 running configure again."
85         exit -1
86         ])
88 AC_CHECK_HEADER([curl/curl.h], [], [echo "The cURL library headers must be installed on your system.
89 Please check that the library headers are installed properly
90 before running configure again."
91         exit -1
92         ])
94 # libxml2 Library
96 AC_CHECK_LIB([xml2], [main], [], [echo "The libxml2 library must be installed on your system.
97 Please check that this library is installed properly before
98 running configure again."
99         exit -1
100         ])
102 AC_CHECK_HEADERS([libxml2/libxml/parser.h libxml2/libxml/tree.h], [], [echo "The libxml2 library headers must be installed on your system.
103 Please check that the library headers are installed properly
104 before running configure again."
105         exit -1
106         ])
108 # Checks for header files.
109 AC_CHECK_HEADERS([stdlib.h string.h iostream iomanip ios algorithm map vector utility])
111 # Checks for typedefs, structures, and compiler characteristics.
112 AC_HEADER_STDBOOL
113 AC_C_INLINE
115 # Checks for library functions.
117 AC_CONFIG_FILES([Makefile])
118 AC_OUTPUT
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy