]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ipc/ipcdev.git/blob - configure.ac
Power: Add power manager from omapzoom sysbios-rpmsg repo for OMAP5.
[ipc/ipcdev.git] / configure.ac
1 # Process this file with autoconf to produce a configure script.
2 AC_PREREQ(2.59)
4 # Initilize autoconf
5 AC_INIT(TI IPC, 3.0.0, ) 
7 # Initilize automake
8 AM_INIT_AUTOMAKE
10 # Initalize libtool but disable fortran check
11 define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
12 AC_PROG_LIBTOOL(gcc)
14 # Check common src files to ensure integrity of the package
15 AC_CONFIG_SRCDIR([packages/ti/ipc/MessageQ.h])
17 # Checks for programs.
18 AC_PROG_CC(gcc)
19 AC_PROG_INSTALL
21 # Checks for header files.
22 AC_HEADER_STDC
23 AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/param.h sys/socket.h sys/time.h unistd.h])
25 # Export CFLAGS and LDFLAGS to Makefile(s)
26 AC_SUBST([AM_CFLAGS])
27 AC_SUBST([AM_LDFLAGS])
29 # Add config variables/options and check them
30 AC_ARG_VAR(PLATFORM, Platform to build. Options are: 'omapl138' 'omap4330' 'tci6614' and 'tci6638'. If not defined all platforms will be built.)
31 AC_ARG_VAR(CMEM_INSTALL_DIR, Installation path directory to the CMEM libraries)
33 # Test platform variable for setting
34 AS_IF([test "x$PLATFORM" = "xomapl138"],
35   [AC_MSG_NOTICE([PLATFORM is set to ${PLATFORM}])],
36   [AS_IF([test "x$PLATFORM" = "xomap4430"],
37   [AC_MSG_NOTICE([PLATFORM is set to ${PLATFORM}])],
38   [AS_IF([test "x$PLATFORM" = "xtci6614"],
39   [AC_MSG_NOTICE([PLATFORM is set to ${PLATFORM}])],
40   [AS_IF([test "x$PLATFORM" = "xtci6638"],
41   [AC_MSG_NOTICE([PLATFORM is set to ${PLATFORM}])],
42   [AS_IF([test "x$PLATFORM" = "x"],
43   [AC_MSG_NOTICE([PLATFORM is not set. All supported platforms will be built ....])],
44   [AC_MSG_ERROR([PLATFORM is set to "${PLATFORM}": run ./configure --help for available PLATFORM options])])])])])])
46 # Export optional user variable to Makefile(s)
47 AC_SUBST([PLATFORM])
48 AC_SUBST([CMEM_INSTALL_DIR])
50 # Define specific variables to be used in Makefile.am
51 AM_CONDITIONAL([OMAPL138], [test "x$PLATFORM" = "xomapl138"]) 
52 AM_CONDITIONAL([OMAP4430], [test "x$PLATFORM" = "xomap4430"]) 
53 AM_CONDITIONAL([TCI6614], [test "x$PLATFORM" = "xtci6614"]) 
54 AM_CONDITIONAL([TCI6638], [test "x$PLATFORM" = "xtci6638"]) 
56 AM_CONDITIONAL([CMEM], [test "x$CMEM_INSTALL_DIR" != "x"]) 
58 # Generate Makefile(s)
59 AC_CONFIG_FILES([Makefile])
60 AC_CONFIG_FILES([linux/etc/Makefile])
61 AC_CONFIG_FILES([linux/src/utils/Makefile])
62 AC_CONFIG_FILES([linux/src/api/Makefile])
63 AC_CONFIG_FILES([linux/src/family/Makefile])
64 AC_CONFIG_FILES([linux/src/daemon/Makefile])
65 AC_CONFIG_FILES([linux/src/tests/Makefile])
66 AC_OUTPUT
68 echo \
69 "-----------------------------------------------------------
71 Thank you for installing the Linux ${PACKAGE_NAME} package
73 Installation directory prefix: '${prefix}'.
74 Compilation command: '${CC} ${CFLAGS} ${CPPFLAGS}'
76 You have configured to build for the '${PLATFORM}' platform
78 Your CMEM installation is at:
79     '${CMEM_INSTALL_DIR}'
81 Now type 'make; sudo make install' to generate the program
82 and install it to your system.
84 ------------------------------------------------------------"