|
|
@ -9,6 +9,9 @@ |
|
|
|
## @license LGPL, see file <a href="license.html">COPYING</a> |
|
|
|
## @license LGPL, see file <a href="license.html">COPYING</a> |
|
|
|
## |
|
|
|
## |
|
|
|
## $Log$ |
|
|
|
## $Log$ |
|
|
|
|
|
|
|
## Revision 1.7 2004/08/31 16:01:10 marc |
|
|
|
|
|
|
|
## no -lbfd for --disable-stacktrace |
|
|
|
|
|
|
|
## |
|
|
|
## Revision 1.6 2004/08/28 16:21:07 marc |
|
|
|
## Revision 1.6 2004/08/28 16:21:07 marc |
|
|
|
## mrw-c++-0.92 (mrw) |
|
|
|
## mrw-c++-0.92 (mrw) |
|
|
|
## - new file: version.cpp |
|
|
|
## - new file: version.cpp |
|
|
@ -27,7 +30,7 @@ |
|
|
|
AC_INIT([mrw/mrw.hpp.in]) |
|
|
|
AC_INIT([mrw/mrw.hpp.in]) |
|
|
|
PACKAGENAME=mrw-c++ |
|
|
|
PACKAGENAME=mrw-c++ |
|
|
|
MAJOR=0 |
|
|
|
MAJOR=0 |
|
|
|
MINOR=92 |
|
|
|
MINOR=93 |
|
|
|
SUPPORT= |
|
|
|
SUPPORT= |
|
|
|
AM_INIT_AUTOMAKE(@PACKAGENAME@, @MAJOR@.@MINOR@, [marc@waeckerlin.org]) |
|
|
|
AM_INIT_AUTOMAKE(@PACKAGENAME@, @MAJOR@.@MINOR@, [marc@waeckerlin.org]) |
|
|
|
|
|
|
|
|
|
|
@ -55,17 +58,11 @@ AC_CHECK_HEADER(sys/old_procfs.h, [AM_CPPFLAGS=-D__solaris__]) |
|
|
|
|
|
|
|
|
|
|
|
# libraries |
|
|
|
# libraries |
|
|
|
AC_CHECK_HEADER(log4cxx/logger.h, [have_log4cxx=yes]) |
|
|
|
AC_CHECK_HEADER(log4cxx/logger.h, [have_log4cxx=yes]) |
|
|
|
AC_SEARCH_LIBS(cplus_demangle, iberty, [AC_MSG_RESULT([OK])], |
|
|
|
|
|
|
|
[AC_MSG_ERROR([Library iberty is required!])]) |
|
|
|
|
|
|
|
AC_SEARCH_LIBS(bfd_arch_list, bfd, [AC_MSG_RESULT([OK])], |
|
|
|
|
|
|
|
[ac_cv_search_bfd_arch_list=; |
|
|
|
|
|
|
|
]AC_SEARCH_LIBS(bfd_arch_list, bfd, [AC_MSG_RESULT([OK])], |
|
|
|
|
|
|
|
[AC_MSG_ERROR([BFD library libbfd is required])], [-lintl])) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Arguments |
|
|
|
# Arguments |
|
|
|
AM_MAINTAINER_MODE |
|
|
|
AM_MAINTAINER_MODE |
|
|
|
AC_ARG_ENABLE(pedantic, |
|
|
|
AC_ARG_ENABLE(pedantic, |
|
|
|
[ --enable-pedantic enable all warnings and checks, abort on warnings], |
|
|
|
[ --enable-pedantic enable all warnings and checks, abort on warnings], |
|
|
|
[test "$enableval" = "yes" && \ |
|
|
|
[test "$enableval" = "yes" && \ |
|
|
|
AM_CXXFLAGS="${AM_CXXFLAGS:-} -pedantic-errors -Wall -W -Wfloat-equal -Wundef -Wendif-labels -Wpointer-arith -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Wmissing-format-attribute -Wno-multichar -Wpacked -Wredundant-decls -Werror -Wshadow -Wcast-qual -Wno-ctor-dtor-privacy"]) |
|
|
|
AM_CXXFLAGS="${AM_CXXFLAGS:-} -pedantic-errors -Wall -W -Wfloat-equal -Wundef -Wendif-labels -Wpointer-arith -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Wmissing-format-attribute -Wno-multichar -Wpacked -Wredundant-decls -Werror -Wshadow -Wcast-qual -Wno-ctor-dtor-privacy"]) |
|
|
|
dnl problem in libs: -Wshadow -Wcast-qual |
|
|
|
dnl problem in libs: -Wshadow -Wcast-qual |
|
|
@ -85,6 +82,14 @@ AC_ARG_ENABLE(stacktrace, |
|
|
|
you still want to use the other parts], |
|
|
|
you still want to use the other parts], |
|
|
|
[have_stacktrace="$enableval"], [have_stacktrace="yes"]) |
|
|
|
[have_stacktrace="$enableval"], [have_stacktrace="yes"]) |
|
|
|
AM_CONDITIONAL(HAVE_STACKTRACE, test "$have_stacktrace" = "yes") |
|
|
|
AM_CONDITIONAL(HAVE_STACKTRACE, test "$have_stacktrace" = "yes") |
|
|
|
|
|
|
|
if [ "$have_stacktrace" = "yes" ]; then |
|
|
|
|
|
|
|
AC_SEARCH_LIBS(cplus_demangle, iberty, [AC_MSG_RESULT([OK])], |
|
|
|
|
|
|
|
[AC_MSG_ERROR([Library iberty is required!])]) |
|
|
|
|
|
|
|
AC_SEARCH_LIBS(bfd_arch_list, bfd, [AC_MSG_RESULT([OK])], |
|
|
|
|
|
|
|
[ac_cv_search_bfd_arch_list=; |
|
|
|
|
|
|
|
]AC_SEARCH_LIBS(bfd_arch_list, bfd, [AC_MSG_RESULT([OK])], |
|
|
|
|
|
|
|
[AC_MSG_ERROR([BFD library libbfd is required])], [-lintl])) |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
# export macros |
|
|
|
# export macros |
|
|
|
AC_SUBST(HAVE_DOT) |
|
|
|
AC_SUBST(HAVE_DOT) |
|
|
|