[Date Prev][Date Next] [Chronological] [Thread] [Top]

Autoconf && syntax error in configure.in



		Hello

	Checked the archive, no mention about this.
	I am using Linux (RedHat 6.0) and I was having an error when
trying ./configure. The problem is a missing fi in configure.in:

if test $ol_link_kerberos = yes ; then
        AC_DEFINE(HAVE_KERBEROS, 1, [define if you have Kerberos])

else if test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
        AC_ERROR([Kerberos detection failed.])
fi

On the else branch, the if has no corresponding fi.

Attached is a patch that solves the problem.

Cheers,
Misa
--- configure.in.orig	Tue Oct  5 13:52:47 1999
+++ configure.in	Tue Oct  5 13:52:35 1999
@@ -856,8 +856,10 @@
 if test $ol_link_kerberos = yes ; then
 	AC_DEFINE(HAVE_KERBEROS, 1, [define if you have Kerberos])
 
-else if test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
-	AC_ERROR([Kerberos detection failed.])
+else 
+	if test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
+		AC_ERROR([Kerberos detection failed.])
+	fi
 fi
 
 dnl ----------------------------------------------------------------