On Mon, Dec 09, 2002 at 04:58:39PM -0500, Matt Selsky wrote: > I'm trying to build imapd-2.1.11 > > I unpacked the source tarball into a direction and then I build from > another directory (since I have multiple architectures). I configured > like this: > > $ ../../src/configure \ > --prefix=/opt/cyrus-imapd-2.1.11 \ > --with-cyrus-prefix=/opt/cyrus-imap-2.1.11 \ > --with-cyrus-user=cyrusadm \ > --with-cyrus-group=mailer \ > --with-dbdir=/opt/BerkeleyDB.3.3 \ > --with-auth=unix \ > --enable-murder \ > --disable-sieve \ > --enable-fulldirhash \ > --with-openssl \ > --with-sasl=/opt/local > > $ make > .... > ### Making all in > /src/mail/cyrus/cyrus-imapd-2.1.11/obj/solaris9/acap > make[1]: Entering directory `/src/mail/cyrus/cyrus-imapd-2.1.11/obj/solaris9/acap' > gcc -c -I/opt/BerkeleyDB.3.3/include -I/usr/local/include -I/opt/local/include -I. >-I.. -I../lib -DHAVE_CONFIG_H -Wall -g -O2 \ > ../../../src/acap/acapsieve.c > ../../../src/acap/acapsieve.c:20: acap.h: No such file or directory > make[1]: *** [acapsieve.o] Error 1 > make[1]: Leaving directory > `/src/mail/cyrus/cyrus-imapd-2.1.11/obj/solaris9/acap' > make: *** [all] Error 1 > > > acap.h does exist in ../../../src/acap/acap.h Should configure have > added '$srcdir/.' to CPPFLAGS instead of '.' in the acap/Makefile?
This change to acap/Makefile.in seems to fix the problem: diff -u -r1.1 Makefile.in --- Makefile.in 2002/12/09 22:20:13 1.1 +++ Makefile.in 2002/12/09 22:30:28 @@ -51,7 +51,7 @@ RANLIB = @RANLIB@ DEFS = @DEFS@ -CPPFLAGS = @CPPFLAGS@ @SASLFLAGS@ -I. -I.. -I../lib +CPPFLAGS = @CPPFLAGS@ @SASLFLAGS@ -I. -I.. -I../lib -I$(srcdir) LIBS = @LIBS@ CFLAGS = @CFLAGS@ Other Makefile.in may need similar fixes.
