-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mike wrote:
| Gerald (Jerry) Carter wrote:
|
|> Here's my build script.  You can modify it for you needs.
|>
|> Hope this helps.
|
| Thanks.
|
|> ##
|> ## required library paths
|> ##
|> DIRPATH=""
|> for dir in $DIRPATH ; do
|>     CPPFLAGS="$CPPFLAGS -I$dir/include"
|>     CFLAGS="$CFLAGS -Wl,-rpath,$dir/lib"
|>     LDFLAGS="$LDFLAGS -L$dir/lib"
|> done
|
| Sorry, I'm not that good with scripting.  What is the
| purpose of DIRPATH for?  I'm not sure what to set it to.

DIRPATH="/opt/openldap"

and you'll need to update the CFLAGS and LDFLAGS to use
'libraries' instead of lib since you have a non-default
install.

| I noticed the autogen.sh line in that script and tried
| to manually run it.  I get this error:
|
| ./autogen.sh
| ./autogen.sh[25]: [: ,: unexpected operator/operand
| ./autogen.sh[39]: [: ,: unexpected operator/operand
| ./autogen.sh: need autoconf 2.53 or later to build samba from SVN

Looks like a bash'ism crept in.  Try this patch.
But truthfully, you don't need to run autogen
unless you modify configure.in or are building from
SVN (i know this was part of the original script I sent you).
Sorry for the confusion.  You can just comment it out.





cheers, jerry
=====================================================================
Alleviating the pain of Windows(tm)      ------- http://www.samba.org
GnuPG Key                ----- http://www.plainjoe.org/gpg_public.asc
"I never saved anything for the swim back."     Ethan Hawk in Gattaca
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCB3mlIR7qMdg1EfYRAuKtAJ0Xz8bvwyXv7XLUYGwgyCx3tLd8bwCgvF36
YKMhVbf5nZmFCQ8FkS7UGlc=
=IAC8
-----END PGP SIGNATURE-----
Index: autogen.sh
===================================================================
--- autogen.sh  (revision 5261)
+++ autogen.sh  (working copy)
@@ -16,7 +16,7 @@
 ##
 for i in $TESTAUTOHEADER; do
        if which $i > /dev/null 2>&1; then
-               if [ `$i --version | head -n 1 | cut -d.  -f 2 | tr -d 
[:alpha:]` -ge 53 ]; then
+               if test `$i --version | head -n 1 | cut -d.  -f 2 | tr -d 
[:alpha:]` -ge 53; then
                        AUTOHEADER=$i
                        AUTOHEADERFOUND="1"
                        break
@@ -30,7 +30,7 @@
 
 for i in $TESTAUTOCONF; do
        if which $i > /dev/null 2>&1; then
-               if [ `$i --version | head -n 1 | cut -d.  -f 2 | tr -d 
[:alpha:]` -ge 53 ]; then
+               if test `$i --version | head -n 1 | cut -d.  -f 2 | tr -d 
[:alpha:]` -ge 53; then
                        AUTOCONF=$i
                        AUTOCONFFOUND="1"
                        break
@@ -42,7 +42,7 @@
 ## 
 ## do we have it?
 ##
-if [ "$AUTOCONFFOUND" = "0" -o "$AUTOHEADERFOUND" = "0" ]; then
+if test "$AUTOCONFFOUND" = "0" -o "$AUTOHEADERFOUND" = "0"; then
        echo "$0: need autoconf 2.53 or later to build samba from SVN" >&2
        exit 1
 fi
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

Reply via email to