Changeset 1058


Ignore:
Timestamp:
Jun 23, 2008, 2:13:23 PM (16 years ago)
Author:
gah
Message:
 
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r1057 r1058  
    722722INSTALL_LIB
    723723INSTALL_STUB_LIB
     724MAKE
    724725ENABLE_GUI
    725726TCLSH
     
    756757with_tclsh
    757758with_matlab
    758 with_matlab_arch
    759 with_mexext
    760759with_octave
    761760with_perl
     
    14151414  --with-tclsh=DIR        location of tclsh [default=check]
    14161415  --with-matlab=DIR       location of matlab and mex compiler [default=check]
    1417   --with-matlab-arch=ARCH build Matlab bindings for ARCH architecture
    1418                           [default=check]
    1419   --with-mexext=ARCH      fallback extension for building mex files
    1420                           [default=check]
    14211416  --with-octave=DIR       location of octave compiler MKOCTFILE
    14221417                          [default=check]
     
    84588453
    84598454
     8455make_command=""
     8456for m in "$MAKE" make gmake gnumake ; do
     8457  if test "x${m}" != "x" ; then
     8458    if  ( sh -c "$m --version" 2>/dev/null | grep GNU >/dev/null ) ; then
     8459      make_command=$m; break;
     8460    fi
     8461  fi
     8462done
     8463if test "x${make_command}" = "x" ; then
     8464  { { $as_echo "$as_me:$LINENO: error: Requires GNU make. You can specify a version with \$MAKE" >&5
     8465$as_echo "$as_me: error: Requires GNU make. You can specify a version with \$MAKE" >&2;}
     8466   { (exit 1); exit 1; }; }
     8467fi
     8468MAKE=${make_command}
     8469
     8470
    84608471# Check whether --enable-gui was given.
    84618472if test "${enable_gui+set}" = set; then
     
    85468557
    85478558
    8548 
    85498559# Check whether --with-matlab was given.
    85508560if test "${with_matlab+set}" = set; then
    8551   withval=$with_matlab;
    8552 else
    8553   with_matlab=check
    8554 fi
    8555 
    8556 
    8557 
    8558 # Check whether --with-matlab_arch was given.
    8559 if test "${with_matlab_arch+set}" = set; then
    8560   withval=$with_matlab_arch;
    8561 else
    8562   with_matlab_arch=check
    8563 fi
    8564 
    8565 
    8566 
    8567 # Check whether --with-mexext was given.
    8568 if test "${with_mexext+set}" = set; then
    8569   withval=$with_mexext;
    8570 else
    8571   with_mexext=check
     8561  withval=$with_matlab; with_matlab=$withval
     8562else
     8563  with_matlab=yes
    85728564fi
    85738565
     
    86438635# Check whether --with-octave was given.
    86448636if test "${with_octave+set}" = set; then
    8645   withval=$with_octave;
    8646 else
    8647   with_octave=check
     8637  withval=$with_octave; with_octave=$withval
     8638else
     8639  with_octave=yes
    86488640fi
    86498641
  • trunk/configure.in

    r1057 r1058  
    4949
    5050SC_CONFIG_CFLAGS
     51
     52make_command=""
     53for m in "$MAKE" make gmake gnumake ; do
     54  if test "x${m}" != "x" ; then
     55    if  ( sh -c "$m --version" 2>/dev/null | grep GNU >/dev/null ) ; then
     56      make_command=$m; break;
     57    fi
     58  fi
     59done
     60if test "x${make_command}" = "x" ; then
     61  AC_ERROR([Requires GNU make. You can specify a version with \$MAKE])
     62fi
     63AC_SUBST(MAKE, ${make_command})
    5164
    5265AC_ARG_ENABLE(
     
    100113
    101114
    102 dnl AC_ARG_ENABLE (
    103 dnl     [matlab],
    104 dnl     [AS_HELP_STRING([--enable-matlab], [build matlab bindings @<:@default=check@:>@])],
    105 dnl     [],
    106 dnl     [enable_matlab=check])
    107 dnl BUILD_MATLAB=yes
    108 dnl AC_SUBST(BUILD_MATLAB)
    109 
    110115AC_ARG_WITH(
    111116    [matlab],
    112117    [AS_HELP_STRING([--with-matlab[=DIR]],
    113118        [location of matlab and mex compiler @<:@default=check@:>@])],
    114     [],
    115     [with_matlab=check])
    116 
    117 AC_ARG_WITH(
    118     [matlab_arch],
    119     [AS_HELP_STRING([--with-matlab-arch[=ARCH]],
    120         [build Matlab bindings for ARCH architecture @<:@default=check@:>@])],
    121     [],
    122     [with_matlab_arch=check])
    123 
    124 AC_ARG_WITH(
    125     [mexext],
    126     [AS_HELP_STRING([--with-mexext[=ARCH]],
    127         [fallback extension for building mex files @<:@default=check@:>@])],
    128     [],
    129     [with_mexext=check])
     119    [with_matlab=$withval],
     120    [with_matlab=yes])
    130121
    131122MEX=""
     
    157148    [AS_HELP_STRING([--with-octave[=DIR]],
    158149        [location of octave compiler MKOCTFILE @<:@default=check@:>@])],
    159     [],
    160     [with_octave=check])
     150    [with_octave=$withval],
     151    [with_octave=yes])
    161152
    162153MKOCTFILE=
Note: See TracChangeset for help on using the changeset viewer.