1
1
#! /bin/bash
2
2
#
3
- # Copyright (c) 2012, 2019 , Oracle and/or its affiliates. All rights reserved.
3
+ # Copyright (c) 2012, 2020 , Oracle and/or its affiliates. All rights reserved.
4
4
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5
5
#
6
6
# This code is free software; you can redistribute it and/or modify it
@@ -49,7 +49,7 @@ export LC_ALL=C
49
49
if test " x$CUSTOM_CONFIG_DIR " ! = x; then
50
50
custom_hook=$CUSTOM_CONFIG_DIR /custom-hook.m4
51
51
if test ! -e $custom_hook ; then
52
- echo " CUSTOM_CONFIG_DIR not pointing to a proper custom config dir."
52
+ echo " CUSTOM_CONFIG_DIR ( $CUSTOM_CONFIG_DIR ) not pointing to a proper custom config dir."
53
53
echo " Error: Cannot continue" 1>&2
54
54
exit 1
55
55
fi
@@ -83,6 +83,7 @@ autoconf_missing_help() {
83
83
BREW=" ` type -p brew 2> /dev/null` "
84
84
ZYPPER=" ` type -p zypper 2> /dev/null` "
85
85
CYGWIN=" ` type -p cygpath 2> /dev/null` "
86
+ UNAMEOUT=" ` uname 2> /dev/null` "
86
87
87
88
if test " x$ZYPPER " ! = x; then
88
89
PKGHANDLER_COMMAND=" sudo zypper install autoconf"
@@ -92,6 +93,8 @@ autoconf_missing_help() {
92
93
PKGHANDLER_COMMAND=" sudo yum install autoconf"
93
94
elif test " x$BREW " ! = x; then
94
95
PKGHANDLER_COMMAND=" brew install autoconf"
96
+ elif test " x$UNAMEOUT " == xAIX; then
97
+ echo " You might be able to fix this by installing autoconf from the 'AIX Toolbox for Linux Applications' (or compile it from the sources)."
95
98
elif test " x$CYGWIN " ! = x; then
96
99
PKGHANDLER_COMMAND=" ( cd <location of cygwin setup.exe> && cmd /c setup -q -P autoconf )"
97
100
fi
@@ -114,7 +117,7 @@ generate_configure_script() {
114
117
AUTOCONF=" ` type -p autoconf 2> /dev/null` "
115
118
if test " x$AUTOCONF " = x; then
116
119
echo
117
- echo " Autoconf is not found on the PATH, and AUTOCONF is not set."
120
+ echo " Autoconf is not found on the PATH ( $PATH ) , and AUTOCONF is not set."
118
121
echo " You need autoconf to be able to generate a runnable configure script."
119
122
autoconf_missing_help
120
123
echo " Error: Cannot find autoconf" 1>&2
0 commit comments