Browse code

autojunk'd

Kevin Lin authored on 2014/09/23 06:58:13
Showing 1 changed files
... ...
@@ -17319,37 +17319,39 @@ if test "${with_pcre+set}" = set; then :
17319 17319
   withval=$with_pcre;
17320 17320
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcre installation" >&5
17321 17321
 $as_echo_n "checking for libpcre installation... " >&6; }
17322
-  if test "X$withval" = "Xno"; then
17322
+  case "$withval" in
17323
+  no)
17323 17324
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17324 17325
 $as_echo "no" >&6; }
17325
-  else
17326
-    if test "X$withval" = "Xyes"; then
17327
-      PCRE_HOME=/usr/local
17328
-      if test ! -x "$PCRE_HOME/bin/pcre-config"; then
17329
-        PCRE_HOME=/usr
17330
-        if test ! -x "$PCRE_HOME/bin/pcre-config"; then
17331
-          PCRE_HOME=""
17332
-        fi
17333
-      fi
17334
-    elif test "$withval"; then
17335
-      PCRE_HOME="$withval"
17326
+    ;;
17327
+  yes)
17328
+    PCRE_HOME=/usr/local
17329
+    if test ! -x "$PCRE_HOME/bin/pcre-config"; then
17330
+      PCRE_HOME=/usr
17336 17331
       if test ! -x "$PCRE_HOME/bin/pcre-config"; then
17337 17332
         PCRE_HOME=""
17338
-        as_fn_error $? "cannot locate libpcre at $withval" "$LINENO" 5
17333
+        as_fn_error $? "cannot locate libpcre at /usr/local or /usr" "$LINENO" 5
17339 17334
       fi
17340
-    else
17341
-      as_fn_error $? "cannot assign blank value to --with-pcre" "$LINENO" 5
17342 17335
     fi
17336
+    ;;
17337
+  "")
17338
+    as_fn_error $? "cannot assign blank value to --with-pcre" "$LINENO" 5
17339
+    ;;
17340
+  *)
17341
+    PCRE_HOME="$withval"
17342
+    if test ! -x "$PCRE_HOME/bin/pcre-config"; then
17343
+      PCRE_HOME=""
17344
+      as_fn_error $? "cannot locate libpcre at $withval" "$LINENO" 5
17345
+    fi
17346
+    ;;
17347
+  esac
17343 17348
 
17344
-    if test "x$PCRE_HOME" != "x"; then
17345
-      { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $PCRE_HOME" >&5
17349
+  if test "x$PCRE_HOME" != "x"; then
17350
+    { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $PCRE_HOME" >&5
17346 17351
 $as_echo "using $PCRE_HOME" >&6; }
17347
-    else
17348
-      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17352
+  else
17353
+    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17349 17354
 $as_echo "not found" >&6; }
17350
-      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot locate libpcre at /usr/local or /usr" >&5
17351
-$as_echo "$as_me: WARNING: cannot locate libpcre at /usr/local or /usr" >&2;}
17352
-    fi
17353 17355
   fi
17354 17356
 
17355 17357
 else