Mercurial > hg > octave-nkf > gnulib-hg
comparison m4/getopt.m4 @ 5427:e314bbc551bf
(gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
of replacing opterr, getopt, etc. This should handle the
powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Thu, 11 Nov 2004 21:00:47 +0000 |
parents | a317f6d7d38b |
children | fca5a7f08a72 |
comparison
equal
deleted
inserted
replaced
5426:b3866cec09d3 | 5427:e314bbc551bf |
---|---|
1 # getopt.m4 serial 5 | 1 # getopt.m4 serial 6 |
2 dnl Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc. | 2 dnl Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc. |
3 dnl This file is free software, distributed under the terms of the GNU | 3 dnl This file is free software, distributed under the terms of the GNU |
4 dnl General Public License. As a special exception to the GNU General | 4 dnl General Public License. As a special exception to the GNU General |
5 dnl Public License, this file may be distributed as part of a program | 5 dnl Public License, this file may be distributed as part of a program |
6 dnl that contains a configuration script generated by Autoconf, under | 6 dnl that contains a configuration script generated by Autoconf, under |
13 AC_DEFUN([gl_GETOPT_SUBSTITUTE], | 13 AC_DEFUN([gl_GETOPT_SUBSTITUTE], |
14 [ | 14 [ |
15 GETOPT_H=getopt.h | 15 GETOPT_H=getopt.h |
16 AC_LIBOBJ([getopt]) | 16 AC_LIBOBJ([getopt]) |
17 AC_LIBOBJ([getopt1]) | 17 AC_LIBOBJ([getopt1]) |
18 AC_DEFINE([optarg], [rpl_optarg], | 18 AC_DEFINE([__GETOPT_PREFIX], [[rpl_]], |
19 [Define to rpl_optarg if the replacement variable should be used.]) | 19 [Define to rpl_ if the getopt replacement functions and variables |
20 AC_DEFINE([optind], [rpl_optind], | 20 should be used.]) |
21 [Define to rpl_optind if the replacement variable should be used.]) | |
22 AC_DEFINE([opterr], [rpl_opterr], | |
23 [Define to rpl_opterr if the replacement variable should be used.]) | |
24 AC_DEFINE([optopt], [rpl_optopt], | |
25 [Define to rpl_optopt if the replacement variable should be used.]) | |
26 AC_DEFINE([getopt], [rpl_getopt], | |
27 [Define to rpl_getopt if the replacement function should be used.]) | |
28 AC_DEFINE([getopt_long], [rpl_getopt_long], | |
29 [Define to rpl_getopt_long if the replacement function should be used.]) | |
30 AC_DEFINE([getopt_long_only], [rpl_getopt_long_only], | |
31 [Define to rpl_getopt_long_only if the replacement function should be used.]) | |
32 AC_SUBST([GETOPT_H]) | 21 AC_SUBST([GETOPT_H]) |
33 ]) | 22 ]) |
34 | 23 |
35 AC_DEFUN([gl_GETOPT], | 24 AC_DEFUN([gl_GETOPT], |
36 [ | 25 [ |