From: Todd C. Miller Date: Sat, 20 Feb 2010 18:20:57 +0000 (-0500) Subject: Fix setting of plugin dir X-Git-Tag: SUDO_1_8_0~887 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3327db2171019a7ae7f6fe5da09e4cb63fea6421;p=sudo Fix setting of plugin dir --- diff --git a/configure b/configure index 55a6341a9..b65c28e07 100755 --- a/configure +++ b/configure @@ -3853,22 +3853,19 @@ fi fi -PLUGINDIR="$libexecdir" +with_plugindir="$libexecdir" # Check whether --with-plugin_dir was given. if test "${with_plugin_dir+set}" = set; then withval=$with_plugin_dir; case $with_plugin_dir in - yes) ;; - no) ;; - *) PLUGINDIR="$with_plugin_dir" + no) { { echo "$as_me:$LINENO: error: \"illegal argument: --without-plugin_dir.\"" >&5 +echo "$as_me: error: \"illegal argument: --without-plugin_dir.\"" >&2;} + { (exit 1); exit 1; }; } ;; + *) ;; esac fi -cat >>confdefs.h <&5 @@ -6494,7 +6491,7 @@ ia64-*-hpux*) ;; *-*-irix6*) # Find out which ABI we are using. - echo '#line 6497 "configure"' > conftest.$ac_ext + echo '#line 6494 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? @@ -8358,11 +8355,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:8361: $lt_compile\"" >&5) + (eval echo "\"\$as_me:8358: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:8365: \$? = $ac_status" >&5 + echo "$as_me:8362: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -8648,11 +8645,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:8651: $lt_compile\"" >&5) + (eval echo "\"\$as_me:8648: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:8655: \$? = $ac_status" >&5 + echo "$as_me:8652: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -8752,11 +8749,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:8755: $lt_compile\"" >&5) + (eval echo "\"\$as_me:8752: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:8759: \$? = $ac_status" >&5 + echo "$as_me:8756: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -11112,7 +11109,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < conftest.$ac_ext <>confdefs.h <<_ACEOF _ACEOF fi + eval PLUGINDIR="$with_plugindir" + cat >>confdefs.h <