1
0

liboptschk.m4 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # liboptschk.m4 serial 1 (autogen - 5.7.3)
  2. dnl copyright (c) 2005 by Bruce Korb - all rights reserved
  3. dnl This file is free software; the Free Software Foundation
  4. dnl gives unlimited permission to copy and/or distribute it,
  5. dnl with or without modifications, as long as this notice is preserved.
  6. dnl Time-stamp: "2006-09-23 19:42:31 bkorb"
  7. dnl Last Committed: $Date: 2007/07/04 20:51:18 $
  8. dnl This file can can be used in projects which are not available under
  9. dnl the GNU General Public License or the GNU Library General Public
  10. dnl License but which still want to provide support for the GNU gettext
  11. dnl functionality.
  12. dnl Please note that the actual code of the GNU gettext library is covered
  13. dnl by the GNU Library General Public License, and the rest of the GNU
  14. dnl gettext package package is covered by the GNU General Public License.
  15. dnl They are *not* in the public domain.
  16. dnl Authors:
  17. dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
  18. dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
  19. AC_PREREQ(2.50)
  20. AC_DEFUN([ag_FIND_LIBOPTS],
  21. [if test "X${ac_cv_header_autoopts_options_h}" == Xno
  22. then
  23. :
  24. else
  25. f=`autoopts-config cflags` 2>/dev/null
  26. test X"${f}" = X && f=`libopts-config cflags` 2>/dev/null
  27. if test X"${f}" = X
  28. then
  29. :
  30. else
  31. AC_DEFINE([HAVE_LIBOPTS],[1],[define if we can find libopts])
  32. CFLAGS="${CFLAGS} ${f}"
  33. f=`autoopts-config ldflags` 2>/dev/null
  34. test X"${f}" = X && f=`libopts-config ldflags` 2>/dev/null
  35. LIBS="${LIBS} ${f}"
  36. fi
  37. fi])