configure.in
上传用户:sorock1981
上传日期:2007-01-06
资源大小:73k
文件大小:2k
- dnl Autoconfigure input file for gif2png
- dnl Eric S. Raymond <esr@thyrsus.com>
- dnl
- dnl Process this file with autoconf to produce a configure script.
- dnl
- AC_INIT(gif2png.h) dnl A distinctive file to look for in srcdir.
- AM_INIT_AUTOMAKE(gif2png, 2.3.2)
- AM_CONFIG_HEADER(config.h)
- AC_PROG_CC
- AC_PROG_INSTALL
- AC_PROG_CPP dnl Later checks need this.
- AC_PROG_CC_C_O
- AC_HEADER_STDC
- AC_ARG_PROGRAM
- AC_ARG_WITH(png,[ --with-png=DIR location of png lib/inc],
- [LDFLAGS="${LDFLAGS} -L${withval}"
- CFLAGS="${CFLAGS} -I${withval}"])
-
- AC_ARG_WITH(png-lib,[ --with-png-lib=DIR location of png library],
- [LDFLAGS="${LDFLAGS} -L${withval}"])
-
- AC_ARG_WITH(png-inc,[ --with-png-inc=DIR location of the libpng include files],
- [CFLAGS="${CFLAGS} -I${withval}"])
- ### use option --enable-TMPFILE to set TMPFILE mode
- AC_ARG_ENABLE(TMPFILE,
- [ --enable-TMPFILE compile in TMPFILE support],
- [with_TMPFILE=$enableval],
- [with_TMPFILE=no])
- test "$with_TMPFILE" = "yes" && AC_DEFINE(TMPFILE_ENABLE)
- AC_CHECK_LIB(z, deflate)
- AC_CHECK_LIB(m, pow)
- AC_CHECK_LIB(png, png_write_init, , , $LIBS)
- if test "$ac_cv_lib_png_png_write_init" = "no"
- then
- AC_ERROR([PNG library is missing! Please get it.])
- fi
- if test "$ac_cv_lib_z_deflate" = "no"
- then
- AC_ERROR([ZLIB library is missing! Please get it.])
- fi
- AC_OUTPUT(Makefile gif2png.spec)
- dnl Local Variables:
- dnl comment-start: "dnl "
- dnl comment-end: ""
- dnl comment-start-skip: "\bdnl\b\s *"
- dnl compile-command: "make configure config.h.in"
- dnl End: