ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libspf/configure.in
(Generate patch)

Comparing libspf/configure.in (file contents):
Revision 1.1 by root, Tue Nov 13 00:51:23 2007 UTC vs.
Revision 1.2 by root, Thu Oct 30 02:56:05 2008 UTC

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 ;;
841esac], 841esac],
842[libbind=false] AC_MSG_RESULT(no)) 842[libbind=false
843AC_MSG_RESULT(no)])
843 844
844if test "$libbind" = "true"; then 845if test "$libbind" = "true"; then
845 LIBSPF_RESOLV_LIB="-lbind" 846 LIBSPF_RESOLV_LIB="-lbind"
846fi 847fi
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 ;;
929esac], 930esac],
930[debug=false] AC_MSG_RESULT(no)) 931[debug=false
932AC_MSG_RESULT(no)])
931 933
932CFLAGS="" 934CFLAGS=""
933if test "$debug" = "true"; then 935if test "$debug" = "true"; then
934 CFLAGS="-ggdb -O -D_SPF_DEBUG" 936 CFLAGS="-ggdb -O -D_SPF_DEBUG"
935else 937else
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
984fi 987fi
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 ;;
1007esac], 1010esac],
1008[logfile_stats=false] AC_MSG_RESULT(no)) 1011[logfile_stats=false
1012AC_MSG_RESULT(no)])
1009 1013
1010if test "$logfile_stats" = "true"; then 1014if test "$logfile_stats" = "true"; then
1011 CFLAGS="-D_SPF_LOGFILE_STATS $CFLAGS" 1015 CFLAGS="-D_SPF_LOGFILE_STATS $CFLAGS"
1012fi 1016fi
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 ;;
1035esac], 1039esac],
1036[rfc_recursion=false] AC_MSG_RESULT(no)) 1040[rfc_recursion=false
1041AC_MSG_RESULT(no)])
1037 1042
1038if test "$rfc_recursion" = "true"; then 1043if 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 ;;
1081esac], 1086esac],
1082[paranoid_malloc=true] AC_MSG_RESULT(yes)) 1087[paranoid_malloc=true
1088AC_MSG_RESULT(yes)])
1083 1089
1084if test "$paranoid_malloc" = "true"; then 1090if test "$paranoid_malloc" = "true"; then
1085 CFLAGS="-D_WITH_PARANOID_MALLOC $CFLAGS" 1091 CFLAGS="-D_WITH_PARANOID_MALLOC $CFLAGS"
1086fi 1092fi
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 ;;
1111esac], 1117esac],
1112[res_search=falsee] AC_MSG_RESULT(no)) 1118[res_search=false
1119AC_MSG_RESULT(no)])
1113 1120
1114if test "$res_search" = "true"; then 1121if test "$res_search" = "true"; then
1115 CFLAGS="-D_WITH_RES_SEARCH $CFLAGS" 1122 CFLAGS="-D_WITH_RES_SEARCH $CFLAGS"
1116fi 1123fi
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 ;;
1138esac], 1145esac],
1139[spfqtool=false] AC_MSG_RESULT(no)) 1146[spfqtool=false
1147AC_MSG_RESULT(no)])
1140 1148
1141if test "$spfqtool" = "true"; then 1149if test "$spfqtool" = "true"; then
1142 LIBSPF_BUILD_DIRS="libspf" 1150 LIBSPF_BUILD_DIRS="libspf"
1143fi 1151fi
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 ;;
1170esac], 1178esac],
1171[pthreads=false] AC_MSG_RESULT(no)) 1179[pthreads=false
1180AC_MSG_RESULT(no)])
1172 1181
1173if test "$pthreads" = "true"; then 1182if 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 ;;
1228esac], 1237esac],
1229[spfmilter=false] AC_MSG_RESULT(no)) 1238[spfmilter=false
1239AC_MSG_RESULT(no)])
1230 1240
1231if test "$pthreads" = "false"; then 1241if 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"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines