1
0

liboptschk.m4 1.5 KB

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