Add a check for USE_ICONV, and if found, error out. This will avoid fork

bombs on systems where USE_ICONV has been incorrectly defined in make.conf
or in the environment.

Submittd by:	trevor
This commit is contained in:
Joe Marcus Clarke 2004-02-08 22:57:37 +00:00
parent e8f9ba53bd
commit 2fd9060900
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=100427

View File

@ -26,6 +26,11 @@ INSTALLS_SHLIB= yes
MAN1= iconv.1
MAN3= iconv.3 iconv_open.3 iconv_close.3
.ifdef USE_ICONV
.error USE_ICONV is defined as an environment variable, or in the arguments \
to "make". Please unset it and restart the build.
.endif
.if !defined(WITHOUT_EXTRA_ENCODINGS)
CONFIGURE_ARGS+= --enable-extra-encodings
.endif