/[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.4, Sun Mar 4 20:15:02 2001 UTC revision 1.5, Mon Mar 12 15:57:58 2001 UTC
# Line 11  Line 11 
11    
12  LEXFLAGS="-8"  LEXFLAGS="-8"
13  LEXSPEED="-Cf"  LEXSPEED="-Cf"
14    INCL=""
15    
16  dnl Extra libraries 'with'-options  dnl Extra libraries 'with'-options
17  AC_ARG_WITH(gd,[  --with-gd-inc=DIR       location of the gd includes],  AC_ARG_WITH(gd-inc,[  --with-gd-inc=DIR       location of the gd includes],
18                  [CFLAGS="${CFLAGS} -I${withval}"                  [INCL="${INCL} -I${withval}"
19                  ])                  ])
20    
21  AC_ARG_WITH(gd,[  --with-gd-lib=DIR       location of the gd library],  AC_ARG_WITH(gd-lib,[  --with-gd-lib=DIR       location of the gd library],
22                  [LDFLAGS="${LDFLAGS} -L${withval}"                  [LIBS="${LIBS} -L${withval}"
23                  ])                  ])
24    
25  AC_ARG_WITH(z,[  --with-z-inc=DIR        location of zlib includes],  LIBS="$LIBS -lgd"
26                  [CFLAGS="${CFLAGS} -I${withval}"  
27    AC_ARG_WITH(z-inc,[  --with-z-inc=DIR        location of zlib includes],
28                    [INCL="${INCL} -I${withval}"
29                    ])
30    
31    AC_ARG_WITH(z-lib,[  --with-z-lib=DIR        location of zlib library],
32                    [LIBS="${LIBS} -L${withval} -lz"
33                    ])
34    
35    AC_ARG_WITH(png-inc,[  --with-png-inc=DIR      location of png includes],
36                    [INCL="${INCL} -I${withval}"
37                    ])
38    
39    AC_ARG_WITH(png-lib,[  --with-png-lib=DIR      location of png library],
40                    [LIBS="${LIBS} -L${withval} -lpng"
41                  ])                  ])
42    
43  AC_ARG_WITH(z,[  --with-z-lib=DIR        location of zlib library],  AC_ARG_WITH(jpeg-inc,[  --with-jpeg-inc=DIR    location of jpeg includes],
44                  [LDFLAGS="${LDFLAGS} -L${withval} -lz"                  [INCL="${INCL} -I${withval}"
45                  ])                  ])
46    
47  AC_ARG_WITH(png,[  --with-png=DIR          location of png lib/inc],  AC_ARG_WITH(jpeg-lib,[  --with-jpeg-lib=DIR    location of jpeg library],
48                  [LDFLAGS="${LDFLAGS} -L${withval} -lpng"                  [LIBS="${LIBS} -L${withval} -ljpeg"
                 CFLAGS="${CFLAGS} -I${withval}"  
49                  ])                  ])
50    
51  AC_ARG_ENABLE(speed,[  --disable-speed         Turn off lex table optimization reducing speed and size of executable],  AC_ARG_ENABLE(speed,[  --disable-speed         Turn off lex table optimization reducing speed and size of executable],
# Line 42  Line 56 
56    LEXFLAGS="$LEXFLAGS $LEXSPEED"    LEXFLAGS="$LEXFLAGS $LEXSPEED"
57  fi  fi
58    
59  LDFLAGS="${LDFLAGS} -lgd"  CPPFLAGS="$CPPFLAGS $INCL"
60    CFLAGS="$CFLAGS $INCL"
61    
62  dnl Tests for gcc  dnl Tests for gcc
63  if test "x${GCC}" = "xyes"  if test "x${GCC}" = "xyes"
# Line 79  Line 93 
93          ])          ])
94  AC_CHECK_LIB(gd,gdImagePng,[  AC_CHECK_LIB(gd,gdImagePng,[
95          AC_DEFINE(HAVE_IMAGE_PNG)          AC_DEFINE(HAVE_IMAGE_PNG)
         LDFLAGS="$LDFLAGS -lpng -lz ${MATHLIBS}"  
96          ])          ])
97  AC_CHECK_LIB(gd,gdImageJpeg,[  AC_CHECK_LIB(gd,gdImageJpeg,[
98          AC_DEFINE(HAVE_IMAGE_JPEG)          AC_DEFINE(HAVE_IMAGE_JPEG)
         LDFLAGS="$LDFLAGS -ljpeg"  
99          ])          ])
100    
101    

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.0 with CvsGraph 1.7.0