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