… | |
… | |
9744 | |
9744 | |
9745 | # Check whether --enable-dns or --disable-dns was given. |
9745 | # Check whether --enable-dns or --disable-dns was given. |
9746 | if test "${enable_dns+set}" = set; then |
9746 | if test "${enable_dns+set}" = set; then |
9747 | enableval="$enable_dns" |
9747 | enableval="$enable_dns" |
9748 | |
9748 | |
|
|
9749 | if test "${ac_cv_header_gmp_h+set}" = set; then |
|
|
9750 | echo "$as_me:$LINENO: checking for gmp.h" >&5 |
|
|
9751 | echo $ECHO_N "checking for gmp.h... $ECHO_C" >&6 |
|
|
9752 | if test "${ac_cv_header_gmp_h+set}" = set; then |
|
|
9753 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9754 | fi |
|
|
9755 | echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5 |
|
|
9756 | echo "${ECHO_T}$ac_cv_header_gmp_h" >&6 |
|
|
9757 | else |
|
|
9758 | # Is the header compilable? |
|
|
9759 | echo "$as_me:$LINENO: checking gmp.h usability" >&5 |
|
|
9760 | echo $ECHO_N "checking gmp.h usability... $ECHO_C" >&6 |
|
|
9761 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9762 | /* confdefs.h. */ |
|
|
9763 | _ACEOF |
|
|
9764 | cat confdefs.h >>conftest.$ac_ext |
|
|
9765 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9766 | /* end confdefs.h. */ |
|
|
9767 | $ac_includes_default |
|
|
9768 | #include <gmp.h> |
|
|
9769 | _ACEOF |
|
|
9770 | rm -f conftest.$ac_objext |
|
|
9771 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
9772 | (eval $ac_compile) 2>conftest.er1 |
|
|
9773 | ac_status=$? |
|
|
9774 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9775 | rm -f conftest.er1 |
|
|
9776 | cat conftest.err >&5 |
|
|
9777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9778 | (exit $ac_status); } && |
|
|
9779 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
9780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
9781 | (eval $ac_try) 2>&5 |
|
|
9782 | ac_status=$? |
|
|
9783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9784 | (exit $ac_status); }; } && |
|
|
9785 | { ac_try='test -s conftest.$ac_objext' |
|
|
9786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
9787 | (eval $ac_try) 2>&5 |
|
|
9788 | ac_status=$? |
|
|
9789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9790 | (exit $ac_status); }; }; then |
|
|
9791 | ac_header_compiler=yes |
|
|
9792 | else |
|
|
9793 | echo "$as_me: failed program was:" >&5 |
|
|
9794 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9795 | |
|
|
9796 | ac_header_compiler=no |
|
|
9797 | fi |
|
|
9798 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9799 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
9800 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
9801 | |
|
|
9802 | # Is the header present? |
|
|
9803 | echo "$as_me:$LINENO: checking gmp.h presence" >&5 |
|
|
9804 | echo $ECHO_N "checking gmp.h presence... $ECHO_C" >&6 |
|
|
9805 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9806 | /* confdefs.h. */ |
|
|
9807 | _ACEOF |
|
|
9808 | cat confdefs.h >>conftest.$ac_ext |
|
|
9809 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9810 | /* end confdefs.h. */ |
|
|
9811 | #include <gmp.h> |
|
|
9812 | _ACEOF |
|
|
9813 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
9814 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
9815 | ac_status=$? |
|
|
9816 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9817 | rm -f conftest.er1 |
|
|
9818 | cat conftest.err >&5 |
|
|
9819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9820 | (exit $ac_status); } >/dev/null; then |
|
|
9821 | if test -s conftest.err; then |
|
|
9822 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
9823 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
9824 | else |
|
|
9825 | ac_cpp_err= |
|
|
9826 | fi |
|
|
9827 | else |
|
|
9828 | ac_cpp_err=yes |
|
|
9829 | fi |
|
|
9830 | if test -z "$ac_cpp_err"; then |
|
|
9831 | ac_header_preproc=yes |
|
|
9832 | else |
|
|
9833 | echo "$as_me: failed program was:" >&5 |
|
|
9834 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9835 | |
|
|
9836 | ac_header_preproc=no |
|
|
9837 | fi |
|
|
9838 | rm -f conftest.err conftest.$ac_ext |
|
|
9839 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
9840 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
9841 | |
|
|
9842 | # So? What about this header? |
|
|
9843 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
9844 | yes:no: ) |
|
|
9845 | { echo "$as_me:$LINENO: WARNING: gmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
9846 | echo "$as_me: WARNING: gmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
9847 | { echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the compiler's result" >&5 |
|
|
9848 | echo "$as_me: WARNING: gmp.h: proceeding with the compiler's result" >&2;} |
|
|
9849 | ac_header_preproc=yes |
|
|
9850 | ;; |
|
|
9851 | no:yes:* ) |
|
|
9852 | { echo "$as_me:$LINENO: WARNING: gmp.h: present but cannot be compiled" >&5 |
|
|
9853 | echo "$as_me: WARNING: gmp.h: present but cannot be compiled" >&2;} |
|
|
9854 | { echo "$as_me:$LINENO: WARNING: gmp.h: check for missing prerequisite headers?" >&5 |
|
|
9855 | echo "$as_me: WARNING: gmp.h: check for missing prerequisite headers?" >&2;} |
|
|
9856 | { echo "$as_me:$LINENO: WARNING: gmp.h: see the Autoconf documentation" >&5 |
|
|
9857 | echo "$as_me: WARNING: gmp.h: see the Autoconf documentation" >&2;} |
|
|
9858 | { echo "$as_me:$LINENO: WARNING: gmp.h: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
9859 | echo "$as_me: WARNING: gmp.h: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
9860 | { echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the preprocessor's result" >&5 |
|
|
9861 | echo "$as_me: WARNING: gmp.h: proceeding with the preprocessor's result" >&2;} |
|
|
9862 | { echo "$as_me:$LINENO: WARNING: gmp.h: in the future, the compiler will take precedence" >&5 |
|
|
9863 | echo "$as_me: WARNING: gmp.h: in the future, the compiler will take precedence" >&2;} |
|
|
9864 | ( |
|
|
9865 | cat <<\_ASBOX |
|
|
9866 | ## ------------------------------------------ ## |
|
|
9867 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
9868 | ## ------------------------------------------ ## |
|
|
9869 | _ASBOX |
|
|
9870 | ) | |
|
|
9871 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
9872 | ;; |
|
|
9873 | esac |
|
|
9874 | echo "$as_me:$LINENO: checking for gmp.h" >&5 |
|
|
9875 | echo $ECHO_N "checking for gmp.h... $ECHO_C" >&6 |
|
|
9876 | if test "${ac_cv_header_gmp_h+set}" = set; then |
|
|
9877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9878 | else |
|
|
9879 | ac_cv_header_gmp_h=$ac_header_preproc |
|
|
9880 | fi |
|
|
9881 | echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5 |
|
|
9882 | echo "${ECHO_T}$ac_cv_header_gmp_h" >&6 |
|
|
9883 | |
|
|
9884 | fi |
|
|
9885 | if test $ac_cv_header_gmp_h = yes; then |
|
|
9886 | : |
|
|
9887 | else |
|
|
9888 | { { echo "$as_me:$LINENO: error: gmp.h not found, required for --enable-dns" >&5 |
|
|
9889 | echo "$as_me: error: gmp.h not found, required for --enable-dns" >&2;} |
|
|
9890 | { (exit 1); exit 1; }; } |
|
|
9891 | fi |
|
|
9892 | |
|
|
9893 | |
|
|
9894 | |
|
|
9895 | echo "$as_me:$LINENO: checking for main in -lgmp" >&5 |
|
|
9896 | echo $ECHO_N "checking for main in -lgmp... $ECHO_C" >&6 |
|
|
9897 | if test "${ac_cv_lib_gmp_main+set}" = set; then |
|
|
9898 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9899 | else |
|
|
9900 | ac_check_lib_save_LIBS=$LIBS |
|
|
9901 | LIBS="-lgmp $LIBS" |
|
|
9902 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9903 | /* confdefs.h. */ |
|
|
9904 | _ACEOF |
|
|
9905 | cat confdefs.h >>conftest.$ac_ext |
|
|
9906 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9907 | /* end confdefs.h. */ |
|
|
9908 | |
|
|
9909 | |
|
|
9910 | int |
|
|
9911 | main () |
|
|
9912 | { |
|
|
9913 | main (); |
|
|
9914 | ; |
|
|
9915 | return 0; |
|
|
9916 | } |
|
|
9917 | _ACEOF |
|
|
9918 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
9919 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
9920 | (eval $ac_link) 2>conftest.er1 |
|
|
9921 | ac_status=$? |
|
|
9922 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9923 | rm -f conftest.er1 |
|
|
9924 | cat conftest.err >&5 |
|
|
9925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9926 | (exit $ac_status); } && |
|
|
9927 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
9928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
9929 | (eval $ac_try) 2>&5 |
|
|
9930 | ac_status=$? |
|
|
9931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9932 | (exit $ac_status); }; } && |
|
|
9933 | { ac_try='test -s conftest$ac_exeext' |
|
|
9934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
9935 | (eval $ac_try) 2>&5 |
|
|
9936 | ac_status=$? |
|
|
9937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9938 | (exit $ac_status); }; }; then |
|
|
9939 | ac_cv_lib_gmp_main=yes |
|
|
9940 | else |
|
|
9941 | echo "$as_me: failed program was:" >&5 |
|
|
9942 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9943 | |
|
|
9944 | ac_cv_lib_gmp_main=no |
|
|
9945 | fi |
|
|
9946 | rm -f conftest.err conftest.$ac_objext \ |
|
|
9947 | conftest$ac_exeext conftest.$ac_ext |
|
|
9948 | LIBS=$ac_check_lib_save_LIBS |
|
|
9949 | fi |
|
|
9950 | echo "$as_me:$LINENO: result: $ac_cv_lib_gmp_main" >&5 |
|
|
9951 | echo "${ECHO_T}$ac_cv_lib_gmp_main" >&6 |
|
|
9952 | if test $ac_cv_lib_gmp_main = yes; then |
|
|
9953 | cat >>confdefs.h <<_ACEOF |
|
|
9954 | #define HAVE_LIBGMP 1 |
|
|
9955 | _ACEOF |
|
|
9956 | |
|
|
9957 | LIBS="-lgmp $LIBS" |
|
|
9958 | |
|
|
9959 | else |
|
|
9960 | { { echo "$as_me:$LINENO: error: libgmp not found, required for --enable-dns" >&5 |
|
|
9961 | echo "$as_me: error: libgmp not found, required for --enable-dns" >&2;} |
|
|
9962 | { (exit 1); exit 1; }; } |
|
|
9963 | fi |
|
|
9964 | |
|
|
9965 | |
|
|
9966 | |
9749 | cat >>confdefs.h <<_ACEOF |
9967 | cat >>confdefs.h <<_ACEOF |
9750 | #define ENABLE_DNS 1 |
9968 | #define ENABLE_DNS 1 |
9751 | _ACEOF |
9969 | _ACEOF |
|
|
9970 | |
9752 | |
9971 | |
9753 | |
9972 | |
9754 | fi; |
9973 | fi; |
9755 | |
9974 | |
9756 | # Check whether --enable-http-proxy or --disable-http-proxy was given. |
9975 | # Check whether --enable-http-proxy or --disable-http-proxy was given. |