|
From: Dan F. <dfa...@us...> - 2016-09-01 22:38:47
|
Update of /cvsroot/libexif/libexif In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv9159 Modified Files: configure.ac Log Message: configure.ac: Made some changes to void warnings with modern automake versions Index: configure.ac =================================================================== RCS file: /cvsroot/libexif/libexif/configure.ac,v retrieving revision 1.70 retrieving revision 1.71 diff -u -d -r1.70 -r1.71 --- configure.ac 1 Sep 2016 21:51:25 -0000 1.70 +++ configure.ac 1 Sep 2016 22:38:43 -0000 1.71 @@ -3,7 +3,7 @@ AC_CONFIG_SRCDIR([libexif/exif-data.h]) AC_CONFIG_HEADERS([config.h]) AC_CONFIG_MACRO_DIR([auto-m4]) -AM_INIT_AUTOMAKE([-Wall gnu 1.9 dist-bzip2 dist-zip check-news]) +AM_INIT_AUTOMAKE([-Wall gnu 1.9 dist-bzip2 dist-zip check-news subdir-objects]) AM_MAINTAINER_MODE # Use the silent-rules feature when possible. @@ -70,10 +70,11 @@ LIBEXIF_VERSION_INFO="$LIBEXIF_CURRENT:$LIBEXIF_REVISION:$LIBEXIF_AGE" AC_SUBST([LIBEXIF_VERSION_INFO]) -AC_PROG_CC +AM_PROG_CC_C_O AC_C_CONST AC_C_INLINE dnl FIXME: AC_LIBTOOL_WIN32_DLL +AM_PROG_AR AM_PROG_LIBTOOL AM_CPPFLAGS="$CPPFLAGS" GP_CONFIG_MSG([Compiler],[${CC}]) @@ -119,25 +120,23 @@ LIBS_orig="$LIBS" LIBS="$LIBS -lm" AC_MSG_CHECKING([for math functions in libm]) -AC_LINK_IFELSE([ - #include <math.h> - int main() { - double s = sqrt(0); - double p = pow(s,s); - return (int)p; - } -], [AC_MSG_RESULT(yes)], [ +AC_LINK_IFELSE([AC_LANG_PROGRAM([ + #include <math.h> + ],[ + double s = sqrt(0); + double p = pow(s,s); + ])], + [AC_MSG_RESULT(yes)], [ AC_MSG_RESULT(no) LIBS="$LIBS_orig" AC_MSG_CHECKING([for math functions without libm]) - AC_LINK_IFELSE([ + AC_LINK_IFELSE([AC_LANG_PROGRAM([ #include <math.h> - int main() { + ],[ double s = sqrt(0); double p = pow(s,s); - return (int)p; - } - ], [ + ])], + [ AC_MSG_RESULT(yes) ],[ AC_MSG_RESULT(no) |