From 5b6bf2976c4843e2c63f3aeb3ba24efb4eab3f7e Mon Sep 17 00:00:00 2001 From: konn Date: Sun, 27 Mar 2005 08:33:46 +0000 Subject: [PATCH] =?utf8?q?*=202005/3/27=20=20=20apr-config=E3=82=92?= =?utf8?q?=E4=BD=BF=E7=94=A8=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=80=81?= =?utf8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/modchxj/mod_chxj/trunk@53 1a406e8e-add9-4483-a2c8-d8cac5b7c224 --- configure.ac | 35 ++++++++++------------------------- 1 file changed, 10 insertions(+), 25 deletions(-) diff --git a/configure.ac b/configure.ac index c1fde059..bf4966b9 100644 --- a/configure.ac +++ b/configure.ac @@ -29,20 +29,7 @@ Please specify the --with-apache-header option. And, please specify the place of ]) fi -AC_ARG_WITH(apr-header, [ --with-apr-header=ARG The directory with the header file of apr library is specified. ]) -if test "x$with_apr_header" = "x"; then - AC_MSG_ERROR([ -Please specify the --with-apr-header option. -]) -fi -if test "x$with_apr_header" = "xyes"; then - AC_MSG_ERROR([ -Please specify the --with-apr-header option. And, please specify the place of the header file. -]) -fi - -AC_ARG_WITH(apr-header, [ --with-apr-header=ARG The directory with the header file of apr library is specified. ]) AC_ARG_ENABLE(img-conv-f, [ --enable-img-conv-f Please specify it when you change the file name of the image being written in the source by the automatic operation.]) if test "x$enable_img_conv_f" = "xyes"; then @@ -75,25 +62,23 @@ if test "x$LIBTOOL" = "xno"; then fi -#AC_PATH_PROG(GDLIB_CONFIG, gdlib-config, no -# /usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin) -#if text "x$GDLIB_CONFIG" = "xno" ; then -# AC_MSG_ERROR([gdlib-config not found.]) -#fi -AC_PATH_PROG(WAND_CONFIG, Wand-config, no +AC_PATH_PROG(WAND_CONFIG, Wand-config, no, /usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin) -if text "x$WAND_CONFIG" = "xno" ; then +if test "x$WAND_CONFIG" = "xno" ; then AC_MSG_ERROR([wand-config not found.]) fi +AC_PATH_PROG(APR_CONFIG, apr-config, no, + /usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin) +if test "x$APR_CONFIG" = "xno" ; then + AC_MSG_ERROR([apr-config not found.]) +fi -#LIBS="${LIBS} `${GDLIB_CONFIG} --libs` -lgd" -#CFLAGS="${CFLAGS} `${GDLIB_CONFIG} --cflags`" -# -LIBS="${LIBS} `${WAND_CONFIG} --ldflags` `${WAND_CONFIG} --libs` -lgd" +LIBS="${LIBS} `${WAND_CONFIG} --ldflags` `${WAND_CONFIG} --libs` " +LIBS="${LIBS} `${APR_CONFIG} --ldflags` `${APR_CONFIG} --libs` " CFLAGS="${CFLAGS} `${WAND_CONFIG} --cppflags` `${WAND_CONFIG} --cflags`" +CFLAGS="${CFLAGS} -I`${APR_CONFIG} --includedir` `${APR_CONFIG} --cflags` `${APR_CONFIG} --cppflags`" AC_SUBST(with_apache_header) -AC_SUBST(with_apr_header) AC_SUBST(CC) AC_SUBST(QDEFS) AC_SUBST(DDEFS) -- 2.11.0