diff options
author | Pedro Giffuni <pfg@apache.org> | 2011-10-05 02:08:15 +0000 |
---|---|---|
committer | Pedro Giffuni <pfg@apache.org> | 2011-10-05 02:08:15 +0000 |
commit | 8cd8633030ae18d24ab85ef30ad9dfa834cc41ab (patch) | |
tree | f0b8112ee77662a06b7e7c387c9689e5dc763487 /oox | |
parent | a96e5f2cbd1e380534547ae7ca46eb38a92f00e9 (diff) |
i85469: add --with-gperf= to configure for systems that use old versions of gperf
Diffstat (limited to 'oox')
-rwxr-xr-x | oox/source/token/makefile.mk | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/oox/source/token/makefile.mk b/oox/source/token/makefile.mk index ff42967f0bb1..f54c9219b704 100755 --- a/oox/source/token/makefile.mk +++ b/oox/source/token/makefile.mk @@ -47,6 +47,9 @@ SLOFILES = \ # --- Targets ------------------------------------------------------- .INCLUDE : target.mk +.IF "$(GPERF)" == "" || !DEFINED $(GPERF) +GPERF=gperf +.ENDIF GENHEADERPATH = $(INCCOM)$/oox$/token @@ -56,7 +59,7 @@ $(MISC)$/tokenhash.gperf $(INCCOM)$/tokennames.inc $(GENHEADERPATH)$/tokens.hxx $(SLO)$/tokenmap.obj : $(INCCOM)$/tokenhash.inc $(INCCOM)$/tokennames.inc $(GENHEADERPATH)$/tokens.hxx $(MISC)$/do_tokens $(INCCOM)$/tokenhash.inc : $(MISC)$/tokenhash.gperf $(MISC)$/do_tokens - $(AUGMENT_LIBRARY_PATH) gperf --compare-strncmp $(MISC)$/tokenhash.gperf | $(SED) -e "s/(char\*)0/(char\*)0, 0/g" | $(GREP) -v "^#line" >$(INCCOM)$/tokenhash.inc + $(AUGMENT_LIBRARY_PATH) $(GPERF) --compare-strncmp $(MISC)$/tokenhash.gperf | $(SED) -e "s/(char\*)0/(char\*)0, 0/g" | $(GREP) -v "^#line" >$(INCCOM)$/tokenhash.inc $(MISC)$/do_tokens $(do_phony) : tokens.txt tokens.pl tokens.hxx.head tokens.hxx.tail $(GENHEADERPATH)$/tokens.hxx $(INCCOM)$/tokennames.inc $(MISC)$/tokenhash.gperf @@-$(RM) $@ |