diff options
author | Werner Lemberg <wl@gnu.org> | 2002-01-13 06:36:02 +0000 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2002-01-13 06:36:02 +0000 |
commit | 2f260409a4bc4c80554740f3a7f869ffea17ab3b (patch) | |
tree | a1698a20dc971225d85860b6afa5730293f10c64 /builds/unix/freetype-config.in | |
parent | 51f245a615954cf41f5683b9dbae1e03e5d7c430 (diff) | |
download | freetype2-2f260409a4bc4c80554740f3a7f869ffea17ab3b.tar.gz |
* builds/unix/freetype2.a4: The script was still buggy.
* builds/unix/freetype-config.in: Make it really work for any install
prefix.
Diffstat (limited to 'builds/unix/freetype-config.in')
-rw-r--r-- | builds/unix/freetype-config.in | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/builds/unix/freetype-config.in b/builds/unix/freetype-config.in index 09bd6e425..b3ed2df3e 100644 --- a/builds/unix/freetype-config.in +++ b/builds/unix/freetype-config.in @@ -18,11 +18,11 @@ EOF exit $1 } -if test $# -eq 0; then +if test $# -eq 0 ; then usage 1 1>&2 fi -while test $# -gt 0; do +while test $# -gt 0 ; do case "$1" in -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; @@ -65,25 +65,28 @@ while test $# -gt 0; do done if test "$local_prefix" = "yes" ; then - if test "$exec_prefix_set" != "yes"; then + if test "$exec_prefix_set" != "yes" ; then exec_prefix=$prefix fi fi -if test "$echo_prefix" = "yes"; then +if test "$echo_prefix" = "yes" ; then echo $prefix fi -if test "$echo_exec_prefix" = "yes"; then +if test "$echo_exec_prefix" = "yes" ; then echo $exec_prefix fi -if test "$echo_cflags" = "yes"; then +if test "$echo_cflags" = "yes" ; then cflags="-I@includedir@/freetype2" - echo $cflags $includes + if test "@includedir@" != "/usr/include" ; then + echo -I@includedir@ $cflags + else + echo $cflags fi -if test "$echo_libs" = "yes"; then +if test "$echo_libs" = "yes" ; then libs="-lfreetype" if test "@libdir@" != "/usr/lib" ; then echo -L@libdir@ $libs @@ -92,7 +95,7 @@ if test "$echo_libs" = "yes"; then fi fi -if test "$echo_libtool" = "yes"; then +if test "$echo_libtool" = "yes" ; then convlib="libfreetype.la" echo @libdir@/$convlib fi |