2
# Generated from ga-config.in.m4sh by GNU Autoconf 2.69.
3
## -------------------- ##
4
## M4sh Initialization. ##
5
## -------------------- ##
7
# Be more Bourne compatible
8
DUALCASE=1; export DUALCASE # for MKS sh
9
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13
# is contrary to our usage. Disable this feature.
14
alias -g '${1+"$@"}'='"$@"'
17
case `(set -o) 2>/dev/null` in #(
29
# Printing a long string crashes Solaris 7 /usr/bin/printf.
30
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
33
# Prefer a ksh shell builtin over an external printf program on Solaris,
34
# but without wasting forks for bash or zsh.
35
if test -z "$BASH_VERSION$ZSH_VERSION" \
36
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
38
as_echo_n='print -rn --'
39
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
43
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
44
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
45
as_echo_n='/usr/ucb/echo -n'
47
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
52
expr "X$arg" : "X\\(.*\\)$as_nl";
53
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
55
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
58
as_echo_n='sh -c $as_echo_n_body as_echo'
61
as_echo='sh -c $as_echo_body as_echo'
64
# The user is always right.
65
if test "${PATH_SEPARATOR+set}" != set; then
67
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
68
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
75
# We need space, tab and new line, in precisely that order. Quoting is
76
# there to prevent editors from complaining about space-tab.
77
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
78
# splitting by setting IFS to empty value.)
81
# Find who we are. Look in the path if we contain no directory separator.
84
*[\\/]* ) as_myself=$0 ;;
85
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
89
test -z "$as_dir" && as_dir=.
90
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
96
# We did not find ourselves, most probably we were run as `sh COMMAND'
97
# in which case we are not to be found in the path.
98
if test "x$as_myself" = x; then
101
if test ! -f "$as_myself"; then
102
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
106
# Unset variables that we do not need and which cause bugs (e.g. in
107
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
108
# suppresses any "Segmentation fault" message there. '((' could
109
# trigger a bug in pdksh 5.2.14.
110
for as_var in BASH_ENV ENV MAIL MAILPATH
111
do eval test x\${$as_var+set} = xset \
112
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
127
if test "x$CONFIG_SHELL" = x; then
128
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
131
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
132
# is contrary to our usage. Disable this feature.
133
alias -g '\${1+\"\$@\"}'='\"\$@\"'
136
case \`(set -o) 2>/dev/null\` in #(
144
as_required="as_fn_return () { (exit \$1); }
145
as_fn_success () { as_fn_return 0; }
146
as_fn_failure () { as_fn_return 1; }
147
as_fn_ret_success () { return 0; }
148
as_fn_ret_failure () { return 1; }
151
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
152
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
153
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
154
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
155
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
158
exitcode=1; echo positional parameters were not saved.
160
test x\$exitcode = x0 || exit 1
163
if (eval "$as_required") 2>/dev/null; then :
168
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
171
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
173
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
176
test -z "$as_dir" && as_dir=.
180
for as_base in sh bash ksh sh5; do
181
# Try only shells that exist, to save several forks.
182
as_shell=$as_dir/$as_base
183
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
184
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
185
CONFIG_SHELL=$as_shell as_have_required=yes
192
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
193
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
194
CONFIG_SHELL=$SHELL as_have_required=yes
199
if test "x$CONFIG_SHELL" != x; then :
201
# We cannot yet assume a decent shell, so we have to provide a
202
# neutralization value for shells without unset; and this also
203
# works around shells that cannot unset nonexistent variables.
204
# Preserve -v and -x to the replacement shell.
207
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
209
*v*x* | *x*v* ) as_opts=-vx ;;
214
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
215
# Admittedly, this is quite paranoid, since all the known shells bail
216
# out after a failed `exec'.
217
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
221
if test x$as_have_required = xno; then :
222
$as_echo "$0: This script requires a shell more modern than all"
223
$as_echo "$0: the shells that I found on your system."
224
if test x${ZSH_VERSION+set} = xset ; then
225
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
226
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
228
$as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
229
$0: including any error possibly output before this
230
$0: message. Then install a modern shell, or manually run
231
$0: the script under such a shell if you do have one."
237
SHELL=${CONFIG_SHELL-/bin/sh}
239
# Unset more variables known to interfere with behavior of common tools.
240
CLICOLOR_FORCE= GREP_OPTIONS=
241
unset CLICOLOR_FORCE GREP_OPTIONS
243
## --------------------- ##
244
## M4sh Shell Functions. ##
245
## --------------------- ##
248
# Portably unset VAR.
251
{ eval $1=; unset $1;}
254
## -------------------- ##
255
## Main body of script. ##
256
## -------------------- ##
261
cppflags="@SCALAPACK_CPPFLAGS@ @LAPACK_CPPFLAGS@ @BLAS_CPPFLAGS@ @GA_MP_CPPFLAGS@ @ARMCI_NETWORK_CPPFLAGS@ -I@prefix@/include"
263
fflags="@GA_FOPT@ @FFLAG_INT@"
265
ldflags="@SCALAPACK_LDFLAGS@ @LAPACK_LDFLAGS@ @BLAS_LDFLAGS@ @GA_MP_LDFLAGS@ @ARMCI_NETWORK_LDFLAGS@ -L@prefix@/lib"
266
libs="-lga @SCALAPACK_LIBS@ @LAPACK_LIBS@ @BLAS_LIBS@ -larmci @GA_MP_LIBS@ @ARMCI_NETWORK_LIBS@"
268
enable_f77_true="@ENABLE_F77_TRUE@"
269
version="@PACKAGE_VERSION@"
271
if test "x$enable_f77_true" = x; then :
277
usage="Usage: ga-config [OPTIONS]...
279
With the exception of --version and --help, all other options can be combined
280
or run exclusively. Output is echoed to stdout.
304
ac_option=`expr "X$1" : 'X\(^=*\)='`
305
ac_optarg=`expr "X$1" : 'X^=*=\(.*\)'`
309
ac_option=`expr "X$1" : 'X\(^=*\)='`
321
# Handling of the options.
322
-help | --help | --hel | --he | -h )
323
$as_echo "$usage"; exit ;;
324
-version | --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
325
$as_echo "$version"; exit ;;
327
result="$result $f77" ;;
329
result="$result $cc" ;;
330
-cppflags | --cppflags )
331
result="$result $cppflags" ;;
333
result="$result $cflags" ;;
335
result="$result $fflags" ;;
336
-ldflags | --ldflags )
337
result="$result $ldflags" ;;
339
result="$result $libs" ;;
341
result="$result $flibs" ;;
343
result="$result $fint" ;;
344
-enable-f77 | --enable-f77 )
345
result="$result $enable_f77" ;;
347
*) $as_echo "unrecognized option: \`$1'
348
Try \`$0 --help' for more information."; exit ;;
353
$as_echo "$result" | sed 's/ */ /g;s/" /"/g;s/ "/"/g;s/^ *//;s/ *$//'