]>
Commit | Line | Data |
---|---|---|
6599da04 JM |
1 | dnl aclocal.m4 generated automatically by aclocal 1.2 |
2 | ||
3 | # Check to see if we're running under Cygwin32, without using | |
4 | # AC_CANONICAL_*. If so, set output variable CYGWIN32 to "yes". | |
5 | # Otherwise set it to "no". | |
6 | ||
7 | dnl AM_CYGWIN32() | |
8 | AC_DEFUN(AM_CYGWIN32, | |
9 | [AC_CACHE_CHECK(for Cygwin32 environment, am_cv_cygwin32, | |
10 | [AC_TRY_COMPILE(,[int main () { return __CYGWIN32__; }], | |
11 | am_cv_cygwin32=yes, am_cv_cygwin32=no) | |
12 | rm -f conftest*]) | |
13 | CYGWIN32= | |
14 | test "$am_cv_cygwin32" = yes && CYGWIN32=yes]) | |
15 | ||
16 | # Check to see if we're running under Win32, without using | |
17 | # AC_CANONICAL_*. If so, set output variable EXEEXT to ".exe". | |
18 | # Otherwise set it to "". | |
19 | ||
20 | dnl AM_EXEEXT() | |
21 | dnl This knows we add .exe if we're building in the Cygwin32 | |
22 | dnl environment. But if we're not, then it compiles a test program | |
23 | dnl to see if there is a suffix for executables. | |
24 | AC_DEFUN(AM_EXEEXT, | |
25 | dnl AC_REQUIRE([AC_PROG_CC])AC_REQUIRE([AM_CYGWIN32]) | |
26 | AC_MSG_CHECKING([for executable suffix]) | |
27 | [AC_CACHE_VAL(am_cv_exeext, | |
28 | [if test "$CYGWIN32" = yes; then | |
29 | am_cv_exeext=.exe | |
30 | else | |
31 | cat > am_c_test.c << 'EOF' | |
32 | int main() { | |
33 | /* Nothing needed here */ | |
34 | } | |
35 | EOF | |
36 | ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5 | |
37 | am_cv_exeext=`ls am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//` | |
38 | rm -f am_c_test*]) | |
39 | test x"${am_cv_exeext}" = x && am_cv_exeext=no | |
40 | fi | |
41 | EXEEXT="" | |
42 | test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext} | |
43 | AC_MSG_RESULT(${am_cv_exeext}) | |
44 | AC_SUBST(EXEEXT)]) | |
45 | ||
999087f6 JL |
46 | AC_DEFUN(EGCS_PROG_INSTALL, |
47 | [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl | |
48 | # Find a good install program. We prefer a C program (faster), | |
49 | # so one script is as good as another. But avoid the broken or | |
50 | # incompatible versions: | |
51 | # SysV /etc/install, /usr/sbin/install | |
52 | # SunOS /usr/etc/install | |
53 | # IRIX /sbin/install | |
54 | # AIX /bin/install | |
55 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
56 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
57 | # ./install, which can be erroneously created by make from ./install.sh. | |
58 | AC_MSG_CHECKING(for a BSD compatible install) | |
59 | if test -z "$INSTALL"; then | |
60 | AC_CACHE_VAL(ac_cv_path_install, | |
61 | [ IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" | |
62 | for ac_dir in $PATH; do | |
63 | # Account for people who put trailing slashes in PATH elements. | |
64 | case "$ac_dir/" in | |
65 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
66 | *) | |
67 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
68 | for ac_prog in ginstall scoinst install; do | |
69 | if test -f $ac_dir/$ac_prog; then | |
70 | if test $ac_prog = install && | |
71 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
72 | # AIX install. It has an incompatible calling convention. | |
73 | # OSF/1 installbsd also uses dspmsg, but is usable. | |
74 | : | |
75 | else | |
76 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
77 | break 2 | |
78 | fi | |
79 | fi | |
80 | done | |
81 | ;; | |
82 | esac | |
83 | done | |
84 | IFS="$ac_save_IFS" | |
85 | ])dnl | |
86 | if test "${ac_cv_path_install+set}" = set; then | |
87 | INSTALL="$ac_cv_path_install" | |
88 | else | |
89 | # As a last resort, use the slow shell script. We don't cache a | |
90 | # path for INSTALL within a source directory, because that will | |
91 | # break other packages using the cache if that directory is | |
92 | # removed, or if the path is relative. | |
93 | INSTALL="$ac_install_sh" | |
94 | fi | |
95 | fi | |
96 | dnl We do special magic for INSTALL instead of AC_SUBST, to get | |
97 | dnl relative paths right. | |
98 | AC_MSG_RESULT($INSTALL) | |
99 | ||
100 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
101 | # It thinks the first close brace ends the variable substitution. | |
102 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
103 | AC_SUBST(INSTALL_PROGRAM)dnl | |
104 | ||
105 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
106 | AC_SUBST(INSTALL_DATA)dnl | |
107 | ]) |