[srvx-commits] CVS: services configure.in,1.74,1.75
Brought to you by:
entrope
From: Entrope <en...@us...> - 2003-11-15 03:35:31
|
Update of /cvsroot/srvx/services In directory sc8-pr-cvs1:/tmp/cvs-serv14692 Modified Files: configure.in Log Message: update to be autoconf-2.58-happy coincidentally get rid of the silly TIME_T_CAST Index: configure.in =================================================================== RCS file: /cvsroot/srvx/services/configure.in,v retrieving revision 1.74 retrieving revision 1.75 diff -C2 -r1.74 -r1.75 *** configure.in 20 Oct 2003 16:19:40 -0000 1.74 --- configure.in 15 Nov 2003 03:35:26 -0000 1.75 *************** *** 3,7 **** dnl General initialization. AC_REVISION([$Id$]) ! AC_PREREQ(2.53) AC_INIT(srvx, 1.2, srv...@li...) CODENAME=dust --- 3,7 ---- dnl General initialization. AC_REVISION([$Id$]) ! AC_PREREQ(2.57) AC_INIT(srvx, 1.2, srv...@li...) CODENAME=dust *************** *** 85,101 **** AC_FUNC_MMAP ! dnl Define a helper macro used below for a few things. ! define([CACHE_COMPILE],[ ! AC_MSG_CHECKING(for [$1]) ! AC_CACHE_VAL(ac_cv_[$1], [AC_TRY_COMPILE([$2], [$3], ac_cv_[$1]="yes", ac_cv_[$1]="no")]) ! AC_MSG_RESULT($ac_cv_[$1]) ! if test $ac_cv_[$1] = yes ; then ! AC_DEFINE([HAVE_]translit([$1], [a-z], [A-Z]), 1, [$4]) ! fi]) ! ! CACHE_COMPILE(sin_len, [ ! #include <sys/types.h> ! #include <netinet/in.h> ! ], [struct sockaddr_in *sin; sin->sin_len = 0;], [Define if struct sockaddr_in contains a sin_len field]) dnl Can only check with -Werror, but the rest of configure doesn't like -Werror --- 85,95 ---- AC_FUNC_MMAP ! AC_CACHE_CHECK([for sin_len], ac_cv_sin_len, ! [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <sys/types.h> ! #include <netinet/in.h>],[struct sockaddr_in *sin; sin->sin_len = 0;])], ! ac_cv_sin_len="yes", ac_cv_sin_len="no")]) ! if test $ac_cv_sin_len = yes ; then ! AC_DEFINE(HAVE_SIN_LEN, 1, [Define if struct sockaddr_in contains a sin_len field]) ! fi dnl Can only check with -Werror, but the rest of configure doesn't like -Werror *************** *** 107,128 **** AC_CACHE_VAL(ac_cv_fmt_time_t, [ ac_cv_fmt_time_t=no ! AC_TRY_COMPILE([#include <sys/types.h> ! #include <stdio.h>], [ time_t test=0; printf("%li", test); ! ], ac_cv_fmt_time_t="\"%li\"") if test $ac_cv_fmt_time_t = no; then ! AC_TRY_COMPILE([#include <sys/types.h> ! #include <stdio.h>], [ time_t test=0; printf("%i", test); ! ], ac_cv_fmt_time_t="\"%i\"") fi if test $ac_cv_fmt_time_t = no; then ! echo ! AC_MSG_ERROR([ ! Cannot detect format string for time_t ! Please check sys/types.h for the typedef of time_t and submit to a developer ! ]) fi ]) --- 101,121 ---- AC_CACHE_VAL(ac_cv_fmt_time_t, [ ac_cv_fmt_time_t=no ! AC_COMPILE_IFELSE([#include <sys/types.h> ! #include <stdio.h> ! void myfunc(void) { time_t test=0; printf("%li", test); ! }], ac_cv_fmt_time_t="\"%li\"") if test $ac_cv_fmt_time_t = no; then ! AC_COMPILE_IFELSE([#include <sys/types.h> ! #include <stdio.h> ! void myfunc(void) { time_t test=0; printf("%i", test); ! }], ac_cv_fmt_time_t="\"%i\"") fi if test $ac_cv_fmt_time_t = no; then ! AC_MSG_ERROR([Cannot detect format string for time_t ! Please check sys/types.h for the typedef of time_t and submit to a developer]) fi ]) *************** *** 130,191 **** AC_MSG_RESULT($ac_cv_fmt_time_t) - dnl And how to cast a pointer to a time_t - AC_MSG_CHECKING(for proper time_t cast) - AC_CACHE_VAL(ac_cv_time_t_cast, [ - ac_cv_time_t_cast=no - AC_TRY_COMPILE([#include <time.h> - ], [ - void *time=0; - return (time_t)time; - ], ac_cv_time_t_cast="(time_t)") - if test $ac_cv_time_t_cast = no; then - AC_TRY_COMPILE([#include <time.h> - ], [ - void *time=0; - return (long)time; - ], ac_cv_time_t_cast="(long)") - fi - if test $ac_cv_time_t_cast = no; then - AC_TRY_COMPILE([#include <time.h> - ], [ - void *time=0; - return (int)time; - ], ac_cv_time_t_cast="(int)") - fi - if test $ac_cv_time_t_cast = no; then - echo - AC_MSG_ERROR([ - Cannot detect correct void* cast of time_t - Please check time.h for the typedef of time_t and submit to a - developer - ]) - fi - ]) - AC_DEFINE_UNQUOTED(TIME_T_CAST, $ac_cv_time_t_cast, [Define as a cast to time_t from a void*.]) - AC_MSG_RESULT($ac_cv_time_t_cast) - dnl How to copy one va_list to another? ! AC_CACHE_CHECK([for va_copy], ac_cv_c_va_copy, ! AC_TRY_LINK( ! [#include <stdarg.h>], ! [va_list ap1, ap2; ! va_copy(ap1, ap2);], ! [ac_cv_c_va_copy="yes"], ! [ac_cv_c_va_copy="no"] ! ) ! ) if test "$ac_cv_c_va_copy" = "yes" ; then AC_DEFINE(HAVE_VA_COPY, 1, [Define if we have va_copy]) fi ! AC_CACHE_CHECK([for __va_copy], ac_cv_c___va_copy, ! AC_TRY_LINK( ! [#include <stdarg.h>], ! [va_list ap1, ap2; ! __va_copy(ap1, ap2);], ! [ac_cv_c___va_copy="yes"], ! [ac_cv_c___va_copy="no"] ! ) ! ) if test "$ac_cv_c___va_copy" = "yes" ; then AC_DEFINE(HAVE___VA_COPY, 1, [Define if we have __va_copy]) --- 123,141 ---- AC_MSG_RESULT($ac_cv_fmt_time_t) dnl How to copy one va_list to another? ! AC_CACHE_CHECK([for va_copy], ac_cv_c_va_copy, [AC_LINK_IFELSE( ! [AC_LANG_PROGRAM([#include <stdarg.h>], [va_list ap1, ap2; va_copy(ap1, ap2);])], ! [ac_cv_c_va_copy="yes"], ! [ac_cv_c_va_copy="no"] ! )]) if test "$ac_cv_c_va_copy" = "yes" ; then AC_DEFINE(HAVE_VA_COPY, 1, [Define if we have va_copy]) fi ! AC_CACHE_CHECK([for __va_copy], ac_cv_c___va_copy, [AC_LINK_IFELSE( ! [AC_LANG_PROGRAM([#include <stdarg.h>], [va_list ap1, ap2; __va_copy(ap1, ap2);])], ! [ac_cv_c___va_copy="yes"], ! [ac_cv_c___va_copy="no"] ! )]) if test "$ac_cv_c___va_copy" = "yes" ; then AC_DEFINE(HAVE___VA_COPY, 1, [Define if we have __va_copy]) *************** *** 343,345 **** AC_SUBST(RX_INCLUDES) AC_SUBST(RX_LIBS) ! AC_OUTPUT(Makefile rx/Makefile src/Makefile) --- 293,296 ---- AC_SUBST(RX_INCLUDES) AC_SUBST(RX_LIBS) ! AC_CONFIG_FILES(Makefile rx/Makefile src/Makefile) ! AC_OUTPUT |