jengelh-datetimespielwiese
Last change
on this file since f5d2647 was
2c889f,
checked in by Oleksandr Motsak <motsak@…>, 10 years ago
|
Code update corresponding to renaming findexec into resources
|
-
Property mode set to
100755
|
File size:
1.8 KB
|
Line | |
---|
1 | #! /bin/bash |
---|
2 | |
---|
3 | C="$0" |
---|
4 | C=`readlink -f "$C"` |
---|
5 | C=`dirname "$C"` |
---|
6 | C=`ls -d1 "$C"` |
---|
7 | |
---|
8 | # NOTE: if you moved this config please either use the above or |
---|
9 | # make sure the following variables are up to date |
---|
10 | prefix="$C/../" |
---|
11 | #prefix=@prefix@ |
---|
12 | exec_prefix=@exec_prefix@ |
---|
13 | includedir=@includedir@ |
---|
14 | libdir=@libdir@ |
---|
15 | |
---|
16 | ECHO="echo" |
---|
17 | ECHOn="printf" |
---|
18 | |
---|
19 | usage() |
---|
20 | { |
---|
21 | cat <<EOF |
---|
22 | Usage: libpolys-config [OPTION] |
---|
23 | |
---|
24 | Known values for OPTION are: |
---|
25 | |
---|
26 | --prefix show libpolys installation prefix |
---|
27 | --libsg print library linking information (with debug) |
---|
28 | --cflagsg print pre-processor and compiler flags (with debug) |
---|
29 | --libs print library linking information |
---|
30 | --cflags print pre-processor and compiler flags |
---|
31 | --help display this help and exit |
---|
32 | --version output version information |
---|
33 | |
---|
34 | EOF |
---|
35 | |
---|
36 | exit $1 |
---|
37 | } |
---|
38 | |
---|
39 | if test $# -eq 0; then |
---|
40 | usage 1 |
---|
41 | fi |
---|
42 | |
---|
43 | cflags=false |
---|
44 | libs=false |
---|
45 | |
---|
46 | while test $# -gt 0; do |
---|
47 | case "$1" in |
---|
48 | -*=*) optarg=`${ECHO} "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
---|
49 | *) optarg= ;; |
---|
50 | esac |
---|
51 | |
---|
52 | case "$1" in |
---|
53 | --prefix=*) |
---|
54 | prefix=$optarg |
---|
55 | ;; |
---|
56 | |
---|
57 | --prefix) |
---|
58 | ${ECHO} $prefix |
---|
59 | ;; |
---|
60 | |
---|
61 | --version) |
---|
62 | ${ECHO} @VERSION@ |
---|
63 | exit 0 |
---|
64 | ;; |
---|
65 | |
---|
66 | --help) |
---|
67 | usage 0 |
---|
68 | ;; |
---|
69 | |
---|
70 | --cflagsg) |
---|
71 | ${ECHOn} " -I${includedir} -I${includedir}/singular @FACTORY_CFLAGS@ @NTL_CFLAGS@ @GMP_CFLAGS@" |
---|
72 | ;; |
---|
73 | |
---|
74 | --cflags) |
---|
75 | ${ECHOn} " -I${includedir} -I${includedir}/singular @FACTORY_CFLAGS@ @NTL_CFLAGS@ @GMP_CFLAGS@ -DNDEBUG -DOM_NDEBUG" |
---|
76 | ;; |
---|
77 | |
---|
78 | --libsg) |
---|
79 | ${ECHOn} " -L${libdir} -L${libdir}/singular -lSingular_g -lnumeric_g -lkernel_g -lpolys_g -lcoeffs_g -lreporter_g -lmisc_g @FACTORY_LIBS@ -lomalloc_g -lresources_g @NTL_LIBS@ @USEPPROCSDYNAMICLD@ @GMP_LIBS@" |
---|
80 | ;; |
---|
81 | |
---|
82 | --libs) |
---|
83 | ${ECHOn} " -L${libdir} -L${libdir}/singular -lSingular -lnumeric -lkernel -lpolys -lcoeffs -lreporter -lmisc @FACTORY_LIBS@ -lomalloc -lresources @NTL_LIBS@ @USEPPROCSDYNAMICLD@ @GMP_LIBS@" |
---|
84 | ;; |
---|
85 | |
---|
86 | *) |
---|
87 | usage |
---|
88 | exit 1 |
---|
89 | ;; |
---|
90 | esac |
---|
91 | shift |
---|
92 | done |
---|
93 | ${ECHO} |
---|
94 | |
---|
95 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.