aboutsummaryrefslogtreecommitdiff
path: root/flow-native/configure.ac
diff options
context:
space:
mode:
authorJakob Odersky <jodersky@gmail.com>2014-04-17 10:22:18 +0200
committerJakob Odersky <jodersky@gmail.com>2014-04-17 10:22:18 +0200
commitd5affc83535f8acc1119be6d05b834a11d059f88 (patch)
tree5508cd0840c4ccdfa3e5c5ef7c1aef9b157822b9 /flow-native/configure.ac
parent975a07373e4ffe5ff269675bc8da896e60f84427 (diff)
downloadakka-serial-d5affc83535f8acc1119be6d05b834a11d059f88.tar.gz
akka-serial-d5affc83535f8acc1119be6d05b834a11d059f88.tar.bz2
akka-serial-d5affc83535f8acc1119be6d05b834a11d059f88.zip
add autotools support (experimental)
Diffstat (limited to 'flow-native/configure.ac')
-rw-r--r--flow-native/configure.ac31
1 files changed, 31 insertions, 0 deletions
diff --git a/flow-native/configure.ac b/flow-native/configure.ac
new file mode 100644
index 0000000..e797a5e
--- /dev/null
+++ b/flow-native/configure.ac
@@ -0,0 +1,31 @@
+# -*- Autoconf -*-
+# Process this file with autoconf to produce a configure script.
+
+AC_PREREQ([2.68])
+AC_INIT([flow], [3.0.0], [jodersky@gmail.com])
+AC_CONFIG_SRCDIR([include/com_github_jodersky_flow_internal_NativeSerial.h])
+AC_CONFIG_HEADERS([config.h])
+
+# Checks for programs.
+AC_PROG_CC
+
+# Checks for libraries.
+
+# Checks for header files.
+AC_CHECK_HEADERS([fcntl.h stddef.h stdlib.h sys/file.h termios.h unistd.h])
+AC_CHECK_HEADERS([jni.h],,AC_MSG_WARN(No jni.h found. Is a JDK installed?))
+
+# Checks for typedefs, structures, and compiler characteristics.
+AC_HEADER_STDBOOL
+AC_C_INLINE
+AC_TYPE_SIZE_T
+
+# Checks for library functions.
+AC_FUNC_MALLOC
+AC_CHECK_FUNCS([select])
+
+LT_INIT
+AM_INIT_AUTOMAKE
+
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT