+dnl Set CPU
+AC_ARG_WITH(cpu,
+[ --with-cpu[=CPU] Set name of CPU for gcc -mcpu=])
+
+if test "$withval" == "pentium4" -o "$withval" == "athlon-mp" ; then
+ AC_MSG_CHECKING([Setting CPU to $withval])
+ CFLAGS="$CFLAGS -mcpu=$withval"
+else
+ AC_MSG_CHECKING([Unknown CPU $withval])
+fi
+