version 1.4, 2001/08/07 14:19:53 |
version 1.5, 2001/08/08 10:23:32 |
| |
| |
dnl Ask user for path to the STLport files location | dnl Ask user for path to the STLport files location |
AC_ARG_WITH( stlport, | AC_ARG_WITH( stlport, |
[ --with-stlport=<path> path to the STLPort install files directory. | [ --with-stlport=<path> path to the STLPort install directory. |
e.g. /usr/local/stlport] | e.g. /usr/local/stlport] |
) | ) |
| |
AC_ARG_WITH( stlport-include, | AC_ARG_WITH( stlport-include, |
[ --with-stlport-include=<path> | [ --with-stlport-include=<path> |
path to the STLPort header files directory. | path to the STLPort header files directory. |
e.g. /usr/local/stlport/include] | e.g. /usr/local/stlport/stlport] |
) | ) |
| |
AC_ARG_WITH( stlport-lib, | AC_ARG_WITH( stlport-lib, |
| |
then | then |
AC_MSG_RESULT(using STLPort files located in $with_stlport) | AC_MSG_RESULT(using STLPort files located in $with_stlport) |
| |
STLPORT_CFLAGS="$with_stlport/include" | STLPORT_CFLAGS="-I$with_stlport/stlport" |
STLPORT_LIB="$with_stlport/lib" | STLPORT_LIB="-L$with_stlport/lib" |
fi | fi |
else | else |
no_stlport="no" | no_stlport="no" |
| |
if test -z "$no_stlport" -a "$with_stlport_include" | if test -z "$no_stlport" -a "$with_stlport_include" |
then | then |
AC_MSG_RESULT(using STLPort header files located in $with_stlport_include) | AC_MSG_RESULT(using STLPort header files located in $with_stlport_include) |
STLPORT_CFLAGS="$with_stlport_include" | STLPORT_CFLAGS="-I$with_stlport_include" |
fi | fi |
| |
if test -z "$no_stlport" -a "$with_stlport_lib" | if test -z "$no_stlport" -a "$with_stlport_lib" |
then | then |
AC_MSG_RESULT(using STLPort library files located in $with_stlport_lib) | AC_MSG_RESULT(using STLPort library files located in $with_stlport_lib) |
STLPORT_LIB="$with_stlport_lib" | STLPORT_LIB="-L$with_stlport_lib" |
fi | fi |
| |
| |
| |
| |
if test X"$STLPORT_CFLAGS" != X | if test X"$STLPORT_CFLAGS" != X |
then | then |
CXXFLAGS="-I$STLPORT_CFLAGS $CXXFLAGS" | CXXFLAGS="$STLPORT_CFLAGS $CXXFLAGS" |
fi | fi |
| |
if test X"$STLPORT_LIB" != X | if test X"$STLPORT_LIB" != X |
then | then |
LIBS="-L$STLPORT_LIB $LIBS -lstlport_gcc" | LIBS="$STLPORT_LIB $LIBS -lstlport_gcc" |
fi | fi |
| |
_CPPFLAGS="$CPPFLAGS" | _CPPFLAGS="$CPPFLAGS" |