~schuster/mysql-proxy/remove_unix_socket

1 by jkneschke
initial import of the mysql-proxy sources
1
#!/bin/sh
1035 by Kay Roepke
add missing license tags
2
# $%BEGINLICENSE%$
3
# $%ENDLICENSE%$
4
1 by jkneschke
initial import of the mysql-proxy sources
5
# Run this to generate all the initial makefiles, etc.
6
7
# LIBTOOLIZE=${LIBTOOLIZE:-libtoolize}
8
LIBTOOLIZE_FLAGS="--copy --force"
9
# ACLOCAL=${ACLOCAL:-aclocal}
10
# AUTOHEADER=${AUTOHEADER:-autoheader}
11
# AUTOMAKE=${AUTOMAKE:-automake}
12
AUTOMAKE_FLAGS="--add-missing --copy"
13
# AUTOCONF=${AUTOCONF:-autoconf}
14
15
ARGV0=$0
16
ARGS="$@"
17
18
19
run() {
20
	echo "$ARGV0: running \`$@' $ARGS"
21
	$@ $ARGS
22
}
23
24
## jump out if one of the programs returns 'false'
25
set -e
26
27
## on macosx glibtoolize, others have libtool
28
if test x$LIBTOOLIZE = x; then
110 by jkneschke
fixed file-check on MaxOSX
29
  if test \! "x`which glibtoolize 2> /dev/null | grep -v '^no'`" = x; then
1 by jkneschke
initial import of the mysql-proxy sources
30
    LIBTOOLIZE=glibtoolize
110 by jkneschke
fixed file-check on MaxOSX
31
  elif test \! "x`which libtoolize 2> /dev/null | grep -v '^no'`" = x; then
1 by jkneschke
initial import of the mysql-proxy sources
32
    LIBTOOLIZE=libtoolize
33
  else 
960 by jan at mysql
remove all the version suffixes. Let the user figure it out, we can't
34
    echo "libtoolize wasn't found, try setting LIBTOOLIZE={path-to-libtool}."; exit 0
1 by jkneschke
initial import of the mysql-proxy sources
35
  fi
36
fi
37
38
if test x$ACLOCAL = x; then
960 by jan at mysql
remove all the version suffixes. Let the user figure it out, we can't
39
  if test \! "x`which aclocal 2> /dev/null | grep -v '^no'`" = x; then
1 by jkneschke
initial import of the mysql-proxy sources
40
    ACLOCAL=aclocal
41
  else 
960 by jan at mysql
remove all the version suffixes. Let the user figure it out, we can't
42
    echo "aclocal 1.10+ wasn't found, try setting ACLOCAL={path-to-aclocal}."; exit 0
1 by jkneschke
initial import of the mysql-proxy sources
43
  fi
44
fi
45
46
if test x$AUTOMAKE = x; then
960 by jan at mysql
remove all the version suffixes. Let the user figure it out, we can't
47
  if test \! "x`which automake 2> /dev/null | grep -v '^no'`" = x; then
1 by jkneschke
initial import of the mysql-proxy sources
48
    AUTOMAKE=automake
49
  else 
960 by jan at mysql
remove all the version suffixes. Let the user figure it out, we can't
50
    echo "automake 1.10+ wasn't found, try setting AUTOMAKE={path-to-automake}."; exit 0
1 by jkneschke
initial import of the mysql-proxy sources
51
  fi
52
fi
53
54
55
if test x$AUTOCONF = x; then
960 by jan at mysql
remove all the version suffixes. Let the user figure it out, we can't
56
  if test \! "x`which autoconf 2> /dev/null | grep -v '^no'`" = x; then
1 by jkneschke
initial import of the mysql-proxy sources
57
    AUTOCONF=autoconf
58
  else 
960 by jan at mysql
remove all the version suffixes. Let the user figure it out, we can't
59
    echo "autoconf 2.62+ wasn't found, try setting AUTOCONF={path-to-autoconf}."; exit 0
1 by jkneschke
initial import of the mysql-proxy sources
60
  fi
61
fi
62
63
if test x$AUTOHEADER = x; then
960 by jan at mysql
remove all the version suffixes. Let the user figure it out, we can't
64
  if test \! "x`which autoheader 2> /dev/null | grep -v '^no'`" = x; then
1 by jkneschke
initial import of the mysql-proxy sources
65
    AUTOHEADER=autoheader
66
  else 
960 by jan at mysql
remove all the version suffixes. Let the user figure it out, we can't
67
    echo "autoheader 2.62+ (autoheader) wasn't found, try setting AUTOHEADER={path-to-autoheader}."; exit 0
1 by jkneschke
initial import of the mysql-proxy sources
68
  fi
69
fi
70
71
54 by jkneschke
added LuaFileSystem to the normal test-builds
72
run $LIBTOOLIZE $LIBTOOLIZE_FLAGS
197 by jkneschke
add the check.m4 to the distribution
73
run $ACLOCAL $ACLOCAL_FLAGS -I m4
1 by jkneschke
initial import of the mysql-proxy sources
74
run $AUTOHEADER
75
run $AUTOMAKE $AUTOMAKE_FLAGS
76
run $AUTOCONF
182 by jkneschke
encourage trunk/ users to add --enable-maintainer-mode
77
test "$ARGS" = "" && echo "Now type './configure --enable-maintainer-mode ...' and 'make' to compile."
1 by jkneschke
initial import of the mysql-proxy sources
78