r3881: *** empty log message ***
[ctsim.git] / configure
index c0338ea2ffdc573d97fdf05e713c741c475b19ac..0b3012d34efb5d0228d44e050881fcc5b568db06 100755 (executable)
--- a/configure
+++ b/configure
@@ -873,6 +873,7 @@ Optional Packages:
   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   --with-lam=PATH       Set path of LAM MPI
   --with-ctn=PATH       Set path of CTN DICOM library
+  --with-cpu=CPU       Set name of CPU for gcc -mcpu=
   --with-cgibin-dir=PATH  Set path of CGI binaries directory
   --with-cgibin-url=PATH  Set URL path of CGI binaries
   --with-webdata-dir=PATH Set path of webdata
@@ -7898,6 +7899,22 @@ echo "${ECHO_T}no" >&6
   fi
 fi
 
+
+# Check whether --with-cpu or --without-cpu was given.
+if test "${with_cpu+set}" = set; then
+  withval="$with_cpu"
+
+fi;
+
+if test "$withval" == "pentium4" -o "$withval" == "athlon-mp" ; then
+  echo "$as_me:$LINENO: checking Setting CPU to $withval" >&5
+echo $ECHO_N "checking Setting CPU to $withval... $ECHO_C" >&6
+  CFLAGS="$CFLAGS -mcpu=$withval"
+else
+  echo "$as_me:$LINENO: checking Unknown CPU $withval" >&5
+echo $ECHO_N "checking Unknown CPU $withval... $ECHO_C" >&6
+fi
+
 echo "$as_me:$LINENO: checking for web access" >&5
 echo $ECHO_N "checking for web access... $ECHO_C" >&6