mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-27 20:25:12 +00:00
Add posix macros in configure.ac, not in Makefile, so that they will be honored by the configure tests
darcs-hash:20060801013123-ac50b-0c561ad5afd6e71230e29a25d467ed63c47b9f17.gz
This commit is contained in:
parent
696b4df1c6
commit
dc3634dc94
2 changed files with 3 additions and 1 deletions
|
@ -49,7 +49,7 @@ prefix = @prefix@
|
||||||
optbindirs = @optbindirs@
|
optbindirs = @optbindirs@
|
||||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||||
|
|
||||||
MACROS=-DLOCALEDIR=\"$(localedir)\" -DPREFIX=L\"$(prefix)\" -DDATADIR=L\"$(datadir)\" -DSYSCONFDIR=L\"$(sysconfdir)\" -D_POSIX_C_SOURCE=200112L
|
MACROS=-DLOCALEDIR=\"$(localedir)\" -DPREFIX=L\"$(prefix)\" -DDATADIR=L\"$(datadir)\" -DSYSCONFDIR=L\"$(sysconfdir)\"
|
||||||
CFLAGS=@CFLAGS@ $(MACROS)
|
CFLAGS=@CFLAGS@ $(MACROS)
|
||||||
CPPFLAGS=@CPPFLAGS@
|
CPPFLAGS=@CPPFLAGS@
|
||||||
LDFLAGS= @LIBS@ @LDFLAGS@
|
LDFLAGS= @LIBS@ @LDFLAGS@
|
||||||
|
|
|
@ -72,6 +72,8 @@ for i in /usr/pkg /sw /opt /opt/local; do
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
CFLAGS="$CFLAGS -D_XOPEN_SOURCE=600 -D_POSIX_C_SOURCE=200112L"
|
||||||
|
|
||||||
AC_SUBST( optbindirs, $optbindirs )
|
AC_SUBST( optbindirs, $optbindirs )
|
||||||
|
|
||||||
# Tell autoconf to create config.h header
|
# Tell autoconf to create config.h header
|
||||||
|
|
Loading…
Reference in a new issue