diff options
-rw-r--r-- | configure.ac | 19 | ||||
-rw-r--r-- | samsung-ipc/Makefile.am | 4 |
2 files changed, 23 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 1f83a58..b0a6d9b 100644 --- a/configure.ac +++ b/configure.ac @@ -25,6 +25,10 @@ AC_SUBST(OPENSSL_LIBS) AC_SUBST(VALGRIND) #------------------------------------------------------------------------------ +# ipc device name +AC_SUBST([IPC_DEVICE_NAME], [all]) + +#------------------------------------------------------------------------------ # libcurl PKG_CHECK_MODULES(LIBCURL, libcurl >= $LIBCURL_REQUIRED) AC_SUBST(LIBCURL_CFLAGS) @@ -59,6 +63,19 @@ AS_IF([test x"$valgrind_tests" = x"yes"], [AC_MSG_ERROR( [valgrind tests are enabled but valgrind was not found in PATH ($PATH)])])]) #------------------------------------------------------------------------------ +AC_ARG_ENABLE(samsung-ipc-device, + [ --enable-samsung-ipc-device=[DEVICE] + make libsamsung-ipc assumes that it runs on DEVICE + DEVICE={all,aries,crespo,galaxys2,herolte,i9300,maguro,n5100,n7100,piranha} (default=all)], + [AS_CASE([$enableval], + [aries|crespo|galaxys2|herolte|i9300|maguro|n5100|n7100|piranha], + [IPC_DEVICE_NAME=$enableval], + [AC_MSG_ERROR([Unnown device $enableval])])], + [IPC_DEVICE_NAME="all"]) + +AM_CONDITIONAL( [WANT_IPC_DEVICE_NAME], [test x"$IPC_DEVICE_NAME" != x"all"]) +#------------------------------------------------------------------------------ + AC_CONFIG_FILES([ Makefile samsung-ipc.pc @@ -101,6 +118,8 @@ echo "Configuration Options:" echo echo " debug build.............: $debug" echo +echo " device(s)...............: $IPC_DEVICE_NAME" +echo echo " prefix..................: $prefix" echo echo " valgrind tests..........: $valgrind_tests" diff --git a/samsung-ipc/Makefile.am b/samsung-ipc/Makefile.am index 9ffaa03..5eb3bbc 100644 --- a/samsung-ipc/Makefile.am +++ b/samsung-ipc/Makefile.am @@ -10,6 +10,10 @@ if WANT_DEBUG AM_CFLAGS += -DDEBUG endif +if WANT_IPC_DEVICE_NAME +AM_CFLAGS += -DIPC_DEVICE_NAME=\"$(IPC_DEVICE_NAME)\" +endif + lib_LTLIBRARIES = \ libsamsung-ipc.la \ $(NULL) |