X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=configure.ac;h=d3156cc75dc2e59d6f22e9666d1c201ffbb32ff4;hp=92d9bb9db33cc0549a2a723881e293aea38e3492;hb=54a69fef0365495cf79f57b02040cc79b5924b2d;hpb=8de216cc50240da68d0058d01d05671f63f70be4 diff --git a/configure.ac b/configure.ac index 92d9bb9..d3156cc 100644 --- a/configure.ac +++ b/configure.ac @@ -1,19 +1,38 @@ +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 @@ -136,7 +155,7 @@ dnl CFLAGS="$CFLAGS -I/usr/local/include" 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" @@ -232,7 +251,7 @@ AC_ARG_WITH(ctn, 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 @@ -251,7 +270,7 @@ 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]) @@ -265,7 +284,7 @@ AC_MSG_CHECKING([for CPU specification]) 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]) @@ -356,9 +375,9 @@ if test "$with_x" != "no" && test "$wxwin" = "true"; then 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