spielwiese
Last change
on this file since 6ce030f was
9f524d,
checked in by Oleksandr Motsak <motsak@…>, 12 years ago
|
reverted library packing with LIBADD
chg: correct _LDADD
chg: no use of LIBADD in libcoeffs & libpolys
chg: install all of libmisc, libreporter, libcoeffs & libpolys
NOTE: coeffs & polys should not pack libmisc & libreporter since it causes usage problems for shared libs from an installed package
|
-
Property mode set to
100755
|
File size:
1.6 KB
|
Rev | Line | |
---|
[584f6b0] | 1 | #! /bin/bash |
---|
| 2 | |
---|
| 3 | prefix=@prefix@ |
---|
| 4 | exec_prefix=@exec_prefix@ |
---|
| 5 | includedir=@includedir@ |
---|
| 6 | libdir=@libdir@ |
---|
| 7 | |
---|
| 8 | ECHO="echo" |
---|
| 9 | ECHOn="printf" |
---|
| 10 | |
---|
| 11 | usage() |
---|
| 12 | { |
---|
| 13 | cat <<EOF |
---|
| 14 | Usage: libpolys-config [OPTION] |
---|
| 15 | |
---|
| 16 | Known values for OPTION are: |
---|
| 17 | |
---|
| 18 | --prefix show libpolys installation prefix |
---|
| 19 | --libsg print library linking information (with debug) |
---|
| 20 | --cflagsg print pre-processor and compiler flags (with debug) |
---|
| 21 | --libs print library linking information |
---|
| 22 | --cflags print pre-processor and compiler flags |
---|
| 23 | --help display this help and exit |
---|
| 24 | --version output version information |
---|
| 25 | |
---|
| 26 | EOF |
---|
| 27 | |
---|
| 28 | exit $1 |
---|
| 29 | } |
---|
| 30 | |
---|
| 31 | if test $# -eq 0; then |
---|
| 32 | usage 1 |
---|
| 33 | fi |
---|
| 34 | |
---|
| 35 | cflags=false |
---|
| 36 | libs=false |
---|
| 37 | |
---|
| 38 | while test $# -gt 0; do |
---|
| 39 | case "$1" in |
---|
| 40 | -*=*) optarg=`${ECHO} "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
---|
| 41 | *) optarg= ;; |
---|
| 42 | esac |
---|
| 43 | |
---|
| 44 | case "$1" in |
---|
| 45 | --prefix=*) |
---|
| 46 | prefix=$optarg |
---|
| 47 | ;; |
---|
| 48 | |
---|
| 49 | --prefix) |
---|
| 50 | ${ECHO} $prefix |
---|
| 51 | ;; |
---|
| 52 | |
---|
| 53 | --version) |
---|
| 54 | ${ECHO} @VERSION@ |
---|
| 55 | exit 0 |
---|
| 56 | ;; |
---|
| 57 | |
---|
| 58 | --help) |
---|
| 59 | usage 0 |
---|
| 60 | ;; |
---|
| 61 | |
---|
| 62 | --cflagsg) |
---|
| 63 | ${ECHOn} " -I${includedir} -I${includedir}/singular @FACTORY_CFLAGS@ @NTL_CFLAGS@ @GMP_CFLAGS@" |
---|
| 64 | ;; |
---|
| 65 | |
---|
| 66 | --cflags) |
---|
| 67 | ${ECHOn} " -I${includedir} -I${includedir}/singular @FACTORY_CFLAGS@ @NTL_CFLAGS@ @GMP_CFLAGS@ -DNDEBUG -DOM_NDEBUG" |
---|
| 68 | ;; |
---|
| 69 | |
---|
| 70 | --libsg) |
---|
[9f524d] | 71 | ${ECHOn} " -L${libdir} -L${libdir}/singular -lSingular_g -lnumeric_g -lkernel_g -lpolys_g -lcoeffs_g -lreporter_g -lmisc_g @FACTORY_LIBS@ -lomalloc_g -lfindexec_g @NTL_LIBS@ @USEPPROCSDYNAMICLD@ @GMP_LIBS@" |
---|
[584f6b0] | 72 | ;; |
---|
| 73 | |
---|
| 74 | --libs) |
---|
[9f524d] | 75 | ${ECHOn} " -L${libdir} -L${libdir}/singular -lSingular -lnumeric -lkernel -lpolys -lcoeffs -lreporter -lmisc @FACTORY_LIBS@ -lomalloc -lfindexec @NTL_LIBS@ @USEPPROCSDYNAMICLD@ @GMP_LIBS@" |
---|
[584f6b0] | 76 | ;; |
---|
| 77 | |
---|
| 78 | *) |
---|
| 79 | usage |
---|
| 80 | exit 1 |
---|
| 81 | ;; |
---|
| 82 | esac |
---|
| 83 | shift |
---|
| 84 | done |
---|
| 85 | ${ECHO} |
---|
| 86 | |
---|
| 87 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.