* Code clean-up.
* Made bootstrap work on OS X, by calling glibtoolize instead of libtoolize. git-svn-id: svn://svn.zoy.org/elk/trunk@128 55e467fa-43c5-0310-a8a2-de718669efc6
This commit is contained in:
		
							parent
							
								
									71af4d5e16
								
							
						
					
					
						commit
						9bcdb37dee
					
				
							
								
								
									
										70
									
								
								bootstrap
								
								
								
								
							
							
						
						
									
										70
									
								
								bootstrap
								
								
								
								
							| 
						 | 
				
			
			@ -1,38 +1,51 @@
 | 
			
		|||
#! /bin/sh
 | 
			
		||||
 | 
			
		||||
##  bootstrap file for Elk -- Sam Hocevar <sam@zoy.org>
 | 
			
		||||
##  $Id$
 | 
			
		||||
 | 
			
		||||
set -x
 | 
			
		||||
set -e
 | 
			
		||||
 | 
			
		||||
# Get a sane environment, just in case
 | 
			
		||||
LANG=C
 | 
			
		||||
export LANG
 | 
			
		||||
CYGWIN=binmode
 | 
			
		||||
export CYGWIN
 | 
			
		||||
 | 
			
		||||
# Check for automake
 | 
			
		||||
amvers="none"
 | 
			
		||||
if automake-1.7 --version >/dev/null 2>&1
 | 
			
		||||
then
 | 
			
		||||
amvers="no"
 | 
			
		||||
if automake-1.7 --version >/dev/null 2>&1; then
 | 
			
		||||
  amvers="-1.7"
 | 
			
		||||
else
 | 
			
		||||
  if automake-1.6 --version >/dev/null 2>&1
 | 
			
		||||
  then
 | 
			
		||||
    amvers="-1.6"
 | 
			
		||||
elif automake-1.6 --version >/dev/null 2>&1; then
 | 
			
		||||
  amvers="-1.6"
 | 
			
		||||
elif automake-1.5 --version >/dev/null 2>&1; then
 | 
			
		||||
  amvers="-1.5"
 | 
			
		||||
elif automake --version > /dev/null 2>&1; then
 | 
			
		||||
  amvers="`automake --version | sed -e '1s/[^0-9]*//' -e q`"
 | 
			
		||||
  if expr "$amvers" "<" "1.5" > /dev/null 2>&1; then
 | 
			
		||||
    amvers="no"
 | 
			
		||||
  else
 | 
			
		||||
    if automake-1.5 --version >/dev/null 2>&1
 | 
			
		||||
    then
 | 
			
		||||
      amvers="-1.5"
 | 
			
		||||
    else
 | 
			
		||||
      if automake --version > /dev/null 2>&1
 | 
			
		||||
      then
 | 
			
		||||
        amvers=`automake --version | sed -e '1s/[^0-9]*//' -e q`
 | 
			
		||||
  
 | 
			
		||||
        if expr "$amvers" "<" "1.5" > /dev/null 2>&1
 | 
			
		||||
        then amvers="none"
 | 
			
		||||
        else amvers=""
 | 
			
		||||
        fi        
 | 
			
		||||
      fi
 | 
			
		||||
    fi 
 | 
			
		||||
    amvers=""
 | 
			
		||||
  fi
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if test "$amvers" = "none"
 | 
			
		||||
then
 | 
			
		||||
if test "$amvers" = "no"; then
 | 
			
		||||
  set +x
 | 
			
		||||
  echo "bootstrap: you need automake version 1.5 or later"
 | 
			
		||||
  echo "$0: you need automake version 1.5 or later"
 | 
			
		||||
  exit 1
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
# Check for libtool
 | 
			
		||||
libtoolize="no"
 | 
			
		||||
if libtoolize --version >/dev/null 2>&1; then
 | 
			
		||||
  libtoolize="libtoolize"
 | 
			
		||||
elif glibtoolize --version >/dev/null 2>&1; then
 | 
			
		||||
  libtoolize="glibtoolize"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if test "$libtoolize" = "no"; then
 | 
			
		||||
  set +x
 | 
			
		||||
  echo "$0: you need libtool"
 | 
			
		||||
  exit 1
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -41,7 +54,14 @@ rm -f aclocal.m4 configure config.guess config.log config.sub config.cache confi
 | 
			
		|||
(cd autotools && rm -f config.guess config.sub missing mkinstalldirs compile ltmain.sh depcomp install-sh)
 | 
			
		||||
 | 
			
		||||
aclocal${amvers}
 | 
			
		||||
libtoolize --copy --force
 | 
			
		||||
${libtoolize} --copy --force
 | 
			
		||||
 | 
			
		||||
if test -f "ltmain.sh"; then
 | 
			
		||||
  echo "$0: working around a minor libtool issue"
 | 
			
		||||
  mv ltmain.sh autotools/
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
autoconf
 | 
			
		||||
autoheader
 | 
			
		||||
automake${amvers} --add-missing --copy
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue