David Thorburn-Gundlach writes:
> Hi, folks --
> 
> I'm trying ot build 0.97i on my Solaris 2.6 box.  I found that I had

 I assume you mean 0.95.7?

> to go and get ncurses, so I did that.  Now make reports a problem with
> getopts:
> 
> ...
> gcc -DSHAREDIR=\"/usr/local/share/mutt\" -DSYSCONFDIR=\"/usr/local/etc\"       
>-DHAVE_CONFIG_H=1 -I. -I/usr/local/include  -I./intl  -DHAVE_CONFIG_H=1 -Wall 
>-pedantic -g -O2 -c main.c
> main.c:36: getopt.h: No such file or directory

 Is HAVE_GETOPT_H defined in config.h? The code in main.c ll. 36+ reads:

#ifdef HAVE_GETOPT_H
#include <getopt.h>
#endif

 Meaning that <getop.h> is only included if configure found it and defined
 HAVE_GETOPT_H. How can configure find a file that is not there? The 
 answer is most likely in config.log.

> What am I missing here?  Isn't getopts standard, even on Solaris?  I
> checked my man pages, and I have /usr/bin/getopts and the library call
> getopt(); could I really need getopts() instead?

 You are confusing different things here:

 - the getopts(1) utility, which has no relevance whatsoever for mutt
 - the getopt(3c) library function, which is available under Solaris

Reply via email to