configure.in
Upload User: yingmei828
Upload Date: 2007-01-01
Package Size: 1646k
Code Size: 2k
Development Platform:

Unix_Linux

  1. dnl Copyright (C) 1999-2000 Free Software Foundation, Inc.
  2. dnl This file is part of the GNU ICONV Library.
  3. dnl
  4. dnl The GNU ICONV Library is free software; you can redistribute it and/or
  5. dnl modify it under the terms of the GNU Library General Public License as
  6. dnl published by the Free Software Foundation; either version 2 of the
  7. dnl License, or (at your option) any later version.
  8. dnl
  9. dnl The GNU ICONV Library is distributed in the hope that it will be useful,
  10. dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  12. dnl Library General Public License for more details.
  13. dnl
  14. dnl You should have received a copy of the GNU Library General Public
  15. dnl License along with the GNU ICONV Library; see the file COPYING.LIB.  If not,
  16. dnl write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  17. dnl Boston, MA 02111-1307, USA.
  18. AC_PREREQ(2.12)
  19. AC_INIT(src/iconv.c)
  20. AC_CONFIG_HEADER(src/config.h)
  21. AC_PROG_MAKE_SET
  22. dnl           checks for programs
  23. AC_PROG_CC
  24. AC_PROG_CPP
  25. AC_PROG_GCC_TRADITIONAL
  26. CL_PROG_RANLIB
  27. CL_PROG_INSTALL
  28. dnl           check for host type
  29. CL_CANONICAL_HOST(autoconf)
  30. dnl           checks for UNIX variants that set DEFS
  31. AC_AIX
  32. AC_MINIX
  33. AC_ISC_POSIX
  34. dnl           check for build configuration
  35. PACKAGE=libiconv
  36. AM_DISABLE_STATIC
  37. AM_PROG_LIBTOOL
  38. dnl           checks for header files
  39. dnl           checks for functions and declarations
  40. CL_ICONV
  41. if test $cl_cv_func_iconv = yes -a -z "$cl_cv_proto_iconv_arg1"; then
  42.   ICONV_CONST=""
  43. else
  44.   ICONV_CONST="const"
  45. fi
  46. AC_SUBST(ICONV_CONST)
  47. CL_WORDS_LITTLEENDIAN
  48. dnl           check whether OS supports plug libraries
  49. OS=""
  50. case "$host_os" in
  51.   linux*)   OS="linux" ;;
  52.   solaris*) OS="solaris" ;;
  53.   osf*)     OS="osf" ;;
  54. esac
  55. if test -n "$OS"; then
  56.   AC_SUBST(OS)
  57.   PLUGLIB="libiconv_plug.so"
  58. else
  59.   PLUGLIB=""
  60. fi
  61. AC_SUBST(PLUGLIB)
  62. if test -d "${srcdir}/tests"; then
  63.   TESTS_MAKEFILE=tests/Makefile
  64. else
  65.   TESTS_MAKEFILE=""
  66. fi
  67. AC_OUTPUT(Makefile src/Makefile man/Makefile ${TESTS_MAKEFILE} include/iconv.h)