#!/bin/sh
#*=====================================================================*/
#*    serrano/prgm/project/bigloo/bigloo/autoconf/libtool              */
#*    -------------------------------------------------------------    */
#*    Author      :  Manuel Serrano                                    */
#*    Creation    :  Wed Aug  9 13:27:23 1995                          */
#*    Last change :  Thu Dec 12 08:18:53 2024 (serrano)                */
#*    -------------------------------------------------------------    */
#*    Check for libtooling.                                            */
#*=====================================================================*/

#*---------------------------------------------------------------------*/
#*    libtools                                                         */
#*---------------------------------------------------------------------*/
which libtoolize > /dev/null || which glibtoolize > /dev/null

if [ "$?" = "1" ]; then
  case $HOSTOS in
    darwin)
      echo "*** ERROR: Cannot find libtoolize nor glibtoolize"
      echo "On MacOS X, you can install it with"
      echo "  brew install libtool"
      echo "abort"
      exit 1
      ;;
      
    *)
      echo "*** ERROR: Cannot find libtoolize"
      echo "Generally it is released with the \"libtool\" suite"
      echo "abort"
      exit 1
      ;;
  esac
fi

#*---------------------------------------------------------------------*/
#*    autoconf                                                         */
#*---------------------------------------------------------------------*/
which autoconf > /dev/null

if [ "$?" = "1" ]; then
  echo "*** ERROR: Cannot find \"autoconf\", abort."
  exit 1
fi


