1 # Process this file with autoconf to produce a configure script.
3 # $Id: configure.in,v 1.1 2004/01/13 12:39:53 ppisa Exp $
8 AC_INIT([orte],[0.2.0],[petr.smolik@wo.cz])
9 AC_CONFIG_AUX_DIR(admin)
11 #Check for CPU / vendor / OS
14 AM_CONFIG_HEADER(orte/include/config.h)
15 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
16 # Activate maintainer mode
21 ###############################
26 ORTE_VERSION=$ORTE_MAJOR_VERSION.$ORTE_MINOR_VERSION.$ORTE_MICRO_VERSION
27 AC_SUBST(ORTE_MAJOR_VERSION)
28 AC_SUBST(ORTE_MINOR_VERSION)
29 AC_SUBST(ORTE_MICRO_VERSION)
30 AC_SUBST(ORTE_VERSION)
32 ###############################
36 INCLUDES='-I$(top_srcdir)/orte/include -I$(top_srcdir)/orte/include/win32'
41 if test ${USE_RTLINUX} == "yes" ; then
42 INCLUDES='-I$(top_srcdir)/orte/include -I$(top_srcdir)/orte/include/rtl -I$(top_srcdir)/RTL_UDP/include'
44 INCLUDES='-I$(top_srcdir)/orte/include'
49 AM_CONDITIONAL(CONFIG_ORTE_WIN, test x$WIN_LIB = xyes)
51 ###############################
53 moduledir="\$(libdir)/modules/\$(LINUX_KERNELRELEASE)/comedi"
54 modulePROGRAMS_INSTALL="\$(top_builddir)/modtool --install"
55 modulePROGRAMS_UNINSTALL="\$(top_builddir)/modtool --uninstall"
57 AC_SUBST(modulePROGRAMS_INSTALL)
59 ###############################
60 # Checks for programs.
64 ###############################
65 # Checks for libraries (no for RT)
66 if test ${USE_RTLINUX} != "yes" ; then
67 AC_CHECK_LIB([ws2_32], [main])
68 AC_CHECK_LIB([pthread], [main])
71 ###############################
72 # Checks for header files.
75 [arpa/inet.h fcntl.h stdio.h netdb.h netinet/in.h stdlib.h \
76 string.h sys/ioctl.h sys/socket.h sys/time.h unistd.h pthread.h \
77 stdarg.h getopt.h sys/types.h net/if.h byteswap.h signal.h errno.h \
78 ctype.h sys/stat.h winsock2.h ws2tcpip.h])
80 ###############################
81 # Checks for typedefs, structures, and compiler characteristics.
89 ###############################
90 # Checks for library functions.
91 AC_PROG_GCC_TRADITIONAL
93 AC_CHECK_FUNCS([strdup])
95 ###############################
96 # Add obsolute directory for header files
97 CFLAGS="$CFLAGS -Wall"
99 AC_CONFIG_FILES([Makefile
103 orte/liborte/Makefile
104 orte/liborte/rtl/Makefile
105 orte/examples/Makefile
106 orte/examples/hello/Makefile
107 orte/examples/reliable/Makefile
108 orte/examples/ORTEPing/Makefile
109 orte/examples/ORTESpy/Makefile
110 orte/manager/Makefile])
118 "------------------------------------------------------------------------
121 Source code location: ${srcdir}
123 Compiler flags: ${CFLAGS}
124 Host System Type: ${host}
126 See config.h for further configuration information.
127 ------------------------------------------------------------------------"