* configure.py : Fix the detection of splitindex (#7579)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39639 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Julien Rioux 2011-09-07 23:56:47 +00:00
parent e887f51468
commit 89cb89c78c

View File

@ -961,11 +961,12 @@ def checkOtherEntries(java='', perl=''):
alt_rc_entry = [ r'\index_alternatives "%%"' ]) alt_rc_entry = [ r'\index_alternatives "%%"' ])
checkProg('an index processor appropriate to Japanese', ['mendex -c -q', 'jmakeindex -c -q', 'makeindex -c -q'], checkProg('an index processor appropriate to Japanese', ['mendex -c -q', 'jmakeindex -c -q', 'makeindex -c -q'],
rc_entry = [ r'\jindex_command "%%"' ]) rc_entry = [ r'\jindex_command "%%"' ])
path, splitindex = checkProg('the splitindex processor', ['splitindex.pl', 'splitindex'], path, splitindex = checkProg('the splitindex processor', ['splitindex.pl', 'splitindex',
rc_entry = [ r'\splitindex_command "%%"' ]) 'splitindex.class'], rc_entry = ['', r'\splitindex_command "%%"', '', ''])
if splitindex == '': if splitindex == 'splitindex.pl' and perl != '':
checkProg('the splitindex processor (java version)', ['splitindex.class'], addToRC(r'\splitindex_command "%s -w \"%s\""' % (perl, os.path.join(path, splitindex)))
rc_entry = [ r'\splitindex_command "java splitindex"' ]) elif splitindex == 'splitindex.class' and java != '':
addToRC(r'\splitindex_command "%s \"%s\""' % (java, os.path.join(path, 'splitindex')))
checkProg('a nomenclature processor', ['makeindex'], checkProg('a nomenclature processor', ['makeindex'],
rc_entry = [ r'\nomencl_command "makeindex -s nomencl.ist"' ]) rc_entry = [ r'\nomencl_command "makeindex -s nomencl.ist"' ])
## FIXME: OCTAVE is not used anywhere ## FIXME: OCTAVE is not used anywhere