]>
Commit | Line | Data |
---|---|---|
2e747537 | 1 | --- ghostscript-8.51/configure.ac.am 2005-01-25 02:19:34.000000000 +0100 |
2 | +++ ghostscript-8.51/configure.ac 2005-07-19 22:12:23.000000000 +0200 | |
3 | @@ -147,6 +147,32 @@ | |
4 | GCFLAGS="$GCFLAGS -DGX_COLOR_INDEX_TYPE=\"$uint64_type\"" | |
5 | fi | |
6 | ||
7 | +dnl look for default font path... | |
8 | +AC_ARG_WITH(fontpath, [ --with-fontpath set font path for gs],fontpath="$withval",fontpath="") | |
9 | + | |
10 | +dnl Fix "prefix" variable... | |
11 | +if test "x$prefix" = xNONE; then | |
12 | + prefix=/usr/local | |
13 | +fi | |
14 | + | |
15 | +dnl Fix "datadir" variable... | |
16 | +if test "x$datadir" = 'x${prefix}/share'; then | |
17 | + datadir="$prefix/share" | |
18 | +fi | |
19 | + dnl Fix "fontpath" variable... | |
20 | +if test "x$fontpath" = "x"; then | |
21 | +# These font directories are used by various Linux distributions... | |
22 | + fontpath="$datadir/fonts/default/ghostscript" | |
23 | + fontpath="${fontpath}:$datadir/fonts/default/Type1" | |
24 | + fontpath="${fontpath}:$datadir/fonts/default/TrueType" | |
25 | + # These font directories are used by IRIX... | |
26 | + fontpath="${fontpath}:/usr/lib/DPS/outline/base" | |
27 | + # These font directories are used by Solaris... | |
28 | + fontpath="${fontpath}:/usr/openwin/lib/X11/fonts/Type1" | |
29 | + fontpath="${fontpath}:/usr/openwin/lib/X11/fonts/TrueType" | |
30 | +fi | |
31 | + | |
32 | +AC_SUBST(fontpath) | |
33 | ||
34 | dnl -------------------------------------------------- | |
35 | dnl Check for libraries | |
2e747537 | 36 | --- ghostscript-8.51/src/Makefile.in~ 2004-12-01 09:17:19.000000000 +0100 |
37 | +++ ghostscript-8.51/src/Makefile.in 2005-07-21 13:46:26.000000000 +0200 | |
38 | @@ -70,7 +70,7 @@ | |
39 | # Define the default directory/ies for the runtime | |
40 | # initialization and font files. Separate multiple directories with a :. | |
41 | ||
42 | -GS_LIB_DEFAULT=$(gsdatadir)/lib:$(gsdatadir)/Resource:$(gsdir)/fonts | |
43 | +GS_LIB_DEFAULT=$(gsdatadir)/lib:$(gsdatadir)/Resource:$(gsdir)/fonts:@fontpath@ | |
44 | ||
45 | # Define the default directory for cached data files | |
46 | # this must be a single path. |