From: Alan T. DeKok Date: Mon, 16 May 2011 11:42:54 +0000 (+0200) Subject: Configure checks for deprecated functionality X-Git-Tag: release_2_1_11~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a25aa87a40007e164d9d96c4975ee93bdadbdbb;p=thirdparty%2Ffreeradius-server.git Configure checks for deprecated functionality --- diff --git a/configure b/configure index 1d316893ca7..f5257f4e3b0 100755 --- a/configure +++ b/configure @@ -5572,7 +5572,7 @@ ia64-*-hpux*) ;; *-*-irix6*) # Find out which ABI we are using. - echo '#line 5571 "configure"' > conftest.$ac_ext + echo '#line 5576 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? @@ -7678,11 +7678,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:7677: $lt_compile\"" >&5) + (eval echo "\"\$as_me:7682: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:7681: \$? = $ac_status" >&5 + echo "$as_me:7686: \$? = $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. @@ -7968,11 +7968,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:7967: $lt_compile\"" >&5) + (eval echo "\"\$as_me:7972: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:7971: \$? = $ac_status" >&5 + echo "$as_me:7976: \$? = $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. @@ -8072,11 +8072,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:8071: $lt_compile\"" >&5) + (eval echo "\"\$as_me:8076: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:8075: \$? = $ac_status" >&5 + echo "$as_me:8080: \$? = $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 @@ -10449,7 +10449,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < conftest.$ac_ext <&5) + (eval echo "\"\$as_me:12954: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:12953: \$? = $ac_status" >&5 + echo "$as_me:12958: \$? = $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. @@ -13054,11 +13054,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:13053: $lt_compile\"" >&5) + (eval echo "\"\$as_me:13058: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:13057: \$? = $ac_status" >&5 + echo "$as_me:13062: \$? = $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 @@ -14652,11 +14652,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:14651: $lt_compile\"" >&5) + (eval echo "\"\$as_me:14656: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:14655: \$? = $ac_status" >&5 + echo "$as_me:14660: \$? = $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. @@ -14756,11 +14756,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:14755: $lt_compile\"" >&5) + (eval echo "\"\$as_me:14760: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:14759: \$? = $ac_status" >&5 + echo "$as_me:14764: \$? = $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 @@ -16976,11 +16976,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:16975: $lt_compile\"" >&5) + (eval echo "\"\$as_me:16980: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:16979: \$? = $ac_status" >&5 + echo "$as_me:16984: \$? = $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. @@ -17266,11 +17266,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:17265: $lt_compile\"" >&5) + (eval echo "\"\$as_me:17270: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:17269: \$? = $ac_status" >&5 + echo "$as_me:17274: \$? = $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. @@ -17370,11 +17370,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:17369: $lt_compile\"" >&5) + (eval echo "\"\$as_me:17374: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:17373: \$? = $ac_status" >&5 + echo "$as_me:17378: \$? = $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 @@ -20322,6 +20322,21 @@ fi +WITH_POST_PROXY_AUTHORIZE= + +# Check whether --with-post-proxy-authorize was given. +if test "${with_post_proxy_authorize+set}" = set; then + withval=$with_post_proxy_authorize; case "$withval" in + yes) + WITH_POST_PROXY_AUTHORIZE="yes" + ;; + *) + ;; + esac + +fi + + STATIC_MODULES= # Check whether --with-static_modules was given. @@ -26112,6 +26127,14 @@ fi HOSTINFO=$host +if test "x$WITH_POST_PROXY_AUTHORIZE" != "x"; then + +cat >>confdefs.h <<\_ACEOF +#define WITH_POST_PROXY_AUTHORIZE 1 +_ACEOF + +fi + top_builddir=`pwd` export top_builddir diff --git a/configure.in b/configure.in index d1d8e30bde9..62b0de81a02 100644 --- a/configure.in +++ b/configure.in @@ -270,6 +270,19 @@ AC_ARG_WITH(dhcp, ) +dnl extra argument: --with-post-proxy-authorize +WITH_POST_PROXY_AUTHORIZE= +AC_ARG_WITH(post-proxy-authorize, +[ --with-post-proxy-authorize 1.x compatibility (default=no) ], +[ case "$withval" in + yes) + WITH_POST_PROXY_AUTHORIZE="" + ;; + *) + ;; + esac ] +) + dnl # dnl # Allow the user to specify a list of modules to be linked dnl # statically to the server. @@ -1110,6 +1123,10 @@ fi AC_SUBST(HOSTINFO, $host) +if test "x$WITH_POST_PROXY_AUTHORIZE" != "x"; then + AC_DEFINE(WITH_POST_PROXY_AUTHORIZE, 1, [1.x compatibility]) +fi + dnl ############################################################# dnl # dnl # 8. Checks for system services diff --git a/src/include/autoconf.h.in b/src/include/autoconf.h.in index 3493254c585..888b1780440 100644 --- a/src/include/autoconf.h.in +++ b/src/include/autoconf.h.in @@ -409,6 +409,9 @@ /* Include experimental support for DHCP */ #undef WITH_DHCP +/* 1.x compatibility */ +#undef WITH_POST_PROXY_AUTHORIZE + /* define if you want udpfromto */ #undef WITH_UDPFROMTO