1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00

Fix the Autoconf test for getopt_long replacement.

It was broken by e114502b2b.
This commit is contained in:
Lasse Collin 2009-03-01 08:58:41 +02:00
parent fd6a380f4e
commit 63df14c57d

View file

@ -30,6 +30,10 @@ AC_DEFUN([gl_GETOPT_CHECK_HEADERS],
AC_CHECK_HEADERS([getopt.h], [], [GETOPT_H=getopt.h]) AC_CHECK_HEADERS([getopt.h], [], [GETOPT_H=getopt.h])
fi fi
if test -z "$GETOPT_H"; then
AC_CHECK_FUNCS([getopt_long], [], [GETOPT_H=getopt.h])
fi
dnl BSD getopt_long uses a way to reset option processing, that is different dnl BSD getopt_long uses a way to reset option processing, that is different
dnl from GNU and Solaris (which copied the GNU behavior). We support both dnl from GNU and Solaris (which copied the GNU behavior). We support both
dnl GNU and BSD style resetting of getopt_long(), so there's no need to use dnl GNU and BSD style resetting of getopt_long(), so there's no need to use