1
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
2
# filename: configure.in #
4
# UTIL Make : Medical Image Conversion Utility #
6
# purpose : configure script template (autoconf) #
8
# project : (X)MedCon by Erik Nolf #
10
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
11
# $Id: configure.in,v 1.136 2007/11/19 21:07:14 enlf Exp $
13
# Copyright (C) 1997-2007 by Erik Nolf
15
# This program is free software; you can redistribute it and/or modify
16
# it under the terms of the GNU General Public License as published by
17
# the Free Software Foundation; either version 2, or (at your option)
20
# This program is distributed in the hope that it will be useful,
21
# but WITHOUT ANY WARRANTY; without even the implied warranty of
22
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23
# GNU General Public License for more details.
25
# You should have received a copy of the GNU General Public License
26
# along with this program; if not, write to the Free Software
27
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
30
AC_INIT([XMedCon], [0.10.1], [enlf-at-users.sf.net], [xmedcon])
36
XMEDCON_PRGR="(X)MedCon"
37
XMEDCON_DATE="19-Nov-2007"
38
XMEDCON_VERSION="${XMEDCON_MAJOR}.${XMEDCON_MINOR}.${XMEDCON_MICRO}"
39
XMEDCON_LIBVERS="${XMEDCON_PRGR} ${XMEDCON_VERSION} by Erik Nolf"
41
dnl Do not use env variable, not set yet for this.
42
AC_PREFIX_DEFAULT( /usr/local/xmedcon )
44
dnl Do some specific configurations.
46
echo "BEGIN SPECIFIC CONFIG:"
48
dnl Format Acr/Nema 2.0.
51
--enable-acr enable Acr/Nema 2.0 format (default).
52
--disable-acr disable Acr/Nema 2.0 format. ],
56
AC_CACHE_VAL(mdc_cv_include_acr,mdc_cv_include_acr=no)
60
AC_CACHE_VAL(mdc_cv_include_acr,mdc_cv_include_acr=yes)
64
AC_CACHE_VAL(mdc_cv_include_acr,mdc_cv_include_acr=yes)
67
AC_MSG_RESULT([Format Acr/Nema 2.0 enabled? ${mdc_cv_include_acr}])
69
dnl Format Gif87a/89a.
72
--enable-gif enable Gif87a/89a format (default).
73
--disable-gif disable Gif87a/89a format. ],
77
AC_CACHE_VAL(mdc_cv_include_gif,mdc_cv_include_gif=no)
81
AC_CACHE_VAL(mdc_cv_include_acr,mdc_cv_include_gif=yes)
85
AC_CACHE_VAL(mdc_cv_include_gif,mdc_cv_include_gif=yes)
88
AC_MSG_RESULT([Format Gif87a/89a enabled? ${mdc_cv_include_gif}])
93
--enable-inw enable INW (RUG) format (default).
94
--disable-inw disable INW (RUG) format. ],
98
AC_CACHE_VAL(mdc_cv_include_inw,mdc_cv_include_inw=no)
102
AC_CACHE_VAL(mdc_cv_include_inw,mdc_cv_include_inw=yes)
106
AC_CACHE_VAL(mdc_cv_include_inw,mdc_cv_include_inw=yes)
109
AC_MSG_RESULT([Format INW (RUG) enabled? ${mdc_cv_include_inw}])
111
dnl Format Analyze (SPM).
114
--enable-anlz enable Analyze (SPM) format (default).
115
--disable-anlz disable Analyze (SPM) format. ],
119
AC_CACHE_VAL(mdc_cv_include_anlz,mdc_cv_include_anlz=no)
123
AC_CACHE_VAL(mdc_cv_include_anlz,mdc_cv_include_anlz=yes)
127
AC_CACHE_VAL(mdc_cv_include_anlz,mdc_cv_include_anlz=yes)
130
AC_MSG_RESULT([Format Analyze (SPM) enabled? ${mdc_cv_include_anlz}])
132
dnl Format Concorde microPET
135
--enable-conc enable Concorde microPET format (default).
136
--disable-conc disable Concorde microPET format. ],
140
AC_CACHE_VAL(mdc_cv_include_conc,mdc_cv_include_conc=no)
144
AC_CACHE_VAL(mdc_cv_include_conc,mdc_cv_include_conc=yes)
148
AC_CACHE_VAL(mdc_cv_include_conc,mdc_cv_include_conc=yes)
151
AC_MSG_RESULT([Format Concorde uPET enabled? ${mdc_cv_include_conc}])
153
dnl Format CTI ECAT 6/7.
156
--enable-ecat enable CTI ECAT 6/7 format (default).
157
--disable-ecat disable CTI ECAT 6/7 format. ],
161
AC_CACHE_VAL(mdc_cv_include_ecat,mdc_cv_include_ecat=no)
165
AC_CACHE_VAL(mdc_cv_include_ecat,mdc_cv_include_ecat=yes)
169
AC_CACHE_VAL(mdc_cv_include_ecat,mdc_cv_include_ecat=yes)
172
AC_MSG_RESULT([Format CTI ECAT 6/7 enabled? ${mdc_cv_include_ecat}])
174
dnl Format InterFile 3.3.
177
--enable-intf enable InterFile 3.3 format (default).
178
--disable-intf disable InterFile 3.3 format. ],
182
AC_CACHE_VAL(mdc_cv_include_intf,mdc_cv_include_intf=no)
186
AC_CACHE_VAL(mdc_cv_include_intf,mdc_cv_include_intf=yes)
190
AC_CACHE_VAL(mdc_cv_include_intf,mdc_cv_include_intf=yes)
193
AC_MSG_RESULT([Format InterFile 3.3 enabled? ${mdc_cv_include_intf}])
195
dnl Format DICOM 3.0.
198
--enable-dicom enable DICOM 3.0 format (default).
199
--disable-dicom disable DICOM 3.0 format. ],
203
AC_CACHE_VAL(mdc_cv_include_dicm,mdc_cv_include_dicm=no)
207
AC_CACHE_VAL(mdc_cv_include_dicm,mdc_cv_include_dicm=yes)
211
AC_CACHE_VAL(mdc_cv_include_dicm,mdc_cv_include_dicm=yes)
214
AC_MSG_RESULT([Format DICOM 3.0 enabled? ${mdc_cv_include_dicm}])
215
dnl DICOM needs Acr/Nema.
216
if test x$mdc_cv_include_dicm = xyes; then
217
if test x$mdc_cv_include_acr != xyes; then
219
echo "*** Oeps. DICOM needs Acr/Nema to be enabled."
220
echo "*** Therefore rerun configure to do so ..."
227
dnl Format PNG, test later for required components
230
--enable-png enable PNG format (default).
231
--disable-png disable PNG format. ],
235
AC_CACHE_VAL(mdc_cv_include_png,mdc_cv_include_png=no)
239
AC_CACHE_VAL(mdc_cv_include_png,mdc_cv_include_png=yes)
243
AC_CACHE_VAL(mdc_cv_include_png,mdc_cv_include_png=yes)
246
AC_MSG_RESULT([Format PNG enabled? ${mdc_cv_include_png}])
248
dnl Format NIFTI, test later for required components
251
--enable-nifti enable NIFTI format (default).
252
--disable-nifti disable NIFTI format. ],
256
AC_CACHE_VAL(mdc_cv_include_nifti,mdc_cv_include_nifti=no)
260
AC_CACHE_VAL(mdc_cv_include_nifti,mdc_cv_include_nifti=yes)
264
AC_CACHE_VAL(mdc_cv_include_nifti,mdc_cv_include_nifti=yes)
267
AC_MSG_RESULT([Format NIFTI enabled? ${mdc_cv_include_nifti}])
269
dnl DICOM LossLess JPEG ...
270
if test x$mdc_cv_include_dicm = xyes; then
273
--enable-ljpg enable DICOM lossless jpeg (default).
274
--disable-ljpg disable DICOM lossless jpeg. ],
278
AC_CACHE_VAL(mdc_cv_ljpg,mdc_cv_ljpg=no)
281
AC_CACHE_VAL(mdc_cv_ljpg,mdc_cv_ljpg=yes)
284
AC_CACHE_VAL(mdc_cv_ljpg,mdc_cv_ljpg=yes)
287
AC_CACHE_VAL(mdc_cv_ljpg,mdc_cv_ljpg=no)
289
AC_MSG_RESULT([Enable DICOM 3.0 lossless jpeg ? ${mdc_cv_ljpg}])
291
dnl TPC library for ecat7 writing, test later for required components
294
--enable-tpc enable TPC ecat7 writing support.
295
--disable-tpc disable TPC ecat7 writing support (default). ],
299
AC_CACHE_VAL(mdc_cv_include_tpc,mdc_cv_include_tpc=yes)
303
AC_CACHE_VAL(mdc_cv_include_tpc,mdc_cv_include_tpc=no)
307
AC_CACHE_VAL(mdc_cv_include_tpc,mdc_cv_include_tpc=no)
310
AC_MSG_RESULT([Enable TPC ecat7 write support ? ${mdc_cv_include_tpc}])
312
dnl glib library (availability tests later).
315
--enable-glib enable glib convience functions (default).
316
--disable-glib disable glib convience functions. ],
320
AC_CACHE_VAL(mdc_cv_glibsupport,mdc_cv_glibsupport=no)
323
AC_CACHE_VAL(mdc_cv_glibsupport,mdc_cv_glibsupport=yes)
326
AC_CACHE_VAL(mdc_cv_glibsupport,mdc_cv_glibsupport=yes)
328
AC_MSG_RESULT([Enable glib convenience func's ? ${mdc_cv_glibsupport}])
330
dnl GUI (Gtk+ toolkit availability tests later).
333
--enable-gui enable graphical user interface (default).
334
--disable-gui disable graphical user interface. ],
338
AC_CACHE_VAL(mdc_cv_gui,mdc_cv_gui=no)
341
AC_CACHE_VAL(mdc_cv_gui,mdc_cv_gui=yes)
344
AC_CACHE_VAL(mdc_cv_gui,mdc_cv_gui=yes)
346
AC_MSG_RESULT([Enable graphical user interface? ${mdc_cv_gui}])
348
dnl use version 1 of glib/gtk
351
--enable-gtk1 compile with older glib/gtk version 1 instead of 2. ],
355
AC_CACHE_VAL(mdc_cv_gtk_one,mdc_cv_gtk_one=yes)
358
AC_CACHE_VAL(mdc_cv_gtk_one,mdc_cv_gtk_one=no)
361
AC_CACHE_VAL(mdc_cv_gtk_one, mdc_cv_gtk_one=no)
363
AC_MSG_RESULT([Enable older glib/gtk version 1? ${mdc_cv_gtk_one}])
365
dnl Checks for long long type.
366
AC_ARG_ENABLE(llcheck,
368
--enable-llcheck enable long long type check.
369
--disable-llcheck disable long long type check (default). ],
373
AC_CACHE_VAL(mdc_cv_lnglngcheck,mdc_cv_lnglngcheck=yes)
376
AC_CACHE_VAL(mdc_cv_lnglngcheck,mdc_cv_lnglngcheck=no)
379
AC_CACHE_VAL(mdc_cv_lnglngcheck,mdc_cv_lnglngcheck=no)
381
AC_MSG_RESULT([Enable check for long long type? ${mdc_cv_lnglngcheck}])
384
echo "BEGIN AUTO CONFIG:"
385
AM_INIT_AUTOMAKE(xmedcon, ${XMEDCON_VERSION})
389
dnl Checks for programs.
395
AC_MSG_CHECKING([for native Win32])
404
AC_MSG_RESULT([$native_win32])
405
AM_CONDITIONAL(OS_WIN32, test "$native_win32" = yes)
407
AC_MSG_CHECKING([for Win32 platform in general])
409
*-*-mingw*|*-*-cygwin*)
416
AC_MSG_RESULT($platform_win32)
417
AM_CONDITIONAL(PLATFORM_WIN32, test "$platform_win32" = yes)
419
# Ensure MSVC-compatible struct packing convention is used when
420
# compiling for Win32 with gcc. GTK+ uses this convention, so we must, too.
421
# What flag to depends on gcc version: gcc3 uses "-mms-bitfields", while
422
# gcc2 uses "-fnative-struct".
423
if test x"$native_win32" = xyes; then
424
if test x"$GCC" = xyes; then
426
AC_MSG_CHECKING([how to get MSVC-compatible struct packing])
427
if test -z "$ac_cv_prog_CC"; then
430
our_gcc="$ac_cv_prog_CC"
432
case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in
434
if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then
435
msnative_struct='-fnative-struct'
439
if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then
440
msnative_struct='-mms-bitfields'
444
if test x"$msnative_struct" = x ; then
445
AC_MSG_RESULT([no way])
446
AC_MSG_WARN([produced libraries will be incompatible with prebuilt GTK+ DLLs])
448
CFLAGS="$CFLAGS $msnative_struct"
449
AC_MSG_RESULT([${msnative_struct}])
455
dnl Checks for libraries.
456
dnl Replace `main' with a function in -libs:
457
AC_CHECK_LIB(ibs, main)
460
if test $ENABLE_PNG -gt 0 -o $ENABLE_NIFTI -gt 0; then
461
AC_CHECK_LIB(z, uncompress, ZLIB_LDFLAGS="-lz", ZLIB_LDFLAGS="")
463
if test x"$ZLIB_LDFLAGS" != "x"; then
464
ZLIB_CFLAGS="-DHAVE_ZLIB"
471
prev_LDFLAGS="$LDFLAGS"
472
prev_CPPFLAGS="$CPPFLAGS"
473
AC_ARG_WITH(png-prefix,
474
[ --with-png-prefix=PFX Prefix where PNG library is installed (optional)]
475
, png_prefix="$withval", png_prefix="")
476
if test x"$png_prefix" != "x"; then
477
PNG_LDFLAGS="-L$png_prefix/lib -lpng"
478
PNG_CFLAGS="-I$png_prefix/include"
480
LDFLAGS="$LDFLAGS -lm $PNG_LDFLAGS $ZLIB_FLAGS"
481
CPPFLAGS="$CPPFLAGS $PNG_CFLAGS"
487
if test x"$ZLIB_LDFLAGS" = "x"; then
491
if test $ENABLE_PNG -gt 0; then
492
AC_MSG_CHECKING(for PNG support)
496
AC_CHECK_HEADER(png.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`,)
497
AC_CHECK_LIB(png,png_read_png,passed=`expr $passed + 1`,failed=`expr $failed + 1`, $ZLIB_LDFLAGS)
498
AC_MSG_CHECKING(if PNG package is complete)
499
if test $passed -gt 0
501
if test $failed -gt 0
513
if test $ENABLE_PNG -lt 1; then
515
echo "*** Oeps. Components required for PNG support are missing."
516
echo "*** You will need to rerun the configure script with argument"
517
echo "*** --disable-png or give a proper value to --with-png-prefix."
523
LDFLAGS="$prev_LDFLAGS"
524
CPPFLAGS="$prev_CPPFLAGS"
526
dnl Prepare build flags for libniftiio
527
prev_LDFLAGS="$LDFLAGS"
528
prev_CPPFLAGS="$CPPFLAGS"
529
AC_ARG_WITH(nifti-prefix,
530
[ --with-nifti-prefix=PFX Prefix where NIFTI library is installed (optional)]
531
, nifti_prefix="$withval", nifti_prefix="")
532
if test x"$nifti_prefix" != "x"; then
533
ZNZ_LDFLAGS="-L$nifti_prefix/lib -lznz"
534
NIFTI_LDFLAGS="-L$nifti_prefix/lib -lniftiio $ZNZ_LDFLAGS"
536
AC_CHECK_FILE($nifti_prefix/include/nifti/nifti1_io.h,NIFTI_CFLAGS="-I$nifti_prefix/include/nifti",NIFTI_CFLAGS="-I$nifti_prefix/include")
537
LDFLAGS="$LDFLAGS -lm $NIFTI_LDFLAGS $ZLIB_LDFLAGS"
538
CPPFLAGS="$CPPFLAGS $NIFTI_CFLAGS $ZLIB_LDFLAGS"
540
ZNZ_LDFLAGS="-L../libs/nifti -lznz"
541
NIFTI_LDFLAGS="-L../libs/nifti -lniftiio $ZNZ_LDFLAGS"
542
NIFTI_CFLAGS="-I../libs/nifti"
545
dnl Check for installed libniftiio
546
if test $ENABLE_NIFTI -gt 0 -a x"$nifti_prefix" != "x"; then
547
AC_MSG_CHECKING(for NIFTI support)
551
AC_CHECK_HEADER(nifti1_io.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`,)
552
AC_CHECK_LIB(niftiio,nifti_read_header,passed=`expr $passed + 1`,failed=`expr $failed + 1`, $ZNZ_LDFLAGS)
553
AC_MSG_CHECKING(if NIFTI package is complete)
554
if test $passed -gt 0
556
if test $failed -gt 0
568
if test $ENABLE_NIFTI -lt 1; then
570
echo "*** Oeps. Components required for NIFTI support are missing."
571
echo "*** You will need to rerun the configure script with argument"
572
echo "*** --disable-nifti or give a proper value to --with-nifti-prefix."
578
LDFLAGS="$prev_LDFLAGS"
579
CPPFLAGS="$prev_CPPFLAGS"
581
dnl Check for libtpcimgio and tpcmisc
582
prev_LDFLAGS="$LDFLAGS"
583
prev_CPPFLAGS="$CPPFLAGS"
584
AC_ARG_WITH(tpc-prefix,
585
[ --with-tpc-prefix=PFX Prefix where TPC library is installed (optional)]
586
, tpc_prefix="$withval", tpc_prefix="")
587
if test x"$tpc_prefix" != "x"; then
588
TPC_LDFLAGS="-L$tpc_prefix/lib -ltpcimgio -L$tpc_prefix/lib -ltpcmisc"
589
TPC_CFLAGS="-I$tpc_prefix/include"
590
LDFLAGS="$LDFLAGS $TPC_LDFLAGS"
591
CPPFLAGS="$CPPFLAGS $TPC_CFLAGS"
593
TPC_LDFLAGS="-ltpcimgio -ltpcmisc"
596
if test $ENABLE_TPC -gt 0; then
597
AC_MSG_CHECKING(for TPC ecat7 writing support)
601
AC_CHECK_HEADER(ecat7.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`,)
602
AC_CHECK_LIB(tpcimgio,ecat7Create,passed=`expr $passed + 1`,failed=`expr $failed + 1`, $TPC_LDFLAGS)
603
AC_MSG_CHECKING(if TPC library is complete)
604
if test $passed -gt 0
606
if test $failed -gt 0
618
if test $ENABLE_TPC -lt 1; then
620
echo "*** Oeps. Components required for TPC ecat7 writing are missing."
621
echo "*** You will need to rerun the configure script with argument"
622
echo "*** --disable-tpc or give a proper value to --with-tpc-prefix."
628
LDFLAGS="$prev_LDFLAGS"
629
CPPFLAGS="$prev_CPPFLAGS"
631
dnl Checks for header files.
633
AC_CHECK_HEADERS(strings.h unistd.h)
635
dnl Checks for typedefs, structures, and compiler characteristics.
638
dnl Checks for library functions.
640
AC_CHECK_FUNCS(strptime)
641
AC_CHECK_FUNCS(localtime_r)
642
AC_CHECK_FUNCS(isnan)
643
AC_CHECK_FUNCS(isinf)
645
dnl the old glib/gtk version 1 stuff
646
AC_MSG_CHECKING([whether to use older glib/gtk version 1])
647
AC_MSG_RESULT([$mdc_cv_gtk_one])
648
if (test $mdc_cv_gtk_one = yes); then
650
dnl Checks for glib1 supported medcon
651
if test $mdc_cv_glibsupport = yes; then
654
AM_PATH_GLIB(1.2.0,[ac_cv_prog_glib=yes],[ac_cv_prog_glib=no])
655
XMEDCON_GLIB_LIBS=$GLIB_LIBS
656
XMEDCON_GLIB_CFLAGS=$GLIB_CFLAGS
657
AC_SUBST(XMEDCON_GLIB_LIBS)
658
AC_SUBST(XMEDCON_GLIB_CFLAGS)
660
AC_DEFINE(GTKONE, 1, Define to compile with glib/gtk 1 instead of 2)
662
MDC_CHECK_GLIBSUPPORT($mdc_cv_glibsupport)
664
dnl Checks for gtk1 GUI
665
if test $mdc_cv_gui = yes; then
670
AM_PATH_GTK(1.2.0,[ac_cv_prog_gtk=yes],[ac_cv_prog_gtk=no])
671
AM_PATH_GDK_PIXBUF(0.8.0,[ac_cv_prog_gdk_pixbuf=yes],[ac_cv_prog_gdk_pixbuf=no])
672
XMEDCON_GTK_LIBS="$GTK_LIBS $GDK_PIXBUF_LIBS"
673
XMEDCON_GTK_CFLAGS="$GTK_CFLAGS $GDK_PIXBUF_CFLAGS"
674
AC_SUBST(XMEDCON_GTK_LIBS)
675
AC_SUBST(XMEDCON_GTK_CFLAGS)
678
if test x$ac_cv_prog_gtk = xno -o x$ac_cv_prog_gdk_pixbuf = xno ; then
686
dnl Checks for glib2 supported medcon
687
if test $mdc_cv_glibsupport = yes; then
688
PKG_CHECK_MODULES(XMEDCON_GLIB,[
691
AC_SUBST(XMEDCON_GLIB_LIBS)
692
AC_SUBST(XMEDCON_GLIB_CFLAGS)
698
dnl Checks for gtk2 GUI.
699
if test $mdc_cv_gui = yes; then
700
PKG_CHECK_MODULES(XMEDCON_GTK,[
701
gdk-pixbuf-2.0 >= 2.0.0
704
AC_SUBST(XMEDCON_GTK_LIBS)
705
AC_SUBST(XMEDCON_GTK_CFLAGS)
712
MDC_CHECK_GUI($GTKSUPPORTED)
714
AM_CONDITIONAL(DO_ACR, test x$mdc_cv_include_acr = xyes)
715
AM_CONDITIONAL(DO_GIF, test x$mdc_cv_include_gif = xyes)
716
AM_CONDITIONAL(DO_INW, test x$mdc_cv_include_inw = xyes)
717
AM_CONDITIONAL(DO_ANLZ, test x$mdc_cv_include_anlz = xyes)
718
AM_CONDITIONAL(DO_CONC, test x$mdc_cv_include_conc = xyes)
719
AM_CONDITIONAL(DO_ECAT, test x$mdc_cv_include_ecat = xyes)
720
AM_CONDITIONAL(DO_INTF, test x$mdc_cv_include_intf = xyes)
721
AM_CONDITIONAL(DO_DICM, test x$mdc_cv_include_dicm = xyes)
722
AM_CONDITIONAL(DO_PNG, test x$mdc_cv_include_png = xyes)
724
AM_CONDITIONAL(DO_NIFTI,test x$mdc_cv_include_nifti = xyes)
725
AM_CONDITIONAL(DO_NIFTI_INTERNAL, test x"$nifti_prefix" = "x")
727
AM_CONDITIONAL(DO_TPC, test x$mdc_cv_include_tpc = xyes)
728
AM_CONDITIONAL(DO_LJPG, test x$mdc_cv_ljpg = xyes)
730
AM_CONDITIONAL(DO_GLIBSUPPORT, test x$mdc_cv_glibsupport = xyes)
732
AM_CONDITIONAL(DO_GUI, test x$mdc_cv_gui = xyes)
734
dnl Make substitutions.
735
AC_SUBST(XMEDCON_MAJOR)
736
AC_SUBST(XMEDCON_MINOR)
737
AC_SUBST(XMEDCON_MICRO)
738
AC_SUBST(XMEDCON_PRGR)
739
AC_SUBST(XMEDCON_DATE)
740
AC_SUBST(XMEDCON_VERSION)
741
AC_SUBST(XMEDCON_LIBVERS)
745
AC_SUBST(ENABLE_ANLZ)
746
AC_SUBST(ENABLE_CONC)
747
AC_SUBST(ENABLE_ECAT)
748
AC_SUBST(ENABLE_INTF)
749
AC_SUBST(ENABLE_DICM)
751
AC_SUBST(ENABLE_NIFTI)
754
AC_SUBST(ZLIB_LDFLAGS)
755
AC_SUBST(ZLIB_CFLAGS)
756
AC_SUBST(PNG_LDFLAGS)
758
AC_SUBST(NIFTI_LDFLAGS)
759
AC_SUBST(NIFTI_CFLAGS)
760
AC_SUBST(TPC_LDFLAGS)
763
AC_SUBST(mdc_cv_include_gif)
764
AC_SUBST(mdc_cv_include_acr)
765
AC_SUBST(mdc_cv_include_inw)
766
AC_SUBST(mdc_cv_include_conc)
767
AC_SUBST(mdc_cv_include_ecat)
768
AC_SUBST(mdc_cv_include_intf)
769
AC_SUBST(mdc_cv_include_anlz)
770
AC_SUBST(mdc_cv_include_dicm)
771
AC_SUBST(mdc_cv_include_png)
772
AC_SUBST(mdc_cv_include_nifti)
773
AC_SUBST(mdc_cv_include_tpc)
774
AC_SUBST(mdc_cv_ljpg)
775
AC_SUBST(mdc_cv_glibsupport)
778
AC_SUBST(GLIBSUPPORTED)
781
AC_SUBST(GTKSUPPORTED)
784
dnl Checks for machine dependencies.
786
if test x$ac_cv_c_bigendian = xyes; then
791
AC_CHECK_SIZEOF(short,2)
792
AC_CHECK_SIZEOF(int,4)
793
AC_CHECK_SIZEOF(long,4)
794
if test x$mdc_cv_lnglngcheck = xyes; then
795
AC_CHECK_SIZEOF(long long,8)
798
dnl Checks for gzip or compress.
799
AC_CHECK_PROGS(DECOMPRESS, gunzip uncompress, none)
801
AM_CONFIG_HEADER(source/m-depend.h)
803
dnl Pass types for m-config.h
804
AC_SUBST(mdc_cv_bigendian)
805
AC_SUBST(ac_cv_sizeof_short)
806
AC_SUBST(ac_cv_sizeof_int)
807
AC_SUBST(ac_cv_sizeof_long)
808
if test x$mdc_cv_lnglngcheck = xyes; then
809
mdc_cv_enable_lnglng=1
810
AC_SUBST(ac_cv_sizeof_long_long)
812
mdc_cv_enable_lnglng=0
814
AC_SUBST(mdc_cv_enable_lnglng)
828
etc/xmedcon-$VERSION-1.iss:etc/xmedcon.iss.in
829
etc/xmedcon-$VERSION-1.info:etc/xmedcon.info.in
830
etc/xmedcon-$VERSION.ebuild:etc/xmedcon.ebuild.in