~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to autorun.sh

  • Committer: Brian Aker
  • Date: 2008-06-30 18:52:15 UTC
  • Revision ID: brian@tangent.org-20080630185215-n0fr4k0gk5hk785c
Remove dead position (should be in config/)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
# Create MySQL autotools infrastructure
3
 
 
4
 
die() { echo "$@"; exit 1; }
5
 
 
6
 
# Handle "glibtoolize" (e.g., for native OS X autotools) as another
7
 
# name for "libtoolize". Use the first one, either name, found in PATH.
8
 
LIBTOOLIZE=libtoolize  # Default
9
 
IFS="${IFS=   }"; save_ifs="$IFS"; IFS=':'
10
 
for dir in $PATH
11
 
do
12
 
  if test -x $dir/glibtoolize
13
 
  then
14
 
    LIBTOOLIZE=glibtoolize
15
 
    break
16
 
  elif test -x $dir/libtoolize
17
 
  then
18
 
    break
19
 
  fi
20
 
done
21
 
IFS="$save_ifs"
22
 
 
23
 
aclocal || die "Can't execute aclocal" 
24
 
autoheader || die "Can't execute autoheader"
25
 
# --force means overwrite ltmain.sh script if it already exists 
26
 
$LIBTOOLIZE --automake --force --copy || die "Can't execute libtoolize"
27
 
  
28
 
# --add-missing instructs automake to install missing auxiliary files
29
 
# and --force to overwrite them if they already exist
30
 
automake --add-missing --force  --copy || die "Can't execute automake"
31
 
autoconf || die "Can't execute autoconf"