*** ./common.h.ORIG Sat Sep 15 13:22:50 2012 --- ./common.h Sat Sep 15 13:23:22 2012 *************** *** 65,71 **** #include #include #include ! #ifdef __GNUC__ #ifndef strcmpi # include # define strcmpi(s1, s2) strcasecmp(s1, s2) --- 65,71 ---- #include #include #include ! #if defined(__GNUC__) || defined(_AIX51) #ifndef strcmpi # include # define strcmpi(s1, s2) strcasecmp(s1, s2) *** ./Makefile.ORIG Fri Feb 7 00:53:15 2014 --- ./Makefile Fri Feb 7 00:57:54 2014 *************** *** 37,44 **** .PHONY: man txt html pdf mofiles tags merge ! CC ?= gcc ! CPP ?= cpp CPP_FLAGS_POD = ALL STRIP = strip --- 37,44 ---- .PHONY: man txt html pdf mofiles tags merge ! CC = cc -qcpluscmt ! CPP = cpp CPP_FLAGS_POD = ALL STRIP = strip *************** *** 71,77 **** LINK = ln -sf LINK_MAN = $(LINK) ! prefix = /usr exec_prefix = $(prefix) bindir = $(exec_prefix)/bin datarootdir = $(prefix)/share --- 71,77 ---- LINK = ln -sf LINK_MAN = $(LINK) ! prefix = /opt/freeware exec_prefix = $(prefix) bindir = $(exec_prefix)/bin datarootdir = $(prefix)/share *************** *** 80,86 **** docsubdir = $(PACKAGE)-$(DOS2UNIX_VERSION) docdir = $(datarootdir)/doc/$(docsubdir) localedir = $(datarootdir)/locale ! mandir = $(datarootdir)/man man1dir = $(mandir)/man1 manext = .1 man1ext = .1 --- 80,86 ---- docsubdir = $(PACKAGE)-$(DOS2UNIX_VERSION) docdir = $(datarootdir)/doc/$(docsubdir) localedir = $(datarootdir)/locale ! mandir = $(prefix)/man man1dir = $(mandir)/man1 manext = .1 man1ext = .1 *************** *** 122,128 **** # ......................................................... OS flags ... ! D2U_OS = ifndef D2U_OS ifeq (Linux, $(shell uname -s)) --- 122,128 ---- # ......................................................... OS flags ... ! D2U_OS = aix ifndef D2U_OS ifeq (Linux, $(shell uname -s)) *************** *** 267,272 **** --- 267,280 ---- EXTRA_DEFS += -Dhpux -D_HPUX_SOURCE endif + ifeq (aix,$(D2U_OS)) + # Running under AIX + ifdef ENABLE_NLS + CFLAGS_OS = -I/opt/freeware/include + LDFLAGS_EXTRA = -L/opt/freeware/lib -lintl + endif + endif + ifndef D2U_OS D2U_OS = $(shell uname -s) endif *************** *** 292,299 **** endif CFLAGS_USER = ! CFLAGS ?= -O2 ! CFLAGS += -Wall $(RPM_OPT_FLAGS) $(CPPFLAGS) $(CFLAGS_USER) EXTRA_CFLAGS = -DVER_REVISION=\"$(DOS2UNIX_VERSION)\" \ -DVER_DATE=\"$(DOS2UNIX_DATE)\" \ --- 300,307 ---- endif CFLAGS_USER = ! CFLAGS = -O2 ! CFLAGS += $(CPPFLAGS) $(CFLAGS_USER) -D_LARGE_FILES EXTRA_CFLAGS = -DVER_REVISION=\"$(DOS2UNIX_VERSION)\" \ -DVER_DATE=\"$(DOS2UNIX_DATE)\" \ *************** *** 319,325 **** endif LDFLAGS_USER = ! LDFLAGS = $(RPM_OPT_FLAGS) $(LDFLAGS_EXTRA) $(LDFLAGS_USER) LIBS = $(LIBS_EXTRA) DEFS_USER = --- 327,333 ---- endif LDFLAGS_USER = ! LDFLAGS = $(LDFLAGS_EXTRA) $(LDFLAGS_USER) LIBS = $(LIBS_EXTRA) DEFS_USER = *************** *** 570,583 **** bin/$(MAC2UNIX_BIN) \ bin/$(UNIX2DOS_BIN) \ bin/$(UNIX2MAC_BIN) \ ! share/man/man1/$(PACKAGE).1 \ ! share/man/man1/$(MAC2UNIX).1 \ ! share/man/man1/$(UNIX2DOS).1 \ ! share/man/man1/$(UNIX2MAC).1 \ ! share/man/*/man1/$(PACKAGE).1 \ ! share/man/*/man1/$(MAC2UNIX).1 \ ! share/man/*/man1/$(UNIX2DOS).1 \ ! share/man/*/man1/$(UNIX2MAC).1 \ share/doc/$(docsubdir) \ $(ZIPOBJ_EXTRA) --- 578,591 ---- bin/$(MAC2UNIX_BIN) \ bin/$(UNIX2DOS_BIN) \ bin/$(UNIX2MAC_BIN) \ ! man/man1/$(PACKAGE).1 \ ! man/man1/$(MAC2UNIX).1 \ ! man/man1/$(UNIX2DOS).1 \ ! man/man1/$(UNIX2MAC).1 \ ! man/*/man1/$(PACKAGE).1 \ ! man/*/man1/$(MAC2UNIX).1 \ ! man/*/man1/$(UNIX2DOS).1 \ ! man/*/man1/$(UNIX2MAC).1 \ share/doc/$(docsubdir) \ $(ZIPOBJ_EXTRA)