Changeset 179c93c in git


Ignore:
Timestamp:
Jun 23, 2010, 6:25:11 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'f875bbaccd0831e36aaed09ff6adeb3eb45aeb94')
Children:
3dd95fe746d4a9c7dcc1b74be0bc35bcb067336c
Parents:
0e4b5fe179e816e354295fde482d1b250688e92b
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2010-06-23 18:25:11+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 11:55:18+01:00
Message:
test for windows(cygwin), setting LIBPREFIX
Location:
coeffs
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • coeffs/Makefile.in

    r0e4b5f r179c93c  
    3434CXXFLAGS        = -O3 -w -fomit-frame-pointer --no-rtti ${PIPE} -g
    3535CXXTEMPLFLAGS   = -fno-implicit-templates --no-exceptions
    36 CPPFLAGS        = -I${srcdir} -I${includedir} -I${srcdir}/../misc/ -I${srcdir}/../resource/ -I${srcdir}/../reporter/ -L${srcdir}/../reporter/ -L${libdir} -lgmp
     36CPPFLAGS        = -I${srcdir} -I${includedir}
     37LDFLAGS         = -L${libdir}
    3738DEFS            = -DNDEBUG -DOM_NDEBUG @DEFS@
     39
     40LIBS            =  @LIBPREFIX@ -lgmp -lomalloc_g -lreporter
    3841
    3942#-DHAVE_RINGS
     
    117120
    118121test: test.cc libcoeffs_g.a
    119         ${CXXG} ${CXXFLAGSG} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFSG} test.cc -L. -I. -lcoeffs_g -o test -lomalloc -lreporter
     122        ${CXXG} ${CXXFLAGSG} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFSG} test.cc $LDFLAGS} ${LIBSG} -o test
  • coeffs/configure

    r0e4b5f r179c93c  
    596596
    597597ac_subst_vars='LTLIBOBJS
     598LIBPREFIX
    598599LIBOBJS
    599600EGREP
     
    614615CXXFLAGS
    615616CXX
     617host_os
     618host_vendor
     619host_cpu
     620host
     621build_os
     622build_vendor
     623build_cpu
     624build
    616625target_alias
    617626host_alias
     
    12661275
    12671276  cat <<\_ACEOF
     1277
     1278System types:
     1279  --build=BUILD     configure for building on BUILD [guessed]
     1280  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
    12681281_ACEOF
    12691282fi
     
    21672180
    21682181
     2182#check for host:
     2183ac_aux_dir=
     2184for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
     2185  for ac_t in install-sh install.sh shtool; do
     2186    if test -f "$ac_dir/$ac_t"; then
     2187      ac_aux_dir=$ac_dir
     2188      ac_install_sh="$ac_aux_dir/$ac_t -c"
     2189      break 2
     2190    fi
     2191  done
     2192done
     2193if test -z "$ac_aux_dir"; then
     2194  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
     2195fi
     2196
     2197# These three variables are undocumented and unsupported,
     2198# and are intended to be withdrawn in a future Autoconf release.
     2199# They can cause serious problems if a builder's source tree is in a directory
     2200# whose full name contains unusual characters.
     2201ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
     2202ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
     2203ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
     2204
     2205
     2206# Make sure we can run config.sub.
     2207$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
     2208  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
     2209
     2210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
     2211$as_echo_n "checking build system type... " >&6; }
     2212if test "${ac_cv_build+set}" = set; then :
     2213  $as_echo_n "(cached) " >&6
     2214else
     2215  ac_build_alias=$build_alias
     2216test "x$ac_build_alias" = x &&
     2217  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
     2218test "x$ac_build_alias" = x &&
     2219  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
     2220ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
     2221  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
     2222
     2223fi
     2224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
     2225$as_echo "$ac_cv_build" >&6; }
     2226case $ac_cv_build in
     2227*-*-*) ;;
     2228*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
     2229esac
     2230build=$ac_cv_build
     2231ac_save_IFS=$IFS; IFS='-'
     2232set x $ac_cv_build
     2233shift
     2234build_cpu=$1
     2235build_vendor=$2
     2236shift; shift
     2237# Remember, the first character of IFS is used to create $*,
     2238# except with old shells:
     2239build_os=$*
     2240IFS=$ac_save_IFS
     2241case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
     2242
     2243
     2244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
     2245$as_echo_n "checking host system type... " >&6; }
     2246if test "${ac_cv_host+set}" = set; then :
     2247  $as_echo_n "(cached) " >&6
     2248else
     2249  if test "x$host_alias" = x; then
     2250  ac_cv_host=$ac_cv_build
     2251else
     2252  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
     2253    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
     2254fi
     2255
     2256fi
     2257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
     2258$as_echo "$ac_cv_host" >&6; }
     2259case $ac_cv_host in
     2260*-*-*) ;;
     2261*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
     2262esac
     2263host=$ac_cv_host
     2264ac_save_IFS=$IFS; IFS='-'
     2265set x $ac_cv_host
     2266shift
     2267host_cpu=$1
     2268host_vendor=$2
     2269shift; shift
     2270# Remember, the first character of IFS is used to create $*,
     2271# except with old shells:
     2272host_os=$*
     2273IFS=$ac_save_IFS
     2274case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
     2275
     2276
     2277case $host_os in
     2278  *cygwin* ) LIBPREFIX="-Xlinker -Bdynamic";;
     2279  * ) LIBPREFIX="";;
     2280esac
     2281
     2282
     2283
    21692284# Checks for programs.
    21702285ac_ext=cpp
     
    32263341$as_echo "no, using $LN_S" >&6; }
    32273342fi
    3228 
    3229 ac_aux_dir=
    3230 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
    3231   for ac_t in install-sh install.sh shtool; do
    3232     if test -f "$ac_dir/$ac_t"; then
    3233       ac_aux_dir=$ac_dir
    3234       ac_install_sh="$ac_aux_dir/$ac_t -c"
    3235       break 2
    3236     fi
    3237   done
    3238 done
    3239 if test -z "$ac_aux_dir"; then
    3240   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
    3241 fi
    3242 
    3243 # These three variables are undocumented and unsupported,
    3244 # and are intended to be withdrawn in a future Autoconf release.
    3245 # They can cause serious problems if a builder's source tree is in a directory
    3246 # whose full name contains unusual characters.
    3247 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
    3248 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
    3249 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
    3250 
    32513343
    32523344# Find a good install program.  We prefer a C program (faster),
     
    39744066fi
    39754067done
     4068
     4069
    39764070
    39774071
  • coeffs/configure.ac

    r0e4b5f r179c93c  
    66AC_CONFIG_SRCDIR([rmodulon.h])
    77AC_CONFIG_HEADERS([config.h])
     8
     9#check for host:
     10AC_CANONICAL_HOST
     11case $host_os in
     12  *cygwin* ) LIBPREFIX="-Xlinker -Bdynamic";;
     13  * ) LIBPREFIX="";;
     14esac
     15
     16
    817
    918# Checks for programs.
     
    2736AC_CHECK_FUNCS([memmove memset pow sqrt strchr])
    2837
     38AC_SUBST(LIBPREFIX)
     39
    2940AC_CONFIG_FILES([Makefile])
    3041AC_OUTPUT
Note: See TracChangeset for help on using the changeset viewer.