Changeset 241 for trunk


Ignore:
Timestamp:
Mar 6, 2007 11:03:41 AM (13 years ago)
Author:
andreasw
Message:

use test -r to check for existence of libtool script, not AC_CHECK_FILE since that does not work for cross compilation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/coin.m4

    r237 r241  
    16401640AC_COIN_INIT_AUTOMAKE
    16411641
    1642 unset ac_cv_file__________libtool
    1643 unset ac_cv_file_______libtool
    1644 unset ac_cv_file____libtool
    1645 
    16461642LIBTOOL=
    1647 AC_CHECK_FILE([../libtool],
    1648               [coin_config_dir=..
    1649                LIBTOOL='$(SHELL) $(top_builddir)/../libtool'])
     1643if test -r ../libtool; then
     1644  coin_config_dir=..
     1645  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
     1646fi
    16501647if test "x$LIBTOOL" = x; then
    1651   AC_CHECK_FILE([../../libtool],
    1652                 [coin_config_dir=../..
    1653                  LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'])
    1654 fi
    1655 # if test "x$LIBTOOL" = x; then
    1656 #   AC_CHECK_FILE([../../../libtool],
    1657 #                 [coin_config_dir=../../..
    1658 #                  LIBTOOL='$(SHELL) $(top_builddir)/../../../libtool'])
    1659 # fi
     1648  if test -r ../../libtool; then
     1649    coin_config_dir=../..
     1650    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
     1651  fi
     1652fi
    16601653
    16611654if test "x$LIBTOOL" = x; then
Note: See TracChangeset for help on using the changeset viewer.