]> sourceware.org Git - lvm2.git/commitdiff
configure: update recent change
authorZdenek Kabelac <zkabelac@redhat.com>
Thu, 12 Dec 2013 13:29:15 +0000 (14:29 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Thu, 12 Dec 2013 13:29:15 +0000 (14:29 +0100)
Full path needs to be supplied.
Keep on using 'autodetect' keyword as default argument.

configure.in

index cf297e820fbc121e096e55a14a06fd4107f1e5e7..3e0e508c3227efc5e15b3565abfe937f8ff43663 100644 (file)
@@ -413,16 +413,16 @@ AC_ARG_WITH(thin,
            THIN=$withval, THIN=internal)
 AC_ARG_WITH(thin-check,
            AC_HELP_STRING([--with-thin-check=PATH],
-                          [thin_check tool: [[thin_check]]]),
-                          THIN_CHECK_CMD=$withval, THIN_CHECK_CMD="thin_check")
+                          [thin_check tool: [[autodetect]]]),
+                          THIN_CHECK_CMD=$withval, THIN_CHECK_CMD="autodetect")
 AC_ARG_WITH(thin-dump,
            AC_HELP_STRING([--with-thin-dump=PATH],
-                          [thin_dump tool: [[thin_dump]]]),
-                          THIN_DUMP_CMD=$withval, THIN_DUMP_CMD="thin_dump")
+                          [thin_dump tool: [[autodetect]]]),
+                          THIN_DUMP_CMD=$withval, THIN_DUMP_CMD="autodetect")
 AC_ARG_WITH(thin-repair,
            AC_HELP_STRING([--with-thin-repair=PATH],
-                          [thin_repair tool: [[thin_repair]]]),
-                          THIN_REPAIR_CMD=$withval, THIN_REPAIR_CMD="thin_repair")
+                          [thin_repair tool: [[autodetect]]]),
+                          THIN_REPAIR_CMD=$withval, THIN_REPAIR_CMD="autodetect")
 
 AC_MSG_RESULT($THIN)
 
@@ -438,29 +438,29 @@ esac
 case "$THIN" in
   internal|shared)
        # Empty means a config way to ignore thin checking
-       if test "$THIN_CHECK_CMD" = "thin_check"; then
-               AC_PATH_TOOL(THIN_CHECK_CMD, thin_check, thin_check)
-               test "$THIN_CHECK_CMD" = "thin_check" && {
+       if test "$THIN_CHECK_CMD" = "autodetect"; then
+               AC_PATH_TOOL(THIN_CHECK_CMD, thin_check)
+               test -z "$THIN_CHECK_CMD" && {
                        AC_MSG_WARN([thin_check not found in path $PATH])
-                       THIN_CHECK_CMD=thin_check
+                       THIN_CHECK_CMD=/usr/sbin/thin_check
                        THIN_CONFIGURE_WARN=y
                }
        fi
        # Empty means a config way to ignore thin checking
-       if test "$THIN_DUMP_CMD" = "thin_dump"; then
-               AC_PATH_TOOL(THIN_DUMP_CMD, thin_dump, thin_dump)
-               test "$THIN_DUMP_CMD" = "thin_dump" && {
+       if test "$THIN_DUMP_CMD" = "autodetect"; then
+               AC_PATH_TOOL(THIN_DUMP_CMD, thin_dump)
+               test -z "$THIN_DUMP_CMD" && {
                        AC_MSG_WARN(thin_dump not found in path $PATH)
-                       THIN_DUMP_CMD=thin_dump
+                       THIN_DUMP_CMD=/usr/sbin/thin_dump
                        THIN_CONFIGURE_WARN=y
                }
        fi
        # Empty means a config way to ignore thin checking
-       if test "$THIN_REPAIR_CMD" = "thin_repair"; then
+       if test "$THIN_REPAIR_CMD" = "autodetect"; then
                AC_PATH_TOOL(THIN_REPAIR_CMD, thin_repair)
                test -z "$THIN_REPAIR_CMD" && {
                        AC_MSG_WARN(thin_repair not found in path $PATH)
-                       THIN_REPAIR_CMD=thin_repair
+                       THIN_REPAIR_CMD=/usr/sbin/thin_repair
                        THIN_CONFIGURE_WARN=y
                }
        fi
This page took 0.042771 seconds and 5 git commands to generate.