Commit 5d843deb authored by 's avatar

configure.ac update for combov2/libsze2



git-svn-id: file:///home/svn/mapi/trunk@1605 8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent 0a697f8c
......@@ -684,9 +684,9 @@ AS_HELP_STRING([--with-libcombo6=DIR], [Manual libcombo6 path configuration, in
else
AC_MSG_RESULT($withval)
incdir=""
if test -f $withval/include/szedata2.h; then
if test -f $withval/include/combo.h; then
incdir=$withval/include
elif test -f $withval/include/combo6/szedata2.h; then
elif test -f $withval/include/combo6/combo.h; then
incdir=$withval/include/combo6
fi
if test "x$incdir" != "x" -a -f $withval/lib/libsze2.so; then
......@@ -695,35 +695,39 @@ AS_HELP_STRING([--with-libcombo6=DIR], [Manual libcombo6 path configuration, in
COMBO6INC="-I$incdir"
COMBO6LIB="-L$withval/lib -lsze2 -ldbus-1"
else
AC_MSG_ERROR(szedata2.h or libsze2.so not found in $withval/include and $withval/lib)
AC_MSG_ERROR(combo.h or libsze2.so not found in $withval/include and $withval/lib)
fi
fi
;;
esac ],
[ if test x$combo6 = xtrue; then
if test -f ${prefix}/include/szedata2.h -a -f ${prefix}/lib/libsze2.so; then
COMBO6INC="-I${prefix}/include"
COMBO6LIB="-L${prefix}/lib -lsze2 -ldbus-1"
elif test -f /opt/combo6/include/szedata2.h -a -f /opt/combo6/lib/libsze2.so; then
COMBO6INC="-I/opt/combo6/include"
COMBO6LIB="-L/opt/combo6/lib -lsze2 -ldbus-1"
elif test -f /opt/combo6/include/combo6/szedata2.h -a -f /opt/combo6/lib/libsze2.so; then
COMBO6INC="-I/opt/combo6/include/combo6"
COMBO6LIB="-L/opt/combo6/lib -lsze2 -ldbus-1"
elif test -f /usr/local/include/szedata2.h -a -f /usr/local/lib/libsze2.so; then
COMBO6INC="-I/usr/local/include"
COMBO6LIB="-L/usr/local/lib -lsze2 -ldbus-1"
elif test -f /usr/local/include/combo6/szedata2.h -a -f /usr/local/lib/libsze2.so; then
COMBO6INC="-I/usr/local/include/combo6"
COMBO6LIB="-L/usr/local/lib -lsze2 -ldbus-1"
elif test -f /usr/include/combo6/szedata2.h; then
COMBO6INC="-I/usr/include/combo6"
COMBO6LIB="-lsze2"
elif test -f /usr/include/szedata2.h; then
COMBO6LIB="szedata2.h"
if test -f ${prefix}/include/combo.h -a -f ${prefix}/lib/libsze2.so; then
COMBO6INC="-I${prefix}/include `pkg-config --cflags dbus-1"
COMBO6LIB="-L${prefix}/lib -lsze2 -lcombo -ldbus-1 `pkg-config --libs dbus-1`"
elif test -f /opt/combo6/include/combo.h -a -f /opt/combo6/lib/libsze2.so; then
COMBO6INC="-I/opt/combo6/include `pkg-config --cflags dbus-1"
COMBO6LIB="-L/opt/combo6/lib -lsze2 -lcombo -ldbus-1 `pkg-config --libs dbus-1`"
elif test -f /opt/combo6/include/combo6/combo.h -a -f /opt/combo6/lib/libsze2.so; then
COMBO6INC="-I/opt/combo6/include/combo6 `pkg-config --cflags dbus-1"
COMBO6LIB="-L/opt/combo6/lib -lsze2 -lcombo -ldbus-1 `pkg-config --libs dbus-1`"
elif test -f /usr/local/include/combo.h -a -f /usr/local/lib/libsze2.so; then
COMBO6INC="-I/usr/local/include `pkg-config --cflags dbus-1"
COMBO6LIB="-L/usr/local/lib -lsze2 -lcombo -ldbus-1 `pkg-config --libs dbus-1`"
elif test -f /usr/local/include/combo6/combo.h -a -f /usr/local/lib/libsze2.so; then
COMBO6INC="-I/usr/local/include/combo6 `pkg-config --cflags dbus-1"
COMBO6LIB="-L/usr/local/lib -lsze2 -lcombo -ldbus-1 `pkg-config --libs dbus-1`"
elif test -f /usr/include/combo6/combo.h -a -f /usr/lib/libsze2.so; then
COMBO6INC="-I/usr/include/combo6 `pkg-config --cflags dbus-1"
COMBO6LIB="-L/usr/lib/combo6 -lsze2 -lcombo -ldbus-1 `pkg-config --libs dbus-1`"
elif test -f /usr/include/combo6/combo.h -a -f /usr/lib64/libsze2.so; then
COMBO6INC="-I/usr/include/combo6 `pkg-config --cflags dbus-1"
COMBO6LIB="-L/usr/lib64/combo6 -lsze2 -lcombo -ldbus-1 `pkg-config --libs dbus-1`"
elif test -f /usr/include/combo.h -a -f /usr/lib64/libsze2.so; then
COMBO6INC="`pkg-config --cflags dbus-1`"
COMBO6LIB="-L/usr/lib64 -lsze2 -lcombo -ldbus-1 `pkg-config --libs dbus-1`"
else
AC_MSG_RESULT(no)
AC_MSG_ERROR([libcombo6 not found])
AC_MSG_ERROR([libsze2 not found])
fi
AC_MSG_RESULT(yes)
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment