Changeset 882d5f in git


Ignore:
Timestamp:
Jan 6, 2014, 5:13:38 PM (10 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
17fe09de3facd16159d0da4c0fb5bd476fb4180d
Parents:
934c1d24d97a62c26be02e824450fb11eeb550ea
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2014-01-06 17:13:38+01:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2014-01-06 17:19:38+01:00
Message:
Replaced "readlink -f" with shell code (due to Mac OS X)
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libpolys/libpolys-config.in

    r934c1d r882d5f  
    22
    33C="$0"
    4 C=`readlink -f "$C"`
     4
     5O=`pwd`
     6
     7##C=`readlink -f "$C"`:::
     8cd `dirname "$C"`
     9C=`basename "$C"`
     10
     11# Iterate down a (possible) chain of symlinks
     12while [ -L "$C" ] 
     13do                 
     14    C=`readlink "$C"`
     15    cd `dirname "$C"`
     16    C=`basename "$C"`
     17done
     18
     19cd `dirname "$C"`
     20C=`pwd`
    521C=`dirname "$C"`
    622C=`ls -d1 "$C"`
    723
    8 prefix="$C/../"
     24cd "$O"
    925
    1026# NOTE: if you moved this config please either use the above or
    1127# make sure the following variables are up to date
     28
     29prefix="$C"
     30exec_prefix=${prefix}
     31includedir=${prefix}/include
     32libdir=${exec_prefix}/lib
     33
    1234#prefix=@prefix@
    13 
    14 exec_prefix=@exec_prefix@
    15 includedir=@includedir@
    16 libdir=@libdir@
     35#exec_prefix=@exec_prefix@
     36#includedir=@includedir@
     37#libdir=@libdir@
    1738
    1839ECHO="echo"
     
    2748
    2849  --prefix              show libpolys installation prefix
    29   --libsg               print library linking information (with debug)
    30   --cflagsg             print pre-processor and compiler flags (with debug)
    3150  --libs                print library linking information
    3251  --cflags              print pre-processor and compiler flags
     
    7089        ;;
    7190
    72     --cflagsg)
    73         ${ECHOn} " -I${includedir} -I${includedir}/singular @FACTORY_CFLAGS@ @NTL_CFLAGS@ @GMP_CFLAGS@"
    74         ;;
    75 
    7691    --cflags)
    7792        ${ECHOn} " -I${includedir} -I${includedir}/singular @FACTORY_CFLAGS@ @NTL_CFLAGS@ @GMP_CFLAGS@ -DNDEBUG -DOM_NDEBUG"
    78         ;;
    79 
    80     --libsg)
    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@"
    8293        ;;
    8394
  • libsingular-config.in

    r934c1d r882d5f  
    22
    33C="$0"
    4 C=`readlink -f "$C"`
     4O=`pwd`
     5
     6##C=`readlink -f "$C"`:::
     7cd `dirname "$C"`
     8C=`basename "$C"`
     9
     10# Iterate down a (possible) chain of symlinks
     11while [ -L "$C" ] 
     12do                 
     13    C=`readlink "$C"`
     14    cd `dirname "$C"`
     15    C=`basename "$C"`
     16done
     17
     18cd `dirname "$C"`
     19C=`pwd`
    520C=`dirname "$C"`
    621C=`ls -d1 "$C"`
    722
     23cd "$O"
     24
    825# NOTE: if you moved this config please either use the above or
    926# make sure the following variables are up to date
    10 prefix="$C/../"
     27prefix="$C"
     28exec_prefix=${prefix}
     29includedir=${prefix}/include
     30libdir=${exec_prefix}/lib
     31
    1132#prefix=@prefix@
    12 exec_prefix=@exec_prefix@
    13 includedir=@includedir@
    14 libdir=@libdir@
     33#exec_prefix=@exec_prefix@
     34#includedir=@includedir@
     35#libdir=@libdir@
    1536
    1637ECHO="echo"
     
    2546
    2647  --prefix              show libpolys installation prefix
    27   --libsg               print library linking information (with debug)
    28   --cflagsg             print pre-processor and compiler flags (with debug)
    2948  --libs                print library linking information
    3049  --cflags              print pre-processor and compiler flags
     
    6887        ;;
    6988
    70     --cflagsg)
    71         ${ECHOn} " -I${includedir} -I${includedir}/singular @FACTORY_CFLAGS@ @NTL_CFLAGS@ @GMP_CFLAGS@"
    72         ;;
    73 
    7489    --cflags)
    7590        ${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@"
    8091        ;;
    8192
Note: See TracChangeset for help on using the changeset viewer.