source: libcaca/trunk/caca-config.in @ 537

Last change on this file since 537 was 527, checked in by Sam Hocevar, 14 years ago
  • All output plugins should now work again.
  • Renamed caca_refresh() into caca_display() which makes more sense.
  • Optimised gl_bgpal by directly storing floats instead of doing the conversion at runtime.
  • Handle resizing in cucul_set_size() and try to keep as much information as possible from the previous canvas.
  • Moved most global variables into cucul_t or caca_t contexts.
  • Moved time.c into libcaca.
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1#! /bin/sh
2
3##  config script for libcaca -- Sam Hocevar <sam@zoy.org>
4##  $Id: caca-config.in 527 2006-03-06 08:32:40Z sam $
5
6prefix=@prefix@
7exec_prefix=@exec_prefix@
8
9lib_dir=@libdir@
10include_dir=@includedir@
11
12usage()
13{
14  cat <<EOF
15Usage: caca-config [OPTIONS] [LIBRARIES]
16Options:
17   [--prefix[=DIR]]
18   [--exec-prefix[=DIR]]
19   [--version]
20   [--libs]
21   [--plugin-libs]
22   [--ldflags]
23   [--cflags]
24EOF
25  exit $1
26}
27
28if test $# -eq 0
29then
30  usage 1 1>&2
31fi
32
33while test $# -gt 0
34do
35  case "$1" in
36    -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
37    *) optarg= ;;
38  esac
39
40  case $1 in
41    --prefix=*)
42      prefix=$optarg
43      local_prefix=yes
44      ;;
45    --prefix)
46      echo_prefix=yes
47      ;;
48    --exec-prefix=*)
49      exec_prefix=$optarg
50      exec_prefix_set=yes
51      local_prefix=yes
52      ;;
53    --exec-prefix)
54      echo_exec_prefix=yes
55      ;;
56    --version)
57      echo @VERSION@
58      exit 0
59      ;;
60    --cflags)
61      echo_cflags=yes
62      ;;
63    --ldflags)
64      echo_ldflags=yes
65      ;;
66    --libs | --plugin-libs)
67      echo_libs=yes
68      ;;
69    *)
70      usage 1 1>&2
71      ;;
72  esac
73  shift
74done
75
76if test "$local_prefix" = "yes"
77then
78  if test "$exec_prefix_set" != "yes"
79  then
80    exec_prefix=$prefix
81  fi
82fi
83
84if test "$echo_prefix" = "yes"
85then
86  echo $prefix
87fi
88
89if test "$echo_exec_prefix" = "yes"
90then
91  echo $exec_prefix
92fi
93
94if test "$echo_cflags" = "yes"
95then
96  cflags="-I$include_dir/"
97  echo $cflags
98fi
99
100if test "$echo_ldflags" = "yes"
101then
102  ldflags="-L$lib_dir"
103  echo $ldflags
104fi
105
106if test "$echo_libs" = "yes"
107then
108  echo -L@libdir@ -lcucul -lcaca @CUCUL_LIBS@ @CACA_LIBS@
109fi
110
Note: See TracBrowser for help on using the repository browser.