diff options
author | tuexen <tuexen@9df1edf5-d72c-5b5f-11c0-5f5209eb73f7> | 2011-11-04 06:59:54 +0000 |
---|---|---|
committer | tuexen <tuexen@9df1edf5-d72c-5b5f-11c0-5f5209eb73f7> | 2011-11-04 06:59:54 +0000 |
commit | 8e332e7c3557e0f6eff2dd728415c4471910ace4 (patch) | |
tree | bc8adabb1a97fabf65df5d68bcd17b4df7555485 | |
parent | 9e44ebe5127e42fd9848e94adb331c8114ab3c34 (diff) | |
download | usrsctp-8e332e7c3557e0f6eff2dd728415c4471910ace4.tar.gz |
Make bootstrap work on different platforms. Get it compiling from
make dist generated tarball.
-rw-r--r-- | .cvsignore | 1 | ||||
-rw-r--r-- | Makefile.am | 1 | ||||
-rwxr-xr-x | bootstrap | 19 | ||||
-rw-r--r-- | configure.in | 1 | ||||
-rw-r--r-- | usrsctplib/Makefile.am | 1 |
5 files changed, 20 insertions, 3 deletions
@@ -11,3 +11,4 @@ depcomp install-sh libtool missing +m4 diff --git a/Makefile.am b/Makefile.am index 1a52f66e..3ea0a950 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,2 +1,3 @@ SUBDIRS = usrsctplib programs EXTRA_DIST = bootstrap +ACLOCAL_AMFLAGS = -I m4 @@ -1,6 +1,19 @@ #! /bin/sh -set -x -aclocal -glibtoolize +if [ -e /usr/bin/glibtoolize ] ; then + glibtoolize --force +elif [ -e /usr/bin/libtoolize ] ; then + libtoolize --force +elif [ -e /usr/local/bin/libtoolize ] ; then + libtoolize --force +else + echo "ERROR: I cannot find libtoolize or glibtoolize!" + exit 1 +fi + +if [ -e /usr/local/share/aclocal ] ; then + aclocal -I /usr/local/share/aclocal +else + aclocal -I /usr/share/aclocal +fi autoconf automake --foreign --add-missing --copy diff --git a/configure.in b/configure.in index 3d0844cd..5d729df2 100644 --- a/configure.in +++ b/configure.in @@ -4,6 +4,7 @@ AM_INIT_AUTOMAKE(libusrsctp, 0.1) AC_PROG_CC AC_PROG_LIBTOOL AC_CANONICAL_HOST +AC_CONFIG_MACRO_DIR([m4]) CFLAGS="$CFLAGS -g -O0 -DUSE_SCTP_SHA1 -D__Userspace__ -DSCTP_SIMPLE_ALLOCATOR" diff --git a/usrsctplib/Makefile.am b/usrsctplib/Makefile.am index 5e3959a1..38cb8c74 100644 --- a/usrsctplib/Makefile.am +++ b/usrsctplib/Makefile.am @@ -1,5 +1,6 @@ lib_LTLIBRARIES = libusrsctp.la libusrsctp_la_SOURCES = opt_compat.h \ + opt_inet.h \ opt_inet6.h \ opt_ipsec.h \ opt_sctp.h \ |