2 kpath.cc -- glue kpathsea to lily. Need some ugly kludges for gcc 2.96
4 source file of the GNU LilyPond music typesetter
6 (c) 2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
13 #define popen REALLYUGLYKLUDGE
14 #define pclose ANOTHERREALLYUGLYKLUDGE
16 #if HAVE_KPATHSEA_KPATHSEA_H
18 #include <kpathsea/kpathsea.h>
19 #include <kpathsea/tex-file.h>
27 char * ly_find_afm (char const * name)
29 #if (KPATHSEA && HAVE_KPSE_FIND_FILE)
30 return kpse_find_file (name, kpse_afm_format, true);
35 char * ly_find_tfm (char const * name)
37 #if (KPATHSEA && HAVE_KPSE_FIND_FILE)
38 return kpse_find_file (name, kpse_tfm_format, true);
45 ly_init_kpath (char *av0)
47 #if KPATHSEA && HAVE_KPATHSEA_KPATHSEA_H
51 kpse_set_program_name(av0, NULL);
52 kpse_maketex_option("tfm", TRUE);