Fix configure logic when libedit isn't present
authorGreg Hudson <ghudson@mit.edu>
Fri, 22 Jul 2011 16:37:00 +0000 (16:37 +0000)
committerGreg Hudson <ghudson@mit.edu>
Fri, 22 Jul 2011 16:37:00 +0000 (16:37 +0000)
The configure script was correctly detecting that libedit was absent,
but was setting RL_CFLAGS to garbage in the process.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25036 dc483132-0cff-0310-8789-dd5450dbe970

src/configure.in

index b057a3b483dc132dd2a9fbe34d39bd7586ca29a5..a5fa4eeea2f75fc123fa4f47aedbb91a0555909c 100644 (file)
@@ -1116,7 +1116,8 @@ fi
 RL_CFLAGS=
 RL_LIBS=
 if test "x$with_libedit" != xno; then
-  if RL_CFLAGS=`pkg-config --cflags libedit 2>&1`; then
+  if rl_cflags=`pkg-config --cflags libedit 2>&1`; then
+    RL_CFLAGS=$rl_cflags
     RL_LIBS=`pkg-config --libs libedit`
     AC_DEFINE([HAVE_LIBEDIT], 1, [Define if building with libedit.])
     AC_MSG_RESULT([using libedit])