]> sigrok.org Git - libserialport.git/blobdiff - configure.ac
Makefile.am: Add Doxyfile to the generated tarball.
[libserialport.git] / configure.ac
index b1e98b478be78343abbe56526a38d27bab533589..3030d1d2c82735715964a0a84d7c048b0526b84a 100644 (file)
@@ -39,10 +39,6 @@ AM_INIT_AUTOMAKE([1.11 -Wall -Werror])
 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
 m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
 
-AH_TOP([#ifndef SP_CONFIG_H
-#define SP_CONFIG_H    /* To stop multiple inclusions. */])
-AH_BOTTOM([#endif /* SP_CONFIG_H */])
-
 # Enable more compiler warnings via -Wall and -Wextra.
 CFLAGS="$CFLAGS -Wall -Wextra"
 
@@ -52,9 +48,6 @@ AC_PROG_CPP
 AC_PROG_INSTALL
 AC_PROG_LN_S
 
-# Required for per-target flags or subdir-objects with C sources.
-AM_PROG_CC_C_O
-
 # Initialize libtool.
 LT_INIT
 
@@ -104,20 +97,12 @@ esac
 
 AC_SUBST(SP_PKGLIBS)
 
-# Checks for header files.
-# These are already checked: inttypes.h dlfcn.h memory.h stdint.h stdlib.h
-# string.h strings.h sys/types.h sys/stat.h unistd.h
-AC_CHECK_HEADERS([errno.h fcntl.h stddef.h sys/ioctl.h termios.h])
-
-# Checks for typedefs, structures, and compiler characteristics.
-AC_C_INLINE
+# Define size_t if not defined as standard.
 AC_TYPE_SIZE_T
-AC_TYPE_SSIZE_T
-AC_CHECK_TYPE([struct termios2],[AC_DEFINE(HAVE_TERMIOS2, 1)],[],[[#include <linux/termios.h>]])
-AC_CHECK_TYPE([struct termiox],[AC_DEFINE(HAVE_TERMIOX, 1)],[],[[#include <linux/termios.h>]])
 
-# Checks for library functions.
-AC_CHECK_FUNCS([strerror])
+# Check for specific termios structures.
+AC_CHECK_TYPE([struct termios2], [AC_DEFINE(HAVE_TERMIOS2, 1)], [], [[#include <linux/termios.h>]])
+AC_CHECK_TYPE([struct termiox], [AC_DEFINE(HAVE_TERMIOX, 1)], [], [[#include <linux/termios.h>]])
 
 AC_SUBST(MAKEFLAGS, '--no-print-directory')
 AC_SUBST(AM_LIBTOOLFLAGS, '--silent')