diff -Nurd -x'*~' getopt-1.1.6.orig/Makefile getopt-1.1.6/Makefile --- getopt-1.1.6.orig/Makefile 2014-11-24 07:33:39.000000000 -0500 +++ getopt-1.1.6/Makefile 2020-11-12 22:22:08.000000000 -0500 @@ -75,6 +75,8 @@ $(DESTDIR)$(getoptdir) ifeq ($(WITHOUT_GETTEXT),0) +CPPFLAGS+=-I@PREFIX@/include +LDFLAGS+=-L@PREFIX@/lib -lintl all_po: $(MOFILES) install_po: all_po $(INSTALL) -m 755 -d $(DESTDIR)$(localedir) diff -Nurd -x'*~' getopt-1.1.6.orig/getopt.1 getopt-1.1.6/getopt.1 --- getopt-1.1.6.orig/getopt.1 2014-11-20 15:13:24.000000000 -0500 +++ getopt-1.1.6/getopt.1 2020-11-12 22:22:55.000000000 -0500 @@ -415,10 +415,8 @@ .SH EXAMPLES Example scripts for (ba)sh and (t)csh are provided with the .BR getopt (1) -distribution, and are optionally installed in -.BR /usr/local/share/getopt/ -or -.BR /usr/share/getopt/ . +distribution, and are installed in +.BR @PREFIX@/share/doc/getoptbin .SH ENVIRONMENT .IP POSIXLY_CORRECT This environment variable is examined by the