X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=configure.ac;h=c24f518c845286238fffbade5737503b73069988;hb=HEAD;hp=9899622094e561057a4ecef5ae5e68aac34ee03f;hpb=69e4b0e909c967223ce2652d4aaf326714055c0b;p=platform%2Fupstream%2Fexpat.git diff --git a/configure.ac b/configure.ac index 9899622..c24f518 100644 --- a/configure.ac +++ b/configure.ac @@ -47,7 +47,7 @@ dnl If the API changes incompatibly set LIBAGE back to 0 dnl LIBCURRENT=7 # sync -LIBREVISION=6 # with +LIBREVISION=7 # with LIBAGE=6 # CMakeLists.txt! CPPFLAGS="${CPPFLAGS} -DHAVE_EXPAT_CONFIG_H" @@ -63,7 +63,7 @@ AC_SUBST(LIBREVISION) AC_SUBST(LIBAGE) dnl Checks for programs. -AC_PROG_CC +AC_PROG_CC_C99 AC_PROG_CXX AC_PROG_INSTALL @@ -106,6 +106,9 @@ AC_ARG_WITH([xmlwf], [ AS_HELP_STRING([--without-xmlwf], [do not build xmlwf])], [], [with_xmlwf=yes]) AM_CONDITIONAL([WITH_XMLWF], [test x${with_xmlwf} = xyes]) +AM_CONDITIONAL([MINGW], [echo -- "${host}" | fgrep -q mingw]) +AM_CONDITIONAL([UNICODE], [echo -- "${CPPFLAGS}${CFLAGS}" | fgrep -q XML_UNICODE]) + AC_ARG_WITH([libbsd], [ AS_HELP_STRING([--with-libbsd], [utilize libbsd (for arc4random_buf)]) @@ -225,6 +228,21 @@ AS_IF([test "x${enable_xml_context}" != "xno"], [ [Define to specify how much context to retain around the current parse point.]) ]) +AC_ARG_WITH([docbook], [AS_HELP_STRING([--with-docbook], + [enforce XML to man page compilation @<:@default=check@:>@]) +AS_HELP_STRING([--without-docbook], + [skip XML to man page compilation @<:@default=check@:>@])], + [], + [with_docbook=check]) + +AC_ARG_VAR([DOCBOOK_TO_MAN], [docbook2x-man command]) +AS_IF([test "x$with_docbook" != xno], + [AC_CHECK_PROGS([DOCBOOK_TO_MAN], [docbook2x-man docbook2man docbook-to-man], + [if test "x$with_docbook" != xcheck; then + AC_MSG_ERROR([Required program 'docbook2x-man' not found.])])]) + +AM_CONDITIONAL(WITH_DOCBOOK, [test x${DOCBOOK_TO_MAN} != x]) + AC_CONFIG_FILES([Makefile expat.pc]) AC_CONFIG_FILES([ doc/Makefile