- added siproxd.spec to autoconf process

This commit is contained in:
Thomas Ries
2003-04-07 18:09:32 +00:00
parent d3c28ae5bc
commit 992d92ffcd
2 changed files with 38 additions and 48 deletions
+36 -46
View File
@@ -9,6 +9,9 @@ dnl 22-Mar-2003 tries check for sockaddr_t, hstrerror()
dnl --enable-almost-static (for Fli4l use)
dnl --enable-uclibc (uClibc building support)
dnl 29-Mar-2003 tries added support for libosip2
dnl 6-Apr-2003 tries redone the fli4l specific build options
dnl now: --enable-fli4l-libc5, --enable-fli4l-uclibc
dnl 7-Apr-2003 tries added siproxd.spex to autoconf process
dnl
dnl
dnl
@@ -24,7 +27,7 @@ dnl Release Version
dnl
SPD_MAJOR_VERSION=0
SPD_MINOR_VERSION=3
SPD_MICRO_VERSION=2
SPD_MICRO_VERSION=3
SPD_VERSION=$SPD_MAJOR_VERSION.$SPD_MINOR_VERSION.$SPD_MICRO_VERSION
@@ -110,68 +113,53 @@ esac
dnl
dnl uClibc support (only available on Linux, yet)
dnl Feature:
dnl Fli4l uClibc support (only available on Linux, yet)
dnl
build_fli4l_uclibc="no"
case "$target" in
*-*-linux*)
uclibc_path="/usr/i386-linux-uclibc/"
AC_MSG_CHECKING("uClibc path")
AC_ARG_WITH(uclibc-path,
[ --with-uclibc-path=DIR directory to uClibc development],
uclibc_path="$withval" )
AC_MSG_RESULT($uclibc_path)
AC_MSG_CHECKING("build against uClibc")
AC_ARG_ENABLE(uclibc,
[ --enable-uclibc build against a uClibc],
build_uclibc=$enableval,
build_uclibc="no")
AC_MSG_RESULT($build_uclibc)
AC_MSG_CHECKING("build for FLI4L uClibc")
AC_ARG_ENABLE(fli4l-uclibc,
[ --enable-fli4l-uclibc FLI4L: build for uClibc],
build_fli4l_uclibc=$enableval,)
AC_MSG_RESULT($build_fli4l_uclibc)
;;
*)
AC_MSG_RESULT("FEATURE uclibc not available on this platform")
AC_MSG_RESULT("FEATURE fli4l-uclibc not available on this platform")
;;
esac
if test "x$build_uclibc" = "xyes"; then
CC=$uclibc_path/bin/i386-uclibc-gcc
LDD=$uclibc_path/bin/i386-uclibc-ldd
LD=$uclibc_path/bin/i386-uclibc-ld
CPPFLAGS=" -I $uclibc_path/include/ $CPPFLAGS"
LIBS=" -L $uclibc_path/lib/ $LIBS"
fi
dnl
dnl Features:
dnl almost-static (only available on Linux, yet)
dnl Feature:
dnl Flifl libc5 support (only available on Linux, yet)
dnl
build_fli4l_libc5="no"
case "$target" in
*-*-linux*)
AC_MSG_CHECKING("build almost static")
AC_ARG_ENABLE(almost-static,
[ --enable-almost-static only link dynamically to libc, rest static],
build_almost_static=$enableval,
build_almost_static="no")
AC_MSG_RESULT($build_almost_static)
AC_MSG_CHECKING("building for FLI4L libc5")
AC_ARG_ENABLE(fli4l-libc5,
[ --enable-fli4l-libc5 FLI4L: build for libc5],
build_fli4l_libc5=$enableval,)
AC_MSG_RESULT($build_fli4l_libc5)
;;
*)
AC_MSG_RESULT("FEATURE almost-static not available on this platform")
AC_MSG_RESULT("FEATURE fli4l-libc5 not available on this platform")
;;
esac
if test "x$build_almost_static" = "xyes"; then
if test "x$build_uclibc" = "xyes"; then
dnl uClibc: make libosip static
build_static_libosip="yes"
build_static_pthread="no"
else
dnl must be standard libc: make libosip and libpthread static
build_static_libosip="yes"
build_static_pthread="yes"
fi
if test "x$build_fli4l_uclibc" = "xyes"; then
dnl FLI4l uClibc: make only libosip static
build_static_libosip="yes"
build_static_pthread="no"
elif test "x$build_fli4l_libc5" = "xyes"; then
dnl FLI4l libc5: make libosip and libpthread static
build_static_libosip="yes"
build_static_pthread="yes"
else
dnl build all dynamically linked
build_static_libosip="no"
build_static_pthread="no"
fi
@@ -184,7 +172,7 @@ osiplib=osip
have_osip2=no
AC_MSG_CHECKING("force to use libosip1")
AC_ARG_ENABLE(force-osip1,
[ --enable-force-osip1 force the use of libosip1],
[ --enable-force-osip1 force the use of libosip1],
AC_MSG_RESULT("yes"),
AC_MSG_RESULT("no")
dnl do we have libosip2 available?
@@ -286,7 +274,9 @@ AC_SUBST(LIBS)
dnl
dnl Generate output files
dnl
AC_OUTPUT(Makefile \
AC_OUTPUT( \
siproxd.spec \
Makefile \
src/Makefile \
doc/Makefile \
scripts/Makefile \
+2 -2
View File
@@ -1,5 +1,5 @@
%define name siproxd
%define ver 0.3.2
%define name @PACKAGE@
%define ver @VERSION@
%define release 1
%define serial 1
%define prefix %{_prefix}