diff options
| author | Peter Wemm <peter@FreeBSD.org> | 2013-08-13 07:15:01 +0000 |
|---|---|---|
| committer | Peter Wemm <peter@FreeBSD.org> | 2013-08-13 07:15:01 +0000 |
| commit | 0ff204bbd1f63ed2c270f01ebacb995aecd2de8e (patch) | |
| tree | 9bba3bf02dbd5d242b50c29cd7221d5ae286e560 /include/Makefile | |
| parent | db8645f05e9316deabe93f1a16d18c9f266c98cc (diff) | |
Notes
Diffstat (limited to 'include/Makefile')
| -rw-r--r-- | include/Makefile | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/include/Makefile b/include/Makefile index ae5ed7ce7737..ba41814fab27 100644 --- a/include/Makefile +++ b/include/Makefile @@ -72,10 +72,6 @@ _dev_ieee488= dev/ieee488 INCS+= hesiod.h .endif -.if ${MK_ICONV} != "no" -INCS+= iconv.h -.endif - .if ${MK_BLUETOOTH} != "no" LSUBSUBDIRS+= netgraph/bluetooth/include .endif @@ -85,6 +81,20 @@ LSUBSUBDIRS+= netgraph/bluetooth/include _netipx= netipx #.endif +# Handle the #define aliases for libiconv +.if ${MK_ICONV} == "yes" +CLEANFILES+= _libiconv_compat.h +INCS+= _libiconv_compat.h iconv.h +_libiconv_compat.h: ${.CURDIR}/Makefile + echo "/* Indicate whether libiconv symbols are present */" > _libiconv_compat.h +.if ${MK_LIBICONV_COMPAT} == "yes" + echo "#define __LIBICONV_COMPAT" >> _libiconv_compat.h +.else + echo "#undef __LIBICONV_COMPAT" >> _libiconv_compat.h +.endif +.endif + + # Define SHARED to indicate whether you want symbolic links to the system # source (``symlinks''), or a separate copy (``copies''). ``symlinks'' is # probably only useful for developers and should be avoided if you do not |
