OSDN Git Service

add missing file
[ccunit/ccunit.git] / configure.ac
index 153a070..b2df085 100644 (file)
@@ -19,10 +19,10 @@ dnl    If not, write to the Free Software Foundation, Inc., 59 Temple
 dnl    Place - Suite 330, Boston, MA 02111-1307, USA.  
 
 # AC_PREREQ(2.57)
-AC_INIT(CCUnit, 0.2a, [tsutsumi@users.sourceforge.net])
-AC_CONFIG_SRCDIR([src/ccunit/CCUnitList.c])
+AC_INIT(CCUnit, 0.6, [tsutsumi@users.sourceforge.jp])
+AC_CONFIG_SRCDIR([configure.ac])
 AC_CONFIG_AUX_DIR([config])
-AC_CONFIG_HEADER([config.h])
+AC_CONFIG_HEADER([config/config.h])
 
 AM_INIT_AUTOMAKE([gnu check-news readme-alpha dist-bzip2 dist-zip -Wall])
 
@@ -33,8 +33,9 @@ AC_GNU_SOURCE
 AC_PROG_CC(gcc cc)
 AC_PROG_CC_C_O
 AC_PROG_RANLIB
+AC_PROG_LN_S
 AM_WITH_DMALLOC
-CU_ENABLE_DOXYGEN
+ARG_WITH_DOXYGEN
 
 # Checks for libraries.
 
@@ -47,15 +48,26 @@ AC_HEADER_STDBOOL
 AC_C_CONST
 AC_C_INLINE
 AC_TYPE_SIZE_T
+AC_C_LONG_DOUBLE
 AC_HEADER_TIME
+AC_CHECK_TYPES(u_char)
+AC_CHECK_TYPES(u_short)
+AC_CHECK_TYPES(u_int)
+AC_CHECK_TYPES(u_long)
+AC_CHECK_TYPES(quad_t,,
+       AC_CHECK_TYPES(int64_t,,AC_CHECK_TYPES(long long)))
+AC_CHECK_TYPES(u_quad_t,,
+       AC_CHECK_TYPES(u_int64_t,,AC_CHECK_TYPES(unsigned long long)))
 
 # Checks for library functions.
 AC_FUNC_MALLOC
 AC_FUNC_REALLOC
 AC_FUNC_VPRINTF
-AC_CHECK_FUNCS([gettimeofday strerror strncasecmp strrchr])
+AC_CHECK_FUNCS([gettimeofday strerror strncasecmp strrchr memset])
 AC_REPLACE_FUNCS([strdup])
 
+# Initialize the test suite and build position independent wrappers.
+
 AC_CONFIG_FILES([Makefile
                  src/Makefile
                  src/ccunit/Makefile
@@ -64,6 +76,25 @@ AC_CONFIG_FILES([Makefile
                 doc/Doxyfile
                 tests/Makefile])
 
-# Initialize the test suite and build position independent wrappers.
+cwdir=`pwd`
+cd tests
+for t in test*.c
+do
+    testsrcs="$testsrcs$t "
+    testobjs="$testobjs`basename $t .c`.o "
+done
+for f in fail*.c
+do
+    failsrcs="$failsrcs$f "
+    failobjs="$failobjs`basename $f .c`.o "
+done
+
+AC_SUBST(TESTSRCS,[$testsrcs])
+AC_SUBST(TESTOBJS,[$testobjs])
+AC_SUBST(FAILSRCS,[$failsrcs])
+AC_SUBST(FAILOBJS,[$failobjs])
+cd $cwdir
 
 AC_OUTPUT
+
+AC_CREATE_PREFIX_CONFIG_H(src/ccunit/config.h,,config/config.h)