[Ocfs2-tools-devel] infinite loop when running ./configure
Joel Becker
Joel.Becker at oracle.com
Thu May 20 18:01:15 PDT 2010
On Thu, May 20, 2010 at 02:34:50AM +0800, Coly Li wrote:
> Just now when I run ./configure inside ocfs2-tools tree, the script blocked at
> checking for cpg_initialize in -lcpg...
>
> I add '-x' to ./configure, find the script loops. The output of configure script is attached. Can anybody give me some
> suggestion on the fix or work around ?
Haha, guess I never tested when we don't have libcpg. Try this.
Joel
diff --git a/configure.in b/configure.in
index 458b55a..890923c 100644
--- a/configure.in
+++ b/configure.in
@@ -268,7 +268,12 @@ if test "x$cpg_found" = "xyes"; then
AC_MSG_CHECKING([for cpg_initialize in -lcpg])
while test "x$TRY_PATH" != "x"; do
TRY="`echo $TRY_PATH | cut -f1 -d:`"
- TRY_PATH="`echo $TRY_PATH | cut -f2- -d:`"
+ NEW_TRY_PATH="`echo $TRY_PATH | cut -f2- -d:`"
+ if test "x$NEW_TRY_PATH" != "x$TRY_PATH"; then
+ TRY_PATH="$NEW_TRY_PATH"
+ else
+ TRY_PATH=""
+ fi
if test "x$TRY" != "x"; then
TRY="-L${TRY}/${cpg_package}"
@@ -307,7 +312,12 @@ if test "x$ckpt_found" = "xyes"; then
AC_MSG_CHECKING([for saCkptInitialize in -lSaCkpt])
while test "x$TRY_PATH" != "x"; do
TRY="`echo $TRY_PATH | cut -f1 -d:`"
- TRY_PATH="`echo $TRY_PATH | cut -f2- -d:`"
+ NEW_TRY_PATH="`echo $TRY_PATH | cut -f2- -d:`"
+ if test "x$NEW_TRY_PATH" != "x$TRY_PATH"; then
+ TRY_PATH="$NEW_TRY_PATH"
+ else
+ TRY_PATH=""
+ fi
if test "x$TRY" != "x"; then
TRY="-L${TRY}/openais"
--
Life's Little Instruction Book #222
"Think twice before burdening a friend with a secret."
Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127
More information about the Ocfs2-tools-devel
mailing list