configure.ac 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. ## Process this file with autoconf to create configure. -*- autoconf -*-
  2. # Copyright 2001, 2006 Free Software Foundation, Inc.
  3. #
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2 of the License, or
  7. # (at your option) any later version.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  17. # 02110-1301 USA
  18. AC_PREREQ(2.64)
  19. dnl Disable libtool 1.5 support for languages we don't use
  20. define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
  21. define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
  22. define([AC_LIBTOOL_LANG_GCJ_CONFIG], [:])dnl
  23. ## ------------------------ ##
  24. ## Autoconf initialisation. ##
  25. ## ------------------------ ##
  26. AC_INIT([libltdl], [1.2], [bug-libtool@gnu.org])
  27. AC_CONFIG_SRCDIR([ltdl.c])
  28. ## GCJ LOCAL: gcc tree uses maintainer mode.
  29. AM_MAINTAINER_MODE
  30. AM_ENABLE_MULTILIB(, ../..)
  31. ## ------------------------------- ##
  32. ## Libltdl specific configuration. ##
  33. ## ------------------------------- ##
  34. AC_CONFIG_AUX_DIR([.])
  35. if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
  36. if test -f ${srcdir}/ltmain.sh; then
  37. # if libltdl is libtoolized, it is assumed to be stand-alone and
  38. # installed unless the command line overrides it (tested above)
  39. enable_ltdl_install=yes
  40. else
  41. AC_MSG_WARN([*** The top-level configure must select either])
  42. AC_MSG_WARN([*** [A""C_LIBLTDL_INSTALLABLE] or [A""C_LIBLTDL_CONVENIENCE].])
  43. AC_MSG_ERROR([*** Maybe you want to --enable-ltdl-install?])
  44. fi
  45. fi
  46. ## ------------------------ ##
  47. ## Automake Initialisation. ##
  48. ## ------------------------ ##
  49. AM_INIT_AUTOMAKE(AC_PACKAGE_TARNAME, AC_PACKAGE_VERSION, -)
  50. AM_CONFIG_HEADER([config.h:config-h.in])
  51. ## ------------------ ##
  52. ## C compiler checks. ##
  53. ## ------------------ ##
  54. AC_PROG_CC
  55. AC_C_CONST
  56. AC_C_INLINE
  57. ## ----------------------- ##
  58. ## Libtool initialisation. ##
  59. ## ----------------------- ##
  60. AC_LIBTOOL_WIN32_DLL
  61. AC_PROG_LIBTOOL
  62. AC_SUBST([LIBTOOL_DEPS])
  63. AC_LIB_LTDL
  64. ## -------- ##
  65. ## Outputs. ##
  66. ## -------- ##
  67. AC_CONFIG_FILES([Makefile])
  68. AC_OUTPUT