~ubuntu-branches/ubuntu/karmic/grace/karmic

« back to all changes in this revision

Viewing changes to ac-tools/configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-07 19:11:41 UTC
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20050107191141-p4rxq11q31ptqgib
ImportĀ upstreamĀ versionĀ 5.1.18

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
AC_SUBST(Z_LIB)
31
31
AC_SUBST(JPEG_LIB)
32
32
AC_SUBST(PNG_LIB)
33
 
AC_SUBST(TIFF_LIB)
34
33
AC_SUBST(PDF_LIB)
35
34
AC_SUBST(GRACE_EDITOR)
36
35
AC_SUBST(XBAE_INC)
342
341
  *) CFLAGS="$OPTIMIZE $CFLAGS";;
343
342
esac
344
343
 
345
 
AC_CHECK_PROG(fc, $FC, $FC, no)
346
 
if test "${ac_cv_prog_fc}" = "no"
 
344
case $FC in
 
345
  /*|../*|./*)
 
346
     if test ! -x $FC; then
 
347
       FC=no
 
348
     fi
 
349
     ;;
 
350
  *) AC_CHECK_PROG(fc, $FC, $FC, no)
 
351
     FC=$ac_cv_prog_fc
 
352
     ;;
 
353
esac
 
354
 
 
355
if test "${FC}" = "no"
347
356
then
348
357
  AC_MSG_RESULT(--> Fortran tests won't be compiled)
349
358
  FC=:
428
437
 
429
438
dnl **** Checks for library functions.
430
439
AC_TYPE_SIGNAL
431
 
AC_FUNC_VFORK
432
440
AC_FUNC_ALLOCA
433
441
AC_CHECK_FUNCS(getcwd gethostname)
434
442
AC_CHECK_FUNCS(strstr)
441
449
AC_CHECK_FUNCS(on_exit)
442
450
AC_CHECK_FUNCS(strerror)
443
451
if test "$ac_cv_func_strerror" = no; then
444
 
  AC_CACHE_CHECK("for sys_errlist declaration in stdio.h", ac_cv_sys_errlist_decl,
 
452
  AC_CACHE_CHECK([for sys_errlist declaration in stdio.h], ac_cv_sys_errlist_decl,
445
453
      AC_EGREP_HEADER(sys_errlist, stdio.h, ac_cv_sys_errlist_decl="yes",
446
454
      ac_cv_sys_errlist_decl="no"))
447
455
  if test "$ac_cv_sys_errlist_decl" = yes; then
473
481
dnl **** The machten4 (unix for mac) system does have signgam in libm
474
482
dnl **** but it is not declared in <math.h>
475
483
if test "$ac_cv_func_lgamma" = yes; then
476
 
  AC_CACHE_CHECK("for signgam declaration in math.h", ac_cv_signgam_decl,
 
484
  AC_CACHE_CHECK([for signgam declaration in math.h], ac_cv_signgam_decl,
477
485
      AC_EGREP_HEADER(signgam, math.h, ac_cv_signgam_decl="yes",
478
486
      ac_cv_signgam_decl="no"))
479
487
  if test "$ac_cv_signgam_decl" = yes; then
534
542
 
535
543
if test "${DL_LIB}" != "NONE"; then
536
544
  dnl **** Old implementations of dlopen() don't have RTLD_NOW
537
 
  AC_CACHE_CHECK("whether RTLD_NOW is defined in dlfcn.h", ac_rtld_now_in_dlfcn_h,  
 
545
  AC_CACHE_CHECK([whether RTLD_NOW is defined in dlfcn.h], ac_rtld_now_in_dlfcn_h,  
538
546
    AC_EGREP_CPP(yes,
539
547
        [#include <dlfcn.h>
540
548
         #ifdef RTLD_NOW
585
593
                       AC_MSG_RESULT(--> PNG backend is disabled))
586
594
fi
587
595
 
588
 
dnl **** check for libtiff - may be needed for PDF driver
589
 
if test $pdfdrv = true
590
 
then
591
 
  ACX_CHECK_TIFF(19960307)
592
 
fi
593
 
 
594
596
dnl **** check for PDFlib
595
597
if test $pdfdrv = true
596
598
then
597
 
  ACX_CHECK_PDFLIB(3.02, AC_DEFINE(HAVE_LIBPDF), pdfdrv=false)
 
599
  ACX_CHECK_PDFLIB(5.0.0, AC_DEFINE(HAVE_LIBPDF), pdfdrv=false)
598
600
fi
599
601
if test $pdfdrv != true; then
600
602
  AC_MSG_RESULT(--> PDF driver is disabled)
629
631
    *) ;;
630
632
  esac
631
633
  
632
 
  if test $ac_cv_lib_Xmu__XEditResCheckMessages != yes; then
 
634
  if test "$ac_cv_lib_Xmu__XEditResCheckMessages" != yes; then
633
635
    AC_MSG_RESULT(--> support for EditRes protocol is disabled)
634
636
  fi
635
637
 
637
639
  AC_CHECK_LIB(Xp,main,GUI_LIBS="-lXp $GUI_LIBS")
638
640
 
639
641
  dnl **** and some - Xpm lib
640
 
  AC_CHECK_LIB(Xpm,main,GUI_LIBS="-lXpm $GUI_LIBS"; AC_DEFINE(HAVE_XPM)
641
 
                 AC_CHECK_HEADERS(xpm.h X11/xpm.h))
 
642
  AC_CHECK_LIB(Xpm,XpmCreatePixmapFromData,GUI_LIBS="-lXpm $GUI_LIBS"; AC_DEFINE(HAVE_XPM))
642
643
 
 
644
  if test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = yes; then
 
645
    AC_CHECK_HEADERS(xpm.h X11/xpm.h)
 
646
  fi
 
647
  
643
648
  ACX_RESTORE_STATE
644
649
 
645
650
  ACX_CHECK_MOTIF(1002)
648
653
    GUI="NONE_GUI"
649
654
    GUI_FLAGS=""
650
655
    GUI_LIBS=""
651
 
    AC_MSG_WARN(M*tif has not been found; building a GUI-less version)
 
656
    AC_MSG_ERROR(M*tif has not been found)
652
657
  else
653
658
    GUI_LIBS="$MOTIF_LIB $GUI_LIBS"
654
659
    GUI="MOTIF_GUI"