Deepak Kodihalli | 77bc009 | 2017-03-14 07:17:01 -0500 | [diff] [blame] | 1 | # Initialization |
| 2 | AC_PREREQ([2.69]) |
| 3 | AC_INIT([openpower-dbus-interfaces], [1.0], [https://github.com/openbmc/openpower-dbus-interfaces]) |
| 4 | AC_CONFIG_HEADERS([config.h]) |
| 5 | AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror foreign dist-xz]) |
| 6 | AM_SILENT_RULES([yes]) |
| 7 | AC_LANG([C++]) |
| 8 | |
| 9 | # Checks for programs. |
| 10 | AC_PROG_CXX |
| 11 | AM_PROG_AR |
| 12 | AC_PROG_INSTALL |
| 13 | AC_PROG_MAKE_SET |
| 14 | AC_PROG_SED |
| 15 | AC_CHECK_PROG([FIND], find, find) |
| 16 | AC_CHECK_PROG([BASENAME], basename, basename) |
| 17 | AC_CHECK_PROG([DIRNAME], dirname, dirname) |
| 18 | |
| 19 | AC_PATH_PROG([SDBUSPLUSPLUS], [sdbus++]) |
| 20 | AS_IF([test "x$SDBUSPLUSPLUS" == "x"], |
| 21 | AC_MSG_ERROR([Cannot find sdbus++])) |
| 22 | |
| 23 | # Check for baseline language coverage in the compiler for the C++14 standard |
| 24 | AX_CXX_COMPILE_STDCXX_14([noext]) |
| 25 | AX_APPEND_COMPILE_FLAGS([-Wall -Werror], [CFLAGS]) |
| 26 | AX_APPEND_COMPILE_FLAGS([-Wall -Werror], [CXXFLAGS]) |
| 27 | |
| 28 | # Checks for library functions. |
| 29 | LT_INIT([dlopen disable-static shared]) |
| 30 | LT_LIB_DLLOAD |
| 31 | |
| 32 | # Create configured output |
| 33 | AC_CONFIG_FILES([Makefile.interfaces], |
| 34 | [${srcdir}/generate_makefile.sh ${srcdir} > Makefile.interfaces]) |
| 35 | |
| 36 | AC_CONFIG_FILES([Makefile]) |
Deepak Kodihalli | 48e6be3 | 2017-03-14 07:28:55 -0500 | [diff] [blame^] | 37 | AC_CONFIG_FILES([openpower-dbus-interfaces.pc]) |
Deepak Kodihalli | 77bc009 | 2017-03-14 07:17:01 -0500 | [diff] [blame] | 38 | AC_OUTPUT |