From: Hans U. N. <hu...@us...> - 2005-03-24 04:44:34
|
Update of /cvsroot/libexif/libexif-gtk/m4 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2381/m4 Added Files: .cvsignore Makefile.am gp-check-libexif.m4 gp-check-library.m4 gp-config-msg.m4 gp-gettext-hack.m4 gp-pkg-config.m4 Log Message: new build system --- NEW FILE: gp-check-libexif.m4 --- dnl @synopsis GP_CHECK_LIBEXIF AC_DEFUN([GP_CHECK_LIBEXIF],[ AC_ARG_VAR([LIBEXIF_LIBS],[libs to add for linking against libexif]) AC_ARG_VAR([LIBEXIF_CFLAGS],[CFLAGS for compiling with libexif]) AC_MSG_CHECKING([which libexif to use]) if test "x$LIBEXIF_LIBS" = "x" && test "x$LIBEXIF_CFLAGS" = "x"; then AC_MSG_RESULT([autodetect]) PKG_CHECK_MODULES([LIBEXIF], [libexif >= 0.6.11], [], [AC_MSG_ERROR([ * Fatal: ${PACKAGE_NAME} requires libexif to build. ])]) elif test "x$LIBEXIF_LIBS" != "x" && test "x$LIBEXIF_CFLAGS" != "x"; then AC_MSG_RESULT([user-defined]) else AC_MSG_ERROR([ * Either set LIBEXIF_LIBS *and* LIBEXIF_CFLAGS or none at all * when calling configure for the ${PACKAGE_NAME}. ]) fi AC_SUBST([LIBEXIF_LIBS]) AC_SUBST([LIBEXIF_CFLAGS]) ])dnl dnl dnl Please do not remove this: dnl filetype: 6e60b4f0-acb2-4cd5-8258-42014f92bd2c dnl I use this to find all the different instances of this file which dnl are supposed to be synchronized. dnl dnl Local Variables: dnl mode: autoconf dnl End: --- NEW FILE: gp-config-msg.m4 --- dnl dnl GP_CONFIG_MSG dnl dnl Simple way to print a configuration summary at the end of ./configure. dnl dnl Example usage: dnl dnl GP_CONFIG_INIT dnl GP_CONFIG_MSG([Source code location],[${srcdir}]) dnl GP_CONFIG_MSG([Compiler],[${CC}]) dnl GP_CONFIG_MSG dnl GP_CONFIG_MSG([Feature foo],[${foo}]) dnl GP_CONFIG_MSG([Location of bar],[${bar}]) dnl GP_CONFIG_OUTPUT dnl dnl AC_DEFUN([GP_CONFIG_INIT], [# the empty string must contain at least as many spaces as the substr length ndim_config_empty=" " ndim_config_msg=" Configuration (${PACKAGE_TARNAME} ${PACKAGE_VERSION}): ";])dnl dnl AC_DEFUN([GP_CONFIG_MSG], [AC_REQUIRE([GP_CONFIG_INIT])dnl m4_if([$1],,[ # Empty line in config message output ndim_config_msg="${ndim_config_msg} " ],[ ndim_config_msg="${ndim_config_msg} $(expr "$1:${ndim_config_empty}" : "\(.\{0,22\}\)") $2 " ])])dnl dnl AC_DEFUN([GP_CONFIG_OUTPUT], [AC_REQUIRE([GP_CONFIG_INIT])dnl AC_REQUIRE([GP_CONFIG_MSG])dnl echo "${ndim_config_msg} You may run \"make\" and \"make install\" now.";])dnl dnl dnl Please do not remove this: dnl filetype: de774af3-dc3b-4b1d-b6f2-4aca35d3da16 dnl I use this to find all the different instances of this file which dnl are supposed to be synchronized. dnl dnl Local Variables: dnl mode: autoconf dnl End: --- NEW FILE: gp-gettext-hack.m4 --- dnl dnl GP_GETTEXT_HACK dnl dnl gettext hack, originally designed for libexif, libgphoto2, and Co. dnl This creates a po/Makevars file with adequate values if the dnl po/Makevars.template is present. dnl dnl Example usage: dnl GP_GETTEXT_HACK([${PACKAGE_TARNAME}-${LIBFOO_CURRENT}], dnl [Copyright Holder], dnl [foo...@ex...]) dnl ALL_LINGUAS="de es fr" dnl AM_GNU_GETTEXT_VERSION([0.14.1]) dnl AM_GNU_GETTEXT([external]) dnl AM_PO_SUBDIRS() dnl AM_ICONV() dnl GP_GETTEXT_FLAGS dnl dnl You can leave out the GP_GETTEXT_HACK parameters if you want to, dnl GP_GETTEXT_HACK will try fall back to sensible values in that case: dnl AC_DEFUN([GP_GETTEXT_HACK], [ m4_if([$1],[],[GETTEXT_PACKAGE="${PACKAGE_TARNAME}"],[GETTEXT_PACKAGE="$1"]) AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], [The gettext domain we're using]) AC_SUBST([GETTEXT_PACKAGE]) sed_cmds="s|^DOMAIN.*|DOMAIN = ${GETTEXT_PACKAGE}|" m4_if([$2],[],[],[sed_cmds="${sed_cmds};s|^COPYRIGHT_HOLDER.*|COPYRIGHT_HOLDER = $2|"]) m4_if([$3],[],[if test -n "$PACKAGE_BUGREPORT"; then sed_mb="${PACKAGE_BUGREPORT}" else AC_MSG_ERROR([ *** Your configure.{ac,in} is wrong. *** Either define PACKAGE_BUGREPORT (by using the 4-parameter AC INIT syntax) *** or give [GP_GETTEXT_HACK] the second parameter. *** ]) fi],[sed_mb="$3"]) sed_cmds="${sed_cmds};s|^MSGID_BUGS_ADDRESS.*|MSGID_BUGS_ADDRESS = ${sed_mb}|" # Not so sure whether this hack is all *that* evil... AC_MSG_CHECKING([for po/Makevars requiring hack]) if test -f "${srcdir}/po/Makevars.template"; then sed "$sed_cmds" < "${srcdir}/po/Makevars.template" > "${srcdir}/po/Makevars" AC_MSG_RESULT([yes, done.]) else AC_MSG_RESULT([no]) fi ]) AC_DEFUN([GP_GETTEXT_FLAGS], [ AC_REQUIRE([AM_GNU_GETTEXT]) AC_REQUIRE([GP_CONFIG_MSG]) if test "x${BUILD_INCLUDED_LIBINTL}" = "xyes"; then AM_CFLAGS="${AM_CFLAGS} -I\$(top_srcdir)/intl" fi GP_CONFIG_MSG GP_CONFIG_MSG([Use translations],[${USE_NLS}]) if test "x$USE_NLS" = "xyes" && test "${BUILD_INCLUDED_LIBINTL}"; then GP_CONFIG_MSG([Use included libintl],[${BUILD_INCLUDED_LIBINTL}]) fi ]) dnl Please do not remove this: dnl filetype: 71ff3941-a5ae-4677-a369-d7cb01f92c81 dnl I use this to find all the different instances of this file which dnl are supposed to be synchronized. dnl Local Variables: dnl mode: autoconf dnl End: --- NEW FILE: Makefile.am --- EXTRA_DIST = \ gp-check-libexif.m4 gp-check-library.m4 \ gp-config-msg.m4 gp-gettext-hack.m4 gp-pkg-config.m4 --- NEW FILE: gp-check-library.m4 --- dnl @synopsis GP_CHECK_LIBRARY([VAR_PREFIX],[libname],[>= version]) dnl dnl Examples: dnl GP_CHECK_LIBRARY([LIBEXIF],[libexif])dnl dnl GP_CHECK_LIBRARY([LIBEXIF],[libexif-gtk], [>= 0.3.3])dnl dnl AC_DEFUN([_GP_CHECK_LIBRARY],[ AC_ARG_VAR([$1][_CFLAGS], [CFLAGS for compiling with $2])dnl AC_ARG_VAR([$1][_LIBS], [libs to add for linking against $2])dnl AC_MSG_CHECKING([which ][$2][ to use]) if test "x${[$1][_LIBS]}" = "x" && test "x${$1_CFLAGS}" = "x"; then AC_MSG_RESULT([autodetect]) PKG_CHECK_MODULES([$1], [$2][$3], [], [AC_MSG_ERROR([ * Fatal: ${PACKAGE_NAME} requires $2 to build. ])]) elif test "x${[$1][_LIBS]}" != "x" && test "x${[$1][_CFLAGS]}" != "x"; then AC_MSG_RESULT([user-defined]) else AC_MSG_ERROR([ * Either set [$1][_LIBS] *and* [$1][_CFLAGS] or none at all * when calling configure for the ${PACKAGE_NAME}. ]) fi dnl AC_SUBST is done implicitly by AC_ARG_VAR :-) dnl AC_SUBST([$1][_LIBS]) dnl AC_SUBST([$1][_CFLAGS]) ])dnl dnl AC_DEFUN([GP_CHECK_LIBRARY], [m4_if([$#], 2,[ # ---------------------------------------------------------------------- # $0([$1],[$2]) # ---------------------------------------------------------------------- _GP_CHECK_LIBRARY([$1],[$2])], [$#], 3,[ # ---------------------------------------------------------------------- # $0([$1],[$2],[$3]) # ---------------------------------------------------------------------- _GP_CHECK_LIBRARY([$1],[$2],[ $3])], [ m4_errprint([Illegal number of arguments ($#) to $0 macro ])m4_exit(1)])dnl ])dnl dnl dnl Please do not remove this: dnl filetype: 6e60b4f0-acb2-4cd5-8258-42014f92bd2c dnl I use this to find all the different instances of this file which dnl are supposed to be synchronized. dnl dnl Local Variables: dnl mode: autoconf dnl End: --- NEW FILE: gp-pkg-config.m4 --- dnl @synopsis GP_PKG_CONFIG dnl dnl If you want to set the PKG_CONFIG_PATH, best do so before dnl calling GP_PKG_CONFIG AC_DEFUN([GP_PKG_CONFIG],[ # # [GP_PKG_CONFIG] # AC_ARG_VAR([PKG_CONFIG],[pkg-config package config utility]) export PKG_CONFIG AC_ARG_VAR([PKG_CONFIG_PATH],[directory where pkg-config looks for *.pc files]) export PKG_CONFIG_PATH AC_MSG_CHECKING([PKG_CONFIG_PATH]) if test "x${PKG_CONFIG_PATH}" = "x"; then AC_MSG_RESULT([empty]) else AC_MSG_RESULT([${PKG_CONFIG_PATH}]) fi dnl AC_REQUIRE([PKG_CHECK_MODULES]) AC_PATH_PROG([PKG_CONFIG],[pkg-config],[false]) if test "$PKG_CONFIG" = "false"; then AC_MSG_ERROR([ *** Build requires pkg-config *** *** Possible solutions: *** - set PKG_CONFIG to where your pkg-config is located *** - set PATH to include the directory where pkg-config is installed *** - get it from http://freedesktop.org/software/pkgconfig/ and install it ]) fi ])dnl dnl Please do not remove this: dnl filetype: d87b877b-80ec-447c-b042-21ec4a27c6f0 dnl I use this to find all the different instances of this file which dnl are supposed to be synchronized. dnl Local Variables: dnl mode: autoconf dnl End: --- NEW FILE: .cvsignore --- Makefile Makefile.in autom4te.cache codeset.m4 gettext.m4 glibc21.m4 iconv.m4 intdiv0.m4 intmax.m4 inttypes-pri.m4 inttypes.m4 inttypes_h.m4 isc-posix.m4 lcmessage.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 longdouble.m4 longlong.m4 nls.m4 po.m4 printf-posix.m4 progtest.m4 signed.m4 size_max.m4 stdint_h.m4 uintmax_t.m4 ulonglong.m4 wchar_t.m4 wint_t.m4 xsize.m4 |