/[CvsGraph]/cvsgraph/configure.in
ViewVC logotype

Diff of /cvsgraph/configure.in

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.10, Sat Jul 20 20:41:40 2002 UTC revision 1.14, Thu Oct 21 20:08:42 2004 UTC
# Line 98  Line 98 
98      ac_cv_c_size_int_ptr="no",      ac_cv_c_size_int_ptr="no",
99      ac_cv_c_size_int_ptr="yes",      ac_cv_c_size_int_ptr="yes",
100      ac_cv_c_size_int_ptr="yes") )      ac_cv_c_size_int_ptr="yes") )
101    
102    AC_CACHE_CHECK( "sizes of long and void *", ac_cv_c_size_long_ptr,
103              AC_TRY_RUN([
104    int main(void) {
105      return sizeof(long) == sizeof(void *);
106    }],
107        ac_cv_c_size_long_ptr="no",
108        ac_cv_c_size_long_ptr="yes",
109        ac_cv_c_size_long_ptr="yes") )
110    
111    AC_CACHE_CHECK( "sizes of long long and void *", ac_cv_c_size_longlong_ptr,
112              AC_TRY_RUN([
113    int main(void) {
114      return sizeof(long long) == sizeof(void *);
115    }],
116        ac_cv_c_size_longlong_ptr="no",
117        ac_cv_c_size_longlong_ptr="yes",
118        ac_cv_c_size_longlong_ptr="yes") )
119    
120  if test "$ac_cv_c_size_int_ptr" = "no"  if test "$ac_cv_c_size_int_ptr" = "no"
121  then  then
122          echo "** The size of an integer is not equal to a pointer."          if test "$ac_cv_c_size_long_ptr" = "no"
123          echo "   There are currently assumtions in the app that"          then
124          echo "   prevents it from running if these sizes are not"                  if test "$ac_cv_c_size_longlong_ptr" = "no"
125          echo "   equal."                  then
126          echo "   Please configure with a compiler that uses the"                          echo "** The size of an integer is not equal to a pointer."
127          echo "   same sizes for ints and pointers."                          echo "   There are currently assumtions in the app that"
128          exit 1                          echo "   prevents it from running if these sizes are not"
129                            echo "   equal."
130                            echo "   Please configure with a compiler that uses the"
131                            echo "   same sizes for ints and pointers."
132                            exit 1
133                    else
134                            INTTYPE="long long"
135                    fi
136            else
137                    INTTYPE="long"
138            fi
139    else
140            INTTYPE="int"
141  fi  fi
142    
143  dnl Check getopt.h because Solaris 8 doesn't have one  dnl Check getopt.h because Solaris 8 doesn't have one
144  AC_CHECK_HEADER(getopt.h, [ AC_DEFINE(HAVE_GETOPT_H) ])  AC_CHECK_HEADER(getopt.h, [ AC_DEFINE(HAVE_GETOPT_H) ])
145    
146    dnl Check sys/wait.h because Windows doesn't have one
147    AC_CHECK_HEADER(sys/wait.h, [ AC_DEFINE(HAVE_SYS_WAIT_H) ])
148    
149  dnl Make sure the gd header is here  dnl Make sure the gd header is here
150  AC_CHECK_HEADER( gd.h,[ have_gd_h="yes" ],[ have_gd_h="no" ])  AC_CHECK_HEADER( gd.h,[ have_gd_h="yes" ],[ have_gd_h="no" ])
151    
# Line 274  Line 308 
308          have_gifs="no"          have_gifs="no"
309          )          )
310    
311  if test "${have_gifs}" = "yes"  dnl The new versions of libgd include gifs again after the patent expired.
312  then  dnl So this check should not be required anymore.
313          echo "** You have a very old GD library. Please consider"  dnl if test "${have_gifs}" = "yes"
314          echo "   upgrading to a more recent version (1.8.4 or newer)."  dnl then
315          echo "   --Note that f.x. ViewCVS needs CvsGraph to generate PNG"  dnl     echo "** You have a very old GD library. Please consider"
316          echo "     images and ancient GD libraries might contain many bugs."  dnl     echo "   upgrading to a more recent version (1.8.4 or newer)."
317          echo "     However, if you need GIFs, then you must stick to this"  dnl     echo "   --Note that f.x. ViewCVS needs CvsGraph to generate PNG"
318          echo "     old version."  dnl     echo "     images and ancient GD libraries might contain many bugs."
319  fi  dnl     echo "     However, if you need GIFs, then you must stick to this"
320    dnl     echo "     old version."
321    dnl fi
322    
323  AC_CHECK_LIB(gd, gdImagePng, [  AC_CHECK_LIB(gd, gdImagePng, [
324          AC_DEFINE(HAVE_IMAGE_PNG)          AC_DEFINE(HAVE_IMAGE_PNG)
325          ])          ])
326    AC_CHECK_LIB(gd, gdImagePngEx, [
327            AC_DEFINE(HAVE_GDIMAGEPNGEX)
328            ])
329  AC_CHECK_LIB(gd, gdImageJpeg, [  AC_CHECK_LIB(gd, gdImageJpeg, [
330          AC_DEFINE(HAVE_IMAGE_JPEG)          AC_DEFINE(HAVE_IMAGE_JPEG)
331          ])          ])
# Line 302  Line 341 
341                  AC_DEFINE(HAVE_GDIMAGESTRINGFT)                  AC_DEFINE(HAVE_GDIMAGESTRINGFT)
342          fi          fi
343          ])          ])
344    AC_CHECK_LIB(gd, gdImageFilledArc, [
345            AC_DEFINE(HAVE_GDIMAGEFILLEDARC)
346            ])
347    
348    
349  AC_SUBST(LEXFLAGS)  AC_SUBST(LEXFLAGS)
350    AC_SUBST(INTTYPE)
351    
352  AC_OUTPUT(Makefile)  AC_OUTPUT(Makefile)
353    

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.0 with CvsGraph 1.7.0