hello,

with the increase of afs-related questions like these, couldn't
configure.in sort out at least the compile-related requests?

with the attached patch --with-afs and volker's --with-fake-kaserver would
build out of the box on suse 8.2/9.0.


On Sat, Oct 11, 2003 at 05:14:00PM +1000, Andrew Bartlett wrote:
> On Sat, 2003-10-11 at 11:29, Joe Samba wrote:
> > Hi All-
> > 
> > I have SuSE 8.2 installed on two different Intel machines, with (as far as 
> > I can determine) all required packages for doing what I'm trying to do 
> > here.  Both machines suffer the same problems.
...
> > As root, I did a "./configure --with-afs" (several other options too---see 
> > below) and it finished without complaints.  
...
> > athena:/home/adam/smb/samba-3.0.0/source # make
> > Using FLAGS =  -g -O2 -I/usr/local/include  -Iinclude 
> > -I/home/adam/smb/samba-3.0.0/source/include 
> > -I/home/adam/smb/samba-3.0.0/source/ubiqx 
> > -I/home/adam/smb/samba-3.0.0/source/smbwrapper  -I. -D_LARGEFILE64_SOURCE 
> > -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I/usr/local/include 
> > -I/home/adam/smb/samba-3.0.0/source
> >       LIBS = -lcrypt -lresolv -lnsl -ldl
> >       LDSHFLAGS = -shared
> >       LDFLAGS =
> > Compiling auth/pass_check.c
> > auth/pass_check.c:38:22: afs/stds.h: No such file or directory
> > auth/pass_check.c:39:25: afs/kautils.h: No such file or directory
> > auth/pass_check.c: In function `afs_auth':
> > auth/pass_check.c:53: error: `KA_USERAUTH_VERSION' undeclared (first use 
> > in this function)
> > auth/pass_check.c:53: error: (Each undeclared identifier is reported only 
> > once
> > auth/pass_check.c:53: error: for each function it appears in.)
> > auth/pass_check.c:53: error: `KA_USERAUTH_DOSETPAG' undeclared (first use 
> > in this function)
> > make: *** [auth/pass_check.o] Error 1
> > athena:/home/adam/smb/samba-3.0.0/source #


would that make sense?

guenther

-- 
Guenther Deschner                                         [EMAIL PROTECTED]
SuSE Linux AG                                        GnuPG: 8EE11688
Berliner Str. 27                      phone:  +49 (0) 30 / 430944778
D-13507 Berlin                           fax:  +49 (0) 30 / 43732804
Index: source/configure.in
===================================================================
RCS file: /cvsroot/samba/source/configure.in,v
retrieving revision 1.300.2.177
diff -u -r1.300.2.177 configure.in
--- source/configure.in 17 Oct 2003 04:59:06 -0000      1.300.2.177
+++ source/configure.in 22 Oct 2003 13:38:29 -0000
@@ -2201,6 +2201,7 @@
 
 #################################################
 # check for AFS clear-text auth support
+samba_cv_WITH_AFS=no
 AC_MSG_CHECKING(whether to use AFS clear-text auth)
 AC_ARG_WITH(afs,
 [  --with-afs              Include AFS clear-text auth support (default=no) ],
@@ -2208,6 +2209,7 @@
   yes)
     AC_MSG_RESULT(yes)
     AC_DEFINE(WITH_AFS,1,[Whether to include AFS clear-text auth support])
+    samba_cv_WITH_AFS=yes
     ;;
   *)
     AC_MSG_RESULT(no)
@@ -2218,6 +2220,7 @@
 
 ####################################################
 # check for Linux-specific AFS fake-kaserver support
+samba_cv_WITH_FAKE_KASERVER=no
 AC_MSG_CHECKING(whether to use AFS fake-kaserver)
 AC_ARG_WITH(fake-kaserver,
 [  --with-fake-kaserver    Include AFS fake-kaserver support (default=no) ],
@@ -2225,6 +2228,7 @@
   yes)
     AC_MSG_RESULT(yes)
     AC_DEFINE(WITH_FAKE_KASERVER,1,[Whether to include AFS fake-kaserver support])
+    samba_cv_WITH_FAKE_KASERVER=yes
     ;;
   *)
     AC_MSG_RESULT(no)
@@ -2234,6 +2238,20 @@
 )
 
 #################################################
+# see if this box has the afs-headers in /usr/include/afs
+if test x"$samba_cv_WITH_AFS" = x"yes" ||
+   test x"$samba_cv_WITH_FAKE_KASERVER" = x"yes"; then
+    AC_MSG_CHECKING(for /usr/include/afs)
+    if test -d /usr/include/afs; then
+          CFLAGS="$CFLAGS -I/usr/include/afs"
+          CPPFLAGS="$CPPFLAGS -I/usr/include/afs"
+          AC_MSG_RESULT(yes)
+    else
+      AC_MSG_RESULT(no)
+    fi
+fi
+
+#################################################
 # check for the DFS clear-text auth system
 AC_MSG_CHECKING(whether to use DFS clear-text auth)
 AC_ARG_WITH(dfs,

Attachment: pgp00000.pgp
Description: PGP signature

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

Reply via email to