Fix for a crash which happened when a document couldn't be opened.
[AROS-Contrib.git] / regina / regina-config.in
blob78cfccf067987004026c8025922fded80cc22d56
1 #! /bin/sh
3 # The idea to this kind of setup info script was stolen from numerous
4 # other packages, such as neon, libxml and gnome.
6 prefix=@prefix@
7 exec_prefix=@exec_prefix@
8 includedir=@includedir@
9 libdir=@libdir@
10 libdir64=@libdir64@
11 libdir32=@libdir32@
13 usage()
15 echo "Usage: regina-config [OPTION]"
16 echo ""
17 echo "Available values for OPTION include:"
18 echo ""
19 echo " --help display this help and exit"
20 echo " --cflags pre-processor and compiler flags"
21 echo " [-I$includedir]"
22 echo " --multithread yes; if thread-safe library is available; no otherwise"
23 echo " [@REGINAMULTITHREAD@]"
24 echo " --libs library linking information"
25 echo " [-L$libdir -l@SHLFILE@ @BOTHLIBS@ @SHLIBS@ @DLFCNLIBDIR@ @THREADING_LINK@ @MH_FUNC_LIBS@]"
26 echo " --libs_ts library linking information for thread-safe library"
27 echo " [-L$libdir -l@SHLFILE@ @BOTHLIBS@ @SHLIBS@ @DLFCNLIBDIR@ @THREADING_LINK@]"
28 echo " --libs32 library linking information for specific 32bit build"
29 echo " [-L$libdir32 -l@SHLFILE@ @BOTHLIBS@ @SHLIBS@ @DLFCNLIBDIR@ @THREADING_LINK@ @MH_FUNC_LIBS@]"
30 echo " --libs64 library linking information for specific 64bit build"
31 echo " [-L$libdir64 -l@SHLFILE@ @BOTHLIBS@ @SHLIBS@ @DLFCNLIBDIR@ @THREADING_LINK@ @MH_FUNC_LIBS@]"
32 echo " --prefix Regina install prefix"
33 echo " [$prefix]"
34 echo " --version output version information"
35 echo " [@VERSION@]"
36 exit $1
39 if test $# -eq 0; then
40 usage 1
43 while test $# -gt 0; do
44 case "$1" in
45 # this deals with options in the style
46 # --option=value and extracts the value part
47 # [not currently used]
48 -*=*) value=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
49 *) value= ;;
50 esac
52 case "$1" in
53 --prefix)
54 echo $prefix
57 --multithread)
58 echo @REGINAMULTITHREAD@
61 --version)
62 echo @VERSION@
63 exit 0
66 --help)
67 usage 0
70 --cflags)
71 echo -I$includedir
74 --libs)
75 echo -L$libdir -l@SHLFILE@ @BOTHLIBS@ @SHLIBS@ @DLFCNLIBDIR@ @THREADING_LINK@ @MH_FUNC_LIBS@
78 --libs_ts)
79 echo -L$libdir -l@TSLFILE@ @BOTHLIBS@ @SHLIBS@ @DLFCNLIBDIR@ @THREADING_LINK@
82 --libs32)
83 echo -L$libdir32 -l@SHLFILE@ @BOTHLIBS@ @SHLIBS@ @DLFCNLIBDIR@ @THREADING_LINK@ @MH_FUNC_LIBS@
86 --libs64)
87 echo -L$libdir64 -l@SHLFILE@ @BOTHLIBS@ @SHLIBS@ @DLFCNLIBDIR@ @THREADING_LINK@ @MH_FUNC_LIBS@
91 usage
92 exit 1
94 esac
95 shift
96 done
98 exit 0