File: getopt_long.m4

package info (click to toggle)
boolstuff 0.1.11-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,664 kB
  • ctags: 152
  • sloc: sh: 8,653; cpp: 1,435; makefile: 200; ansic: 162; perl: 106
file content (14 lines) | stat: -rw-r--r-- 416 bytes parent folder | download | duplicates (28)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Defines an automake conditional `HAVE_GETOPT_LONG' depending on
# whether getopt_long() from GNU getopt is available or not.  If it
# is, defines the preprocessor identifier `HAVE_GETOPT_LONG' to 1.

AC_PREREQ(2.50)

AC_DEFUN([GETOPT_LONG],
[
	AC_CHECK_HEADER([getopt.h])
	AC_CHECK_FUNCS([getopt_long], HAVE_GETOPT_LONG=1, HAVE_GETOPT_LONG=0)
	AM_CONDITIONAL(HAVE_GETOPT_LONG, [test "$HAVE_GETOPT_LONG" = 1])
])