Ignore:
Timestamp:
Jul 29, 2008, 1:01:05 AM (12 years ago)
Author:
Sam Hocevar
Message:
  • bootstrap: update bootstrapping script.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/bootstrap

    r2227 r2599  
    11#! /bin/sh
    2 # $Id: bootstrap 1966 2008-02-17 08:29:51Z sam $
     2# $Id: bootstrap 2005 2008-07-16 20:51:50Z sam $
    33
    44# bootstrap: generic bootstrap/autogen.sh script for autotools projects
     
    3030# Check for needed features
    3131auxdir="`sed -ne 's/^[ \t]*A._CONFIG_AUX_DIR *([[ ]*\([^] )]*\).*/\1/p' $conffile`"
    32 libtool="`grep -q '^[ \t]*A._PROG_LIBTOOL' $conffile && echo yes || echo no`"
    33 header="`grep -q '^[ \t]*A._CONFIG_HEADER' $conffile && echo yes || echo no`"
    34 aclocalflags="`sed -ne 's/^[ \t]*ACLOCAL_AMFLAGS[ \t]*=//p' Makefile.am`"
     32libtool="`grep '^[ \t]*A._PROG_LIBTOOL' $conffile >/dev/null 2>&1 && echo yes || echo no`"
     33header="`grep '^[ \t]*A._CONFIG_HEADER' $conffile >/dev/null 2>&1 && echo yes || echo no`"
     34makefile="`[ -f Makefile.am ] && echo yes || echo no`"
     35aclocalflags="`sed -ne 's/^[ \t]*ACLOCAL_AMFLAGS[ \t]*=//p' Makefile.am 2>/dev/null || :`"
    3536
    3637# Check for automake
     
    121122  autoheader${acvers}
    122123fi
    123 #add --include-deps if you want to bootstrap with any other compiler than gcc
    124 #automake${amvers} --add-missing --copy --include-deps
    125 automake${amvers} --foreign --add-missing --copy
     124if test "$makefile" = "yes"; then
     125  #add --include-deps if you want to bootstrap with any other compiler than gcc
     126  #automake${amvers} --add-missing --copy --include-deps
     127  automake${amvers} --foreign --add-missing --copy
     128fi
    126129
    127130# Remove cruft that we no longer want
Note: See TracChangeset for help on using the changeset viewer.