+dnl *****************************************************************************
+dnl FILE IDENTIFICATION
+dnl Name: ctsim.cpp
+dnl Purpose: Top-level routines of CTSim program
+dnl Programmer: Kevin Rosenberg
+dnl Date Started: July 2000
+dnl
+dnl This is part of the CTSim program
+dnl Copyright (c) 1983-2009 Kevin Rosenberg
+dnl
+dnl This program is free software; you can redistribute it and/or modify
+dnl it under the terms of the GNU General Public License (version 2) as
+dnl published by the Free Software Foundation.
+dnl
+dnl This program is distributed in the hope that it will be useful,
+dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
+dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+dnl GNU General Public License for more details.
+dnl
+dnl You should have received a copy of the GNU General Public License
+dnl along with this program; if not, write to the Free Software
+dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+dnl****************************************************************************/
+
dnl Process this file with autoconf to produce a configure script.
dnl Must reset CDPATH so that bash's cd does not print to stdout
dnl CDPATH=
-AC_INIT
+AC_INIT([CTSim], [5.2.0], [ctsim-users@b9.com], [ctsim], [http://www.ctsim.org/])
AC_CONFIG_SRCDIR([src/ctsim.cpp])
AM_MAINTAINER_MODE
-AM_INIT_AUTOMAKE(ctsim,5.0.0)
+AM_INIT_AUTOMAKE
AM_CONFIG_HEADER(config.h)
-CFLAGS=""
-CXXFLAGS=""
-
-CFLAGS="${CFLAGS}"
-
dnl Checks for programs.
AC_PROG_AWK
AC_PROG_INSTALL
dnl LDFLAGS="$LDFLAGS -L/usr/local/lib"
if test "$debug" = "true" ; then
- CFLAGS="$CFLAGS -g -DDEBUG"
+ CFLAGS="$CFLAGS -g -O0 -DDEBUG"
AC_DEFINE(DEBUG,1,[turn on debugging])
else
CFLAGS="$CFLAGS -O2 -DNDEBUG -fomit-frame-pointer"
fi ]
)
-if test "$withval" == "no" -o "$withval" == "NONE" ; then
+if test "$withval" = "no" -o "$withval" = "NONE" ; then
AC_MSG_CHECKING([for CTN DICOM installation])
AC_MSG_RESULT([disabled])
else
break
fi
done
- if test "$ctnlib" == "true" -a "$ctninclude" == "true" ; then
+ if test "$ctnlib" = "true" -a "$ctninclude" = "true" ; then
ctn="true"
AC_DEFINE(HAVE_CTN_DICOM,1,[ctn dicom library])
AC_MSG_RESULT([yes])
AC_ARG_WITH(mcpu,
[ --with-mcpu[=CPU] Set name of CPU for gcc -mcpu])
-if test "$withval" == "no" -o "$withval" == "yes" -o "$withval" == ""; then
+if test "$withval" = "no" -o "$withval" = "yes" -o "$withval" = ""; then
AC_MSG_RESULT([no])
else
AC_MSG_RESULT([$withval])
AC_ARG_WITH(html-dir, [ --with-html-dir=PATH Set directory of html files],
[ html_%dir=$withval ; AC_SUBST(htmldir) ] )
-if test "x$cgibindir" = "x" -o "x$cgibinurl" = "x" ; then
+if test "x$cgibindir" != "x" -o "x$cgibinurl" != "x" ; then
cgiprograms="ctsim.cgi ctsim.conf"
AC_SUBST(cgiprograms)
fi
wxdebug="--debug"
fi
if test "x$wx_gtk" != "x" ; then
- ctlib_graphics="$ctlib_graphics `$wxconfig $wxdebug --version=2.8 --libs` -lwx_gtk2u_gl-2.8 ${GTK_LIBS} ${GLIB_LIBS}"
+ ctlib_graphics="$ctlib_graphics `$wxconfig $wxdebug --version=2.8 --libs std,gl` ${GTK_LIBS} ${GLIB_LIBS}"
elif test "x$wx_mac" != "x" ; then
- ctlib_graphics="$ctlib_graphics `$wxconfig $wxdebug --version=2.8 --libs` -lwx_macu_gl-2.8"
+ ctlib_graphics="$ctlib_graphics `$wxconfig $wxdebug --version=2.8 --libs std,gl`"
fi
fi
fi