[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
long-options: need getopt
From: |
Bruno Haible |
Subject: |
long-options: need getopt |
Date: |
Mon, 12 Mar 2007 00:32:12 +0100 |
User-agent: |
KMail/1.5.4 |
The 'long-options' module includes <getopt.h> and uses 'struct option'.
This yields the following error on HP-UX 11:
cc -Ae -O -DHAVE_CONFIG_H -I. -I.. -g -c long-options.c
cpp: "long-options.c", line 30: error 4036: Can't open include file 'getopt.h'.
and the following error on OSF/1 5.1 (which apparently has a <getopt.h>
but not the GNU one):
cc -O -DHAVE_CONFIG_H -I. -I.. -c long-options.c
cc: Error: long-options.c, line 36: In the initializer for long_options, an
array's element type is incomplete, which precludes its initialization.
(incompelinit)
{"help", no_argument, NULL, 'h'},
--^
I'm applying this fix:
2007-03-11 Bruno Haible <address@hidden>
* modules/long-options (Depends-on): Add getopt.
*** modules/long-options 13 Oct 2006 12:40:23 -0000 1.8
--- modules/long-options 11 Mar 2007 23:31:35 -0000
***************
*** 7,12 ****
--- 7,13 ----
m4/long-options.m4
Depends-on:
+ getopt
version-etc
configure.ac:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- long-options: need getopt,
Bruno Haible <=