Top 10k strings from libxml.m4 in <root> / bin / pc / Emulators / fuse-hc2000-hacks.7z / src / fuse / m4 /

Back to the directory listing

   2 #include <stdio.h>
   2 #include <libxml/xmlversion.h>
   2    free(tmp_version);
   2      if test x${XML2_CONFIG+set} != xset ; then
   2      exit(1);
   1 dnl Test for XML, and define XML_CFLAGS and XML_LIBS
   1 dnl Now check if the installed libxml is sufficiently new.
   1 dnl AM_PATH_XML2([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
   1 dnl (Also sanity checks the results of xml2-config to some extent)
   1 ],, no_xml=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
   1 ],      [ LIBXML_TEST_VERSION; return 0;],
   1 AC_DEFUN([AM_PATH_XML2],[ 
   1 AC_ARG_WITH(xml-prefix,
   1 AC_ARG_WITH(xml-exec-prefix,
   1 AC_ARG_ENABLE(xmltest,
   1 /* Compare the headers to the library to make sure we match */
   1 #include <string.h>
   1 #include <stdlib.h>
   1 # Toshio Kuratomi 2001-04-21
   1 # Taken from libxml2 2.6.10 by PAK 2004/07/06
   1 # Owen Taylor     97-11-3
   1 # Modified to use CPPFLAGS instead of CFLAGS
   1 # Mike Hommey 2004-05-26
   1 # Configure paths for LIBXML2
   1 # Configure paths for GLIB
   1 # Adapted from:
   1  /* Compare xml2-config output to the libxml headers */
   1   tmp_version = (char *)strdup("$min_xml_version");
   1   system("touch conf.xmltest");
   1   rm -f conf.xmltest
   1   return 1;
   1   no_xml=""
   1   min_xml_version=ifelse([$1], ,2.0.0,[$1])
   1   int xml_major_version, xml_minor_version, xml_micro_version;
   1   int major, minor, micro;
   1   if test x$xml_config_prefix != x ; then
   1   if test x$xml_config_exec_prefix != x ; then
   1   if test "x$no_xml" = x ; then
   1   if test "$XML2_CONFIG" = "no" ; then
   1   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
   1   if ((xml_major_version != $xml_config_major_version) ||
   1   char *tmp_version;
   1   AC_SUBST(XML_LIBS)
   1   AC_SUBST(XML_CFLAGS)
   1   AC_PATH_PROG(XML2_CONFIG, xml2-config, no)
   1   AC_MSG_CHECKING(for libxml - version >= $min_xml_version)
   1   /* Less than ideal -- doesn't provide us with return value feedback, 
   1   /* HP/UX 9 (%@#!) writes to sscanf strings */
   1   /* Capture xml2-config output via autoconf/configure variables */
   1    tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
   1    if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
   1    /* Capture the version information from the header files */
   1    * only exits if there's a serious mismatch between header and library.
   1     xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
   1     xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
   1     xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
   1     no_xml=yes
   1     if test "x$enable_xmltest" = "xyes" ; then
   1     if ((xml_major_version > major) ||
   1     XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
   1     XML_CFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
   1     LIBXML_TEST_VERSION;
   1     /* Test that the library is greater than our minimum version */
   1      xml_config_args="$xml_config_args"
   1      xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
   1      printf("%s, bad version string from xml2-config\n", "$min_xml_version");
   1      printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
   1      ifelse([$3], , :, [$3])
   1      ifelse([$2], , :, [$2])     
   1      if test "$XML2_CONFIG" = "no" ; then
   1      XML_LIBS=""
   1      XML_CFLAGS=""
   1      AC_MSG_RESULT(yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version))
   1      AC_MSG_RESULT(no)
   1       rm -f conf.xmltest
   1       return 1;
   1       printf("*** xml2-config (version %d.%d.%d)\n",
   1       printf("*** libxml header files (version %d.%d.%d) do not match\n",
   1       ac_save_LIBS="$LIBS"
   1       ac_save_CPPFLAGS="$CPPFLAGS"
   1       LIBS="$XML_LIBS $LIBS"
   1       CPPFLAGS="$CPPFLAGS $XML_CFLAGS"
   1       AC_TRY_RUN([
   1       (xml_minor_version != $xml_config_minor_version) ||
   1       (xml_micro_version != $xml_config_micro_version))
   1        if test -f conf.xmltest ; then
   1        else
   1        echo "*** your path, or set the XML2_CONFIG environment variable to the"
   1        echo "*** full path to xml2-config."
   1        echo "*** The xml2-config script installed by LIBXML could not be found"
   1        echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
   1        LIBS="$ac_save_LIBS"
   1        CPPFLAGS="$ac_save_CPPFLAGS"
   1         return 0;
   1         printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
   1         printf("***\n");
   1         printf("*** so that the correct libraries are found at run-time))\n");
   1         printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
   1         printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
   1         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
   1         printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
   1         printf("*** correct copy of xml2-config. (In this case, you will have to\n");
   1         printf("*** being found. The easiest way to fix this is to remove the old version\n");
   1         printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
   1         printf("*** If you have already installed a sufficiently new version, this error\n");
   1         [ echo "*** The test program failed to compile or link. See the file config.log for the"
   1         [ echo "*** The test program compiled, but did not run. This usually means"
   1         XML2_CONFIG=$xml_config_prefix/bin/xml2-config
   1         XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
   1         (xml_micro_version >= micro)))
   1         ((xml_major_version == major) && (xml_minor_version > minor)) ||
   1         ((xml_major_version == major) && (xml_minor_version == minor) &&
   1          xml_major_version, xml_minor_version, xml_micro_version);
   1          $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
   1           echo "***"
   1           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ],
   1           echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
   1           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
   1           echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
   1           echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
   1           echo "*** may want to edit the xml2-config script: $XML2_CONFIG" ])
   1           echo "*** is required on your system"
   1           echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
   1           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
   1           echo "*** If you have an old version installed, it is best to remove it, although"
   1           echo "*** Could not run libxml test program, checking why..."
   1           LIBS="$ac_save_LIBS"
   1           LIBS="$LIBS $XML_LIBS"
   1           CPPFLAGS="$ac_save_CPPFLAGS"
   1           CPPFLAGS="$CPPFLAGS $XML_CFLAGS"
   1           AC_TRY_LINK([
   1            sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
   1            sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
   1            sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
   1            major, minor, micro);
   1             xml_config_prefix="$withval", xml_config_prefix="")
   1             xml_config_exec_prefix="$withval", xml_config_exec_prefix="")
   1             [  --with-xml-prefix=PFX   Prefix where libxml is installed (optional)],
   1             [  --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)],
   1               enable_xmltest=yes)
   1               [  --disable-xmltest       Do not try to compile and run a test LIBXML program],,
   1                xml_major_version, xml_minor_version, xml_micro_version);