… | |
… | |
837 | ;; |
837 | ;; |
838 | *) |
838 | *) |
839 | AC_MSG_ERROR(bad value ${enableval} for --enable-libbind) |
839 | AC_MSG_ERROR(bad value ${enableval} for --enable-libbind) |
840 | ;; |
840 | ;; |
841 | esac], |
841 | esac], |
842 | [libbind=false] AC_MSG_RESULT(no)) |
842 | [libbind=false |
|
|
843 | AC_MSG_RESULT(no)]) |
843 | |
844 | |
844 | if test "$libbind" = "true"; then |
845 | if test "$libbind" = "true"; then |
845 | LIBSPF_RESOLV_LIB="-lbind" |
846 | LIBSPF_RESOLV_LIB="-lbind" |
846 | fi |
847 | fi |
847 | |
848 | |
… | |
… | |
925 | ;; |
926 | ;; |
926 | *) |
927 | *) |
927 | AC_MSG_ERROR(bad value ${enableval} for --enable-debug) |
928 | AC_MSG_ERROR(bad value ${enableval} for --enable-debug) |
928 | ;; |
929 | ;; |
929 | esac], |
930 | esac], |
930 | [debug=false] AC_MSG_RESULT(no)) |
931 | [debug=false |
|
|
932 | AC_MSG_RESULT(no)]) |
931 | |
933 | |
932 | CFLAGS="" |
934 | CFLAGS="" |
933 | if test "$debug" = "true"; then |
935 | if test "$debug" = "true"; then |
934 | CFLAGS="-ggdb -O -D_SPF_DEBUG" |
936 | CFLAGS="-ggdb -O -D_SPF_DEBUG" |
935 | else |
937 | else |
… | |
… | |
974 | ;; |
976 | ;; |
975 | *) |
977 | *) |
976 | AC_MSG_ERROR(bad value ${enableval} for --enable-debug-logfile) |
978 | AC_MSG_ERROR(bad value ${enableval} for --enable-debug-logfile) |
977 | ;; |
979 | ;; |
978 | esac], |
980 | esac], |
979 | [debug_logfile=true] AC_MSG_RESULT(no)) |
981 | [debug_logfile=true |
|
|
982 | AC_MSG_RESULT(no)]) |
980 | |
983 | |
981 | if test "$debug_logfile" = "true"; then |
984 | if test "$debug_logfile" = "true"; then |
982 | CFLAGS="-D_SPF_DEBUG_LOGFILE $CFLAGS" |
985 | CFLAGS="-D_SPF_DEBUG_LOGFILE $CFLAGS" |
983 | fi |
986 | fi |
984 | fi |
987 | fi |
… | |
… | |
1003 | ;; |
1006 | ;; |
1004 | *) |
1007 | *) |
1005 | AC_MSG_ERROR(bad value ${enableval} for --enable-logfile-stats) |
1008 | AC_MSG_ERROR(bad value ${enableval} for --enable-logfile-stats) |
1006 | ;; |
1009 | ;; |
1007 | esac], |
1010 | esac], |
1008 | [logfile_stats=false] AC_MSG_RESULT(no)) |
1011 | [logfile_stats=false |
|
|
1012 | AC_MSG_RESULT(no)]) |
1009 | |
1013 | |
1010 | if test "$logfile_stats" = "true"; then |
1014 | if test "$logfile_stats" = "true"; then |
1011 | CFLAGS="-D_SPF_LOGFILE_STATS $CFLAGS" |
1015 | CFLAGS="-D_SPF_LOGFILE_STATS $CFLAGS" |
1012 | fi |
1016 | fi |
1013 | |
1017 | |
… | |
… | |
1031 | ;; |
1035 | ;; |
1032 | *) |
1036 | *) |
1033 | AC_MSG_ERROR(bad value ${enableval} for --enable-rfc-recursion) |
1037 | AC_MSG_ERROR(bad value ${enableval} for --enable-rfc-recursion) |
1034 | ;; |
1038 | ;; |
1035 | esac], |
1039 | esac], |
1036 | [rfc_recursion=false] AC_MSG_RESULT(no)) |
1040 | [rfc_recursion=false |
|
|
1041 | AC_MSG_RESULT(no)]) |
1037 | |
1042 | |
1038 | if test "$rfc_recursion" = "true"; then |
1043 | if test "$rfc_recursion" = "true"; then |
1039 | CFLAGS="-D_RFC_RECURSION $CFLAGS" |
1044 | CFLAGS="-D_RFC_RECURSION $CFLAGS" |
1040 | AC_MSG_WARN(=== THE INTERNET IS FULL OF ILLITERATE AND LAZY PEOPLE ===) |
1045 | AC_MSG_WARN(=== THE INTERNET IS FULL OF ILLITERATE AND LAZY PEOPLE ===) |
1041 | sleep 1 |
1046 | sleep 1 |
… | |
… | |
1077 | ;; |
1082 | ;; |
1078 | *) |
1083 | *) |
1079 | AC_MSG_ERROR(bad value ${enableval} for --enable-paranoid-malloc) |
1084 | AC_MSG_ERROR(bad value ${enableval} for --enable-paranoid-malloc) |
1080 | ;; |
1085 | ;; |
1081 | esac], |
1086 | esac], |
1082 | [paranoid_malloc=true] AC_MSG_RESULT(yes)) |
1087 | [paranoid_malloc=true |
|
|
1088 | AC_MSG_RESULT(yes)]) |
1083 | |
1089 | |
1084 | if test "$paranoid_malloc" = "true"; then |
1090 | if test "$paranoid_malloc" = "true"; then |
1085 | CFLAGS="-D_WITH_PARANOID_MALLOC $CFLAGS" |
1091 | CFLAGS="-D_WITH_PARANOID_MALLOC $CFLAGS" |
1086 | fi |
1092 | fi |
1087 | |
1093 | |
… | |
… | |
1107 | ;; |
1113 | ;; |
1108 | *) |
1114 | *) |
1109 | AC_MSG_ERROR(bad value ${enableval} for --enable-res_search) |
1115 | AC_MSG_ERROR(bad value ${enableval} for --enable-res_search) |
1110 | ;; |
1116 | ;; |
1111 | esac], |
1117 | esac], |
1112 | [res_search=falsee] AC_MSG_RESULT(no)) |
1118 | [res_search=false |
|
|
1119 | AC_MSG_RESULT(no)]) |
1113 | |
1120 | |
1114 | if test "$res_search" = "true"; then |
1121 | if test "$res_search" = "true"; then |
1115 | CFLAGS="-D_WITH_RES_SEARCH $CFLAGS" |
1122 | CFLAGS="-D_WITH_RES_SEARCH $CFLAGS" |
1116 | fi |
1123 | fi |
1117 | |
1124 | |
… | |
… | |
1134 | ;; |
1141 | ;; |
1135 | *) |
1142 | *) |
1136 | AC_MSG_ERROR(bad value ${enableval} for --disable-spfqtool) |
1143 | AC_MSG_ERROR(bad value ${enableval} for --disable-spfqtool) |
1137 | ;; |
1144 | ;; |
1138 | esac], |
1145 | esac], |
1139 | [spfqtool=false] AC_MSG_RESULT(no)) |
1146 | [spfqtool=false |
|
|
1147 | AC_MSG_RESULT(no)]) |
1140 | |
1148 | |
1141 | if test "$spfqtool" = "true"; then |
1149 | if test "$spfqtool" = "true"; then |
1142 | LIBSPF_BUILD_DIRS="libspf" |
1150 | LIBSPF_BUILD_DIRS="libspf" |
1143 | fi |
1151 | fi |
1144 | #AC_SUBST(LIBSPF_BUILD_DIRS) |
1152 | #AC_SUBST(LIBSPF_BUILD_DIRS) |
… | |
… | |
1166 | ;; |
1174 | ;; |
1167 | *) |
1175 | *) |
1168 | AC_MSG_ERROR(bad value ${enableval} for --enable-pthreads) |
1176 | AC_MSG_ERROR(bad value ${enableval} for --enable-pthreads) |
1169 | ;; |
1177 | ;; |
1170 | esac], |
1178 | esac], |
1171 | [pthreads=false] AC_MSG_RESULT(no)) |
1179 | [pthreads=false |
|
|
1180 | AC_MSG_RESULT(no)]) |
1172 | |
1181 | |
1173 | if test "$pthreads" = "true"; then |
1182 | if test "$pthreads" = "true"; then |
1174 | |
1183 | |
1175 | AC_CHECK_HEADERS(pthread.h) |
1184 | AC_CHECK_HEADERS(pthread.h) |
1176 | if test "x-$ac_cv_header_pthread_h" = "x-yes"; then |
1185 | if test "x-$ac_cv_header_pthread_h" = "x-yes"; then |
… | |
… | |
1224 | ;; |
1233 | ;; |
1225 | *) |
1234 | *) |
1226 | AC_MSG_ERROR(bad value ${enableval} for --enable-spfmilter) |
1235 | AC_MSG_ERROR(bad value ${enableval} for --enable-spfmilter) |
1227 | ;; |
1236 | ;; |
1228 | esac], |
1237 | esac], |
1229 | [spfmilter=false] AC_MSG_RESULT(no)) |
1238 | [spfmilter=false |
|
|
1239 | AC_MSG_RESULT(no)]) |
1230 | |
1240 | |
1231 | if test "$pthreads" = "false"; then |
1241 | if test "$pthreads" = "false"; then |
1232 | if test "$spfmilter" = "true"; then |
1242 | if test "$spfmilter" = "true"; then |
1233 | AC_MSG_ERROR([pthreads is required, please re-configure with --enable-pthreads]) |
1243 | AC_MSG_ERROR([pthreads is required, please re-configure with --enable-pthreads]) |
1234 | fi |
1244 | fi |
… | |
… | |
1312 | ;; |
1322 | ;; |
1313 | *) |
1323 | *) |
1314 | AC_MSG_ERROR(bad value ${enableval} for --enable-full-optimizations) |
1324 | AC_MSG_ERROR(bad value ${enableval} for --enable-full-optimizations) |
1315 | ;; |
1325 | ;; |
1316 | esac], |
1326 | esac], |
1317 | [full_optimizations=false] AC_MSG_RESULT(no)) |
1327 | [full_optimizations=false |
|
|
1328 | AC_MSG_RESULT(no)]) |
1318 | |
1329 | |
1319 | if test "$full_optimizations" = "true"; then |
1330 | if test "$full_optimizations" = "true"; then |
1320 | if [[ "x$GCCVER" != "xno" ]]; then |
1331 | if [[ "x$GCCVER" != "xno" ]]; then |
1321 | AC_MSG_RESULT(yes, however this option is deprecated!) |
1332 | AC_MSG_RESULT(yes, however this option is deprecated!) |
1322 | #CFLAGS="$CFLAGS -O2 -pipe -funroll-loops -ffast-math -ftracer -fweb" |
1333 | #CFLAGS="$CFLAGS -O2 -pipe -funroll-loops -ffast-math -ftracer -fweb" |