1 AC_REVISION($Revision $) 2 AC_INIT(libconfig, 0.2.5) 3 AC_CONFIG_HEADER(config.h) 4 5 dnl Find out about the host OS 6 DC_CHK_OS_INFO 7 8 dnl Checks for programs. 9 AC_PROG_CC 10 AC_PROG_MAKE_SET 11 AC_PROG_INSTALL 12 AC_PROG_LN_S 13 AC_PROG_RANLIB 14 AC_AIX 15 AC_CHECK_TOOL(AR, ar, true) 16 17 DC_DO_TYPE(uint64_t, unsigned, 8) 18 DC_DO_TYPE(int64_t, signed, 8) 19 DC_DO_TYPE(uint32_t, unsigned, 4) 20 DC_DO_TYPE(int32_t, signed, 4) 21 DC_DO_TYPE(uint16_t, unsigned, 2) 22 DC_DO_TYPE(int16_t, signed, 2) 23 24 dnl This will cause optional libraries to be disabled even if they're 25 dnl available and specified. 26 DC_ASK_SMALL 27 28 dnl Checks for Win32 specific things. 29 DC_DO_WIN32 30 31 dnl Get shared objects flags, calls DC_SYNC_SHLIBOBJS but if libobjs is 32 dnl changed later (by AC_REPLACE_FUNCS, for example) you must call 33 dnl DC_SYNC_SHLIBOBJS again. 34 DC_GET_SHOBJFLAGS 35 36 dnl This stuff has to come after the shobjtest to verify that it is correct 37 AC_CHECK_HEADERS(ctype.h dirent.h pwd.h stdio.h stdlib.h string.h sys/stat.h sys/time.h sys/types.h time.h unistd.h netdb.h netinet/in.h) 38 39 AC_HEADER_TIME 40 41 AC_REPLACE_FUNCS(strsep strtoll getuid) 42 AC_CHECK_FUNCS(getpwuid strtof) 43 44 dnl This MUST be last. 45 DC_SYNC_SHLIBOBJS 46 47 AC_OUTPUT(Makefile lc_geterrno.3 lc_process.3 lc_register_var.3 lc_geterrstr.3 lc_seterrstr.3 lc_register_callback.3 lc_cleanup.3 lc_process_file.3 libconfig.3 lc_handle_type.3) |