From 936df7568a0e47547285a0dd57b81643264fef38 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 8 Jan 2016 20:23:37 -0500 Subject: sim: drop common/cconfig.h in favor of a single config.h The common subdir sets up a cconfig.h file to hold checks for the common code. In practice, most files still end up using config.h instead which just leads to confusion. Merge all the configure checks that went into cconfig.h into SIM_AC_COMMON so we can drop the cconfig.h file altogether. Now there is only a single config.h file like normal. --- sim/common/configure.ac | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) (limited to 'sim/common/configure.ac') diff --git a/sim/common/configure.ac b/sim/common/configure.ac index e771575..473e911 100644 --- a/sim/common/configure.ac +++ b/sim/common/configure.ac @@ -2,7 +2,7 @@ dnl Process this file with autoconf to produce a configure script. AC_PREREQ(2.64)dnl AC_INIT(Makefile.in) -SIM_AC_COMMON(cconfig.h) +AC_PROG_CC # Put a useful copy of CPP_FOR_TARGET in Makefile. # This is only used to build the target values header files. These files are @@ -32,24 +32,4 @@ else fi AC_SUBST(TARGET_SUBDIR) -# These aren't all needed yet, but will be eventually. -AC_CHECK_HEADERS(stdlib.h string.h strings.h time.h sys/times.h sys/stat.h sys/mman.h) -AC_CHECK_FUNCS(mmap munmap lstat truncate ftruncate posix_fallocate) -AC_CHECK_MEMBERS([[struct stat.st_dev], [struct stat.st_ino], -[struct stat.st_mode], [struct stat.st_nlink], [struct stat.st_uid], -[struct stat.st_gid], [struct stat.st_rdev], [struct stat.st_size], -[struct stat.st_blksize], [struct stat.st_blocks], [struct stat.st_atime], -[struct stat.st_mtime], [struct stat.st_ctime]], [], [], -[[#ifdef HAVE_SYS_TYPES_H -#include -#endif -#ifdef HAVE_SYS_STAT_H -#include -#endif]]) -AC_CHECK_TYPES(socklen_t, [], [], -[#include -#include -]) - -AC_OUTPUT(Makefile, -[case x$CONFIG_HEADERS in xcconfig.h:config.in) echo > stamp-h ;; esac]) +AC_OUTPUT(Makefile) -- cgit v1.1