~ubuntu-branches/ubuntu/trusty/nwchem/trusty-proposed

« back to all changes in this revision

Viewing changes to src/tools/ga-5-1/tascel/configure

  • Committer: Package Import Robot
  • Author(s): Michael Banck, Daniel Leidert, Andreas Tille, Michael Banck
  • Date: 2013-07-04 12:14:55 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20130704121455-5tvsx2qabor3nrui
Tags: 6.3-1
* New upstream release.
* Fixes anisotropic properties (Closes: #696361).
* New features include:
  + Multi-reference coupled cluster (MRCC) approaches
  + Hybrid DFT calculations with short-range HF 
  + New density-functionals including Minnesota (M08, M11) and HSE hybrid
    functionals
  + X-ray absorption spectroscopy (XAS) with TDDFT
  + Analytical gradients for the COSMO solvation model
  + Transition densities from TDDFT 
  + DFT+U and Electron-Transfer (ET) methods for plane wave calculations
  + Exploitation of space group symmetry in plane wave geometry optimizations
  + Local density of states (LDOS) collective variable added to Metadynamics
  + Various new XC functionals added for plane wave calculations, including
    hybrid and range-corrected ones
  + Electric field gradients with relativistic corrections 
  + Nudged Elastic Band optimization method
  + Updated basis sets and ECPs 

[ Daniel Leidert ]
* debian/watch: Fixed.

[ Andreas Tille ]
* debian/upstream: References

[ Michael Banck ]
* debian/upstream (Name): New field.
* debian/patches/02_makefile_flags.patch: Refreshed.
* debian/patches/06_statfs_kfreebsd.patch: Likewise.
* debian/patches/07_ga_target_force_linux.patch: Likewise.
* debian/patches/05_avoid_inline_assembler.patch: Removed, no longer needed.
* debian/patches/09_backported_6.1.1_fixes.patch: Likewise.
* debian/control (Build-Depends): Added gfortran-4.7 and gcc-4.7.
* debian/patches/10_force_gcc-4.7.patch: New patch, explicitly sets
  gfortran-4.7 and gcc-4.7, fixes test suite hang with gcc-4.8 (Closes:
  #701328, #713262).
* debian/testsuite: Added tests for COSMO analytical gradients and MRCC.
* debian/rules (MRCC_METHODS): New variable, required to enable MRCC methods.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh
2
 
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.68 for Task Scheduling Library (tascel) 0.0.1.
4
 
#
5
 
# Report bugs to <hpctools@pnl.gov>.
6
 
#
7
 
#
8
 
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9
 
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10
 
# Foundation, Inc.
11
 
#
12
 
#
13
 
# This configure script is free software; the Free Software Foundation
14
 
# gives unlimited permission to copy, distribute and modify it.
15
 
## -------------------- ##
16
 
## M4sh Initialization. ##
17
 
## -------------------- ##
18
 
 
19
 
# Be more Bourne compatible
20
 
DUALCASE=1; export DUALCASE # for MKS sh
21
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22
 
  emulate sh
23
 
  NULLCMD=:
24
 
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25
 
  # is contrary to our usage.  Disable this feature.
26
 
  alias -g '${1+"$@"}'='"$@"'
27
 
  setopt NO_GLOB_SUBST
28
 
else
29
 
  case `(set -o) 2>/dev/null` in #(
30
 
  *posix*) :
31
 
    set -o posix ;; #(
32
 
  *) :
33
 
     ;;
34
 
esac
35
 
fi
36
 
 
37
 
 
38
 
as_nl='
39
 
'
40
 
export as_nl
41
 
# Printing a long string crashes Solaris 7 /usr/bin/printf.
42
 
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43
 
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44
 
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45
 
# Prefer a ksh shell builtin over an external printf program on Solaris,
46
 
# but without wasting forks for bash or zsh.
47
 
if test -z "$BASH_VERSION$ZSH_VERSION" \
48
 
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49
 
  as_echo='print -r --'
50
 
  as_echo_n='print -rn --'
51
 
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52
 
  as_echo='printf %s\n'
53
 
  as_echo_n='printf %s'
54
 
else
55
 
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56
 
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57
 
    as_echo_n='/usr/ucb/echo -n'
58
 
  else
59
 
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60
 
    as_echo_n_body='eval
61
 
      arg=$1;
62
 
      case $arg in #(
63
 
      *"$as_nl"*)
64
 
        expr "X$arg" : "X\\(.*\\)$as_nl";
65
 
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66
 
      esac;
67
 
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68
 
    '
69
 
    export as_echo_n_body
70
 
    as_echo_n='sh -c $as_echo_n_body as_echo'
71
 
  fi
72
 
  export as_echo_body
73
 
  as_echo='sh -c $as_echo_body as_echo'
74
 
fi
75
 
 
76
 
# The user is always right.
77
 
if test "${PATH_SEPARATOR+set}" != set; then
78
 
  PATH_SEPARATOR=:
79
 
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80
 
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81
 
      PATH_SEPARATOR=';'
82
 
  }
83
 
fi
84
 
 
85
 
 
86
 
# IFS
87
 
# We need space, tab and new line, in precisely that order.  Quoting is
88
 
# there to prevent editors from complaining about space-tab.
89
 
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90
 
# splitting by setting IFS to empty value.)
91
 
IFS=" ""        $as_nl"
92
 
 
93
 
# Find who we are.  Look in the path if we contain no directory separator.
94
 
as_myself=
95
 
case $0 in #((
96
 
  *[\\/]* ) as_myself=$0 ;;
97
 
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98
 
for as_dir in $PATH
99
 
do
100
 
  IFS=$as_save_IFS
101
 
  test -z "$as_dir" && as_dir=.
102
 
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103
 
  done
104
 
IFS=$as_save_IFS
105
 
 
106
 
     ;;
107
 
esac
108
 
# We did not find ourselves, most probably we were run as `sh COMMAND'
109
 
# in which case we are not to be found in the path.
110
 
if test "x$as_myself" = x; then
111
 
  as_myself=$0
112
 
fi
113
 
if test ! -f "$as_myself"; then
114
 
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115
 
  exit 1
116
 
fi
117
 
 
118
 
# Unset variables that we do not need and which cause bugs (e.g. in
119
 
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120
 
# suppresses any "Segmentation fault" message there.  '((' could
121
 
# trigger a bug in pdksh 5.2.14.
122
 
for as_var in BASH_ENV ENV MAIL MAILPATH
123
 
do eval test x\${$as_var+set} = xset \
124
 
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125
 
done
126
 
PS1='$ '
127
 
PS2='> '
128
 
PS4='+ '
129
 
 
130
 
# NLS nuisances.
131
 
LC_ALL=C
132
 
export LC_ALL
133
 
LANGUAGE=C
134
 
export LANGUAGE
135
 
 
136
 
# CDPATH.
137
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
 
 
139
 
if test "x$CONFIG_SHELL" = x; then
140
 
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141
 
  emulate sh
142
 
  NULLCMD=:
143
 
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144
 
  # is contrary to our usage.  Disable this feature.
145
 
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146
 
  setopt NO_GLOB_SUBST
147
 
else
148
 
  case \`(set -o) 2>/dev/null\` in #(
149
 
  *posix*) :
150
 
    set -o posix ;; #(
151
 
  *) :
152
 
     ;;
153
 
esac
154
 
fi
155
 
"
156
 
  as_required="as_fn_return () { (exit \$1); }
157
 
as_fn_success () { as_fn_return 0; }
158
 
as_fn_failure () { as_fn_return 1; }
159
 
as_fn_ret_success () { return 0; }
160
 
as_fn_ret_failure () { return 1; }
161
 
 
162
 
exitcode=0
163
 
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164
 
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165
 
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166
 
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167
 
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
 
 
169
 
else
170
 
  exitcode=1; echo positional parameters were not saved.
171
 
fi
172
 
test x\$exitcode = x0 || exit 1"
173
 
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174
 
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175
 
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176
 
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
 
test \$(( 1 + 1 )) = 2 || exit 1
178
 
 
179
 
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180
 
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181
 
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182
 
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183
 
    PATH=/empty FPATH=/empty; export PATH FPATH
184
 
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185
 
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186
 
  if (eval "$as_required") 2>/dev/null; then :
187
 
  as_have_required=yes
188
 
else
189
 
  as_have_required=no
190
 
fi
191
 
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
 
 
193
 
else
194
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195
 
as_found=false
196
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197
 
do
198
 
  IFS=$as_save_IFS
199
 
  test -z "$as_dir" && as_dir=.
200
 
  as_found=:
201
 
  case $as_dir in #(
202
 
         /*)
203
 
           for as_base in sh bash ksh sh5; do
204
 
             # Try only shells that exist, to save several forks.
205
 
             as_shell=$as_dir/$as_base
206
 
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207
 
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208
 
  CONFIG_SHELL=$as_shell as_have_required=yes
209
 
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210
 
  break 2
211
 
fi
212
 
fi
213
 
           done;;
214
 
       esac
215
 
  as_found=false
216
 
done
217
 
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218
 
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219
 
  CONFIG_SHELL=$SHELL as_have_required=yes
220
 
fi; }
221
 
IFS=$as_save_IFS
222
 
 
223
 
 
224
 
      if test "x$CONFIG_SHELL" != x; then :
225
 
  # We cannot yet assume a decent shell, so we have to provide a
226
 
        # neutralization value for shells without unset; and this also
227
 
        # works around shells that cannot unset nonexistent variables.
228
 
        # Preserve -v and -x to the replacement shell.
229
 
        BASH_ENV=/dev/null
230
 
        ENV=/dev/null
231
 
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232
 
        export CONFIG_SHELL
233
 
        case $- in # ((((
234
 
          *v*x* | *x*v* ) as_opts=-vx ;;
235
 
          *v* ) as_opts=-v ;;
236
 
          *x* ) as_opts=-x ;;
237
 
          * ) as_opts= ;;
238
 
        esac
239
 
        exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240
 
fi
241
 
 
242
 
    if test x$as_have_required = xno; then :
243
 
  $as_echo "$0: This script requires a shell more modern than all"
244
 
  $as_echo "$0: the shells that I found on your system."
245
 
  if test x${ZSH_VERSION+set} = xset ; then
246
 
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247
 
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248
 
  else
249
 
    $as_echo "$0: Please tell bug-autoconf@gnu.org and hpctools@pnl.gov
250
 
$0: about your system, including any error possibly output
251
 
$0: before this message. Then install a modern shell, or
252
 
$0: manually run the script under such a shell if you do
253
 
$0: have one."
254
 
  fi
255
 
  exit 1
256
 
fi
257
 
fi
258
 
fi
259
 
SHELL=${CONFIG_SHELL-/bin/sh}
260
 
export SHELL
261
 
# Unset more variables known to interfere with behavior of common tools.
262
 
CLICOLOR_FORCE= GREP_OPTIONS=
263
 
unset CLICOLOR_FORCE GREP_OPTIONS
264
 
 
265
 
## --------------------- ##
266
 
## M4sh Shell Functions. ##
267
 
## --------------------- ##
268
 
# as_fn_unset VAR
269
 
# ---------------
270
 
# Portably unset VAR.
271
 
as_fn_unset ()
272
 
{
273
 
  { eval $1=; unset $1;}
274
 
}
275
 
as_unset=as_fn_unset
276
 
 
277
 
# as_fn_set_status STATUS
278
 
# -----------------------
279
 
# Set $? to STATUS, without forking.
280
 
as_fn_set_status ()
281
 
{
282
 
  return $1
283
 
} # as_fn_set_status
284
 
 
285
 
# as_fn_exit STATUS
286
 
# -----------------
287
 
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288
 
as_fn_exit ()
289
 
{
290
 
  set +e
291
 
  as_fn_set_status $1
292
 
  exit $1
293
 
} # as_fn_exit
294
 
 
295
 
# as_fn_mkdir_p
296
 
# -------------
297
 
# Create "$as_dir" as a directory, including parents if necessary.
298
 
as_fn_mkdir_p ()
299
 
{
300
 
 
301
 
  case $as_dir in #(
302
 
  -*) as_dir=./$as_dir;;
303
 
  esac
304
 
  test -d "$as_dir" || eval $as_mkdir_p || {
305
 
    as_dirs=
306
 
    while :; do
307
 
      case $as_dir in #(
308
 
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309
 
      *) as_qdir=$as_dir;;
310
 
      esac
311
 
      as_dirs="'$as_qdir' $as_dirs"
312
 
      as_dir=`$as_dirname -- "$as_dir" ||
313
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
315
 
         X"$as_dir" : 'X\(//\)$' \| \
316
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317
 
$as_echo X"$as_dir" |
318
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319
 
            s//\1/
320
 
            q
321
 
          }
322
 
          /^X\(\/\/\)[^/].*/{
323
 
            s//\1/
324
 
            q
325
 
          }
326
 
          /^X\(\/\/\)$/{
327
 
            s//\1/
328
 
            q
329
 
          }
330
 
          /^X\(\/\).*/{
331
 
            s//\1/
332
 
            q
333
 
          }
334
 
          s/.*/./; q'`
335
 
      test -d "$as_dir" && break
336
 
    done
337
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
338
 
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
 
 
340
 
 
341
 
} # as_fn_mkdir_p
342
 
# as_fn_append VAR VALUE
343
 
# ----------------------
344
 
# Append the text in VALUE to the end of the definition contained in VAR. Take
345
 
# advantage of any shell optimizations that allow amortized linear growth over
346
 
# repeated appends, instead of the typical quadratic growth present in naive
347
 
# implementations.
348
 
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349
 
  eval 'as_fn_append ()
350
 
  {
351
 
    eval $1+=\$2
352
 
  }'
353
 
else
354
 
  as_fn_append ()
355
 
  {
356
 
    eval $1=\$$1\$2
357
 
  }
358
 
fi # as_fn_append
359
 
 
360
 
# as_fn_arith ARG...
361
 
# ------------------
362
 
# Perform arithmetic evaluation on the ARGs, and store the result in the
363
 
# global $as_val. Take advantage of shells that can avoid forks. The arguments
364
 
# must be portable across $(()) and expr.
365
 
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366
 
  eval 'as_fn_arith ()
367
 
  {
368
 
    as_val=$(( $* ))
369
 
  }'
370
 
else
371
 
  as_fn_arith ()
372
 
  {
373
 
    as_val=`expr "$@" || test $? -eq 1`
374
 
  }
375
 
fi # as_fn_arith
376
 
 
377
 
 
378
 
# as_fn_error STATUS ERROR [LINENO LOG_FD]
379
 
# ----------------------------------------
380
 
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381
 
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382
 
# script with STATUS, using 1 if that was 0.
383
 
as_fn_error ()
384
 
{
385
 
  as_status=$1; test $as_status -eq 0 && as_status=1
386
 
  if test "$4"; then
387
 
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388
 
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389
 
  fi
390
 
  $as_echo "$as_me: error: $2" >&2
391
 
  as_fn_exit $as_status
392
 
} # as_fn_error
393
 
 
394
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
395
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
396
 
  as_expr=expr
397
 
else
398
 
  as_expr=false
399
 
fi
400
 
 
401
 
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402
 
  as_basename=basename
403
 
else
404
 
  as_basename=false
405
 
fi
406
 
 
407
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408
 
  as_dirname=dirname
409
 
else
410
 
  as_dirname=false
411
 
fi
412
 
 
413
 
as_me=`$as_basename -- "$0" ||
414
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415
 
         X"$0" : 'X\(//\)$' \| \
416
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417
 
$as_echo X/"$0" |
418
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{
419
 
            s//\1/
420
 
            q
421
 
          }
422
 
          /^X\/\(\/\/\)$/{
423
 
            s//\1/
424
 
            q
425
 
          }
426
 
          /^X\/\(\/\).*/{
427
 
            s//\1/
428
 
            q
429
 
          }
430
 
          s/.*/./; q'`
431
 
 
432
 
# Avoid depending upon Character Ranges.
433
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436
 
as_cr_digits='0123456789'
437
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
438
 
 
439
 
 
440
 
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
441
 
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
442
 
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443
 
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444
 
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445
 
  sed -n '
446
 
    p
447
 
    /[$]LINENO/=
448
 
  ' <$as_myself |
449
 
    sed '
450
 
      s/[$]LINENO.*/&-/
451
 
      t lineno
452
 
      b
453
 
      :lineno
454
 
      N
455
 
      :loop
456
 
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457
 
      t loop
458
 
      s/-\n.*//
459
 
    ' >$as_me.lineno &&
460
 
  chmod +x "$as_me.lineno" ||
461
 
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
 
 
463
 
  # Don't try to exec as it changes $[0], causing all sort of problems
464
 
  # (the dirname of $[0] is not the place where we might find the
465
 
  # original and so on.  Autoconf is especially sensitive to this).
466
 
  . "./$as_me.lineno"
467
 
  # Exit status is that of the last command.
468
 
  exit
469
 
}
470
 
 
471
 
ECHO_C= ECHO_N= ECHO_T=
472
 
case `echo -n x` in #(((((
473
 
-n*)
474
 
  case `echo 'xy\c'` in
475
 
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
476
 
  xy)  ECHO_C='\c';;
477
 
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478
 
       ECHO_T=' ';;
479
 
  esac;;
480
 
*)
481
 
  ECHO_N='-n';;
482
 
esac
483
 
 
484
 
rm -f conf$$ conf$$.exe conf$$.file
485
 
if test -d conf$$.dir; then
486
 
  rm -f conf$$.dir/conf$$.file
487
 
else
488
 
  rm -f conf$$.dir
489
 
  mkdir conf$$.dir 2>/dev/null
490
 
fi
491
 
if (echo >conf$$.file) 2>/dev/null; then
492
 
  if ln -s conf$$.file conf$$ 2>/dev/null; then
493
 
    as_ln_s='ln -s'
494
 
    # ... but there are two gotchas:
495
 
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496
 
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497
 
    # In both cases, we have to default to `cp -p'.
498
 
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499
 
      as_ln_s='cp -p'
500
 
  elif ln conf$$.file conf$$ 2>/dev/null; then
501
 
    as_ln_s=ln
502
 
  else
503
 
    as_ln_s='cp -p'
504
 
  fi
505
 
else
506
 
  as_ln_s='cp -p'
507
 
fi
508
 
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509
 
rmdir conf$$.dir 2>/dev/null
510
 
 
511
 
if mkdir -p . 2>/dev/null; then
512
 
  as_mkdir_p='mkdir -p "$as_dir"'
513
 
else
514
 
  test -d ./-p && rmdir ./-p
515
 
  as_mkdir_p=false
516
 
fi
517
 
 
518
 
if test -x / >/dev/null 2>&1; then
519
 
  as_test_x='test -x'
520
 
else
521
 
  if ls -dL / >/dev/null 2>&1; then
522
 
    as_ls_L_option=L
523
 
  else
524
 
    as_ls_L_option=
525
 
  fi
526
 
  as_test_x='
527
 
    eval sh -c '\''
528
 
      if test -d "$1"; then
529
 
        test -d "$1/.";
530
 
      else
531
 
        case $1 in #(
532
 
        -*)set "./$1";;
533
 
        esac;
534
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535
 
        ???[sx]*):;;*)false;;esac;fi
536
 
    '\'' sh
537
 
  '
538
 
fi
539
 
as_executable_p=$as_test_x
540
 
 
541
 
# Sed expression to map a string onto a valid CPP name.
542
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
 
 
544
 
# Sed expression to map a string onto a valid variable name.
545
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
 
 
547
 
SHELL=${CONFIG_SHELL-/bin/sh}
548
 
 
549
 
 
550
 
test -n "$DJDIR" || exec 7<&0 </dev/null
551
 
exec 6>&1
552
 
 
553
 
# Name of the host.
554
 
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555
 
# so uname gets run too.
556
 
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
 
 
558
 
#
559
 
# Initializations.
560
 
#
561
 
ac_default_prefix=/usr/local
562
 
ac_clean_files=
563
 
ac_config_libobj_dir=.
564
 
LIBOBJS=
565
 
cross_compiling=no
566
 
subdirs=
567
 
MFLAGS=
568
 
MAKEFLAGS=
569
 
 
570
 
# Identity of this package.
571
 
PACKAGE_NAME='Task Scheduling Library (tascel)'
572
 
PACKAGE_TARNAME='tascel'
573
 
PACKAGE_VERSION='0.0.1'
574
 
PACKAGE_STRING='Task Scheduling Library (tascel) 0.0.1'
575
 
PACKAGE_BUGREPORT='hpctools@pnl.gov'
576
 
PACKAGE_URL='http://www.emsl.pnl.gov/docs/global/'
577
 
 
578
 
ac_unique_file="src/Comm.h"
579
 
# Factoring default headers for most tests.
580
 
ac_includes_default="\
581
 
#include <stdio.h>
582
 
#ifdef HAVE_SYS_TYPES_H
583
 
# include <sys/types.h>
584
 
#endif
585
 
#ifdef HAVE_SYS_STAT_H
586
 
# include <sys/stat.h>
587
 
#endif
588
 
#ifdef STDC_HEADERS
589
 
# include <stdlib.h>
590
 
# include <stddef.h>
591
 
#else
592
 
# ifdef HAVE_STDLIB_H
593
 
#  include <stdlib.h>
594
 
# endif
595
 
#endif
596
 
#ifdef HAVE_STRING_H
597
 
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598
 
#  include <memory.h>
599
 
# endif
600
 
# include <string.h>
601
 
#endif
602
 
#ifdef HAVE_STRINGS_H
603
 
# include <strings.h>
604
 
#endif
605
 
#ifdef HAVE_INTTYPES_H
606
 
# include <inttypes.h>
607
 
#endif
608
 
#ifdef HAVE_STDINT_H
609
 
# include <stdint.h>
610
 
#endif
611
 
#ifdef HAVE_UNISTD_H
612
 
# include <unistd.h>
613
 
#endif"
614
 
 
615
 
ac_subst_vars='am__EXEEXT_FALSE
616
 
am__EXEEXT_TRUE
617
 
LTLIBOBJS
618
 
LIBOBJS
619
 
OTOOL64
620
 
OTOOL
621
 
LIPO
622
 
NMEDIT
623
 
DSYMUTIL
624
 
MANIFEST_TOOL
625
 
ac_ct_AR
626
 
DLLTOOL
627
 
OBJDUMP
628
 
LN_S
629
 
NM
630
 
ac_ct_DUMPBIN
631
 
DUMPBIN
632
 
LD
633
 
FGREP
634
 
SED
635
 
LIBTOOL
636
 
RANLIB
637
 
AR_FLAGS
638
 
AR
639
 
HAVE_SCALAPACK_FALSE
640
 
HAVE_SCALAPACK_TRUE
641
 
SCALAPACK_CPPFLAGS
642
 
SCALAPACK_LDFLAGS
643
 
SCALAPACK_LIBS
644
 
HAVE_LAPACK_FALSE
645
 
HAVE_LAPACK_TRUE
646
 
LAPACK_CPPFLAGS
647
 
LAPACK_LDFLAGS
648
 
LAPACK_LIBS
649
 
HAVE_BLAS_FALSE
650
 
HAVE_BLAS_TRUE
651
 
BLAS_CPPFLAGS
652
 
BLAS_LDFLAGS
653
 
BLAS_LIBS
654
 
GA_LIBS
655
 
GA_LDFLAGS
656
 
GA_CPPFLAGS
657
 
CPP
658
 
F2C_DOUBLE_PRECISION_C_TYPE
659
 
F2C_REAL_C_TYPE
660
 
F2C_INTEGER_C_TYPE
661
 
F2C_HIDDEN_STRING_LENGTH_AFTER_ARGS
662
 
F2C_IARGC
663
 
F2C_GETARG
664
 
FLD_NOMAIN
665
 
FFLAG_INT
666
 
FLIBS
667
 
ENABLE_F77_FALSE
668
 
ENABLE_F77_TRUE
669
 
NOFORT_FALSE
670
 
NOFORT_TRUE
671
 
ac_ct_F77
672
 
FFLAGS
673
 
F77
674
 
MPIF77
675
 
EGREP
676
 
GREP
677
 
CXXCPP
678
 
am__fastdepCXX_FALSE
679
 
am__fastdepCXX_TRUE
680
 
CXXDEPMODE
681
 
ac_ct_CXX
682
 
CXXFLAGS
683
 
CXX
684
 
MPICXX
685
 
PERL
686
 
am__fastdepCC_FALSE
687
 
am__fastdepCC_TRUE
688
 
CCDEPMODE
689
 
AMDEPBACKSLASH
690
 
AMDEP_FALSE
691
 
AMDEP_TRUE
692
 
am__quote
693
 
am__include
694
 
DEPDIR
695
 
OBJEXT
696
 
EXEEXT
697
 
ac_ct_CC
698
 
CPPFLAGS
699
 
LDFLAGS
700
 
CFLAGS
701
 
CC
702
 
MPICC
703
 
GA_MP_CPPFLAGS
704
 
GA_MP_LDFLAGS
705
 
GA_MP_LIBS
706
 
TASCEL_STANDALONE_FALSE
707
 
TASCEL_STANDALONE_TRUE
708
 
MAINT
709
 
MAINTAINER_MODE_FALSE
710
 
MAINTAINER_MODE_TRUE
711
 
AM_BACKSLASH
712
 
AM_DEFAULT_VERBOSITY
713
 
am__untar
714
 
am__tar
715
 
AMTAR
716
 
am__leading_dot
717
 
SET_MAKE
718
 
AWK
719
 
mkdir_p
720
 
MKDIR_P
721
 
INSTALL_STRIP_PROGRAM
722
 
STRIP
723
 
install_sh
724
 
MAKEINFO
725
 
AUTOHEADER
726
 
AUTOMAKE
727
 
AUTOCONF
728
 
ACLOCAL
729
 
VERSION
730
 
PACKAGE
731
 
CYGPATH_W
732
 
am__isrc
733
 
INSTALL_DATA
734
 
INSTALL_SCRIPT
735
 
INSTALL_PROGRAM
736
 
CROSS_COMPILING_FALSE
737
 
CROSS_COMPILING_TRUE
738
 
SOLARIS_FALSE
739
 
SOLARIS_TRUE
740
 
SGITFP_FALSE
741
 
SGITFP_TRUE
742
 
SGI_N32_FALSE
743
 
SGI_N32_TRUE
744
 
SGI_FALSE
745
 
SGI_TRUE
746
 
NEC_FALSE
747
 
NEC_TRUE
748
 
MACX_FALSE
749
 
MACX_TRUE
750
 
LINUX_FALSE
751
 
LINUX_TRUE
752
 
LAPI_FALSE
753
 
LAPI_TRUE
754
 
INTERIX_FALSE
755
 
INTERIX_TRUE
756
 
IBM_FALSE
757
 
IBM_TRUE
758
 
HPUX_FALSE
759
 
HPUX_TRUE
760
 
HITACHI_FALSE
761
 
HITACHI_TRUE
762
 
FUJITSU_VPP_FALSE
763
 
FUJITSU_VPP_TRUE
764
 
DECOSF_FALSE
765
 
DECOSF_TRUE
766
 
CYGWIN_FALSE
767
 
CYGWIN_TRUE
768
 
CYGNUS_FALSE
769
 
CYGNUS_TRUE
770
 
CRAY_YMP_FALSE
771
 
CRAY_YMP_TRUE
772
 
CRAY_XT_FALSE
773
 
CRAY_XT_TRUE
774
 
CRAY_T3E_FALSE
775
 
CRAY_T3E_TRUE
776
 
CRAY_SV2_FALSE
777
 
CRAY_SV2_TRUE
778
 
CRAY_SV1_FALSE
779
 
CRAY_SV1_TRUE
780
 
CATAMOUNT_FALSE
781
 
CATAMOUNT_TRUE
782
 
BGP_FALSE
783
 
BGP_TRUE
784
 
BGL_FALSE
785
 
BGL_TRUE
786
 
host_os
787
 
host_vendor
788
 
host_cpu
789
 
host
790
 
build_os
791
 
build_vendor
792
 
build_cpu
793
 
build
794
 
target_alias
795
 
host_alias
796
 
build_alias
797
 
LIBS
798
 
ECHO_T
799
 
ECHO_N
800
 
ECHO_C
801
 
DEFS
802
 
mandir
803
 
localedir
804
 
libdir
805
 
psdir
806
 
pdfdir
807
 
dvidir
808
 
htmldir
809
 
infodir
810
 
docdir
811
 
oldincludedir
812
 
includedir
813
 
localstatedir
814
 
sharedstatedir
815
 
sysconfdir
816
 
datadir
817
 
datarootdir
818
 
libexecdir
819
 
sbindir
820
 
bindir
821
 
program_transform_name
822
 
prefix
823
 
exec_prefix
824
 
PACKAGE_URL
825
 
PACKAGE_BUGREPORT
826
 
PACKAGE_STRING
827
 
PACKAGE_VERSION
828
 
PACKAGE_TARNAME
829
 
PACKAGE_NAME
830
 
PATH_SEPARATOR
831
 
SHELL'
832
 
ac_subst_files=''
833
 
ac_user_opts='
834
 
enable_option_checking
835
 
enable_silent_rules
836
 
enable_maintainer_mode
837
 
with_PACKAGE
838
 
with_mpi
839
 
enable_mpi_tests
840
 
enable_dependency_tracking
841
 
enable_underscoring
842
 
enable_i4
843
 
enable_i8
844
 
with_ga
845
 
with_blas
846
 
with_blas4
847
 
with_blas8
848
 
with_lapack
849
 
with_scalapack
850
 
with_scalapack8
851
 
enable_shared
852
 
enable_static
853
 
with_pic
854
 
enable_fast_install
855
 
with_gnu_ld
856
 
with_sysroot
857
 
enable_libtool_lock
858
 
'
859
 
      ac_precious_vars='build_alias
860
 
host_alias
861
 
target_alias
862
 
MPICC
863
 
CC
864
 
CFLAGS
865
 
LDFLAGS
866
 
LIBS
867
 
CPPFLAGS
868
 
MPICXX
869
 
CXX
870
 
CXXFLAGS
871
 
CCC
872
 
CXXCPP
873
 
MPIF77
874
 
F77
875
 
FFLAGS
876
 
FFLAG_INT
877
 
F2C_HIDDEN_STRING_LENGTH_AFTER_ARGS
878
 
CPP
879
 
AR
880
 
AR_FLAGS
881
 
RANLIB'
882
 
 
883
 
 
884
 
# Initialize some variables set by options.
885
 
ac_init_help=
886
 
ac_init_version=false
887
 
ac_unrecognized_opts=
888
 
ac_unrecognized_sep=
889
 
# The variables have the same names as the options, with
890
 
# dashes changed to underlines.
891
 
cache_file=/dev/null
892
 
exec_prefix=NONE
893
 
no_create=
894
 
no_recursion=
895
 
prefix=NONE
896
 
program_prefix=NONE
897
 
program_suffix=NONE
898
 
program_transform_name=s,x,x,
899
 
silent=
900
 
site=
901
 
srcdir=
902
 
verbose=
903
 
x_includes=NONE
904
 
x_libraries=NONE
905
 
 
906
 
# Installation directory options.
907
 
# These are left unexpanded so users can "make install exec_prefix=/foo"
908
 
# and all the variables that are supposed to be based on exec_prefix
909
 
# by default will actually change.
910
 
# Use braces instead of parens because sh, perl, etc. also accept them.
911
 
# (The list follows the same order as the GNU Coding Standards.)
912
 
bindir='${exec_prefix}/bin'
913
 
sbindir='${exec_prefix}/sbin'
914
 
libexecdir='${exec_prefix}/libexec'
915
 
datarootdir='${prefix}/share'
916
 
datadir='${datarootdir}'
917
 
sysconfdir='${prefix}/etc'
918
 
sharedstatedir='${prefix}/com'
919
 
localstatedir='${prefix}/var'
920
 
includedir='${prefix}/include'
921
 
oldincludedir='/usr/include'
922
 
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
923
 
infodir='${datarootdir}/info'
924
 
htmldir='${docdir}'
925
 
dvidir='${docdir}'
926
 
pdfdir='${docdir}'
927
 
psdir='${docdir}'
928
 
libdir='${exec_prefix}/lib'
929
 
localedir='${datarootdir}/locale'
930
 
mandir='${datarootdir}/man'
931
 
 
932
 
ac_prev=
933
 
ac_dashdash=
934
 
for ac_option
935
 
do
936
 
  # If the previous option needs an argument, assign it.
937
 
  if test -n "$ac_prev"; then
938
 
    eval $ac_prev=\$ac_option
939
 
    ac_prev=
940
 
    continue
941
 
  fi
942
 
 
943
 
  case $ac_option in
944
 
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
945
 
  *=)   ac_optarg= ;;
946
 
  *)    ac_optarg=yes ;;
947
 
  esac
948
 
 
949
 
  # Accept the important Cygnus configure options, so we can diagnose typos.
950
 
 
951
 
  case $ac_dashdash$ac_option in
952
 
  --)
953
 
    ac_dashdash=yes ;;
954
 
 
955
 
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
956
 
    ac_prev=bindir ;;
957
 
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
958
 
    bindir=$ac_optarg ;;
959
 
 
960
 
  -build | --build | --buil | --bui | --bu)
961
 
    ac_prev=build_alias ;;
962
 
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
963
 
    build_alias=$ac_optarg ;;
964
 
 
965
 
  -cache-file | --cache-file | --cache-fil | --cache-fi \
966
 
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
967
 
    ac_prev=cache_file ;;
968
 
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
969
 
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
970
 
    cache_file=$ac_optarg ;;
971
 
 
972
 
  --config-cache | -C)
973
 
    cache_file=config.cache ;;
974
 
 
975
 
  -datadir | --datadir | --datadi | --datad)
976
 
    ac_prev=datadir ;;
977
 
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
978
 
    datadir=$ac_optarg ;;
979
 
 
980
 
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
981
 
  | --dataroo | --dataro | --datar)
982
 
    ac_prev=datarootdir ;;
983
 
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
984
 
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
985
 
    datarootdir=$ac_optarg ;;
986
 
 
987
 
  -disable-* | --disable-*)
988
 
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
989
 
    # Reject names that are not valid shell variable names.
990
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
991
 
      as_fn_error $? "invalid feature name: $ac_useropt"
992
 
    ac_useropt_orig=$ac_useropt
993
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
994
 
    case $ac_user_opts in
995
 
      *"
996
 
"enable_$ac_useropt"
997
 
"*) ;;
998
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
999
 
         ac_unrecognized_sep=', ';;
1000
 
    esac
1001
 
    eval enable_$ac_useropt=no ;;
1002
 
 
1003
 
  -docdir | --docdir | --docdi | --doc | --do)
1004
 
    ac_prev=docdir ;;
1005
 
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1006
 
    docdir=$ac_optarg ;;
1007
 
 
1008
 
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1009
 
    ac_prev=dvidir ;;
1010
 
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1011
 
    dvidir=$ac_optarg ;;
1012
 
 
1013
 
  -enable-* | --enable-*)
1014
 
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1015
 
    # Reject names that are not valid shell variable names.
1016
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1017
 
      as_fn_error $? "invalid feature name: $ac_useropt"
1018
 
    ac_useropt_orig=$ac_useropt
1019
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1020
 
    case $ac_user_opts in
1021
 
      *"
1022
 
"enable_$ac_useropt"
1023
 
"*) ;;
1024
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1025
 
         ac_unrecognized_sep=', ';;
1026
 
    esac
1027
 
    eval enable_$ac_useropt=\$ac_optarg ;;
1028
 
 
1029
 
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1030
 
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1031
 
  | --exec | --exe | --ex)
1032
 
    ac_prev=exec_prefix ;;
1033
 
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1034
 
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1035
 
  | --exec=* | --exe=* | --ex=*)
1036
 
    exec_prefix=$ac_optarg ;;
1037
 
 
1038
 
  -gas | --gas | --ga | --g)
1039
 
    # Obsolete; use --with-gas.
1040
 
    with_gas=yes ;;
1041
 
 
1042
 
  -help | --help | --hel | --he | -h)
1043
 
    ac_init_help=long ;;
1044
 
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1045
 
    ac_init_help=recursive ;;
1046
 
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1047
 
    ac_init_help=short ;;
1048
 
 
1049
 
  -host | --host | --hos | --ho)
1050
 
    ac_prev=host_alias ;;
1051
 
  -host=* | --host=* | --hos=* | --ho=*)
1052
 
    host_alias=$ac_optarg ;;
1053
 
 
1054
 
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1055
 
    ac_prev=htmldir ;;
1056
 
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1057
 
  | --ht=*)
1058
 
    htmldir=$ac_optarg ;;
1059
 
 
1060
 
  -includedir | --includedir | --includedi | --included | --include \
1061
 
  | --includ | --inclu | --incl | --inc)
1062
 
    ac_prev=includedir ;;
1063
 
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1064
 
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1065
 
    includedir=$ac_optarg ;;
1066
 
 
1067
 
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1068
 
    ac_prev=infodir ;;
1069
 
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1070
 
    infodir=$ac_optarg ;;
1071
 
 
1072
 
  -libdir | --libdir | --libdi | --libd)
1073
 
    ac_prev=libdir ;;
1074
 
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1075
 
    libdir=$ac_optarg ;;
1076
 
 
1077
 
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1078
 
  | --libexe | --libex | --libe)
1079
 
    ac_prev=libexecdir ;;
1080
 
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1081
 
  | --libexe=* | --libex=* | --libe=*)
1082
 
    libexecdir=$ac_optarg ;;
1083
 
 
1084
 
  -localedir | --localedir | --localedi | --localed | --locale)
1085
 
    ac_prev=localedir ;;
1086
 
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1087
 
    localedir=$ac_optarg ;;
1088
 
 
1089
 
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1090
 
  | --localstate | --localstat | --localsta | --localst | --locals)
1091
 
    ac_prev=localstatedir ;;
1092
 
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1093
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1094
 
    localstatedir=$ac_optarg ;;
1095
 
 
1096
 
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1097
 
    ac_prev=mandir ;;
1098
 
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1099
 
    mandir=$ac_optarg ;;
1100
 
 
1101
 
  -nfp | --nfp | --nf)
1102
 
    # Obsolete; use --without-fp.
1103
 
    with_fp=no ;;
1104
 
 
1105
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1106
 
  | --no-cr | --no-c | -n)
1107
 
    no_create=yes ;;
1108
 
 
1109
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1110
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1111
 
    no_recursion=yes ;;
1112
 
 
1113
 
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1114
 
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1115
 
  | --oldin | --oldi | --old | --ol | --o)
1116
 
    ac_prev=oldincludedir ;;
1117
 
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1118
 
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1119
 
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1120
 
    oldincludedir=$ac_optarg ;;
1121
 
 
1122
 
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1123
 
    ac_prev=prefix ;;
1124
 
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1125
 
    prefix=$ac_optarg ;;
1126
 
 
1127
 
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1128
 
  | --program-pre | --program-pr | --program-p)
1129
 
    ac_prev=program_prefix ;;
1130
 
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1131
 
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1132
 
    program_prefix=$ac_optarg ;;
1133
 
 
1134
 
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1135
 
  | --program-suf | --program-su | --program-s)
1136
 
    ac_prev=program_suffix ;;
1137
 
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1138
 
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1139
 
    program_suffix=$ac_optarg ;;
1140
 
 
1141
 
  -program-transform-name | --program-transform-name \
1142
 
  | --program-transform-nam | --program-transform-na \
1143
 
  | --program-transform-n | --program-transform- \
1144
 
  | --program-transform | --program-transfor \
1145
 
  | --program-transfo | --program-transf \
1146
 
  | --program-trans | --program-tran \
1147
 
  | --progr-tra | --program-tr | --program-t)
1148
 
    ac_prev=program_transform_name ;;
1149
 
  -program-transform-name=* | --program-transform-name=* \
1150
 
  | --program-transform-nam=* | --program-transform-na=* \
1151
 
  | --program-transform-n=* | --program-transform-=* \
1152
 
  | --program-transform=* | --program-transfor=* \
1153
 
  | --program-transfo=* | --program-transf=* \
1154
 
  | --program-trans=* | --program-tran=* \
1155
 
  | --progr-tra=* | --program-tr=* | --program-t=*)
1156
 
    program_transform_name=$ac_optarg ;;
1157
 
 
1158
 
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1159
 
    ac_prev=pdfdir ;;
1160
 
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1161
 
    pdfdir=$ac_optarg ;;
1162
 
 
1163
 
  -psdir | --psdir | --psdi | --psd | --ps)
1164
 
    ac_prev=psdir ;;
1165
 
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1166
 
    psdir=$ac_optarg ;;
1167
 
 
1168
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1169
 
  | -silent | --silent | --silen | --sile | --sil)
1170
 
    silent=yes ;;
1171
 
 
1172
 
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1173
 
    ac_prev=sbindir ;;
1174
 
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1175
 
  | --sbi=* | --sb=*)
1176
 
    sbindir=$ac_optarg ;;
1177
 
 
1178
 
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1179
 
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1180
 
  | --sharedst | --shareds | --shared | --share | --shar \
1181
 
  | --sha | --sh)
1182
 
    ac_prev=sharedstatedir ;;
1183
 
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1184
 
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1185
 
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1186
 
  | --sha=* | --sh=*)
1187
 
    sharedstatedir=$ac_optarg ;;
1188
 
 
1189
 
  -site | --site | --sit)
1190
 
    ac_prev=site ;;
1191
 
  -site=* | --site=* | --sit=*)
1192
 
    site=$ac_optarg ;;
1193
 
 
1194
 
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1195
 
    ac_prev=srcdir ;;
1196
 
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1197
 
    srcdir=$ac_optarg ;;
1198
 
 
1199
 
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1200
 
  | --syscon | --sysco | --sysc | --sys | --sy)
1201
 
    ac_prev=sysconfdir ;;
1202
 
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1203
 
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1204
 
    sysconfdir=$ac_optarg ;;
1205
 
 
1206
 
  -target | --target | --targe | --targ | --tar | --ta | --t)
1207
 
    ac_prev=target_alias ;;
1208
 
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1209
 
    target_alias=$ac_optarg ;;
1210
 
 
1211
 
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1212
 
    verbose=yes ;;
1213
 
 
1214
 
  -version | --version | --versio | --versi | --vers | -V)
1215
 
    ac_init_version=: ;;
1216
 
 
1217
 
  -with-* | --with-*)
1218
 
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1219
 
    # Reject names that are not valid shell variable names.
1220
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1221
 
      as_fn_error $? "invalid package name: $ac_useropt"
1222
 
    ac_useropt_orig=$ac_useropt
1223
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1224
 
    case $ac_user_opts in
1225
 
      *"
1226
 
"with_$ac_useropt"
1227
 
"*) ;;
1228
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1229
 
         ac_unrecognized_sep=', ';;
1230
 
    esac
1231
 
    eval with_$ac_useropt=\$ac_optarg ;;
1232
 
 
1233
 
  -without-* | --without-*)
1234
 
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1235
 
    # Reject names that are not valid shell variable names.
1236
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1237
 
      as_fn_error $? "invalid package name: $ac_useropt"
1238
 
    ac_useropt_orig=$ac_useropt
1239
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1240
 
    case $ac_user_opts in
1241
 
      *"
1242
 
"with_$ac_useropt"
1243
 
"*) ;;
1244
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1245
 
         ac_unrecognized_sep=', ';;
1246
 
    esac
1247
 
    eval with_$ac_useropt=no ;;
1248
 
 
1249
 
  --x)
1250
 
    # Obsolete; use --with-x.
1251
 
    with_x=yes ;;
1252
 
 
1253
 
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1254
 
  | --x-incl | --x-inc | --x-in | --x-i)
1255
 
    ac_prev=x_includes ;;
1256
 
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1257
 
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1258
 
    x_includes=$ac_optarg ;;
1259
 
 
1260
 
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1261
 
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1262
 
    ac_prev=x_libraries ;;
1263
 
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1264
 
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1265
 
    x_libraries=$ac_optarg ;;
1266
 
 
1267
 
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1268
 
Try \`$0 --help' for more information"
1269
 
    ;;
1270
 
 
1271
 
  *=*)
1272
 
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1273
 
    # Reject names that are not valid shell variable names.
1274
 
    case $ac_envvar in #(
1275
 
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1276
 
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1277
 
    esac
1278
 
    eval $ac_envvar=\$ac_optarg
1279
 
    export $ac_envvar ;;
1280
 
 
1281
 
  *)
1282
 
    # FIXME: should be removed in autoconf 3.0.
1283
 
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1284
 
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1285
 
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1286
 
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1287
 
    ;;
1288
 
 
1289
 
  esac
1290
 
done
1291
 
 
1292
 
if test -n "$ac_prev"; then
1293
 
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1294
 
  as_fn_error $? "missing argument to $ac_option"
1295
 
fi
1296
 
 
1297
 
if test -n "$ac_unrecognized_opts"; then
1298
 
  case $enable_option_checking in
1299
 
    no) ;;
1300
 
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1301
 
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1302
 
  esac
1303
 
fi
1304
 
 
1305
 
# Check all directory arguments for consistency.
1306
 
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1307
 
                datadir sysconfdir sharedstatedir localstatedir includedir \
1308
 
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1309
 
                libdir localedir mandir
1310
 
do
1311
 
  eval ac_val=\$$ac_var
1312
 
  # Remove trailing slashes.
1313
 
  case $ac_val in
1314
 
    */ )
1315
 
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1316
 
      eval $ac_var=\$ac_val;;
1317
 
  esac
1318
 
  # Be sure to have absolute directory names.
1319
 
  case $ac_val in
1320
 
    [\\/$]* | ?:[\\/]* )  continue;;
1321
 
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1322
 
  esac
1323
 
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1324
 
done
1325
 
 
1326
 
# There might be people who depend on the old broken behavior: `$host'
1327
 
# used to hold the argument of --host etc.
1328
 
# FIXME: To remove some day.
1329
 
build=$build_alias
1330
 
host=$host_alias
1331
 
target=$target_alias
1332
 
 
1333
 
# FIXME: To remove some day.
1334
 
if test "x$host_alias" != x; then
1335
 
  if test "x$build_alias" = x; then
1336
 
    cross_compiling=maybe
1337
 
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1338
 
    If a cross compiler is detected then cross compile mode will be used" >&2
1339
 
  elif test "x$build_alias" != "x$host_alias"; then
1340
 
    cross_compiling=yes
1341
 
  fi
1342
 
fi
1343
 
 
1344
 
ac_tool_prefix=
1345
 
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1346
 
 
1347
 
test "$silent" = yes && exec 6>/dev/null
1348
 
 
1349
 
 
1350
 
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1351
 
ac_ls_di=`ls -di .` &&
1352
 
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1353
 
  as_fn_error $? "working directory cannot be determined"
1354
 
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1355
 
  as_fn_error $? "pwd does not report name of working directory"
1356
 
 
1357
 
 
1358
 
# Find the source files, if location was not specified.
1359
 
if test -z "$srcdir"; then
1360
 
  ac_srcdir_defaulted=yes
1361
 
  # Try the directory containing this script, then the parent directory.
1362
 
  ac_confdir=`$as_dirname -- "$as_myself" ||
1363
 
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1364
 
         X"$as_myself" : 'X\(//\)[^/]' \| \
1365
 
         X"$as_myself" : 'X\(//\)$' \| \
1366
 
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1367
 
$as_echo X"$as_myself" |
1368
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1369
 
            s//\1/
1370
 
            q
1371
 
          }
1372
 
          /^X\(\/\/\)[^/].*/{
1373
 
            s//\1/
1374
 
            q
1375
 
          }
1376
 
          /^X\(\/\/\)$/{
1377
 
            s//\1/
1378
 
            q
1379
 
          }
1380
 
          /^X\(\/\).*/{
1381
 
            s//\1/
1382
 
            q
1383
 
          }
1384
 
          s/.*/./; q'`
1385
 
  srcdir=$ac_confdir
1386
 
  if test ! -r "$srcdir/$ac_unique_file"; then
1387
 
    srcdir=..
1388
 
  fi
1389
 
else
1390
 
  ac_srcdir_defaulted=no
1391
 
fi
1392
 
if test ! -r "$srcdir/$ac_unique_file"; then
1393
 
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1394
 
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1395
 
fi
1396
 
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1397
 
ac_abs_confdir=`(
1398
 
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1399
 
        pwd)`
1400
 
# When building in place, set srcdir=.
1401
 
if test "$ac_abs_confdir" = "$ac_pwd"; then
1402
 
  srcdir=.
1403
 
fi
1404
 
# Remove unnecessary trailing slashes from srcdir.
1405
 
# Double slashes in file names in object file debugging info
1406
 
# mess up M-x gdb in Emacs.
1407
 
case $srcdir in
1408
 
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1409
 
esac
1410
 
for ac_var in $ac_precious_vars; do
1411
 
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1412
 
  eval ac_env_${ac_var}_value=\$${ac_var}
1413
 
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1414
 
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1415
 
done
1416
 
 
1417
 
#
1418
 
# Report the --help message.
1419
 
#
1420
 
if test "$ac_init_help" = "long"; then
1421
 
  # Omit some internal or obsolete options to make the list less imposing.
1422
 
  # This message is too long to be a string in the A/UX 3.1 sh.
1423
 
  cat <<_ACEOF
1424
 
\`configure' configures Task Scheduling Library (tascel) 0.0.1 to adapt to many kinds of systems.
1425
 
 
1426
 
Usage: $0 [OPTION]... [VAR=VALUE]...
1427
 
 
1428
 
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1429
 
VAR=VALUE.  See below for descriptions of some of the useful variables.
1430
 
 
1431
 
Defaults for the options are specified in brackets.
1432
 
 
1433
 
Configuration:
1434
 
  -h, --help              display this help and exit
1435
 
      --help=short        display options specific to this package
1436
 
      --help=recursive    display the short help of all the included packages
1437
 
  -V, --version           display version information and exit
1438
 
  -q, --quiet, --silent   do not print \`checking ...' messages
1439
 
      --cache-file=FILE   cache test results in FILE [disabled]
1440
 
  -C, --config-cache      alias for \`--cache-file=config.cache'
1441
 
  -n, --no-create         do not create output files
1442
 
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1443
 
 
1444
 
Installation directories:
1445
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
1446
 
                          [$ac_default_prefix]
1447
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1448
 
                          [PREFIX]
1449
 
 
1450
 
By default, \`make install' will install all the files in
1451
 
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1452
 
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1453
 
for instance \`--prefix=\$HOME'.
1454
 
 
1455
 
For better control, use the options below.
1456
 
 
1457
 
Fine tuning of the installation directories:
1458
 
  --bindir=DIR            user executables [EPREFIX/bin]
1459
 
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1460
 
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1461
 
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1462
 
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1463
 
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1464
 
  --libdir=DIR            object code libraries [EPREFIX/lib]
1465
 
  --includedir=DIR        C header files [PREFIX/include]
1466
 
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1467
 
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1468
 
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1469
 
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1470
 
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1471
 
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1472
 
  --docdir=DIR            documentation root [DATAROOTDIR/doc/tascel]
1473
 
  --htmldir=DIR           html documentation [DOCDIR]
1474
 
  --dvidir=DIR            dvi documentation [DOCDIR]
1475
 
  --pdfdir=DIR            pdf documentation [DOCDIR]
1476
 
  --psdir=DIR             ps documentation [DOCDIR]
1477
 
_ACEOF
1478
 
 
1479
 
  cat <<\_ACEOF
1480
 
 
1481
 
Program names:
1482
 
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1483
 
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1484
 
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1485
 
 
1486
 
System types:
1487
 
  --build=BUILD     configure for building on BUILD [guessed]
1488
 
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1489
 
_ACEOF
1490
 
fi
1491
 
 
1492
 
if test -n "$ac_init_help"; then
1493
 
  case $ac_init_help in
1494
 
     short | recursive ) echo "Configuration of Task Scheduling Library (tascel) 0.0.1:";;
1495
 
   esac
1496
 
  cat <<\_ACEOF
1497
 
 
1498
 
Optional Features:
1499
 
  --disable-option-checking  ignore unrecognized --enable/--with options
1500
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1501
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1502
 
  --enable-silent-rules          less verbose build output (undo: `make V=1')
1503
 
  --disable-silent-rules         verbose build output (undo: `make V=0')
1504
 
  --enable-maintainer-mode  enable make rules and dependencies not useful
1505
 
                          (and sometimes confusing) to the casual installer
1506
 
  --disable-mpi-tests     disable MPI linker tests
1507
 
  --disable-dependency-tracking  speeds up one-time build
1508
 
  --enable-dependency-tracking   do not reject slow dependency extractors
1509
 
  --enable-underscoring   force single underscore for all external Fortran
1510
 
                          symbols [default: use compiler defaults for external
1511
 
                          Fortran symbols]
1512
 
  --enable-i4             enable 4-byte integers [default: sizeof(void*)]
1513
 
  --enable-i8             enable 8-byte integers [default: sizeof(void*)]
1514
 
  --enable-shared[=PKGS]  build shared libraries [default=no]
1515
 
  --enable-static[=PKGS]  build static libraries [default=yes]
1516
 
  --enable-fast-install[=PKGS]
1517
 
                          optimize for fast installation [default=yes]
1518
 
  --disable-libtool-lock  avoid locking (might break parallel builds)
1519
 
 
1520
 
Optional Packages:
1521
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1522
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1523
 
  --with-PACKAGE[=ARG]    for most of the external software packages, ARG can
1524
 
                          be one or more whitespace-separated directories,
1525
 
                          linker or preprocessor directives; for example,
1526
 
                          --with-PACKAGE="/path/to/PACKAGE -lmylib -I/mydir"
1527
 
  --with-mpi[=ARG]        select MPI as the messaging library (default); leave
1528
 
                          ARG blank to use MPI compiler wrappers
1529
 
  --with-ga[=ARG]         specify location of ga install and/or other flags
1530
 
  --with-blas[=ARG]       use external BLAS library; attempt to detect
1531
 
                          sizeof(INTEGER)
1532
 
  --with-blas4[=ARG]      use external BLAS library compiled with
1533
 
                          sizeof(INTEGER)==4
1534
 
  --with-blas8[=ARG]      use external BLAS library compiled with
1535
 
                          sizeof(INTEGER)==8
1536
 
  --with-lapack=[ARG]     use external LAPACK library
1537
 
  --with-scalapack=[ARG]  use ScaLAPACK library compiled with
1538
 
                          sizeof(INTEGER)==4
1539
 
  --with-scalapack8=[ARG] use ScaLAPACK library compiled with
1540
 
                          sizeof(INTEGER)==8
1541
 
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1542
 
                          both]
1543
 
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1544
 
  --with-sysroot=DIR Search for dependent libraries within DIR
1545
 
                        (or the compiler's sysroot if not specified).
1546
 
 
1547
 
Some influential environment variables:
1548
 
  MPICC       MPI C compiler
1549
 
  CC          C compiler command
1550
 
  CFLAGS      C compiler flags
1551
 
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1552
 
              nonstandard directory <lib dir>
1553
 
  LIBS        libraries to pass to the linker, e.g. -l<library>
1554
 
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1555
 
              you have headers in a nonstandard directory <include dir>
1556
 
  MPICXX      MPI C++ compiler
1557
 
  CXX         C++ compiler command
1558
 
  CXXFLAGS    C++ compiler flags
1559
 
  CXXCPP      C++ preprocessor
1560
 
  MPIF77      MPI Fortran 77 compiler
1561
 
  F77         Fortran 77 compiler command
1562
 
  FFLAGS      Fortran 77 compiler flags
1563
 
  FFLAG_INT   Fortran 77 compiler flag to set desired integer size
1564
 
  F2C_HIDDEN_STRING_LENGTH_AFTER_ARGS
1565
 
              if cross compiling, set to either "yes" (default) or "no" (after
1566
 
              string)
1567
 
  CPP         C preprocessor
1568
 
  AR          archiver used by libtool (default: ar)
1569
 
  AR_FLAGS    archiver flags used by libtool (default: cru)
1570
 
  RANLIB      generates index to archive (default: ranlib)
1571
 
 
1572
 
Use these variables to override the choices made by `configure' or to help
1573
 
it to find libraries and programs with nonstandard names/locations.
1574
 
 
1575
 
Report bugs to <hpctools@pnl.gov>.
1576
 
Task Scheduling Library (tascel) home page: <http://www.emsl.pnl.gov/docs/global/>.
1577
 
_ACEOF
1578
 
ac_status=$?
1579
 
fi
1580
 
 
1581
 
if test "$ac_init_help" = "recursive"; then
1582
 
  # If there are subdirs, report their specific --help.
1583
 
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1584
 
    test -d "$ac_dir" ||
1585
 
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1586
 
      continue
1587
 
    ac_builddir=.
1588
 
 
1589
 
case "$ac_dir" in
1590
 
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1591
 
*)
1592
 
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1593
 
  # A ".." for each directory in $ac_dir_suffix.
1594
 
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1595
 
  case $ac_top_builddir_sub in
1596
 
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1597
 
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1598
 
  esac ;;
1599
 
esac
1600
 
ac_abs_top_builddir=$ac_pwd
1601
 
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1602
 
# for backward compatibility:
1603
 
ac_top_builddir=$ac_top_build_prefix
1604
 
 
1605
 
case $srcdir in
1606
 
  .)  # We are building in place.
1607
 
    ac_srcdir=.
1608
 
    ac_top_srcdir=$ac_top_builddir_sub
1609
 
    ac_abs_top_srcdir=$ac_pwd ;;
1610
 
  [\\/]* | ?:[\\/]* )  # Absolute name.
1611
 
    ac_srcdir=$srcdir$ac_dir_suffix;
1612
 
    ac_top_srcdir=$srcdir
1613
 
    ac_abs_top_srcdir=$srcdir ;;
1614
 
  *) # Relative name.
1615
 
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1616
 
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1617
 
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1618
 
esac
1619
 
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1620
 
 
1621
 
    cd "$ac_dir" || { ac_status=$?; continue; }
1622
 
    # Check for guested configure.
1623
 
    if test -f "$ac_srcdir/configure.gnu"; then
1624
 
      echo &&
1625
 
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1626
 
    elif test -f "$ac_srcdir/configure"; then
1627
 
      echo &&
1628
 
      $SHELL "$ac_srcdir/configure" --help=recursive
1629
 
    else
1630
 
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1631
 
    fi || ac_status=$?
1632
 
    cd "$ac_pwd" || { ac_status=$?; break; }
1633
 
  done
1634
 
fi
1635
 
 
1636
 
test -n "$ac_init_help" && exit $ac_status
1637
 
if $ac_init_version; then
1638
 
  cat <<\_ACEOF
1639
 
Task Scheduling Library (tascel) configure 0.0.1
1640
 
generated by GNU Autoconf 2.68
1641
 
 
1642
 
Copyright (C) 2010 Free Software Foundation, Inc.
1643
 
This configure script is free software; the Free Software Foundation
1644
 
gives unlimited permission to copy, distribute and modify it.
1645
 
_ACEOF
1646
 
  exit
1647
 
fi
1648
 
 
1649
 
## ------------------------ ##
1650
 
## Autoconf initialization. ##
1651
 
## ------------------------ ##
1652
 
 
1653
 
# ac_fn_c_try_compile LINENO
1654
 
# --------------------------
1655
 
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1656
 
ac_fn_c_try_compile ()
1657
 
{
1658
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659
 
  rm -f conftest.$ac_objext
1660
 
  if { { ac_try="$ac_compile"
1661
 
case "(($ac_try" in
1662
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663
 
  *) ac_try_echo=$ac_try;;
1664
 
esac
1665
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666
 
$as_echo "$ac_try_echo"; } >&5
1667
 
  (eval "$ac_compile") 2>conftest.err
1668
 
  ac_status=$?
1669
 
  if test -s conftest.err; then
1670
 
    grep -v '^ *+' conftest.err >conftest.er1
1671
 
    cat conftest.er1 >&5
1672
 
    mv -f conftest.er1 conftest.err
1673
 
  fi
1674
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675
 
  test $ac_status = 0; } && {
1676
 
         test -z "$ac_c_werror_flag" ||
1677
 
         test ! -s conftest.err
1678
 
       } && test -s conftest.$ac_objext; then :
1679
 
  ac_retval=0
1680
 
else
1681
 
  $as_echo "$as_me: failed program was:" >&5
1682
 
sed 's/^/| /' conftest.$ac_ext >&5
1683
 
 
1684
 
        ac_retval=1
1685
 
fi
1686
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687
 
  as_fn_set_status $ac_retval
1688
 
 
1689
 
} # ac_fn_c_try_compile
1690
 
 
1691
 
# ac_fn_c_try_link LINENO
1692
 
# -----------------------
1693
 
# Try to link conftest.$ac_ext, and return whether this succeeded.
1694
 
ac_fn_c_try_link ()
1695
 
{
1696
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697
 
  rm -f conftest.$ac_objext conftest$ac_exeext
1698
 
  if { { ac_try="$ac_link"
1699
 
case "(($ac_try" in
1700
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701
 
  *) ac_try_echo=$ac_try;;
1702
 
esac
1703
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704
 
$as_echo "$ac_try_echo"; } >&5
1705
 
  (eval "$ac_link") 2>conftest.err
1706
 
  ac_status=$?
1707
 
  if test -s conftest.err; then
1708
 
    grep -v '^ *+' conftest.err >conftest.er1
1709
 
    cat conftest.er1 >&5
1710
 
    mv -f conftest.er1 conftest.err
1711
 
  fi
1712
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713
 
  test $ac_status = 0; } && {
1714
 
         test -z "$ac_c_werror_flag" ||
1715
 
         test ! -s conftest.err
1716
 
       } && test -s conftest$ac_exeext && {
1717
 
         test "$cross_compiling" = yes ||
1718
 
         $as_test_x conftest$ac_exeext
1719
 
       }; then :
1720
 
  ac_retval=0
1721
 
else
1722
 
  $as_echo "$as_me: failed program was:" >&5
1723
 
sed 's/^/| /' conftest.$ac_ext >&5
1724
 
 
1725
 
        ac_retval=1
1726
 
fi
1727
 
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1728
 
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1729
 
  # interfere with the next link command; also delete a directory that is
1730
 
  # left behind by Apple's compiler.  We do this before executing the actions.
1731
 
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1732
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733
 
  as_fn_set_status $ac_retval
1734
 
 
1735
 
} # ac_fn_c_try_link
1736
 
 
1737
 
# ac_fn_c_try_run LINENO
1738
 
# ----------------------
1739
 
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1740
 
# that executables *can* be run.
1741
 
ac_fn_c_try_run ()
1742
 
{
1743
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744
 
  if { { ac_try="$ac_link"
1745
 
case "(($ac_try" in
1746
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747
 
  *) ac_try_echo=$ac_try;;
1748
 
esac
1749
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750
 
$as_echo "$ac_try_echo"; } >&5
1751
 
  (eval "$ac_link") 2>&5
1752
 
  ac_status=$?
1753
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754
 
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1755
 
  { { case "(($ac_try" in
1756
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757
 
  *) ac_try_echo=$ac_try;;
1758
 
esac
1759
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760
 
$as_echo "$ac_try_echo"; } >&5
1761
 
  (eval "$ac_try") 2>&5
1762
 
  ac_status=$?
1763
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764
 
  test $ac_status = 0; }; }; then :
1765
 
  ac_retval=0
1766
 
else
1767
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
1768
 
       $as_echo "$as_me: failed program was:" >&5
1769
 
sed 's/^/| /' conftest.$ac_ext >&5
1770
 
 
1771
 
       ac_retval=$ac_status
1772
 
fi
1773
 
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1774
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775
 
  as_fn_set_status $ac_retval
1776
 
 
1777
 
} # ac_fn_c_try_run
1778
 
 
1779
 
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1780
 
# --------------------------------------------
1781
 
# Tries to find the compile-time value of EXPR in a program that includes
1782
 
# INCLUDES, setting VAR accordingly. Returns whether the value could be
1783
 
# computed
1784
 
ac_fn_c_compute_int ()
1785
 
{
1786
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787
 
  if test "$cross_compiling" = yes; then
1788
 
    # Depending upon the size, compute the lo and hi bounds.
1789
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790
 
/* end confdefs.h.  */
1791
 
$4
1792
 
int
1793
 
main ()
1794
 
{
1795
 
static int test_array [1 - 2 * !(($2) >= 0)];
1796
 
test_array [0] = 0
1797
 
 
1798
 
  ;
1799
 
  return 0;
1800
 
}
1801
 
_ACEOF
1802
 
if ac_fn_c_try_compile "$LINENO"; then :
1803
 
  ac_lo=0 ac_mid=0
1804
 
  while :; do
1805
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806
 
/* end confdefs.h.  */
1807
 
$4
1808
 
int
1809
 
main ()
1810
 
{
1811
 
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1812
 
test_array [0] = 0
1813
 
 
1814
 
  ;
1815
 
  return 0;
1816
 
}
1817
 
_ACEOF
1818
 
if ac_fn_c_try_compile "$LINENO"; then :
1819
 
  ac_hi=$ac_mid; break
1820
 
else
1821
 
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1822
 
                        if test $ac_lo -le $ac_mid; then
1823
 
                          ac_lo= ac_hi=
1824
 
                          break
1825
 
                        fi
1826
 
                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1827
 
fi
1828
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1829
 
  done
1830
 
else
1831
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832
 
/* end confdefs.h.  */
1833
 
$4
1834
 
int
1835
 
main ()
1836
 
{
1837
 
static int test_array [1 - 2 * !(($2) < 0)];
1838
 
test_array [0] = 0
1839
 
 
1840
 
  ;
1841
 
  return 0;
1842
 
}
1843
 
_ACEOF
1844
 
if ac_fn_c_try_compile "$LINENO"; then :
1845
 
  ac_hi=-1 ac_mid=-1
1846
 
  while :; do
1847
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1848
 
/* end confdefs.h.  */
1849
 
$4
1850
 
int
1851
 
main ()
1852
 
{
1853
 
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1854
 
test_array [0] = 0
1855
 
 
1856
 
  ;
1857
 
  return 0;
1858
 
}
1859
 
_ACEOF
1860
 
if ac_fn_c_try_compile "$LINENO"; then :
1861
 
  ac_lo=$ac_mid; break
1862
 
else
1863
 
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1864
 
                        if test $ac_mid -le $ac_hi; then
1865
 
                          ac_lo= ac_hi=
1866
 
                          break
1867
 
                        fi
1868
 
                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1869
 
fi
1870
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1871
 
  done
1872
 
else
1873
 
  ac_lo= ac_hi=
1874
 
fi
1875
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1876
 
fi
1877
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1878
 
# Binary search between lo and hi bounds.
1879
 
while test "x$ac_lo" != "x$ac_hi"; do
1880
 
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1881
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882
 
/* end confdefs.h.  */
1883
 
$4
1884
 
int
1885
 
main ()
1886
 
{
1887
 
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1888
 
test_array [0] = 0
1889
 
 
1890
 
  ;
1891
 
  return 0;
1892
 
}
1893
 
_ACEOF
1894
 
if ac_fn_c_try_compile "$LINENO"; then :
1895
 
  ac_hi=$ac_mid
1896
 
else
1897
 
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1898
 
fi
1899
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1900
 
done
1901
 
case $ac_lo in #((
1902
 
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1903
 
'') ac_retval=1 ;;
1904
 
esac
1905
 
  else
1906
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907
 
/* end confdefs.h.  */
1908
 
$4
1909
 
static long int longval () { return $2; }
1910
 
static unsigned long int ulongval () { return $2; }
1911
 
#include <stdio.h>
1912
 
#include <stdlib.h>
1913
 
int
1914
 
main ()
1915
 
{
1916
 
 
1917
 
  FILE *f = fopen ("conftest.val", "w");
1918
 
  if (! f)
1919
 
    return 1;
1920
 
  if (($2) < 0)
1921
 
    {
1922
 
      long int i = longval ();
1923
 
      if (i != ($2))
1924
 
        return 1;
1925
 
      fprintf (f, "%ld", i);
1926
 
    }
1927
 
  else
1928
 
    {
1929
 
      unsigned long int i = ulongval ();
1930
 
      if (i != ($2))
1931
 
        return 1;
1932
 
      fprintf (f, "%lu", i);
1933
 
    }
1934
 
  /* Do not output a trailing newline, as this causes \r\n confusion
1935
 
     on some platforms.  */
1936
 
  return ferror (f) || fclose (f) != 0;
1937
 
 
1938
 
  ;
1939
 
  return 0;
1940
 
}
1941
 
_ACEOF
1942
 
if ac_fn_c_try_run "$LINENO"; then :
1943
 
  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1944
 
else
1945
 
  ac_retval=1
1946
 
fi
1947
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1948
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
1949
 
rm -f conftest.val
1950
 
 
1951
 
  fi
1952
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953
 
  as_fn_set_status $ac_retval
1954
 
 
1955
 
} # ac_fn_c_compute_int
1956
 
 
1957
 
# ac_fn_cxx_try_compile LINENO
1958
 
# ----------------------------
1959
 
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1960
 
ac_fn_cxx_try_compile ()
1961
 
{
1962
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963
 
  rm -f conftest.$ac_objext
1964
 
  if { { ac_try="$ac_compile"
1965
 
case "(($ac_try" in
1966
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1967
 
  *) ac_try_echo=$ac_try;;
1968
 
esac
1969
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1970
 
$as_echo "$ac_try_echo"; } >&5
1971
 
  (eval "$ac_compile") 2>conftest.err
1972
 
  ac_status=$?
1973
 
  if test -s conftest.err; then
1974
 
    grep -v '^ *+' conftest.err >conftest.er1
1975
 
    cat conftest.er1 >&5
1976
 
    mv -f conftest.er1 conftest.err
1977
 
  fi
1978
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1979
 
  test $ac_status = 0; } && {
1980
 
         test -z "$ac_cxx_werror_flag" ||
1981
 
         test ! -s conftest.err
1982
 
       } && test -s conftest.$ac_objext; then :
1983
 
  ac_retval=0
1984
 
else
1985
 
  $as_echo "$as_me: failed program was:" >&5
1986
 
sed 's/^/| /' conftest.$ac_ext >&5
1987
 
 
1988
 
        ac_retval=1
1989
 
fi
1990
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1991
 
  as_fn_set_status $ac_retval
1992
 
 
1993
 
} # ac_fn_cxx_try_compile
1994
 
 
1995
 
# ac_fn_cxx_try_link LINENO
1996
 
# -------------------------
1997
 
# Try to link conftest.$ac_ext, and return whether this succeeded.
1998
 
ac_fn_cxx_try_link ()
1999
 
{
2000
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001
 
  rm -f conftest.$ac_objext conftest$ac_exeext
2002
 
  if { { ac_try="$ac_link"
2003
 
case "(($ac_try" in
2004
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2005
 
  *) ac_try_echo=$ac_try;;
2006
 
esac
2007
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2008
 
$as_echo "$ac_try_echo"; } >&5
2009
 
  (eval "$ac_link") 2>conftest.err
2010
 
  ac_status=$?
2011
 
  if test -s conftest.err; then
2012
 
    grep -v '^ *+' conftest.err >conftest.er1
2013
 
    cat conftest.er1 >&5
2014
 
    mv -f conftest.er1 conftest.err
2015
 
  fi
2016
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2017
 
  test $ac_status = 0; } && {
2018
 
         test -z "$ac_cxx_werror_flag" ||
2019
 
         test ! -s conftest.err
2020
 
       } && test -s conftest$ac_exeext && {
2021
 
         test "$cross_compiling" = yes ||
2022
 
         $as_test_x conftest$ac_exeext
2023
 
       }; then :
2024
 
  ac_retval=0
2025
 
else
2026
 
  $as_echo "$as_me: failed program was:" >&5
2027
 
sed 's/^/| /' conftest.$ac_ext >&5
2028
 
 
2029
 
        ac_retval=1
2030
 
fi
2031
 
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2032
 
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2033
 
  # interfere with the next link command; also delete a directory that is
2034
 
  # left behind by Apple's compiler.  We do this before executing the actions.
2035
 
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2036
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2037
 
  as_fn_set_status $ac_retval
2038
 
 
2039
 
} # ac_fn_cxx_try_link
2040
 
 
2041
 
# ac_fn_cxx_try_cpp LINENO
2042
 
# ------------------------
2043
 
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2044
 
ac_fn_cxx_try_cpp ()
2045
 
{
2046
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047
 
  if { { ac_try="$ac_cpp conftest.$ac_ext"
2048
 
case "(($ac_try" in
2049
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2050
 
  *) ac_try_echo=$ac_try;;
2051
 
esac
2052
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2053
 
$as_echo "$ac_try_echo"; } >&5
2054
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2055
 
  ac_status=$?
2056
 
  if test -s conftest.err; then
2057
 
    grep -v '^ *+' conftest.err >conftest.er1
2058
 
    cat conftest.er1 >&5
2059
 
    mv -f conftest.er1 conftest.err
2060
 
  fi
2061
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2062
 
  test $ac_status = 0; } > conftest.i && {
2063
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2064
 
         test ! -s conftest.err
2065
 
       }; then :
2066
 
  ac_retval=0
2067
 
else
2068
 
  $as_echo "$as_me: failed program was:" >&5
2069
 
sed 's/^/| /' conftest.$ac_ext >&5
2070
 
 
2071
 
    ac_retval=1
2072
 
fi
2073
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2074
 
  as_fn_set_status $ac_retval
2075
 
 
2076
 
} # ac_fn_cxx_try_cpp
2077
 
 
2078
 
# ac_fn_cxx_try_run LINENO
2079
 
# ------------------------
2080
 
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2081
 
# that executables *can* be run.
2082
 
ac_fn_cxx_try_run ()
2083
 
{
2084
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085
 
  if { { ac_try="$ac_link"
2086
 
case "(($ac_try" in
2087
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2088
 
  *) ac_try_echo=$ac_try;;
2089
 
esac
2090
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2091
 
$as_echo "$ac_try_echo"; } >&5
2092
 
  (eval "$ac_link") 2>&5
2093
 
  ac_status=$?
2094
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2095
 
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2096
 
  { { case "(($ac_try" in
2097
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2098
 
  *) ac_try_echo=$ac_try;;
2099
 
esac
2100
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2101
 
$as_echo "$ac_try_echo"; } >&5
2102
 
  (eval "$ac_try") 2>&5
2103
 
  ac_status=$?
2104
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2105
 
  test $ac_status = 0; }; }; then :
2106
 
  ac_retval=0
2107
 
else
2108
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
2109
 
       $as_echo "$as_me: failed program was:" >&5
2110
 
sed 's/^/| /' conftest.$ac_ext >&5
2111
 
 
2112
 
       ac_retval=$ac_status
2113
 
fi
2114
 
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2115
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2116
 
  as_fn_set_status $ac_retval
2117
 
 
2118
 
} # ac_fn_cxx_try_run
2119
 
 
2120
 
# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2121
 
# ---------------------------------------------------------
2122
 
# Tests whether HEADER exists and can be compiled using the include files in
2123
 
# INCLUDES, setting the cache variable VAR accordingly.
2124
 
ac_fn_cxx_check_header_compile ()
2125
 
{
2126
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2127
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2128
 
$as_echo_n "checking for $2... " >&6; }
2129
 
if eval \${$3+:} false; then :
2130
 
  $as_echo_n "(cached) " >&6
2131
 
else
2132
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133
 
/* end confdefs.h.  */
2134
 
$4
2135
 
#include <$2>
2136
 
_ACEOF
2137
 
if ac_fn_cxx_try_compile "$LINENO"; then :
2138
 
  eval "$3=yes"
2139
 
else
2140
 
  eval "$3=no"
2141
 
fi
2142
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2143
 
fi
2144
 
eval ac_res=\$$3
2145
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2146
 
$as_echo "$ac_res" >&6; }
2147
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2148
 
 
2149
 
} # ac_fn_cxx_check_header_compile
2150
 
 
2151
 
# ac_fn_c_find_intX_t LINENO BITS VAR
2152
 
# -----------------------------------
2153
 
# Finds a signed integer type with width BITS, setting cache variable VAR
2154
 
# accordingly.
2155
 
ac_fn_c_find_intX_t ()
2156
 
{
2157
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2158
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2159
 
$as_echo_n "checking for int$2_t... " >&6; }
2160
 
if eval \${$3+:} false; then :
2161
 
  $as_echo_n "(cached) " >&6
2162
 
else
2163
 
  eval "$3=no"
2164
 
     # Order is important - never check a type that is potentially smaller
2165
 
     # than half of the expected target width.
2166
 
     for ac_type in int$2_t 'int' 'long int' \
2167
 
         'long long int' 'short int' 'signed char'; do
2168
 
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169
 
/* end confdefs.h.  */
2170
 
$ac_includes_default
2171
 
             enum { N = $2 / 2 - 1 };
2172
 
int
2173
 
main ()
2174
 
{
2175
 
static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2176
 
test_array [0] = 0
2177
 
 
2178
 
  ;
2179
 
  return 0;
2180
 
}
2181
 
_ACEOF
2182
 
if ac_fn_cxx_try_compile "$LINENO"; then :
2183
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184
 
/* end confdefs.h.  */
2185
 
$ac_includes_default
2186
 
                enum { N = $2 / 2 - 1 };
2187
 
int
2188
 
main ()
2189
 
{
2190
 
static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2191
 
                 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2192
 
test_array [0] = 0
2193
 
 
2194
 
  ;
2195
 
  return 0;
2196
 
}
2197
 
_ACEOF
2198
 
if ac_fn_cxx_try_compile "$LINENO"; then :
2199
 
 
2200
 
else
2201
 
  case $ac_type in #(
2202
 
  int$2_t) :
2203
 
    eval "$3=yes" ;; #(
2204
 
  *) :
2205
 
    eval "$3=\$ac_type" ;;
2206
 
esac
2207
 
fi
2208
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209
 
fi
2210
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211
 
       if eval test \"x\$"$3"\" = x"no"; then :
2212
 
 
2213
 
else
2214
 
  break
2215
 
fi
2216
 
     done
2217
 
fi
2218
 
eval ac_res=\$$3
2219
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2220
 
$as_echo "$ac_res" >&6; }
2221
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2222
 
 
2223
 
} # ac_fn_c_find_intX_t
2224
 
 
2225
 
# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2226
 
# ---------------------------------------------
2227
 
# Tests whether TYPE exists after having included INCLUDES, setting cache
2228
 
# variable VAR accordingly.
2229
 
ac_fn_cxx_check_type ()
2230
 
{
2231
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2233
 
$as_echo_n "checking for $2... " >&6; }
2234
 
if eval \${$3+:} false; then :
2235
 
  $as_echo_n "(cached) " >&6
2236
 
else
2237
 
  eval "$3=no"
2238
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239
 
/* end confdefs.h.  */
2240
 
$4
2241
 
int
2242
 
main ()
2243
 
{
2244
 
if (sizeof ($2))
2245
 
         return 0;
2246
 
  ;
2247
 
  return 0;
2248
 
}
2249
 
_ACEOF
2250
 
if ac_fn_cxx_try_compile "$LINENO"; then :
2251
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252
 
/* end confdefs.h.  */
2253
 
$4
2254
 
int
2255
 
main ()
2256
 
{
2257
 
if (sizeof (($2)))
2258
 
            return 0;
2259
 
  ;
2260
 
  return 0;
2261
 
}
2262
 
_ACEOF
2263
 
if ac_fn_cxx_try_compile "$LINENO"; then :
2264
 
 
2265
 
else
2266
 
  eval "$3=yes"
2267
 
fi
2268
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269
 
fi
2270
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2271
 
fi
2272
 
eval ac_res=\$$3
2273
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2274
 
$as_echo "$ac_res" >&6; }
2275
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2276
 
 
2277
 
} # ac_fn_cxx_check_type
2278
 
 
2279
 
# ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2280
 
# ----------------------------------------------
2281
 
# Tries to find the compile-time value of EXPR in a program that includes
2282
 
# INCLUDES, setting VAR accordingly. Returns whether the value could be
2283
 
# computed
2284
 
ac_fn_cxx_compute_int ()
2285
 
{
2286
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2287
 
  if test "$cross_compiling" = yes; then
2288
 
    # Depending upon the size, compute the lo and hi bounds.
2289
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2290
 
/* end confdefs.h.  */
2291
 
$4
2292
 
int
2293
 
main ()
2294
 
{
2295
 
static int test_array [1 - 2 * !(($2) >= 0)];
2296
 
test_array [0] = 0
2297
 
 
2298
 
  ;
2299
 
  return 0;
2300
 
}
2301
 
_ACEOF
2302
 
if ac_fn_cxx_try_compile "$LINENO"; then :
2303
 
  ac_lo=0 ac_mid=0
2304
 
  while :; do
2305
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2306
 
/* end confdefs.h.  */
2307
 
$4
2308
 
int
2309
 
main ()
2310
 
{
2311
 
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2312
 
test_array [0] = 0
2313
 
 
2314
 
  ;
2315
 
  return 0;
2316
 
}
2317
 
_ACEOF
2318
 
if ac_fn_cxx_try_compile "$LINENO"; then :
2319
 
  ac_hi=$ac_mid; break
2320
 
else
2321
 
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2322
 
                        if test $ac_lo -le $ac_mid; then
2323
 
                          ac_lo= ac_hi=
2324
 
                          break
2325
 
                        fi
2326
 
                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2327
 
fi
2328
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2329
 
  done
2330
 
else
2331
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2332
 
/* end confdefs.h.  */
2333
 
$4
2334
 
int
2335
 
main ()
2336
 
{
2337
 
static int test_array [1 - 2 * !(($2) < 0)];
2338
 
test_array [0] = 0
2339
 
 
2340
 
  ;
2341
 
  return 0;
2342
 
}
2343
 
_ACEOF
2344
 
if ac_fn_cxx_try_compile "$LINENO"; then :
2345
 
  ac_hi=-1 ac_mid=-1
2346
 
  while :; do
2347
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348
 
/* end confdefs.h.  */
2349
 
$4
2350
 
int
2351
 
main ()
2352
 
{
2353
 
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2354
 
test_array [0] = 0
2355
 
 
2356
 
  ;
2357
 
  return 0;
2358
 
}
2359
 
_ACEOF
2360
 
if ac_fn_cxx_try_compile "$LINENO"; then :
2361
 
  ac_lo=$ac_mid; break
2362
 
else
2363
 
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2364
 
                        if test $ac_mid -le $ac_hi; then
2365
 
                          ac_lo= ac_hi=
2366
 
                          break
2367
 
                        fi
2368
 
                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2369
 
fi
2370
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2371
 
  done
2372
 
else
2373
 
  ac_lo= ac_hi=
2374
 
fi
2375
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2376
 
fi
2377
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2378
 
# Binary search between lo and hi bounds.
2379
 
while test "x$ac_lo" != "x$ac_hi"; do
2380
 
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2381
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2382
 
/* end confdefs.h.  */
2383
 
$4
2384
 
int
2385
 
main ()
2386
 
{
2387
 
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2388
 
test_array [0] = 0
2389
 
 
2390
 
  ;
2391
 
  return 0;
2392
 
}
2393
 
_ACEOF
2394
 
if ac_fn_cxx_try_compile "$LINENO"; then :
2395
 
  ac_hi=$ac_mid
2396
 
else
2397
 
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2398
 
fi
2399
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2400
 
done
2401
 
case $ac_lo in #((
2402
 
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2403
 
'') ac_retval=1 ;;
2404
 
esac
2405
 
  else
2406
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2407
 
/* end confdefs.h.  */
2408
 
$4
2409
 
static long int longval () { return $2; }
2410
 
static unsigned long int ulongval () { return $2; }
2411
 
#include <stdio.h>
2412
 
#include <stdlib.h>
2413
 
int
2414
 
main ()
2415
 
{
2416
 
 
2417
 
  FILE *f = fopen ("conftest.val", "w");
2418
 
  if (! f)
2419
 
    return 1;
2420
 
  if (($2) < 0)
2421
 
    {
2422
 
      long int i = longval ();
2423
 
      if (i != ($2))
2424
 
        return 1;
2425
 
      fprintf (f, "%ld", i);
2426
 
    }
2427
 
  else
2428
 
    {
2429
 
      unsigned long int i = ulongval ();
2430
 
      if (i != ($2))
2431
 
        return 1;
2432
 
      fprintf (f, "%lu", i);
2433
 
    }
2434
 
  /* Do not output a trailing newline, as this causes \r\n confusion
2435
 
     on some platforms.  */
2436
 
  return ferror (f) || fclose (f) != 0;
2437
 
 
2438
 
  ;
2439
 
  return 0;
2440
 
}
2441
 
_ACEOF
2442
 
if ac_fn_cxx_try_run "$LINENO"; then :
2443
 
  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2444
 
else
2445
 
  ac_retval=1
2446
 
fi
2447
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2448
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
2449
 
rm -f conftest.val
2450
 
 
2451
 
  fi
2452
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2453
 
  as_fn_set_status $ac_retval
2454
 
 
2455
 
} # ac_fn_cxx_compute_int
2456
 
 
2457
 
# ac_fn_f77_try_compile LINENO
2458
 
# ----------------------------
2459
 
# Try to compile conftest.$ac_ext, and return whether this succeeded.
2460
 
ac_fn_f77_try_compile ()
2461
 
{
2462
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2463
 
  rm -f conftest.$ac_objext
2464
 
  if { { ac_try="$ac_compile"
2465
 
case "(($ac_try" in
2466
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2467
 
  *) ac_try_echo=$ac_try;;
2468
 
esac
2469
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2470
 
$as_echo "$ac_try_echo"; } >&5
2471
 
  (eval "$ac_compile") 2>conftest.err
2472
 
  ac_status=$?
2473
 
  if test -s conftest.err; then
2474
 
    grep -v '^ *+' conftest.err >conftest.er1
2475
 
    cat conftest.er1 >&5
2476
 
    mv -f conftest.er1 conftest.err
2477
 
  fi
2478
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2479
 
  test $ac_status = 0; } && {
2480
 
         test -z "$ac_f77_werror_flag" ||
2481
 
         test ! -s conftest.err
2482
 
       } && test -s conftest.$ac_objext; then :
2483
 
  ac_retval=0
2484
 
else
2485
 
  $as_echo "$as_me: failed program was:" >&5
2486
 
sed 's/^/| /' conftest.$ac_ext >&5
2487
 
 
2488
 
        ac_retval=1
2489
 
fi
2490
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2491
 
  as_fn_set_status $ac_retval
2492
 
 
2493
 
} # ac_fn_f77_try_compile
2494
 
 
2495
 
# ac_fn_f77_try_link LINENO
2496
 
# -------------------------
2497
 
# Try to link conftest.$ac_ext, and return whether this succeeded.
2498
 
ac_fn_f77_try_link ()
2499
 
{
2500
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2501
 
  rm -f conftest.$ac_objext conftest$ac_exeext
2502
 
  if { { ac_try="$ac_link"
2503
 
case "(($ac_try" in
2504
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2505
 
  *) ac_try_echo=$ac_try;;
2506
 
esac
2507
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2508
 
$as_echo "$ac_try_echo"; } >&5
2509
 
  (eval "$ac_link") 2>conftest.err
2510
 
  ac_status=$?
2511
 
  if test -s conftest.err; then
2512
 
    grep -v '^ *+' conftest.err >conftest.er1
2513
 
    cat conftest.er1 >&5
2514
 
    mv -f conftest.er1 conftest.err
2515
 
  fi
2516
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2517
 
  test $ac_status = 0; } && {
2518
 
         test -z "$ac_f77_werror_flag" ||
2519
 
         test ! -s conftest.err
2520
 
       } && test -s conftest$ac_exeext && {
2521
 
         test "$cross_compiling" = yes ||
2522
 
         $as_test_x conftest$ac_exeext
2523
 
       }; then :
2524
 
  ac_retval=0
2525
 
else
2526
 
  $as_echo "$as_me: failed program was:" >&5
2527
 
sed 's/^/| /' conftest.$ac_ext >&5
2528
 
 
2529
 
        ac_retval=1
2530
 
fi
2531
 
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2532
 
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2533
 
  # interfere with the next link command; also delete a directory that is
2534
 
  # left behind by Apple's compiler.  We do this before executing the actions.
2535
 
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2536
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2537
 
  as_fn_set_status $ac_retval
2538
 
 
2539
 
} # ac_fn_f77_try_link
2540
 
 
2541
 
# ac_fn_f77_try_run LINENO
2542
 
# ------------------------
2543
 
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2544
 
# that executables *can* be run.
2545
 
ac_fn_f77_try_run ()
2546
 
{
2547
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2548
 
  if { { ac_try="$ac_link"
2549
 
case "(($ac_try" in
2550
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2551
 
  *) ac_try_echo=$ac_try;;
2552
 
esac
2553
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2554
 
$as_echo "$ac_try_echo"; } >&5
2555
 
  (eval "$ac_link") 2>&5
2556
 
  ac_status=$?
2557
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2558
 
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2559
 
  { { case "(($ac_try" in
2560
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561
 
  *) ac_try_echo=$ac_try;;
2562
 
esac
2563
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2564
 
$as_echo "$ac_try_echo"; } >&5
2565
 
  (eval "$ac_try") 2>&5
2566
 
  ac_status=$?
2567
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2568
 
  test $ac_status = 0; }; }; then :
2569
 
  ac_retval=0
2570
 
else
2571
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
2572
 
       $as_echo "$as_me: failed program was:" >&5
2573
 
sed 's/^/| /' conftest.$ac_ext >&5
2574
 
 
2575
 
       ac_retval=$ac_status
2576
 
fi
2577
 
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2578
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2579
 
  as_fn_set_status $ac_retval
2580
 
 
2581
 
} # ac_fn_f77_try_run
2582
 
 
2583
 
# ac_fn_c_try_cpp LINENO
2584
 
# ----------------------
2585
 
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2586
 
ac_fn_c_try_cpp ()
2587
 
{
2588
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2589
 
  if { { ac_try="$ac_cpp conftest.$ac_ext"
2590
 
case "(($ac_try" in
2591
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2592
 
  *) ac_try_echo=$ac_try;;
2593
 
esac
2594
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2595
 
$as_echo "$ac_try_echo"; } >&5
2596
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2597
 
  ac_status=$?
2598
 
  if test -s conftest.err; then
2599
 
    grep -v '^ *+' conftest.err >conftest.er1
2600
 
    cat conftest.er1 >&5
2601
 
    mv -f conftest.er1 conftest.err
2602
 
  fi
2603
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2604
 
  test $ac_status = 0; } > conftest.i && {
2605
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2606
 
         test ! -s conftest.err
2607
 
       }; then :
2608
 
  ac_retval=0
2609
 
else
2610
 
  $as_echo "$as_me: failed program was:" >&5
2611
 
sed 's/^/| /' conftest.$ac_ext >&5
2612
 
 
2613
 
    ac_retval=1
2614
 
fi
2615
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2616
 
  as_fn_set_status $ac_retval
2617
 
 
2618
 
} # ac_fn_c_try_cpp
2619
 
 
2620
 
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2621
 
# -------------------------------------------------------
2622
 
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2623
 
# the include files in INCLUDES and setting the cache variable VAR
2624
 
# accordingly.
2625
 
ac_fn_c_check_header_mongrel ()
2626
 
{
2627
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2628
 
  if eval \${$3+:} false; then :
2629
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2630
 
$as_echo_n "checking for $2... " >&6; }
2631
 
if eval \${$3+:} false; then :
2632
 
  $as_echo_n "(cached) " >&6
2633
 
fi
2634
 
eval ac_res=\$$3
2635
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2636
 
$as_echo "$ac_res" >&6; }
2637
 
else
2638
 
  # Is the header compilable?
2639
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2640
 
$as_echo_n "checking $2 usability... " >&6; }
2641
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2642
 
/* end confdefs.h.  */
2643
 
$4
2644
 
#include <$2>
2645
 
_ACEOF
2646
 
if ac_fn_c_try_compile "$LINENO"; then :
2647
 
  ac_header_compiler=yes
2648
 
else
2649
 
  ac_header_compiler=no
2650
 
fi
2651
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2652
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2653
 
$as_echo "$ac_header_compiler" >&6; }
2654
 
 
2655
 
# Is the header present?
2656
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2657
 
$as_echo_n "checking $2 presence... " >&6; }
2658
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2659
 
/* end confdefs.h.  */
2660
 
#include <$2>
2661
 
_ACEOF
2662
 
if ac_fn_c_try_cpp "$LINENO"; then :
2663
 
  ac_header_preproc=yes
2664
 
else
2665
 
  ac_header_preproc=no
2666
 
fi
2667
 
rm -f conftest.err conftest.i conftest.$ac_ext
2668
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2669
 
$as_echo "$ac_header_preproc" >&6; }
2670
 
 
2671
 
# So?  What about this header?
2672
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2673
 
  yes:no: )
2674
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2675
 
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2676
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2677
 
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2678
 
    ;;
2679
 
  no:yes:* )
2680
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2681
 
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2682
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2683
 
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2684
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2685
 
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2686
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2687
 
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2688
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2689
 
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2690
 
( $as_echo "## ------------------------------- ##
2691
 
## Report this to hpctools@pnl.gov ##
2692
 
## ------------------------------- ##"
2693
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
2694
 
    ;;
2695
 
esac
2696
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2697
 
$as_echo_n "checking for $2... " >&6; }
2698
 
if eval \${$3+:} false; then :
2699
 
  $as_echo_n "(cached) " >&6
2700
 
else
2701
 
  eval "$3=\$ac_header_compiler"
2702
 
fi
2703
 
eval ac_res=\$$3
2704
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2705
 
$as_echo "$ac_res" >&6; }
2706
 
fi
2707
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2708
 
 
2709
 
} # ac_fn_c_check_header_mongrel
2710
 
 
2711
 
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2712
 
# -------------------------------------------------------
2713
 
# Tests whether HEADER exists and can be compiled using the include files in
2714
 
# INCLUDES, setting the cache variable VAR accordingly.
2715
 
ac_fn_c_check_header_compile ()
2716
 
{
2717
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2718
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2719
 
$as_echo_n "checking for $2... " >&6; }
2720
 
if eval \${$3+:} false; then :
2721
 
  $as_echo_n "(cached) " >&6
2722
 
else
2723
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2724
 
/* end confdefs.h.  */
2725
 
$4
2726
 
#include <$2>
2727
 
_ACEOF
2728
 
if ac_fn_c_try_compile "$LINENO"; then :
2729
 
  eval "$3=yes"
2730
 
else
2731
 
  eval "$3=no"
2732
 
fi
2733
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2734
 
fi
2735
 
eval ac_res=\$$3
2736
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2737
 
$as_echo "$ac_res" >&6; }
2738
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2739
 
 
2740
 
} # ac_fn_c_check_header_compile
2741
 
 
2742
 
# ac_fn_c_check_func LINENO FUNC VAR
2743
 
# ----------------------------------
2744
 
# Tests whether FUNC exists, setting the cache variable VAR accordingly
2745
 
ac_fn_c_check_func ()
2746
 
{
2747
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2748
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2749
 
$as_echo_n "checking for $2... " >&6; }
2750
 
if eval \${$3+:} false; then :
2751
 
  $as_echo_n "(cached) " >&6
2752
 
else
2753
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2754
 
/* end confdefs.h.  */
2755
 
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2756
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2757
 
#define $2 innocuous_$2
2758
 
 
2759
 
/* System header to define __stub macros and hopefully few prototypes,
2760
 
    which can conflict with char $2 (); below.
2761
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2762
 
    <limits.h> exists even on freestanding compilers.  */
2763
 
 
2764
 
#ifdef __STDC__
2765
 
# include <limits.h>
2766
 
#else
2767
 
# include <assert.h>
2768
 
#endif
2769
 
 
2770
 
#undef $2
2771
 
 
2772
 
/* Override any GCC internal prototype to avoid an error.
2773
 
   Use char because int might match the return type of a GCC
2774
 
   builtin and then its argument prototype would still apply.  */
2775
 
#ifdef __cplusplus
2776
 
extern "C"
2777
 
#endif
2778
 
char $2 ();
2779
 
/* The GNU C library defines this for functions which it implements
2780
 
    to always fail with ENOSYS.  Some functions are actually named
2781
 
    something starting with __ and the normal name is an alias.  */
2782
 
#if defined __stub_$2 || defined __stub___$2
2783
 
choke me
2784
 
#endif
2785
 
 
2786
 
#ifdef F77_DUMMY_MAIN
2787
 
 
2788
 
#  ifdef __cplusplus
2789
 
     extern "C"
2790
 
#  endif
2791
 
   int F77_DUMMY_MAIN() { return 1; }
2792
 
 
2793
 
#endif
2794
 
int
2795
 
main ()
2796
 
{
2797
 
return $2 ();
2798
 
  ;
2799
 
  return 0;
2800
 
}
2801
 
_ACEOF
2802
 
if ac_fn_c_try_link "$LINENO"; then :
2803
 
  eval "$3=yes"
2804
 
else
2805
 
  eval "$3=no"
2806
 
fi
2807
 
rm -f core conftest.err conftest.$ac_objext \
2808
 
    conftest$ac_exeext conftest.$ac_ext
2809
 
fi
2810
 
eval ac_res=\$$3
2811
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2812
 
$as_echo "$ac_res" >&6; }
2813
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2814
 
 
2815
 
} # ac_fn_c_check_func
2816
 
cat >config.log <<_ACEOF
2817
 
This file contains any messages produced by compilers while
2818
 
running configure, to aid debugging if configure makes a mistake.
2819
 
 
2820
 
It was created by Task Scheduling Library (tascel) $as_me 0.0.1, which was
2821
 
generated by GNU Autoconf 2.68.  Invocation command line was
2822
 
 
2823
 
  $ $0 $@
2824
 
 
2825
 
_ACEOF
2826
 
exec 5>>config.log
2827
 
{
2828
 
cat <<_ASUNAME
2829
 
## --------- ##
2830
 
## Platform. ##
2831
 
## --------- ##
2832
 
 
2833
 
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2834
 
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2835
 
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2836
 
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2837
 
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2838
 
 
2839
 
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2840
 
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2841
 
 
2842
 
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2843
 
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2844
 
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2845
 
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2846
 
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2847
 
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2848
 
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2849
 
 
2850
 
_ASUNAME
2851
 
 
2852
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853
 
for as_dir in $PATH
2854
 
do
2855
 
  IFS=$as_save_IFS
2856
 
  test -z "$as_dir" && as_dir=.
2857
 
    $as_echo "PATH: $as_dir"
2858
 
  done
2859
 
IFS=$as_save_IFS
2860
 
 
2861
 
} >&5
2862
 
 
2863
 
cat >&5 <<_ACEOF
2864
 
 
2865
 
 
2866
 
## ----------- ##
2867
 
## Core tests. ##
2868
 
## ----------- ##
2869
 
 
2870
 
_ACEOF
2871
 
 
2872
 
 
2873
 
# Keep a trace of the command line.
2874
 
# Strip out --no-create and --no-recursion so they do not pile up.
2875
 
# Strip out --silent because we don't want to record it for future runs.
2876
 
# Also quote any args containing shell meta-characters.
2877
 
# Make two passes to allow for proper duplicate-argument suppression.
2878
 
ac_configure_args=
2879
 
ac_configure_args0=
2880
 
ac_configure_args1=
2881
 
ac_must_keep_next=false
2882
 
for ac_pass in 1 2
2883
 
do
2884
 
  for ac_arg
2885
 
  do
2886
 
    case $ac_arg in
2887
 
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2888
 
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2889
 
    | -silent | --silent | --silen | --sile | --sil)
2890
 
      continue ;;
2891
 
    *\'*)
2892
 
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2893
 
    esac
2894
 
    case $ac_pass in
2895
 
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2896
 
    2)
2897
 
      as_fn_append ac_configure_args1 " '$ac_arg'"
2898
 
      if test $ac_must_keep_next = true; then
2899
 
        ac_must_keep_next=false # Got value, back to normal.
2900
 
      else
2901
 
        case $ac_arg in
2902
 
          *=* | --config-cache | -C | -disable-* | --disable-* \
2903
 
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2904
 
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2905
 
          | -with-* | --with-* | -without-* | --without-* | --x)
2906
 
            case "$ac_configure_args0 " in
2907
 
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2908
 
            esac
2909
 
            ;;
2910
 
          -* ) ac_must_keep_next=true ;;
2911
 
        esac
2912
 
      fi
2913
 
      as_fn_append ac_configure_args " '$ac_arg'"
2914
 
      ;;
2915
 
    esac
2916
 
  done
2917
 
done
2918
 
{ ac_configure_args0=; unset ac_configure_args0;}
2919
 
{ ac_configure_args1=; unset ac_configure_args1;}
2920
 
 
2921
 
# When interrupted or exit'd, cleanup temporary files, and complete
2922
 
# config.log.  We remove comments because anyway the quotes in there
2923
 
# would cause problems or look ugly.
2924
 
# WARNING: Use '\'' to represent an apostrophe within the trap.
2925
 
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2926
 
trap 'exit_status=$?
2927
 
  # Save into config.log some information that might help in debugging.
2928
 
  {
2929
 
    echo
2930
 
 
2931
 
    $as_echo "## ---------------- ##
2932
 
## Cache variables. ##
2933
 
## ---------------- ##"
2934
 
    echo
2935
 
    # The following way of writing the cache mishandles newlines in values,
2936
 
(
2937
 
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2938
 
    eval ac_val=\$$ac_var
2939
 
    case $ac_val in #(
2940
 
    *${as_nl}*)
2941
 
      case $ac_var in #(
2942
 
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2943
 
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2944
 
      esac
2945
 
      case $ac_var in #(
2946
 
      _ | IFS | as_nl) ;; #(
2947
 
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2948
 
      *) { eval $ac_var=; unset $ac_var;} ;;
2949
 
      esac ;;
2950
 
    esac
2951
 
  done
2952
 
  (set) 2>&1 |
2953
 
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2954
 
    *${as_nl}ac_space=\ *)
2955
 
      sed -n \
2956
 
        "s/'\''/'\''\\\\'\'''\''/g;
2957
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2958
 
      ;; #(
2959
 
    *)
2960
 
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2961
 
      ;;
2962
 
    esac |
2963
 
    sort
2964
 
)
2965
 
    echo
2966
 
 
2967
 
    $as_echo "## ----------------- ##
2968
 
## Output variables. ##
2969
 
## ----------------- ##"
2970
 
    echo
2971
 
    for ac_var in $ac_subst_vars
2972
 
    do
2973
 
      eval ac_val=\$$ac_var
2974
 
      case $ac_val in
2975
 
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2976
 
      esac
2977
 
      $as_echo "$ac_var='\''$ac_val'\''"
2978
 
    done | sort
2979
 
    echo
2980
 
 
2981
 
    if test -n "$ac_subst_files"; then
2982
 
      $as_echo "## ------------------- ##
2983
 
## File substitutions. ##
2984
 
## ------------------- ##"
2985
 
      echo
2986
 
      for ac_var in $ac_subst_files
2987
 
      do
2988
 
        eval ac_val=\$$ac_var
2989
 
        case $ac_val in
2990
 
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2991
 
        esac
2992
 
        $as_echo "$ac_var='\''$ac_val'\''"
2993
 
      done | sort
2994
 
      echo
2995
 
    fi
2996
 
 
2997
 
    if test -s confdefs.h; then
2998
 
      $as_echo "## ----------- ##
2999
 
## confdefs.h. ##
3000
 
## ----------- ##"
3001
 
      echo
3002
 
      cat confdefs.h
3003
 
      echo
3004
 
    fi
3005
 
    test "$ac_signal" != 0 &&
3006
 
      $as_echo "$as_me: caught signal $ac_signal"
3007
 
    $as_echo "$as_me: exit $exit_status"
3008
 
  } >&5
3009
 
  rm -f core *.core core.conftest.* &&
3010
 
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3011
 
    exit $exit_status
3012
 
' 0
3013
 
for ac_signal in 1 2 13 15; do
3014
 
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3015
 
done
3016
 
ac_signal=0
3017
 
 
3018
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
3019
 
rm -f -r conftest* confdefs.h
3020
 
 
3021
 
$as_echo "/* confdefs.h */" > confdefs.h
3022
 
 
3023
 
# Predefined preprocessor variables.
3024
 
 
3025
 
cat >>confdefs.h <<_ACEOF
3026
 
#define PACKAGE_NAME "$PACKAGE_NAME"
3027
 
_ACEOF
3028
 
 
3029
 
cat >>confdefs.h <<_ACEOF
3030
 
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3031
 
_ACEOF
3032
 
 
3033
 
cat >>confdefs.h <<_ACEOF
3034
 
#define PACKAGE_VERSION "$PACKAGE_VERSION"
3035
 
_ACEOF
3036
 
 
3037
 
cat >>confdefs.h <<_ACEOF
3038
 
#define PACKAGE_STRING "$PACKAGE_STRING"
3039
 
_ACEOF
3040
 
 
3041
 
cat >>confdefs.h <<_ACEOF
3042
 
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3043
 
_ACEOF
3044
 
 
3045
 
cat >>confdefs.h <<_ACEOF
3046
 
#define PACKAGE_URL "$PACKAGE_URL"
3047
 
_ACEOF
3048
 
 
3049
 
 
3050
 
# Let the site file select an alternate cache file if it wants to.
3051
 
# Prefer an explicitly selected file to automatically selected ones.
3052
 
ac_site_file1=NONE
3053
 
ac_site_file2=NONE
3054
 
if test -n "$CONFIG_SITE"; then
3055
 
  # We do not want a PATH search for config.site.
3056
 
  case $CONFIG_SITE in #((
3057
 
    -*)  ac_site_file1=./$CONFIG_SITE;;
3058
 
    */*) ac_site_file1=$CONFIG_SITE;;
3059
 
    *)   ac_site_file1=./$CONFIG_SITE;;
3060
 
  esac
3061
 
elif test "x$prefix" != xNONE; then
3062
 
  ac_site_file1=$prefix/share/config.site
3063
 
  ac_site_file2=$prefix/etc/config.site
3064
 
else
3065
 
  ac_site_file1=$ac_default_prefix/share/config.site
3066
 
  ac_site_file2=$ac_default_prefix/etc/config.site
3067
 
fi
3068
 
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3069
 
do
3070
 
  test "x$ac_site_file" = xNONE && continue
3071
 
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3072
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3073
 
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3074
 
    sed 's/^/| /' "$ac_site_file" >&5
3075
 
    . "$ac_site_file" \
3076
 
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3077
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3078
 
as_fn_error $? "failed to load site script $ac_site_file
3079
 
See \`config.log' for more details" "$LINENO" 5; }
3080
 
  fi
3081
 
done
3082
 
 
3083
 
if test -r "$cache_file"; then
3084
 
  # Some versions of bash will fail to source /dev/null (special files
3085
 
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3086
 
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3087
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3088
 
$as_echo "$as_me: loading cache $cache_file" >&6;}
3089
 
    case $cache_file in
3090
 
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3091
 
      *)                      . "./$cache_file";;
3092
 
    esac
3093
 
  fi
3094
 
else
3095
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3096
 
$as_echo "$as_me: creating cache $cache_file" >&6;}
3097
 
  >$cache_file
3098
 
fi
3099
 
 
3100
 
# Check that the precious variables saved in the cache have kept the same
3101
 
# value.
3102
 
ac_cache_corrupted=false
3103
 
for ac_var in $ac_precious_vars; do
3104
 
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3105
 
  eval ac_new_set=\$ac_env_${ac_var}_set
3106
 
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3107
 
  eval ac_new_val=\$ac_env_${ac_var}_value
3108
 
  case $ac_old_set,$ac_new_set in
3109
 
    set,)
3110
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3111
 
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3112
 
      ac_cache_corrupted=: ;;
3113
 
    ,set)
3114
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3115
 
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3116
 
      ac_cache_corrupted=: ;;
3117
 
    ,);;
3118
 
    *)
3119
 
      if test "x$ac_old_val" != "x$ac_new_val"; then
3120
 
        # differences in whitespace do not lead to failure.
3121
 
        ac_old_val_w=`echo x $ac_old_val`
3122
 
        ac_new_val_w=`echo x $ac_new_val`
3123
 
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
3124
 
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3125
 
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3126
 
          ac_cache_corrupted=:
3127
 
        else
3128
 
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3129
 
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3130
 
          eval $ac_var=\$ac_old_val
3131
 
        fi
3132
 
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3133
 
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3134
 
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3135
 
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3136
 
      fi;;
3137
 
  esac
3138
 
  # Pass precious variables to config.status.
3139
 
  if test "$ac_new_set" = set; then
3140
 
    case $ac_new_val in
3141
 
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3142
 
    *) ac_arg=$ac_var=$ac_new_val ;;
3143
 
    esac
3144
 
    case " $ac_configure_args " in
3145
 
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3146
 
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3147
 
    esac
3148
 
  fi
3149
 
done
3150
 
if $ac_cache_corrupted; then
3151
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3152
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3153
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3154
 
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3155
 
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3156
 
fi
3157
 
## -------------------- ##
3158
 
## Main body of script. ##
3159
 
## -------------------- ##
3160
 
 
3161
 
ac_ext=c
3162
 
ac_cpp='$CPP $CPPFLAGS'
3163
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3164
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3165
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3166
 
 
3167
 
 
3168
 
ac_aux_dir=
3169
 
for ac_dir in build-aux "$srcdir"/build-aux; do
3170
 
  if test -f "$ac_dir/install-sh"; then
3171
 
    ac_aux_dir=$ac_dir
3172
 
    ac_install_sh="$ac_aux_dir/install-sh -c"
3173
 
    break
3174
 
  elif test -f "$ac_dir/install.sh"; then
3175
 
    ac_aux_dir=$ac_dir
3176
 
    ac_install_sh="$ac_aux_dir/install.sh -c"
3177
 
    break
3178
 
  elif test -f "$ac_dir/shtool"; then
3179
 
    ac_aux_dir=$ac_dir
3180
 
    ac_install_sh="$ac_aux_dir/shtool install -c"
3181
 
    break
3182
 
  fi
3183
 
done
3184
 
if test -z "$ac_aux_dir"; then
3185
 
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3186
 
fi
3187
 
 
3188
 
# These three variables are undocumented and unsupported,
3189
 
# and are intended to be withdrawn in a future Autoconf release.
3190
 
# They can cause serious problems if a builder's source tree is in a directory
3191
 
# whose full name contains unusual characters.
3192
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3193
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3194
 
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3195
 
 
3196
 
 
3197
 
ac_config_headers="$ac_config_headers config.h"
3198
 
 
3199
 
 
3200
 
 
3201
 
 
3202
 
###############################################################################
3203
 
# Must occur before automake init
3204
 
###############################################################################
3205
 
# Make sure we can run config.sub.
3206
 
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3207
 
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3208
 
 
3209
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3210
 
$as_echo_n "checking build system type... " >&6; }
3211
 
if ${ac_cv_build+:} false; then :
3212
 
  $as_echo_n "(cached) " >&6
3213
 
else
3214
 
  ac_build_alias=$build_alias
3215
 
test "x$ac_build_alias" = x &&
3216
 
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3217
 
test "x$ac_build_alias" = x &&
3218
 
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3219
 
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3220
 
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3221
 
 
3222
 
fi
3223
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3224
 
$as_echo "$ac_cv_build" >&6; }
3225
 
case $ac_cv_build in
3226
 
*-*-*) ;;
3227
 
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3228
 
esac
3229
 
build=$ac_cv_build
3230
 
ac_save_IFS=$IFS; IFS='-'
3231
 
set x $ac_cv_build
3232
 
shift
3233
 
build_cpu=$1
3234
 
build_vendor=$2
3235
 
shift; shift
3236
 
# Remember, the first character of IFS is used to create $*,
3237
 
# except with old shells:
3238
 
build_os=$*
3239
 
IFS=$ac_save_IFS
3240
 
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3241
 
 
3242
 
 
3243
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3244
 
$as_echo_n "checking host system type... " >&6; }
3245
 
if ${ac_cv_host+:} false; then :
3246
 
  $as_echo_n "(cached) " >&6
3247
 
else
3248
 
  if test "x$host_alias" = x; then
3249
 
  ac_cv_host=$ac_cv_build
3250
 
else
3251
 
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3252
 
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3253
 
fi
3254
 
 
3255
 
fi
3256
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3257
 
$as_echo "$ac_cv_host" >&6; }
3258
 
case $ac_cv_host in
3259
 
*-*-*) ;;
3260
 
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3261
 
esac
3262
 
host=$ac_cv_host
3263
 
ac_save_IFS=$IFS; IFS='-'
3264
 
set x $ac_cv_host
3265
 
shift
3266
 
host_cpu=$1
3267
 
host_vendor=$2
3268
 
shift; shift
3269
 
# Remember, the first character of IFS is used to create $*,
3270
 
# except with old shells:
3271
 
host_os=$*
3272
 
IFS=$ac_save_IFS
3273
 
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3274
 
 
3275
 
 
3276
 
# AH_TEMPLATE for all known TARGETs
3277
 
 
3278
 
 
3279
 
 
3280
 
 
3281
 
 
3282
 
 
3283
 
 
3284
 
 
3285
 
 
3286
 
 
3287
 
 
3288
 
 
3289
 
 
3290
 
 
3291
 
 
3292
 
 
3293
 
 
3294
 
 
3295
 
 
3296
 
 
3297
 
 
3298
 
 
3299
 
 
3300
 
 
3301
 
 
3302
 
 
3303
 
 
3304
 
 
3305
 
 
3306
 
 
3307
 
 
3308
 
 
3309
 
 
3310
 
 
3311
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TARGET base (64bit-ness checked later)" >&5
3312
 
$as_echo_n "checking for TARGET base (64bit-ness checked later)... " >&6; }
3313
 
if ${ga_cv_target_base+:} false; then :
3314
 
  $as_echo_n "(cached) " >&6
3315
 
else
3316
 
  ga_cv_target_base=UNKNOWN
3317
 
if test "x$ga_cv_target_base" = xUNKNOWN; then :
3318
 
  if test -f /bgsys/drivers/ppcfloor/arch/include/common/bgp_personality.h; then :
3319
 
  ga_cv_target_base=BGP
3320
 
fi
3321
 
fi
3322
 
if test "x$ga_cv_target_base" = xUNKNOWN; then :
3323
 
  if test -d /bgl/BlueLight/ppcfloor/bglsys/include; then :
3324
 
  ga_cv_target_base=BGL
3325
 
fi
3326
 
fi
3327
 
if test "x$ga_cv_target_base" = xUNKNOWN; then :
3328
 
  case $host in #(
3329
 
  *bgl*) :
3330
 
    ga_cv_target_base=BGL ;; #(
3331
 
  *bgp*) :
3332
 
    ga_cv_target_base=BGP ;; #(
3333
 
  #[TODO],            [ga_cv_target_base=CATAMOUNT],
3334
 
        #[TODO],            [ga_cv_target_base=CRAY_XT],
3335
 
        *cygwin*) :
3336
 
    ga_cv_target_base=CYGWIN ;; #(
3337
 
  *fujitsu*) :
3338
 
    ga_cv_target_base=FUJITSU_VPP ;; #(
3339
 
  *hpux*) :
3340
 
    ga_cv_target_base=HPUX ;; #(
3341
 
  *ibm*) :
3342
 
    ga_cv_target_base=IBM ;; #(
3343
 
  #[TODO],            [ga_cv_target_base=LAPI],
3344
 
        *linux*) :
3345
 
    ga_cv_target_base=LINUX ;; #(
3346
 
  *darwin*) :
3347
 
    ga_cv_target_base=MACX ;; #(
3348
 
  *apple*) :
3349
 
    ga_cv_target_base=MACX ;; #(
3350
 
  *superux*) :
3351
 
    ga_cv_target_base=NEC ;; #(
3352
 
  *solaris*) :
3353
 
    ga_cv_target_base=SOLARIS ;; #(
3354
 
  *) :
3355
 
     ;;
3356
 
esac
3357
 
fi
3358
 
 
3359
 
fi
3360
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_target_base" >&5
3361
 
$as_echo "$ga_cv_target_base" >&6; }
3362
 
cat >>confdefs.h <<_ACEOF
3363
 
#define $ga_cv_target_base 1
3364
 
_ACEOF
3365
 
 
3366
 
# A horrible hack that should go away somehow...
3367
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we think this system is what we call SYSV" >&5
3368
 
$as_echo_n "checking whether we think this system is what we call SYSV... " >&6; }
3369
 
if ${ga_cv_sysv+:} false; then :
3370
 
  $as_echo_n "(cached) " >&6
3371
 
else
3372
 
  case $ga_cv_target_base in #(
3373
 
  SUN|SOLARIS|SGI|SGI_N32|SGITFP|HPUX|IBM|DECOSF|LINUX|INTERIX|NEC|LAPI) :
3374
 
    ga_cv_sysv=yes ;; #(
3375
 
  *) :
3376
 
    ga_cv_sysv=no ;;
3377
 
esac
3378
 
 
3379
 
fi
3380
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_sysv" >&5
3381
 
$as_echo "$ga_cv_sysv" >&6; }
3382
 
    if test x$ga_cv_sysv = xyes; then :
3383
 
 
3384
 
$as_echo "#define SYSV 1" >>confdefs.h
3385
 
 
3386
 
fi
3387
 
# Hopefully these will never be used and we can remove them soon.
3388
 
 if test "$ga_cv_target_base" = BGL; then
3389
 
  BGL_TRUE=
3390
 
  BGL_FALSE='#'
3391
 
else
3392
 
  BGL_TRUE='#'
3393
 
  BGL_FALSE=
3394
 
fi
3395
 
 
3396
 
 if test "$ga_cv_target_base" = BGP; then
3397
 
  BGP_TRUE=
3398
 
  BGP_FALSE='#'
3399
 
else
3400
 
  BGP_TRUE='#'
3401
 
  BGP_FALSE=
3402
 
fi
3403
 
 
3404
 
 if test "$ga_cv_target_base" = CATAMOUNT; then
3405
 
  CATAMOUNT_TRUE=
3406
 
  CATAMOUNT_FALSE='#'
3407
 
else
3408
 
  CATAMOUNT_TRUE='#'
3409
 
  CATAMOUNT_FALSE=
3410
 
fi
3411
 
 
3412
 
 if test "$ga_cv_target_base" = CRAY_SV1; then
3413
 
  CRAY_SV1_TRUE=
3414
 
  CRAY_SV1_FALSE='#'
3415
 
else
3416
 
  CRAY_SV1_TRUE='#'
3417
 
  CRAY_SV1_FALSE=
3418
 
fi
3419
 
 
3420
 
 if test "$ga_cv_target_base" = CRAY_SV2; then
3421
 
  CRAY_SV2_TRUE=
3422
 
  CRAY_SV2_FALSE='#'
3423
 
else
3424
 
  CRAY_SV2_TRUE='#'
3425
 
  CRAY_SV2_FALSE=
3426
 
fi
3427
 
 
3428
 
 if test "$ga_cv_target_base" = CRAY_T3E; then
3429
 
  CRAY_T3E_TRUE=
3430
 
  CRAY_T3E_FALSE='#'
3431
 
else
3432
 
  CRAY_T3E_TRUE='#'
3433
 
  CRAY_T3E_FALSE=
3434
 
fi
3435
 
 
3436
 
 if test "$ga_cv_target_base" = CRAY_XT; then
3437
 
  CRAY_XT_TRUE=
3438
 
  CRAY_XT_FALSE='#'
3439
 
else
3440
 
  CRAY_XT_TRUE='#'
3441
 
  CRAY_XT_FALSE=
3442
 
fi
3443
 
 
3444
 
 if test "$ga_cv_target_base" = CRAY_YMP; then
3445
 
  CRAY_YMP_TRUE=
3446
 
  CRAY_YMP_FALSE='#'
3447
 
else
3448
 
  CRAY_YMP_TRUE='#'
3449
 
  CRAY_YMP_FALSE=
3450
 
fi
3451
 
 
3452
 
 if test "$ga_cv_target_base" = CYGNUS; then
3453
 
  CYGNUS_TRUE=
3454
 
  CYGNUS_FALSE='#'
3455
 
else
3456
 
  CYGNUS_TRUE='#'
3457
 
  CYGNUS_FALSE=
3458
 
fi
3459
 
 
3460
 
 if test "$ga_cv_target_base" = CYGWIN; then
3461
 
  CYGWIN_TRUE=
3462
 
  CYGWIN_FALSE='#'
3463
 
else
3464
 
  CYGWIN_TRUE='#'
3465
 
  CYGWIN_FALSE=
3466
 
fi
3467
 
 
3468
 
 if test "$ga_cv_target_base" = DECOSF; then
3469
 
  DECOSF_TRUE=
3470
 
  DECOSF_FALSE='#'
3471
 
else
3472
 
  DECOSF_TRUE='#'
3473
 
  DECOSF_FALSE=
3474
 
fi
3475
 
 
3476
 
 if test "$ga_cv_target_base" = FUJITSU_VPP; then
3477
 
  FUJITSU_VPP_TRUE=
3478
 
  FUJITSU_VPP_FALSE='#'
3479
 
else
3480
 
  FUJITSU_VPP_TRUE='#'
3481
 
  FUJITSU_VPP_FALSE=
3482
 
fi
3483
 
 
3484
 
 if test "$ga_cv_target_base" = HITACHI; then
3485
 
  HITACHI_TRUE=
3486
 
  HITACHI_FALSE='#'
3487
 
else
3488
 
  HITACHI_TRUE='#'
3489
 
  HITACHI_FALSE=
3490
 
fi
3491
 
 
3492
 
 if test "$ga_cv_target_base" = HPUX; then
3493
 
  HPUX_TRUE=
3494
 
  HPUX_FALSE='#'
3495
 
else
3496
 
  HPUX_TRUE='#'
3497
 
  HPUX_FALSE=
3498
 
fi
3499
 
 
3500
 
 if test "$ga_cv_target_base" = IBM; then
3501
 
  IBM_TRUE=
3502
 
  IBM_FALSE='#'
3503
 
else
3504
 
  IBM_TRUE='#'
3505
 
  IBM_FALSE=
3506
 
fi
3507
 
 
3508
 
 if test "$ga_cv_target_base" = INTERIX; then
3509
 
  INTERIX_TRUE=
3510
 
  INTERIX_FALSE='#'
3511
 
else
3512
 
  INTERIX_TRUE='#'
3513
 
  INTERIX_FALSE=
3514
 
fi
3515
 
 
3516
 
 if test "$ga_cv_target_base" = LAPI; then
3517
 
  LAPI_TRUE=
3518
 
  LAPI_FALSE='#'
3519
 
else
3520
 
  LAPI_TRUE='#'
3521
 
  LAPI_FALSE=
3522
 
fi
3523
 
 
3524
 
 if test "$ga_cv_target_base" = LINUX; then
3525
 
  LINUX_TRUE=
3526
 
  LINUX_FALSE='#'
3527
 
else
3528
 
  LINUX_TRUE='#'
3529
 
  LINUX_FALSE=
3530
 
fi
3531
 
 
3532
 
 if test "$ga_cv_target_base" = MACX; then
3533
 
  MACX_TRUE=
3534
 
  MACX_FALSE='#'
3535
 
else
3536
 
  MACX_TRUE='#'
3537
 
  MACX_FALSE=
3538
 
fi
3539
 
 
3540
 
 if test "$ga_cv_target_base" = NEC; then
3541
 
  NEC_TRUE=
3542
 
  NEC_FALSE='#'
3543
 
else
3544
 
  NEC_TRUE='#'
3545
 
  NEC_FALSE=
3546
 
fi
3547
 
 
3548
 
 if test "$ga_cv_target_base" = SGI; then
3549
 
  SGI_TRUE=
3550
 
  SGI_FALSE='#'
3551
 
else
3552
 
  SGI_TRUE='#'
3553
 
  SGI_FALSE=
3554
 
fi
3555
 
 
3556
 
 if test "$ga_cv_target_base" = SGI_N32; then
3557
 
  SGI_N32_TRUE=
3558
 
  SGI_N32_FALSE='#'
3559
 
else
3560
 
  SGI_N32_TRUE='#'
3561
 
  SGI_N32_FALSE=
3562
 
fi
3563
 
 
3564
 
 if test "$ga_cv_target_base" = SGITFP; then
3565
 
  SGITFP_TRUE=
3566
 
  SGITFP_FALSE='#'
3567
 
else
3568
 
  SGITFP_TRUE='#'
3569
 
  SGITFP_FALSE=
3570
 
fi
3571
 
 
3572
 
 if test "$ga_cv_target_base" = SOLARIS; then
3573
 
  SOLARIS_TRUE=
3574
 
  SOLARIS_FALSE='#'
3575
 
else
3576
 
  SOLARIS_TRUE='#'
3577
 
  SOLARIS_FALSE=
3578
 
fi
3579
 
 
3580
 
 
3581
 
 
3582
 
 
3583
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3584
 
$as_echo_n "checking whether we are cross compiling... " >&6; }
3585
 
if ${ga_cv_cross_compiling+:} false; then :
3586
 
  $as_echo_n "(cached) " >&6
3587
 
else
3588
 
  if test "x$ga_cv_target_base" = xBGP; then :
3589
 
  cross_compiling=yes
3590
 
fi
3591
 
     ga_cv_cross_compiling=$cross_compiling
3592
 
fi
3593
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_cross_compiling" >&5
3594
 
$as_echo "$ga_cv_cross_compiling" >&6; }
3595
 
 if test "x$cross_compiling" = xyes; then
3596
 
  CROSS_COMPILING_TRUE=
3597
 
  CROSS_COMPILING_FALSE='#'
3598
 
else
3599
 
  CROSS_COMPILING_TRUE='#'
3600
 
  CROSS_COMPILING_FALSE=
3601
 
fi
3602
 
 
3603
 
 
3604
 
 
3605
 
###############################################################################
3606
 
# Init automake
3607
 
###############################################################################
3608
 
am__api_version='1.11'
3609
 
 
3610
 
# Find a good install program.  We prefer a C program (faster),
3611
 
# so one script is as good as another.  But avoid the broken or
3612
 
# incompatible versions:
3613
 
# SysV /etc/install, /usr/sbin/install
3614
 
# SunOS /usr/etc/install
3615
 
# IRIX /sbin/install
3616
 
# AIX /bin/install
3617
 
# AmigaOS /C/install, which installs bootblocks on floppy discs
3618
 
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3619
 
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3620
 
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3621
 
# OS/2's system install, which has a completely different semantic
3622
 
# ./install, which can be erroneously created by make from ./install.sh.
3623
 
# Reject install programs that cannot install multiple files.
3624
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3625
 
$as_echo_n "checking for a BSD-compatible install... " >&6; }
3626
 
if test -z "$INSTALL"; then
3627
 
if ${ac_cv_path_install+:} false; then :
3628
 
  $as_echo_n "(cached) " >&6
3629
 
else
3630
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631
 
for as_dir in $PATH
3632
 
do
3633
 
  IFS=$as_save_IFS
3634
 
  test -z "$as_dir" && as_dir=.
3635
 
    # Account for people who put trailing slashes in PATH elements.
3636
 
case $as_dir/ in #((
3637
 
  ./ | .// | /[cC]/* | \
3638
 
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3639
 
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3640
 
  /usr/ucb/* ) ;;
3641
 
  *)
3642
 
    # OSF1 and SCO ODT 3.0 have their own names for install.
3643
 
    # Don't use installbsd from OSF since it installs stuff as root
3644
 
    # by default.
3645
 
    for ac_prog in ginstall scoinst install; do
3646
 
      for ac_exec_ext in '' $ac_executable_extensions; do
3647
 
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3648
 
          if test $ac_prog = install &&
3649
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3650
 
            # AIX install.  It has an incompatible calling convention.
3651
 
            :
3652
 
          elif test $ac_prog = install &&
3653
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3654
 
            # program-specific install script used by HP pwplus--don't use.
3655
 
            :
3656
 
          else
3657
 
            rm -rf conftest.one conftest.two conftest.dir
3658
 
            echo one > conftest.one
3659
 
            echo two > conftest.two
3660
 
            mkdir conftest.dir
3661
 
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3662
 
              test -s conftest.one && test -s conftest.two &&
3663
 
              test -s conftest.dir/conftest.one &&
3664
 
              test -s conftest.dir/conftest.two
3665
 
            then
3666
 
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3667
 
              break 3
3668
 
            fi
3669
 
          fi
3670
 
        fi
3671
 
      done
3672
 
    done
3673
 
    ;;
3674
 
esac
3675
 
 
3676
 
  done
3677
 
IFS=$as_save_IFS
3678
 
 
3679
 
rm -rf conftest.one conftest.two conftest.dir
3680
 
 
3681
 
fi
3682
 
  if test "${ac_cv_path_install+set}" = set; then
3683
 
    INSTALL=$ac_cv_path_install
3684
 
  else
3685
 
    # As a last resort, use the slow shell script.  Don't cache a
3686
 
    # value for INSTALL within a source directory, because that will
3687
 
    # break other packages using the cache if that directory is
3688
 
    # removed, or if the value is a relative name.
3689
 
    INSTALL=$ac_install_sh
3690
 
  fi
3691
 
fi
3692
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3693
 
$as_echo "$INSTALL" >&6; }
3694
 
 
3695
 
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3696
 
# It thinks the first close brace ends the variable substitution.
3697
 
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3698
 
 
3699
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3700
 
 
3701
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3702
 
 
3703
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3704
 
$as_echo_n "checking whether build environment is sane... " >&6; }
3705
 
# Just in case
3706
 
sleep 1
3707
 
echo timestamp > conftest.file
3708
 
# Reject unsafe characters in $srcdir or the absolute working directory
3709
 
# name.  Accept space and tab only in the latter.
3710
 
am_lf='
3711
 
'
3712
 
case `pwd` in
3713
 
  *[\\\"\#\$\&\'\`$am_lf]*)
3714
 
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3715
 
esac
3716
 
case $srcdir in
3717
 
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3718
 
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3719
 
esac
3720
 
 
3721
 
# Do `set' in a subshell so we don't clobber the current shell's
3722
 
# arguments.  Must try -L first in case configure is actually a
3723
 
# symlink; some systems play weird games with the mod time of symlinks
3724
 
# (eg FreeBSD returns the mod time of the symlink's containing
3725
 
# directory).
3726
 
if (
3727
 
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3728
 
   if test "$*" = "X"; then
3729
 
      # -L didn't work.
3730
 
      set X `ls -t "$srcdir/configure" conftest.file`
3731
 
   fi
3732
 
   rm -f conftest.file
3733
 
   if test "$*" != "X $srcdir/configure conftest.file" \
3734
 
      && test "$*" != "X conftest.file $srcdir/configure"; then
3735
 
 
3736
 
      # If neither matched, then we have a broken ls.  This can happen
3737
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
3738
 
      # broken ls alias from the environment.  This has actually
3739
 
      # happened.  Such a system could not be considered "sane".
3740
 
      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3741
 
alias in your environment" "$LINENO" 5
3742
 
   fi
3743
 
 
3744
 
   test "$2" = conftest.file
3745
 
   )
3746
 
then
3747
 
   # Ok.
3748
 
   :
3749
 
else
3750
 
   as_fn_error $? "newly created file is older than distributed files!
3751
 
Check your system clock" "$LINENO" 5
3752
 
fi
3753
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3754
 
$as_echo "yes" >&6; }
3755
 
test "$program_prefix" != NONE &&
3756
 
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3757
 
# Use a double $ so make ignores it.
3758
 
test "$program_suffix" != NONE &&
3759
 
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3760
 
# Double any \ or $.
3761
 
# By default was `s,x,x', remove it if useless.
3762
 
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3763
 
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3764
 
 
3765
 
# expand $ac_aux_dir to an absolute path
3766
 
am_aux_dir=`cd $ac_aux_dir && pwd`
3767
 
 
3768
 
if test x"${MISSING+set}" != xset; then
3769
 
  case $am_aux_dir in
3770
 
  *\ * | *\     *)
3771
 
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3772
 
  *)
3773
 
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3774
 
  esac
3775
 
fi
3776
 
# Use eval to expand $SHELL
3777
 
if eval "$MISSING --run true"; then
3778
 
  am_missing_run="$MISSING --run "
3779
 
else
3780
 
  am_missing_run=
3781
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3782
 
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3783
 
fi
3784
 
 
3785
 
if test x"${install_sh}" != xset; then
3786
 
  case $am_aux_dir in
3787
 
  *\ * | *\     *)
3788
 
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3789
 
  *)
3790
 
    install_sh="\${SHELL} $am_aux_dir/install-sh"
3791
 
  esac
3792
 
fi
3793
 
 
3794
 
# Installed binaries are usually stripped using `strip' when the user
3795
 
# run `make install-strip'.  However `strip' might not be the right
3796
 
# tool to use in cross-compilation environments, therefore Automake
3797
 
# will honor the `STRIP' environment variable to overrule this program.
3798
 
if test "$cross_compiling" != no; then
3799
 
  if test -n "$ac_tool_prefix"; then
3800
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3801
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
3802
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3803
 
$as_echo_n "checking for $ac_word... " >&6; }
3804
 
if ${ac_cv_prog_STRIP+:} false; then :
3805
 
  $as_echo_n "(cached) " >&6
3806
 
else
3807
 
  if test -n "$STRIP"; then
3808
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3809
 
else
3810
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811
 
for as_dir in $PATH
3812
 
do
3813
 
  IFS=$as_save_IFS
3814
 
  test -z "$as_dir" && as_dir=.
3815
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3816
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3817
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3818
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3819
 
    break 2
3820
 
  fi
3821
 
done
3822
 
  done
3823
 
IFS=$as_save_IFS
3824
 
 
3825
 
fi
3826
 
fi
3827
 
STRIP=$ac_cv_prog_STRIP
3828
 
if test -n "$STRIP"; then
3829
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3830
 
$as_echo "$STRIP" >&6; }
3831
 
else
3832
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3833
 
$as_echo "no" >&6; }
3834
 
fi
3835
 
 
3836
 
 
3837
 
fi
3838
 
if test -z "$ac_cv_prog_STRIP"; then
3839
 
  ac_ct_STRIP=$STRIP
3840
 
  # Extract the first word of "strip", so it can be a program name with args.
3841
 
set dummy strip; ac_word=$2
3842
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3843
 
$as_echo_n "checking for $ac_word... " >&6; }
3844
 
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3845
 
  $as_echo_n "(cached) " >&6
3846
 
else
3847
 
  if test -n "$ac_ct_STRIP"; then
3848
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3849
 
else
3850
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851
 
for as_dir in $PATH
3852
 
do
3853
 
  IFS=$as_save_IFS
3854
 
  test -z "$as_dir" && as_dir=.
3855
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3856
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3857
 
    ac_cv_prog_ac_ct_STRIP="strip"
3858
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3859
 
    break 2
3860
 
  fi
3861
 
done
3862
 
  done
3863
 
IFS=$as_save_IFS
3864
 
 
3865
 
fi
3866
 
fi
3867
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3868
 
if test -n "$ac_ct_STRIP"; then
3869
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3870
 
$as_echo "$ac_ct_STRIP" >&6; }
3871
 
else
3872
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3873
 
$as_echo "no" >&6; }
3874
 
fi
3875
 
 
3876
 
  if test "x$ac_ct_STRIP" = x; then
3877
 
    STRIP=":"
3878
 
  else
3879
 
    case $cross_compiling:$ac_tool_warned in
3880
 
yes:)
3881
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3882
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3883
 
ac_tool_warned=yes ;;
3884
 
esac
3885
 
    STRIP=$ac_ct_STRIP
3886
 
  fi
3887
 
else
3888
 
  STRIP="$ac_cv_prog_STRIP"
3889
 
fi
3890
 
 
3891
 
fi
3892
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3893
 
 
3894
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3895
 
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3896
 
if test -z "$MKDIR_P"; then
3897
 
  if ${ac_cv_path_mkdir+:} false; then :
3898
 
  $as_echo_n "(cached) " >&6
3899
 
else
3900
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901
 
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3902
 
do
3903
 
  IFS=$as_save_IFS
3904
 
  test -z "$as_dir" && as_dir=.
3905
 
    for ac_prog in mkdir gmkdir; do
3906
 
         for ac_exec_ext in '' $ac_executable_extensions; do
3907
 
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3908
 
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3909
 
             'mkdir (GNU coreutils) '* | \
3910
 
             'mkdir (coreutils) '* | \
3911
 
             'mkdir (fileutils) '4.1*)
3912
 
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3913
 
               break 3;;
3914
 
           esac
3915
 
         done
3916
 
       done
3917
 
  done
3918
 
IFS=$as_save_IFS
3919
 
 
3920
 
fi
3921
 
 
3922
 
  test -d ./--version && rmdir ./--version
3923
 
  if test "${ac_cv_path_mkdir+set}" = set; then
3924
 
    MKDIR_P="$ac_cv_path_mkdir -p"
3925
 
  else
3926
 
    # As a last resort, use the slow shell script.  Don't cache a
3927
 
    # value for MKDIR_P within a source directory, because that will
3928
 
    # break other packages using the cache if that directory is
3929
 
    # removed, or if the value is a relative name.
3930
 
    MKDIR_P="$ac_install_sh -d"
3931
 
  fi
3932
 
fi
3933
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3934
 
$as_echo "$MKDIR_P" >&6; }
3935
 
 
3936
 
mkdir_p="$MKDIR_P"
3937
 
case $mkdir_p in
3938
 
  [\\/$]* | ?:[\\/]*) ;;
3939
 
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3940
 
esac
3941
 
 
3942
 
for ac_prog in gawk mawk nawk awk
3943
 
do
3944
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3945
 
set dummy $ac_prog; ac_word=$2
3946
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3947
 
$as_echo_n "checking for $ac_word... " >&6; }
3948
 
if ${ac_cv_prog_AWK+:} false; then :
3949
 
  $as_echo_n "(cached) " >&6
3950
 
else
3951
 
  if test -n "$AWK"; then
3952
 
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3953
 
else
3954
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955
 
for as_dir in $PATH
3956
 
do
3957
 
  IFS=$as_save_IFS
3958
 
  test -z "$as_dir" && as_dir=.
3959
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3960
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3961
 
    ac_cv_prog_AWK="$ac_prog"
3962
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3963
 
    break 2
3964
 
  fi
3965
 
done
3966
 
  done
3967
 
IFS=$as_save_IFS
3968
 
 
3969
 
fi
3970
 
fi
3971
 
AWK=$ac_cv_prog_AWK
3972
 
if test -n "$AWK"; then
3973
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3974
 
$as_echo "$AWK" >&6; }
3975
 
else
3976
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3977
 
$as_echo "no" >&6; }
3978
 
fi
3979
 
 
3980
 
 
3981
 
  test -n "$AWK" && break
3982
 
done
3983
 
 
3984
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3985
 
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3986
 
set x ${MAKE-make}
3987
 
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3988
 
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3989
 
  $as_echo_n "(cached) " >&6
3990
 
else
3991
 
  cat >conftest.make <<\_ACEOF
3992
 
SHELL = /bin/sh
3993
 
all:
3994
 
        @echo '@@@%%%=$(MAKE)=@@@%%%'
3995
 
_ACEOF
3996
 
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3997
 
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3998
 
  *@@@%%%=?*=@@@%%%*)
3999
 
    eval ac_cv_prog_make_${ac_make}_set=yes;;
4000
 
  *)
4001
 
    eval ac_cv_prog_make_${ac_make}_set=no;;
4002
 
esac
4003
 
rm -f conftest.make
4004
 
fi
4005
 
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4006
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4007
 
$as_echo "yes" >&6; }
4008
 
  SET_MAKE=
4009
 
else
4010
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4011
 
$as_echo "no" >&6; }
4012
 
  SET_MAKE="MAKE=${MAKE-make}"
4013
 
fi
4014
 
 
4015
 
rm -rf .tst 2>/dev/null
4016
 
mkdir .tst 2>/dev/null
4017
 
if test -d .tst; then
4018
 
  am__leading_dot=.
4019
 
else
4020
 
  am__leading_dot=_
4021
 
fi
4022
 
rmdir .tst 2>/dev/null
4023
 
 
4024
 
# Check whether --enable-silent-rules was given.
4025
 
if test "${enable_silent_rules+set}" = set; then :
4026
 
  enableval=$enable_silent_rules;
4027
 
fi
4028
 
 
4029
 
case $enable_silent_rules in
4030
 
yes) AM_DEFAULT_VERBOSITY=0;;
4031
 
no)  AM_DEFAULT_VERBOSITY=1;;
4032
 
*)   AM_DEFAULT_VERBOSITY=1;;
4033
 
esac
4034
 
AM_BACKSLASH='\'
4035
 
 
4036
 
if test "`cd $srcdir && pwd`" != "`pwd`"; then
4037
 
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4038
 
  # is not polluted with repeated "-I."
4039
 
  am__isrc=' -I$(srcdir)'
4040
 
  # test to see if srcdir already configured
4041
 
  if test -f $srcdir/config.status; then
4042
 
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4043
 
  fi
4044
 
fi
4045
 
 
4046
 
# test whether we have cygpath
4047
 
if test -z "$CYGPATH_W"; then
4048
 
  if (cygpath --version) >/dev/null 2>/dev/null; then
4049
 
    CYGPATH_W='cygpath -w'
4050
 
  else
4051
 
    CYGPATH_W=echo
4052
 
  fi
4053
 
fi
4054
 
 
4055
 
 
4056
 
# Define the identity of the package.
4057
 
 PACKAGE='tascel'
4058
 
 VERSION='0.0.1'
4059
 
 
4060
 
 
4061
 
cat >>confdefs.h <<_ACEOF
4062
 
#define PACKAGE "$PACKAGE"
4063
 
_ACEOF
4064
 
 
4065
 
 
4066
 
cat >>confdefs.h <<_ACEOF
4067
 
#define VERSION "$VERSION"
4068
 
_ACEOF
4069
 
 
4070
 
# Some tools Automake needs.
4071
 
 
4072
 
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4073
 
 
4074
 
 
4075
 
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4076
 
 
4077
 
 
4078
 
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4079
 
 
4080
 
 
4081
 
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4082
 
 
4083
 
 
4084
 
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4085
 
 
4086
 
# We need awk for the "check" target.  The system "awk" is bad on
4087
 
# some platforms.
4088
 
# Always define AMTAR for backward compatibility.
4089
 
 
4090
 
AMTAR=${AMTAR-"${am_missing_run}tar"}
4091
 
 
4092
 
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4093
 
 
4094
 
 
4095
 
 
4096
 
 
4097
 
 
4098
 
 
4099
 
# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
4100
 
 
4101
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4102
 
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4103
 
    # Check whether --enable-maintainer-mode was given.
4104
 
if test "${enable_maintainer_mode+set}" = set; then :
4105
 
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4106
 
else
4107
 
  USE_MAINTAINER_MODE=no
4108
 
fi
4109
 
 
4110
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4111
 
$as_echo "$USE_MAINTAINER_MODE" >&6; }
4112
 
   if test $USE_MAINTAINER_MODE = yes; then
4113
 
  MAINTAINER_MODE_TRUE=
4114
 
  MAINTAINER_MODE_FALSE='#'
4115
 
else
4116
 
  MAINTAINER_MODE_TRUE='#'
4117
 
  MAINTAINER_MODE_FALSE=
4118
 
fi
4119
 
 
4120
 
  MAINT=$MAINTAINER_MODE_TRUE
4121
 
 
4122
 
 
4123
 
 
4124
 
###############################################################################
4125
 
# Misc. information and package setup.
4126
 
###############################################################################
4127
 
 
4128
 
# Check whether --with-PACKAGE was given.
4129
 
if test "${with_PACKAGE+set}" = set; then :
4130
 
  withval=$with_PACKAGE;
4131
 
fi
4132
 
 
4133
 
 
4134
 
TASCEL_TOP_BUILDDIR="`pwd`"
4135
 
cd "$srcdir"
4136
 
TASCEL_TOP_SRCDIR="`pwd`"
4137
 
cd "$TASCEL_TOP_BUILDDIR"
4138
 
if test "$TASCEL_TOP_BUILDDIR" != "TASCEL_TOP_SRCDIR"; then :
4139
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: Detected VPATH build" >&5
4140
 
$as_echo "$as_me: Detected VPATH build" >&6;}
4141
 
fi
4142
 
 
4143
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tascel is built outside of GA" >&5
4144
 
$as_echo_n "checking whether tascel is built outside of GA... " >&6; }
4145
 
if ${tascel_cv_standalone+:} false; then :
4146
 
  $as_echo_n "(cached) " >&6
4147
 
else
4148
 
  if test -f "$TASCEL_TOP_BUILDDIR/../armci/config.status"; then :
4149
 
  tascel_cv_standalone=no
4150
 
else
4151
 
  tascel_cv_standalone=yes
4152
 
fi
4153
 
fi
4154
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tascel_cv_standalone" >&5
4155
 
$as_echo "$tascel_cv_standalone" >&6; }
4156
 
 if test x$tascel_cv_standalone = xyes; then
4157
 
  TASCEL_STANDALONE_TRUE=
4158
 
  TASCEL_STANDALONE_FALSE='#'
4159
 
else
4160
 
  TASCEL_STANDALONE_TRUE='#'
4161
 
  TASCEL_STANDALONE_FALSE=
4162
 
fi
4163
 
 
4164
 
 
4165
 
# If MPI is desired we use the MPI compiler wrappers instead of the standard
4166
 
# compilers.
4167
 
 
4168
 
# GA_MP_* vars might exist in environment, but they are really internal.
4169
 
# Reset them.
4170
 
GA_MP_LIBS=
4171
 
GA_MP_LDFLAGS=
4172
 
GA_MP_CPPFLAGS=
4173
 
# First of all, which messaging library do we want?
4174
 
 
4175
 
 
4176
 
# Check whether --with-mpi was given.
4177
 
if test "${with_mpi+set}" = set; then :
4178
 
  withval=$with_mpi;
4179
 
else
4180
 
  with_mpi=yes
4181
 
fi
4182
 
 
4183
 
 
4184
 
with_mpi_need_parse=no
4185
 
 
4186
 
case $with_mpi in #(
4187
 
  yes) :
4188
 
    with_mpi_wrappers=yes ;; #(
4189
 
  no) :
4190
 
     ;; #(
4191
 
  *) :
4192
 
    with_mpi_need_parse=yes ;; #(
4193
 
  *) :
4194
 
     ;;
4195
 
esac
4196
 
 
4197
 
 
4198
 
 
4199
 
 
4200
 
 
4201
 
 
4202
 
 
4203
 
# F77 and C++ are always enabled for tascel
4204
 
enable_f77=yes
4205
 
enable_cxx=yes
4206
 
 
4207
 
# Check whether --enable-mpi-tests was given.
4208
 
if test "${enable_mpi_tests+set}" = set; then :
4209
 
  enableval=$enable_mpi_tests;
4210
 
else
4211
 
  enable_mpi_tests=yes
4212
 
fi
4213
 
 
4214
 
 
4215
 
 
4216
 
###############################################################################
4217
 
# C compiler
4218
 
###############################################################################
4219
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
4220
 
$as_echo "$as_me: " >&6;}
4221
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: C compiler" >&5
4222
 
$as_echo "$as_me: C compiler" >&6;}
4223
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
4224
 
$as_echo "$as_me: " >&6;}
4225
 
 
4226
 
tascel_save_CFLAGS="$CFLAGS"
4227
 
DEPDIR="${am__leading_dot}deps"
4228
 
 
4229
 
ac_config_commands="$ac_config_commands depfiles"
4230
 
 
4231
 
 
4232
 
am_make=${MAKE-make}
4233
 
cat > confinc << 'END'
4234
 
am__doit:
4235
 
        @echo this is the am__doit target
4236
 
.PHONY: am__doit
4237
 
END
4238
 
# If we don't find an include directive, just comment out the code.
4239
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4240
 
$as_echo_n "checking for style of include used by $am_make... " >&6; }
4241
 
am__include="#"
4242
 
am__quote=
4243
 
_am_result=none
4244
 
# First try GNU make style include.
4245
 
echo "include confinc" > confmf
4246
 
# Ignore all kinds of additional output from `make'.
4247
 
case `$am_make -s -f confmf 2> /dev/null` in #(
4248
 
*the\ am__doit\ target*)
4249
 
  am__include=include
4250
 
  am__quote=
4251
 
  _am_result=GNU
4252
 
  ;;
4253
 
esac
4254
 
# Now try BSD make style include.
4255
 
if test "$am__include" = "#"; then
4256
 
   echo '.include "confinc"' > confmf
4257
 
   case `$am_make -s -f confmf 2> /dev/null` in #(
4258
 
   *the\ am__doit\ target*)
4259
 
     am__include=.include
4260
 
     am__quote="\""
4261
 
     _am_result=BSD
4262
 
     ;;
4263
 
   esac
4264
 
fi
4265
 
 
4266
 
 
4267
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4268
 
$as_echo "$_am_result" >&6; }
4269
 
rm -f confinc confmf
4270
 
 
4271
 
# Check whether --enable-dependency-tracking was given.
4272
 
if test "${enable_dependency_tracking+set}" = set; then :
4273
 
  enableval=$enable_dependency_tracking;
4274
 
fi
4275
 
 
4276
 
if test "x$enable_dependency_tracking" != xno; then
4277
 
  am_depcomp="$ac_aux_dir/depcomp"
4278
 
  AMDEPBACKSLASH='\'
4279
 
fi
4280
 
 if test "x$enable_dependency_tracking" != xno; then
4281
 
  AMDEP_TRUE=
4282
 
  AMDEP_FALSE='#'
4283
 
else
4284
 
  AMDEP_TRUE='#'
4285
 
  AMDEP_FALSE=
4286
 
fi
4287
 
 
4288
 
 
4289
 
 
4290
 
case $ga_cv_target_base in #(
4291
 
  BGP) :
4292
 
    ga_mpicc_pref=mpixlc_r; ga_cc_pref=bgxlc_r ;; #(
4293
 
  *) :
4294
 
     ;;
4295
 
esac
4296
 
# In the case of using MPI wrappers, set CC=MPICC since CC will override
4297
 
# absolutely everything in our list of compilers.
4298
 
# Save CC, just in case.
4299
 
if test x$with_mpi_wrappers = xyes; then :
4300
 
  if test "x$CC" != "x$MPICC"; then :
4301
 
  ga_orig_CC="$CC"
4302
 
fi
4303
 
     case x$CC:x$MPICC in #(
4304
 
  x:x) :
4305
 
     ;; #(
4306
 
  x:x*) :
4307
 
    CC="$MPICC" ;; #(
4308
 
  x*:x) :
4309
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPI compilers desired but CC is set while MPICC is unset." >&5
4310
 
$as_echo "$as_me: WARNING: MPI compilers desired but CC is set while MPICC is unset." >&2;}
4311
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: CC will be ignored during compiler selection, but will be" >&5
4312
 
$as_echo "$as_me: WARNING: CC will be ignored during compiler selection, but will be" >&2;}
4313
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: tested first during MPI compiler unwrapping. Perhaps you" >&5
4314
 
$as_echo "$as_me: WARNING: tested first during MPI compiler unwrapping. Perhaps you" >&2;}
4315
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: meant to set MPICC instead of or in addition to CC?" >&5
4316
 
$as_echo "$as_me: WARNING: meant to set MPICC instead of or in addition to CC?" >&2;}
4317
 
 CC= ;; #(
4318
 
  x*:x*) :
4319
 
    if test "x$CC" != "x$MPICC"; then :
4320
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPI compilers desired, MPICC and CC are set, and MPICC!=CC." >&5
4321
 
$as_echo "$as_me: WARNING: MPI compilers desired, MPICC and CC are set, and MPICC!=CC." >&2;}
4322
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Choosing MPICC over CC." >&5
4323
 
$as_echo "$as_me: WARNING: Choosing MPICC over CC." >&2;}
4324
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: CC will be tested first during MPI compiler unwrapping." >&5
4325
 
$as_echo "$as_me: WARNING: CC will be tested first during MPI compiler unwrapping." >&2;}
4326
 
fi
4327
 
 CC="$MPICC" ;; #(
4328
 
  *) :
4329
 
    as_fn_error $? "CC/MPICC case failure" "$LINENO" 5 ;;
4330
 
esac
4331
 
fi
4332
 
ga_cc="bgxlc_r bgxlc xlc_r xlc pgcc pathcc icc sxcc fcc opencc suncc craycc gcc cc ecc cl ccc"
4333
 
ga_mpicc="mpicc mpixlc_r mpixlc hcc mpxlc_r mpxlc sxmpicc mpifcc mpgcc mpcc cmpicc cc"
4334
 
if test x$with_mpi_wrappers = xyes; then :
4335
 
  CC_TO_TEST="$ga_mpicc_pref $ga_mpicc"
4336
 
else
4337
 
  CC_TO_TEST="$ga_cc_pref $ga_cc"
4338
 
fi
4339
 
ac_ext=c
4340
 
ac_cpp='$CPP $CPPFLAGS'
4341
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4342
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4343
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4344
 
if test -n "$ac_tool_prefix"; then
4345
 
  for ac_prog in $CC_TO_TEST
4346
 
  do
4347
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4348
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4349
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4350
 
$as_echo_n "checking for $ac_word... " >&6; }
4351
 
if ${ac_cv_prog_CC+:} false; then :
4352
 
  $as_echo_n "(cached) " >&6
4353
 
else
4354
 
  if test -n "$CC"; then
4355
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
4356
 
else
4357
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358
 
for as_dir in $PATH
4359
 
do
4360
 
  IFS=$as_save_IFS
4361
 
  test -z "$as_dir" && as_dir=.
4362
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4363
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4364
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4365
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4366
 
    break 2
4367
 
  fi
4368
 
done
4369
 
  done
4370
 
IFS=$as_save_IFS
4371
 
 
4372
 
fi
4373
 
fi
4374
 
CC=$ac_cv_prog_CC
4375
 
if test -n "$CC"; then
4376
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4377
 
$as_echo "$CC" >&6; }
4378
 
else
4379
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4380
 
$as_echo "no" >&6; }
4381
 
fi
4382
 
 
4383
 
 
4384
 
    test -n "$CC" && break
4385
 
  done
4386
 
fi
4387
 
if test -z "$CC"; then
4388
 
  ac_ct_CC=$CC
4389
 
  for ac_prog in $CC_TO_TEST
4390
 
do
4391
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4392
 
set dummy $ac_prog; ac_word=$2
4393
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4394
 
$as_echo_n "checking for $ac_word... " >&6; }
4395
 
if ${ac_cv_prog_ac_ct_CC+:} false; then :
4396
 
  $as_echo_n "(cached) " >&6
4397
 
else
4398
 
  if test -n "$ac_ct_CC"; then
4399
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4400
 
else
4401
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402
 
for as_dir in $PATH
4403
 
do
4404
 
  IFS=$as_save_IFS
4405
 
  test -z "$as_dir" && as_dir=.
4406
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4407
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4408
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
4409
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4410
 
    break 2
4411
 
  fi
4412
 
done
4413
 
  done
4414
 
IFS=$as_save_IFS
4415
 
 
4416
 
fi
4417
 
fi
4418
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4419
 
if test -n "$ac_ct_CC"; then
4420
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4421
 
$as_echo "$ac_ct_CC" >&6; }
4422
 
else
4423
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4424
 
$as_echo "no" >&6; }
4425
 
fi
4426
 
 
4427
 
 
4428
 
  test -n "$ac_ct_CC" && break
4429
 
done
4430
 
 
4431
 
  if test "x$ac_ct_CC" = x; then
4432
 
    CC=""
4433
 
  else
4434
 
    case $cross_compiling:$ac_tool_warned in
4435
 
yes:)
4436
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4437
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4438
 
ac_tool_warned=yes ;;
4439
 
esac
4440
 
    CC=$ac_ct_CC
4441
 
  fi
4442
 
fi
4443
 
 
4444
 
 
4445
 
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4446
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4447
 
as_fn_error $? "no acceptable C compiler found in \$PATH
4448
 
See \`config.log' for more details" "$LINENO" 5; }
4449
 
 
4450
 
# Provide some information about the compiler.
4451
 
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4452
 
set X $ac_compile
4453
 
ac_compiler=$2
4454
 
for ac_option in --version -v -V -qversion; do
4455
 
  { { ac_try="$ac_compiler $ac_option >&5"
4456
 
case "(($ac_try" in
4457
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458
 
  *) ac_try_echo=$ac_try;;
4459
 
esac
4460
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4461
 
$as_echo "$ac_try_echo"; } >&5
4462
 
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4463
 
  ac_status=$?
4464
 
  if test -s conftest.err; then
4465
 
    sed '10a\
4466
 
... rest of stderr output deleted ...
4467
 
         10q' conftest.err >conftest.er1
4468
 
    cat conftest.er1 >&5
4469
 
  fi
4470
 
  rm -f conftest.er1 conftest.err
4471
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4472
 
  test $ac_status = 0; }
4473
 
done
4474
 
 
4475
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476
 
/* end confdefs.h.  */
4477
 
 
4478
 
int
4479
 
main ()
4480
 
{
4481
 
 
4482
 
  ;
4483
 
  return 0;
4484
 
}
4485
 
_ACEOF
4486
 
ac_clean_files_save=$ac_clean_files
4487
 
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4488
 
# Try to create an executable without -o first, disregard a.out.
4489
 
# It will help us diagnose broken compilers, and finding out an intuition
4490
 
# of exeext.
4491
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4492
 
$as_echo_n "checking whether the C compiler works... " >&6; }
4493
 
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4494
 
 
4495
 
# The possible output files:
4496
 
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4497
 
 
4498
 
ac_rmfiles=
4499
 
for ac_file in $ac_files
4500
 
do
4501
 
  case $ac_file in
4502
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4503
 
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4504
 
  esac
4505
 
done
4506
 
rm -f $ac_rmfiles
4507
 
 
4508
 
if { { ac_try="$ac_link_default"
4509
 
case "(($ac_try" in
4510
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4511
 
  *) ac_try_echo=$ac_try;;
4512
 
esac
4513
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4514
 
$as_echo "$ac_try_echo"; } >&5
4515
 
  (eval "$ac_link_default") 2>&5
4516
 
  ac_status=$?
4517
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4518
 
  test $ac_status = 0; }; then :
4519
 
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4520
 
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4521
 
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4522
 
# so that the user can short-circuit this test for compilers unknown to
4523
 
# Autoconf.
4524
 
for ac_file in $ac_files ''
4525
 
do
4526
 
  test -f "$ac_file" || continue
4527
 
  case $ac_file in
4528
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4529
 
        ;;
4530
 
    [ab].out )
4531
 
        # We found the default executable, but exeext='' is most
4532
 
        # certainly right.
4533
 
        break;;
4534
 
    *.* )
4535
 
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4536
 
        then :; else
4537
 
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4538
 
        fi
4539
 
        # We set ac_cv_exeext here because the later test for it is not
4540
 
        # safe: cross compilers may not add the suffix if given an `-o'
4541
 
        # argument, so we may need to know it at that point already.
4542
 
        # Even if this section looks crufty: it has the advantage of
4543
 
        # actually working.
4544
 
        break;;
4545
 
    * )
4546
 
        break;;
4547
 
  esac
4548
 
done
4549
 
test "$ac_cv_exeext" = no && ac_cv_exeext=
4550
 
 
4551
 
else
4552
 
  ac_file=''
4553
 
fi
4554
 
if test -z "$ac_file"; then :
4555
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4556
 
$as_echo "no" >&6; }
4557
 
$as_echo "$as_me: failed program was:" >&5
4558
 
sed 's/^/| /' conftest.$ac_ext >&5
4559
 
 
4560
 
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4561
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4562
 
as_fn_error 77 "C compiler cannot create executables
4563
 
See \`config.log' for more details" "$LINENO" 5; }
4564
 
else
4565
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4566
 
$as_echo "yes" >&6; }
4567
 
fi
4568
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4569
 
$as_echo_n "checking for C compiler default output file name... " >&6; }
4570
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4571
 
$as_echo "$ac_file" >&6; }
4572
 
ac_exeext=$ac_cv_exeext
4573
 
 
4574
 
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4575
 
ac_clean_files=$ac_clean_files_save
4576
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4577
 
$as_echo_n "checking for suffix of executables... " >&6; }
4578
 
if { { ac_try="$ac_link"
4579
 
case "(($ac_try" in
4580
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581
 
  *) ac_try_echo=$ac_try;;
4582
 
esac
4583
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4584
 
$as_echo "$ac_try_echo"; } >&5
4585
 
  (eval "$ac_link") 2>&5
4586
 
  ac_status=$?
4587
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4588
 
  test $ac_status = 0; }; then :
4589
 
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4590
 
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4591
 
# work properly (i.e., refer to `conftest.exe'), while it won't with
4592
 
# `rm'.
4593
 
for ac_file in conftest.exe conftest conftest.*; do
4594
 
  test -f "$ac_file" || continue
4595
 
  case $ac_file in
4596
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4597
 
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4598
 
          break;;
4599
 
    * ) break;;
4600
 
  esac
4601
 
done
4602
 
else
4603
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4604
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4605
 
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4606
 
See \`config.log' for more details" "$LINENO" 5; }
4607
 
fi
4608
 
rm -f conftest conftest$ac_cv_exeext
4609
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4610
 
$as_echo "$ac_cv_exeext" >&6; }
4611
 
 
4612
 
rm -f conftest.$ac_ext
4613
 
EXEEXT=$ac_cv_exeext
4614
 
ac_exeext=$EXEEXT
4615
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616
 
/* end confdefs.h.  */
4617
 
#include <stdio.h>
4618
 
int
4619
 
main ()
4620
 
{
4621
 
FILE *f = fopen ("conftest.out", "w");
4622
 
 return ferror (f) || fclose (f) != 0;
4623
 
 
4624
 
  ;
4625
 
  return 0;
4626
 
}
4627
 
_ACEOF
4628
 
ac_clean_files="$ac_clean_files conftest.out"
4629
 
# Check that the compiler produces executables we can run.  If not, either
4630
 
# the compiler is broken, or we cross compile.
4631
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4632
 
$as_echo_n "checking whether we are cross compiling... " >&6; }
4633
 
if test "$cross_compiling" != yes; then
4634
 
  { { ac_try="$ac_link"
4635
 
case "(($ac_try" in
4636
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4637
 
  *) ac_try_echo=$ac_try;;
4638
 
esac
4639
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4640
 
$as_echo "$ac_try_echo"; } >&5
4641
 
  (eval "$ac_link") 2>&5
4642
 
  ac_status=$?
4643
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4644
 
  test $ac_status = 0; }
4645
 
  if { ac_try='./conftest$ac_cv_exeext'
4646
 
  { { case "(($ac_try" in
4647
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4648
 
  *) ac_try_echo=$ac_try;;
4649
 
esac
4650
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4651
 
$as_echo "$ac_try_echo"; } >&5
4652
 
  (eval "$ac_try") 2>&5
4653
 
  ac_status=$?
4654
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4655
 
  test $ac_status = 0; }; }; then
4656
 
    cross_compiling=no
4657
 
  else
4658
 
    if test "$cross_compiling" = maybe; then
4659
 
        cross_compiling=yes
4660
 
    else
4661
 
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4662
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4663
 
as_fn_error $? "cannot run C compiled programs.
4664
 
If you meant to cross compile, use \`--host'.
4665
 
See \`config.log' for more details" "$LINENO" 5; }
4666
 
    fi
4667
 
  fi
4668
 
fi
4669
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4670
 
$as_echo "$cross_compiling" >&6; }
4671
 
 
4672
 
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4673
 
ac_clean_files=$ac_clean_files_save
4674
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4675
 
$as_echo_n "checking for suffix of object files... " >&6; }
4676
 
if ${ac_cv_objext+:} false; then :
4677
 
  $as_echo_n "(cached) " >&6
4678
 
else
4679
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680
 
/* end confdefs.h.  */
4681
 
 
4682
 
int
4683
 
main ()
4684
 
{
4685
 
 
4686
 
  ;
4687
 
  return 0;
4688
 
}
4689
 
_ACEOF
4690
 
rm -f conftest.o conftest.obj
4691
 
if { { ac_try="$ac_compile"
4692
 
case "(($ac_try" in
4693
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4694
 
  *) ac_try_echo=$ac_try;;
4695
 
esac
4696
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4697
 
$as_echo "$ac_try_echo"; } >&5
4698
 
  (eval "$ac_compile") 2>&5
4699
 
  ac_status=$?
4700
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4701
 
  test $ac_status = 0; }; then :
4702
 
  for ac_file in conftest.o conftest.obj conftest.*; do
4703
 
  test -f "$ac_file" || continue;
4704
 
  case $ac_file in
4705
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4706
 
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4707
 
       break;;
4708
 
  esac
4709
 
done
4710
 
else
4711
 
  $as_echo "$as_me: failed program was:" >&5
4712
 
sed 's/^/| /' conftest.$ac_ext >&5
4713
 
 
4714
 
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4715
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4716
 
as_fn_error $? "cannot compute suffix of object files: cannot compile
4717
 
See \`config.log' for more details" "$LINENO" 5; }
4718
 
fi
4719
 
rm -f conftest.$ac_cv_objext conftest.$ac_ext
4720
 
fi
4721
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4722
 
$as_echo "$ac_cv_objext" >&6; }
4723
 
OBJEXT=$ac_cv_objext
4724
 
ac_objext=$OBJEXT
4725
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4726
 
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4727
 
if ${ac_cv_c_compiler_gnu+:} false; then :
4728
 
  $as_echo_n "(cached) " >&6
4729
 
else
4730
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4731
 
/* end confdefs.h.  */
4732
 
 
4733
 
int
4734
 
main ()
4735
 
{
4736
 
#ifndef __GNUC__
4737
 
       choke me
4738
 
#endif
4739
 
 
4740
 
  ;
4741
 
  return 0;
4742
 
}
4743
 
_ACEOF
4744
 
if ac_fn_c_try_compile "$LINENO"; then :
4745
 
  ac_compiler_gnu=yes
4746
 
else
4747
 
  ac_compiler_gnu=no
4748
 
fi
4749
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4750
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4751
 
 
4752
 
fi
4753
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4754
 
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4755
 
if test $ac_compiler_gnu = yes; then
4756
 
  GCC=yes
4757
 
else
4758
 
  GCC=
4759
 
fi
4760
 
ac_test_CFLAGS=${CFLAGS+set}
4761
 
ac_save_CFLAGS=$CFLAGS
4762
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4763
 
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4764
 
if ${ac_cv_prog_cc_g+:} false; then :
4765
 
  $as_echo_n "(cached) " >&6
4766
 
else
4767
 
  ac_save_c_werror_flag=$ac_c_werror_flag
4768
 
   ac_c_werror_flag=yes
4769
 
   ac_cv_prog_cc_g=no
4770
 
   CFLAGS="-g"
4771
 
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772
 
/* end confdefs.h.  */
4773
 
 
4774
 
int
4775
 
main ()
4776
 
{
4777
 
 
4778
 
  ;
4779
 
  return 0;
4780
 
}
4781
 
_ACEOF
4782
 
if ac_fn_c_try_compile "$LINENO"; then :
4783
 
  ac_cv_prog_cc_g=yes
4784
 
else
4785
 
  CFLAGS=""
4786
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4787
 
/* end confdefs.h.  */
4788
 
 
4789
 
int
4790
 
main ()
4791
 
{
4792
 
 
4793
 
  ;
4794
 
  return 0;
4795
 
}
4796
 
_ACEOF
4797
 
if ac_fn_c_try_compile "$LINENO"; then :
4798
 
 
4799
 
else
4800
 
  ac_c_werror_flag=$ac_save_c_werror_flag
4801
 
         CFLAGS="-g"
4802
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4803
 
/* end confdefs.h.  */
4804
 
 
4805
 
int
4806
 
main ()
4807
 
{
4808
 
 
4809
 
  ;
4810
 
  return 0;
4811
 
}
4812
 
_ACEOF
4813
 
if ac_fn_c_try_compile "$LINENO"; then :
4814
 
  ac_cv_prog_cc_g=yes
4815
 
fi
4816
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4817
 
fi
4818
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4819
 
fi
4820
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4821
 
   ac_c_werror_flag=$ac_save_c_werror_flag
4822
 
fi
4823
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4824
 
$as_echo "$ac_cv_prog_cc_g" >&6; }
4825
 
if test "$ac_test_CFLAGS" = set; then
4826
 
  CFLAGS=$ac_save_CFLAGS
4827
 
elif test $ac_cv_prog_cc_g = yes; then
4828
 
  if test "$GCC" = yes; then
4829
 
    CFLAGS="-g -O2"
4830
 
  else
4831
 
    CFLAGS="-g"
4832
 
  fi
4833
 
else
4834
 
  if test "$GCC" = yes; then
4835
 
    CFLAGS="-O2"
4836
 
  else
4837
 
    CFLAGS=
4838
 
  fi
4839
 
fi
4840
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4841
 
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4842
 
if ${ac_cv_prog_cc_c89+:} false; then :
4843
 
  $as_echo_n "(cached) " >&6
4844
 
else
4845
 
  ac_cv_prog_cc_c89=no
4846
 
ac_save_CC=$CC
4847
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848
 
/* end confdefs.h.  */
4849
 
#include <stdarg.h>
4850
 
#include <stdio.h>
4851
 
#include <sys/types.h>
4852
 
#include <sys/stat.h>
4853
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4854
 
struct buf { int x; };
4855
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4856
 
static char *e (p, i)
4857
 
     char **p;
4858
 
     int i;
4859
 
{
4860
 
  return p[i];
4861
 
}
4862
 
static char *f (char * (*g) (char **, int), char **p, ...)
4863
 
{
4864
 
  char *s;
4865
 
  va_list v;
4866
 
  va_start (v,p);
4867
 
  s = g (p, va_arg (v,int));
4868
 
  va_end (v);
4869
 
  return s;
4870
 
}
4871
 
 
4872
 
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4873
 
   function prototypes and stuff, but not '\xHH' hex character constants.
4874
 
   These don't provoke an error unfortunately, instead are silently treated
4875
 
   as 'x'.  The following induces an error, until -std is added to get
4876
 
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4877
 
   array size at least.  It's necessary to write '\x00'==0 to get something
4878
 
   that's true only with -std.  */
4879
 
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4880
 
 
4881
 
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4882
 
   inside strings and character constants.  */
4883
 
#define FOO(x) 'x'
4884
 
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4885
 
 
4886
 
int test (int i, double x);
4887
 
struct s1 {int (*f) (int a);};
4888
 
struct s2 {int (*f) (double a);};
4889
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4890
 
int argc;
4891
 
char **argv;
4892
 
int
4893
 
main ()
4894
 
{
4895
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4896
 
  ;
4897
 
  return 0;
4898
 
}
4899
 
_ACEOF
4900
 
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4901
 
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4902
 
do
4903
 
  CC="$ac_save_CC $ac_arg"
4904
 
  if ac_fn_c_try_compile "$LINENO"; then :
4905
 
  ac_cv_prog_cc_c89=$ac_arg
4906
 
fi
4907
 
rm -f core conftest.err conftest.$ac_objext
4908
 
  test "x$ac_cv_prog_cc_c89" != "xno" && break
4909
 
done
4910
 
rm -f conftest.$ac_ext
4911
 
CC=$ac_save_CC
4912
 
 
4913
 
fi
4914
 
# AC_CACHE_VAL
4915
 
case "x$ac_cv_prog_cc_c89" in
4916
 
  x)
4917
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4918
 
$as_echo "none needed" >&6; } ;;
4919
 
  xno)
4920
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4921
 
$as_echo "unsupported" >&6; } ;;
4922
 
  *)
4923
 
    CC="$CC $ac_cv_prog_cc_c89"
4924
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4925
 
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4926
 
esac
4927
 
if test "x$ac_cv_prog_cc_c89" != xno; then :
4928
 
 
4929
 
fi
4930
 
 
4931
 
ac_ext=c
4932
 
ac_cpp='$CPP $CPPFLAGS'
4933
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4934
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4935
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4936
 
 
4937
 
depcc="$CC"   am_compiler_list=
4938
 
 
4939
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4940
 
$as_echo_n "checking dependency style of $depcc... " >&6; }
4941
 
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4942
 
  $as_echo_n "(cached) " >&6
4943
 
else
4944
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4945
 
  # We make a subdir and do the tests there.  Otherwise we can end up
4946
 
  # making bogus files that we don't know about and never remove.  For
4947
 
  # instance it was reported that on HP-UX the gcc test will end up
4948
 
  # making a dummy file named `D' -- because `-MD' means `put the output
4949
 
  # in D'.
4950
 
  mkdir conftest.dir
4951
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
4952
 
  # using a relative directory.
4953
 
  cp "$am_depcomp" conftest.dir
4954
 
  cd conftest.dir
4955
 
  # We will build objects and dependencies in a subdirectory because
4956
 
  # it helps to detect inapplicable dependency modes.  For instance
4957
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
4958
 
  # side effect of compilation, but ICC will put the dependencies in
4959
 
  # the current directory while Tru64 will put them in the object
4960
 
  # directory.
4961
 
  mkdir sub
4962
 
 
4963
 
  am_cv_CC_dependencies_compiler_type=none
4964
 
  if test "$am_compiler_list" = ""; then
4965
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4966
 
  fi
4967
 
  am__universal=false
4968
 
  case " $depcc " in #(
4969
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4970
 
     esac
4971
 
 
4972
 
  for depmode in $am_compiler_list; do
4973
 
    # Setup a source with many dependencies, because some compilers
4974
 
    # like to wrap large dependency lists on column 80 (with \), and
4975
 
    # we should not choose a depcomp mode which is confused by this.
4976
 
    #
4977
 
    # We need to recreate these files for each test, as the compiler may
4978
 
    # overwrite some of them when testing with obscure command lines.
4979
 
    # This happens at least with the AIX C compiler.
4980
 
    : > sub/conftest.c
4981
 
    for i in 1 2 3 4 5 6; do
4982
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4983
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4984
 
      # Solaris 8's {/usr,}/bin/sh.
4985
 
      touch sub/conftst$i.h
4986
 
    done
4987
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4988
 
 
4989
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4990
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
4991
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
4992
 
    # versions had trouble with output in subdirs
4993
 
    am__obj=sub/conftest.${OBJEXT-o}
4994
 
    am__minus_obj="-o $am__obj"
4995
 
    case $depmode in
4996
 
    gcc)
4997
 
      # This depmode causes a compiler race in universal mode.
4998
 
      test "$am__universal" = false || continue
4999
 
      ;;
5000
 
    nosideeffect)
5001
 
      # after this tag, mechanisms are not by side-effect, so they'll
5002
 
      # only be used when explicitly requested
5003
 
      if test "x$enable_dependency_tracking" = xyes; then
5004
 
        continue
5005
 
      else
5006
 
        break
5007
 
      fi
5008
 
      ;;
5009
 
    msvisualcpp | msvcmsys)
5010
 
      # This compiler won't grok `-c -o', but also, the minuso test has
5011
 
      # not run yet.  These depmodes are late enough in the game, and
5012
 
      # so weak that their functioning should not be impacted.
5013
 
      am__obj=conftest.${OBJEXT-o}
5014
 
      am__minus_obj=
5015
 
      ;;
5016
 
    none) break ;;
5017
 
    esac
5018
 
    if depmode=$depmode \
5019
 
       source=sub/conftest.c object=$am__obj \
5020
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5021
 
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5022
 
         >/dev/null 2>conftest.err &&
5023
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5024
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5025
 
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5026
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5027
 
      # icc doesn't choke on unknown options, it will just issue warnings
5028
 
      # or remarks (even with -Werror).  So we grep stderr for any message
5029
 
      # that says an option was ignored or not supported.
5030
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
5031
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
5032
 
      # The diagnosis changed in icc 8.0:
5033
 
      #   icc: Command line remark: option '-MP' not supported
5034
 
      if (grep 'ignoring option' conftest.err ||
5035
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5036
 
        am_cv_CC_dependencies_compiler_type=$depmode
5037
 
        break
5038
 
      fi
5039
 
    fi
5040
 
  done
5041
 
 
5042
 
  cd ..
5043
 
  rm -rf conftest.dir
5044
 
else
5045
 
  am_cv_CC_dependencies_compiler_type=none
5046
 
fi
5047
 
 
5048
 
fi
5049
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5050
 
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5051
 
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5052
 
 
5053
 
 if
5054
 
  test "x$enable_dependency_tracking" != xno \
5055
 
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5056
 
  am__fastdepCC_TRUE=
5057
 
  am__fastdepCC_FALSE='#'
5058
 
else
5059
 
  am__fastdepCC_TRUE='#'
5060
 
  am__fastdepCC_FALSE=
5061
 
fi
5062
 
 
5063
 
 
5064
 
 
5065
 
CFLAGS="$tascel_save_CFLAGS"
5066
 
 
5067
 
if test x$with_mpi_wrappers = xyes; then :
5068
 
 
5069
 
# Find perl.
5070
 
# Extract the first word of "perl", so it can be a program name with args.
5071
 
set dummy perl; ac_word=$2
5072
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5073
 
$as_echo_n "checking for $ac_word... " >&6; }
5074
 
if ${ac_cv_path_PERL+:} false; then :
5075
 
  $as_echo_n "(cached) " >&6
5076
 
else
5077
 
  case $PERL in
5078
 
  [\\/]* | ?:[\\/]*)
5079
 
  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5080
 
  ;;
5081
 
  *)
5082
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083
 
for as_dir in $PATH
5084
 
do
5085
 
  IFS=$as_save_IFS
5086
 
  test -z "$as_dir" && as_dir=.
5087
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5088
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5089
 
    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5090
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5091
 
    break 2
5092
 
  fi
5093
 
done
5094
 
  done
5095
 
IFS=$as_save_IFS
5096
 
 
5097
 
  ;;
5098
 
esac
5099
 
fi
5100
 
PERL=$ac_cv_path_PERL
5101
 
if test -n "$PERL"; then
5102
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5103
 
$as_echo "$PERL" >&6; }
5104
 
else
5105
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5106
 
$as_echo "no" >&6; }
5107
 
fi
5108
 
 
5109
 
 
5110
 
# Create inside.pl.
5111
 
rm -f inside.pl
5112
 
cat >inside.pl <<"EOF"
5113
 
#!/usr/bin/perl
5114
 
$numargs = $#ARGV + 1;
5115
 
if ($numargs != 2) {
5116
 
    print "Usage: wrapped.txt naked.txt\n";
5117
 
    exit 1;
5118
 
}
5119
 
# Read each input file as a string (rather than a list).
5120
 
local $/=undef;
5121
 
open WRAPPED, "$ARGV[0]" or die "Could not open wrapped text file: $!";
5122
 
$wrapped_lines = <WRAPPED>;
5123
 
close WRAPPED;
5124
 
open NAKED, "$ARGV[1]" or die "Could not open naked text file: $!";
5125
 
$naked_lines = <NAKED>;
5126
 
close NAKED;
5127
 
# Replace newlines, + from wrapped and naked lines.
5128
 
$wrapped_lines =~ tr/\n+/ /;
5129
 
$naked_lines =~ tr/\n+/ /;
5130
 
# Remove whitespace from beginning of wrapped and naked lines.
5131
 
$wrapped_lines =~ s/^\s+//;
5132
 
$naked_lines =~ s/^\s+//;
5133
 
# Remove whitespace from end of wrapped and naked lines.
5134
 
$wrapped_lines =~ s/\s+$//;
5135
 
$naked_lines =~ s/\s+$//;
5136
 
# If either wrapped_lines or naked_lines are empty, this is an error.
5137
 
# It is assumed that the particular version string which created the input
5138
 
# files should generate SOMETHING.
5139
 
unless ($wrapped_lines) {
5140
 
    exit 1;
5141
 
}
5142
 
unless ($naked_lines) {
5143
 
    exit 1;
5144
 
}
5145
 
# Can the naked lines be found within the wrapped lines?
5146
 
if ($wrapped_lines =~ /\Q$naked_lines\E/) {
5147
 
    #print "Found as substring\n";
5148
 
    exit 0;
5149
 
}
5150
 
# Are the naked lines exactly the same as the wrapped lines?
5151
 
elsif ($wrapped_lines eq $naked_lines) {
5152
 
    #print "Found equal\n";
5153
 
    exit 0;
5154
 
}
5155
 
else {
5156
 
    #print "Not found\n";
5157
 
    exit 1;
5158
 
}
5159
 
EOF
5160
 
inside="$PERL inside.pl"
5161
 
wrapped="$CC"
5162
 
case $wrapped in #(
5163
 
  *_r) :
5164
 
    compilers="bgxlc_r xlc_r" ;; #(
5165
 
  *) :
5166
 
    compilers="bgxlc xlc pgcc pathcc icc sxcc fcc opencc suncc craycc gcc ecc cl ccc cc" ;; #(
5167
 
  *) :
5168
 
     ;;
5169
 
esac
5170
 
 
5171
 
 
5172
 
 
5173
 
 
5174
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for base $wrapped compiler" >&5
5175
 
$as_echo_n "checking for base $wrapped compiler... " >&6; }
5176
 
if ${ga_cv_mpic_naked+:} false; then :
5177
 
  $as_echo_n "(cached) " >&6
5178
 
else
5179
 
 
5180
 
base="`$wrapped -show 2>/dev/null | sed 's/[    ].*$//' | head -1`"
5181
 
ga_save_CC="$CC"
5182
 
CC="$base"
5183
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5184
 
/* end confdefs.h.  */
5185
 
 
5186
 
int
5187
 
main ()
5188
 
{
5189
 
 
5190
 
  ;
5191
 
  return 0;
5192
 
}
5193
 
_ACEOF
5194
 
if ac_fn_c_try_link "$LINENO"; then :
5195
 
  ga_cv_mpic_naked="$base"
5196
 
fi
5197
 
rm -f core conftest.err conftest.$ac_objext \
5198
 
    conftest$ac_exeext conftest.$ac_ext
5199
 
CC="$ga_save_CC"
5200
 
versions="--version -v -V -qversion"
5201
 
found_wrapped_version=0
5202
 
# Try separating stdout and stderr. Only compare stdout.
5203
 
if test "x$ga_cv_mpic_naked" = x; then :
5204
 
 
5205
 
# prepend any CC/CXX/F77 the user may have specified
5206
 
compilers="$ga_orig_CC $compilers"
5207
 
echo "only comparing stdout" >&5
5208
 
for version in $versions
5209
 
do
5210
 
    echo "trying version=$version" >&5
5211
 
    rm -f mpi.txt mpi.err naked.txt naked.err
5212
 
    if $wrapped $version 1>mpi.txt 2>mpi.err; then :
5213
 
  found_wrapped_version=1
5214
 
         for naked_compiler in $compilers
5215
 
         do
5216
 
            if test "x$naked_compiler" != "x$wrapped"; then :
5217
 
  if $naked_compiler $version 1>naked.txt 2>naked.err; then :
5218
 
  if $inside mpi.txt naked.txt >/dev/null; then :
5219
 
  ga_cv_mpic_naked=$naked_compiler; break
5220
 
else
5221
 
  echo "inside.pl $wrapped $naked_compiler failed, skipping" >&5
5222
 
fi
5223
 
else
5224
 
  echo "$naked_compiler $version failed, skipping" >&5
5225
 
fi
5226
 
fi
5227
 
         done
5228
 
else
5229
 
  echo "$wrapped $version failed, skipping" >&5
5230
 
fi
5231
 
    if test "x$ga_cv_mpic_naked" != x; then :
5232
 
  break
5233
 
fi
5234
 
done
5235
 
 
5236
 
fi
5237
 
# Perhaps none of the MPI compilers had a zero exit status (this is bad).
5238
 
# In this case we have to do a brute force match regardless of exit status.
5239
 
if test "x$found_wrapped_version" = x0; then :
5240
 
 
5241
 
if test "x$ga_cv_mpic_naked" = x; then :
5242
 
 
5243
 
echo "no zero exit status found for MPI compilers" >&5
5244
 
for version in $versions
5245
 
do
5246
 
    echo "trying version=$version" >&5
5247
 
    rm -f mpi.txt mpi.err
5248
 
    $wrapped $version 1>mpi.txt 2>mpi.err
5249
 
    for naked_compiler in $compilers
5250
 
    do
5251
 
        if test "x$naked_compiler" != "x$wrapped"; then :
5252
 
  rm -f naked.txt naked.err
5253
 
             if $naked_compiler $version 1>naked.txt 2>naked.err; then :
5254
 
  if $inside mpi.txt naked.txt >/dev/null; then :
5255
 
  ga_cv_mpic_naked=$naked_compiler; break
5256
 
else
5257
 
  echo "inside.pl $wrapped $naked_compiler failed, skipping" >&5
5258
 
fi
5259
 
else
5260
 
  echo "$naked_compiler $version failed, skipping" >&5
5261
 
fi
5262
 
fi
5263
 
    done
5264
 
    if test "x$ga_cv_mpic_naked" != x; then :
5265
 
  break
5266
 
fi
5267
 
done
5268
 
 
5269
 
fi
5270
 
 
5271
 
fi
5272
 
# Try by combining stdout/err into one file.
5273
 
if test "x$ga_cv_mpic_naked" = x; then :
5274
 
 
5275
 
echo "try combining stdout and stderr into one file" >&5
5276
 
for version in $versions
5277
 
do
5278
 
    echo "trying version=$version" >&5
5279
 
    rm -f mpi.txt naked.txt
5280
 
    if $wrapped $version 1>mpi.txt 2>&1; then :
5281
 
  for naked_compiler in $compilers
5282
 
         do
5283
 
            if test "x$naked_compiler" != "x$wrapped"; then :
5284
 
  if $naked_compiler $version 1>naked.txt 2>&1; then :
5285
 
  if $inside mpi.txt naked.txt >/dev/null; then :
5286
 
  ga_cv_mpic_naked=$naked_compiler; break
5287
 
else
5288
 
  echo "inside.pl $wrapped $naked_compiler failed, skipping" >&5
5289
 
fi
5290
 
else
5291
 
  echo "$naked_compiler $version failed, skipping" >&5
5292
 
fi
5293
 
fi
5294
 
         done
5295
 
else
5296
 
  echo "$wrapped $version failed, skipping" >&5
5297
 
fi
5298
 
    if test "x$ga_cv_mpic_naked" != x; then :
5299
 
  break
5300
 
fi
5301
 
done
5302
 
 
5303
 
fi
5304
 
# If we got this far, then it's likely that the MPI compiler had a zero exit
5305
 
# status when it shouldn't have for one version flag, but later had a non-zero
5306
 
# exit status for a flag it shouldn't have.  One false positive hid a false
5307
 
# negative.  In this case, brute force compare all MPI compiler output against
5308
 
# all compiler output.
5309
 
if test "x$ga_cv_mpic_naked" = x; then :
5310
 
 
5311
 
echo "we have a very badly behaving MPI compiler" >&5
5312
 
for version in $versions
5313
 
do
5314
 
    echo "trying version=$version" >&5
5315
 
    rm -f mpi.txt mpi.err
5316
 
    $wrapped $version 1>mpi.txt 2>mpi.err
5317
 
    for naked_compiler in $compilers
5318
 
    do
5319
 
        if test "x$naked_compiler" != "x$wrapped"; then :
5320
 
  rm -f naked.txt naked.err
5321
 
             if $naked_compiler $version 1>naked.txt 2>naked.err; then :
5322
 
  if $inside mpi.txt naked.txt >/dev/null; then :
5323
 
  ga_cv_mpic_naked=$naked_compiler; break
5324
 
else
5325
 
  echo "inside.pl $wrapped $naked_compiler failed, skipping" >&5
5326
 
fi
5327
 
else
5328
 
  echo "$naked_compiler $version failed, skipping" >&5
5329
 
fi
5330
 
fi
5331
 
    done
5332
 
    if test "x$ga_cv_mpic_naked" != x; then :
5333
 
  break
5334
 
fi
5335
 
done
5336
 
 
5337
 
fi
5338
 
rm -f mpi.txt mpi.err naked.txt naked.err
5339
 
 
5340
 
fi
5341
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_mpic_naked" >&5
5342
 
$as_echo "$ga_cv_mpic_naked" >&6; }
5343
 
if test "x$ga_cv_mpic_naked" = x; then :
5344
 
  as_fn_error $? "Could not determine the C compiler wrapped by MPI" "$LINENO" 5
5345
 
else
5346
 
  if test "x$ga_orig_CC" != x && test "x$ga_orig_CC" != "x$ga_cv_mpic_naked"; then :
5347
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unwrapped $wrapped ($ga_cv_mpic_naked) does not match user-specified $ga_orig_CC" >&5
5348
 
$as_echo "$as_me: WARNING: unwrapped $wrapped ($ga_cv_mpic_naked) does not match user-specified $ga_orig_CC" >&2;}
5349
 
fi
5350
 
fi
5351
 
 
5352
 
 
5353
 
rm -f inside.pl
5354
 
 
5355
 
else
5356
 
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ga_arg_parse_sizeof_voidp"        ""; then :
5357
 
 
5358
 
fi
5359
 
 
5360
 
for arg in $with_mpi ; do
5361
 
    case $arg in #(
5362
 
  yes) :
5363
 
     ;; #(
5364
 
  no) :
5365
 
     ;; #(
5366
 
  -l*) :
5367
 
    GA_MP_LIBS="$GA_MP_LIBS $arg" ;; #(
5368
 
  -L*) :
5369
 
    GA_MP_LDFLAGS="$GA_MP_LDFLAGS $arg" ;; #(
5370
 
  -WL*) :
5371
 
    GA_MP_LDFLAGS="$GA_MP_LDFLAGS $arg" ;; #(
5372
 
  -Wl*) :
5373
 
    GA_MP_LDFLAGS="$GA_MP_LDFLAGS $arg" ;; #(
5374
 
  -I*) :
5375
 
    GA_MP_CPPFLAGS="$GA_MP_CPPFLAGS $arg" ;; #(
5376
 
  *.a) :
5377
 
    GA_MP_LIBS="$GA_MP_LIBS $arg" ;; #(
5378
 
  *.so) :
5379
 
    GA_MP_LIBS="$GA_MP_LIBS $arg" ;; #(
5380
 
  *lib) :
5381
 
    if test -d $arg; then :
5382
 
  GA_MP_LDFLAGS="$GA_MP_LDFLAGS -L$arg"
5383
 
else
5384
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi not parsed" >&5
5385
 
$as_echo "$as_me: WARNING: $arg of with_mpi not parsed" >&2;}
5386
 
fi ;; #(
5387
 
  *lib64) :
5388
 
    if test -d $arg; then :
5389
 
  GA_MP_LDFLAGS="$GA_MP_LDFLAGS -L$arg"
5390
 
else
5391
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi not parsed" >&5
5392
 
$as_echo "$as_me: WARNING: $arg of with_mpi not parsed" >&2;}
5393
 
fi ;; #(
5394
 
  *include) :
5395
 
    if test -d $arg; then :
5396
 
  GA_MP_CPPFLAGS="$GA_MP_CPPFLAGS -I$arg"
5397
 
else
5398
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi not parsed" >&5
5399
 
$as_echo "$as_me: WARNING: $arg of with_mpi not parsed" >&2;}
5400
 
fi ;; #(
5401
 
  *include64) :
5402
 
    if test -d $arg; then :
5403
 
  GA_MP_CPPFLAGS="$GA_MP_CPPFLAGS -I$arg"
5404
 
else
5405
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi not parsed" >&5
5406
 
$as_echo "$as_me: WARNING: $arg of with_mpi not parsed" >&2;}
5407
 
fi ;; #(
5408
 
  *) :
5409
 
    ga_arg_parse_ok=no ;;
5410
 
esac
5411
 
# $arg didn't fit the most common cases
5412
 
# check for subdirectories e.g. lib,include
5413
 
    if test "x$ga_arg_parse_ok" = xno; then :
5414
 
  if test "x$ga_arg_parse_sizeof_voidp" = x8; then :
5415
 
  if test -d $arg/lib64; then :
5416
 
  GA_MP_LDFLAGS="$GA_MP_LDFLAGS -L$arg/lib64"; ga_arg_parse_ok=yes
5417
 
elif test -d $arg/lib; then :
5418
 
  GA_MP_LDFLAGS="$GA_MP_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
5419
 
fi
5420
 
             if test -d $arg/include64; then :
5421
 
  GA_MP_CPPFLAGS="$GA_MP_CPPFLAGS -I$arg/include64"; ga_arg_parse_ok=yes
5422
 
elif test -d $arg/include; then :
5423
 
  GA_MP_CPPFLAGS="$GA_MP_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
5424
 
fi
5425
 
else
5426
 
  if test -d $arg/lib; then :
5427
 
  GA_MP_LDFLAGS="$GA_MP_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
5428
 
fi
5429
 
             if test -d $arg/include; then :
5430
 
  GA_MP_CPPFLAGS="$GA_MP_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
5431
 
fi
5432
 
fi
5433
 
fi
5434
 
# $arg still unknown, look for "lib" and "include" anywhere...
5435
 
    if test "x$ga_arg_parse_ok" = xno; then :
5436
 
  case $arg in #(
5437
 
  *lib*) :
5438
 
    if test -d $arg; then :
5439
 
  GA_MP_LDFLAGS="$GA_MP_LDFLAGS -L$arg"; ga_arg_parse_ok=yes
5440
 
fi ;; #(
5441
 
  *include*) :
5442
 
    if test -d $arg; then :
5443
 
  GA_MP_CPPFLAGS="$GA_MP_CPPFLAGS -I$arg"; ga_arg_parse_ok=yes
5444
 
fi ;; #(
5445
 
  *) :
5446
 
     ;;
5447
 
esac
5448
 
fi
5449
 
# warn user that $arg fell through
5450
 
     if test "x$ga_arg_parse_ok" = xno; then :
5451
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi not parsed" >&5
5452
 
$as_echo "$as_me: WARNING: $arg of with_mpi not parsed" >&2;}
5453
 
fi
5454
 
done
5455
 
fi
5456
 
 
5457
 
 
5458
 
ac_ext=c
5459
 
ac_cpp='$CPP $CPPFLAGS'
5460
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5461
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5462
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5463
 
 
5464
 
 
5465
 
ac_ext=c
5466
 
ac_cpp='$CPP $CPPFLAGS'
5467
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5468
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5469
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5470
 
 
5471
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5472
 
/* end confdefs.h.  */
5473
 
#include <mpi.h>
5474
 
int
5475
 
main ()
5476
 
{
5477
 
int myargc; char **myargv; MPI_Init(&myargc, &myargv); MPI_Finalize();
5478
 
  ;
5479
 
  return 0;
5480
 
}
5481
 
_ACEOF
5482
 
ac_ext=c
5483
 
ac_cpp='$CPP $CPPFLAGS'
5484
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5485
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5486
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5487
 
 
5488
 
 
5489
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a simple C MPI program compiles" >&5
5490
 
$as_echo_n "checking whether a simple C MPI program compiles... " >&6; }
5491
 
if ${ga_cv_c_mpi_test_compile+:} false; then :
5492
 
  $as_echo_n "(cached) " >&6
5493
 
else
5494
 
  ga_save_CPPFLAGS="$CPPFLAGS"; CPPFLAGS="$CPPFLAGS $GA_MP_CPPFLAGS"
5495
 
     if ac_fn_c_try_compile "$LINENO"; then :
5496
 
  ga_cv_c_mpi_test_compile=yes
5497
 
else
5498
 
  ga_cv_c_mpi_test_compile=no
5499
 
fi
5500
 
rm -f core conftest.err conftest.$ac_objext
5501
 
     CPPFLAGS="$ga_save_CPPFLAGS"
5502
 
fi
5503
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_c_mpi_test_compile" >&5
5504
 
$as_echo "$ga_cv_c_mpi_test_compile" >&6; }
5505
 
rm -f conftest.$ac_ext
5506
 
ac_ext=c
5507
 
ac_cpp='$CPP $CPPFLAGS'
5508
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5509
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5510
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5511
 
 
5512
 
if test "x$ga_cv_c_mpi_test_compile" = xno; then :
5513
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5514
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5515
 
as_fn_error $? "could not compile simple C MPI program
5516
 
See \`config.log' for more details" "$LINENO" 5; }
5517
 
fi
5518
 
 
5519
 
 
5520
 
# Hack to append .x to executables.
5521
 
EXEEXT=.x$EXEEXT
5522
 
 
5523
 
 
5524
 
 
5525
 
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ga_target64_sizeof_voidp"        ""; then :
5526
 
 
5527
 
fi
5528
 
 
5529
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TARGET 64bit-ness" >&5
5530
 
$as_echo_n "checking for TARGET 64bit-ness... " >&6; }
5531
 
if ${ga_cv_target+:} false; then :
5532
 
  $as_echo_n "(cached) " >&6
5533
 
else
5534
 
  if test x$ga_target64_sizeof_voidp = x8; then :
5535
 
  ga_cv_target=${ga_cv_target_base}64
5536
 
else
5537
 
  ga_cv_target=$ga_cv_target_base
5538
 
fi
5539
 
fi
5540
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_target" >&5
5541
 
$as_echo "$ga_cv_target" >&6; }
5542
 
 
5543
 
cat >>confdefs.h <<_ACEOF
5544
 
#define $ga_cv_target 1
5545
 
_ACEOF
5546
 
 
5547
 
 
5548
 
 
5549
 
# Checks for C header files.
5550
 
 
5551
 
# Checks for C typedefs, structures, and compiler characteristics.
5552
 
 
5553
 
# Checks for C library functions.
5554
 
 
5555
 
###############################################################################
5556
 
# C++ compiler
5557
 
###############################################################################
5558
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
5559
 
$as_echo "$as_me: " >&6;}
5560
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: C++ compiler" >&5
5561
 
$as_echo "$as_me: C++ compiler" >&6;}
5562
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
5563
 
$as_echo "$as_me: " >&6;}
5564
 
ac_ext=cpp
5565
 
ac_cpp='$CXXCPP $CPPFLAGS'
5566
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5567
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5568
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5569
 
 
5570
 
 
5571
 
tascel_save_CXXFLAGS="$CXXFLAGS"
5572
 
 
5573
 
case $ga_cv_target_base in #(
5574
 
  BGP) :
5575
 
    ga_mpicxx_pref=mpixlcxx_r; ga_cxx_pref=bgxlC_r ;; #(
5576
 
  *) :
5577
 
     ;;
5578
 
esac
5579
 
# In the case of using MPI wrappers, set CXX=MPICXX since CXX will override
5580
 
# absolutely everything in our list of compilers.
5581
 
if test x$with_mpi_wrappers = xyes; then :
5582
 
  if test "x$CXX" != "x$MPICXX"; then :
5583
 
  ga_orig_CXX="$CXX"
5584
 
fi
5585
 
     case x$CXX:x$MPICXX in #(
5586
 
  x:x) :
5587
 
     ;; #(
5588
 
  x:x*) :
5589
 
    CXX="$MPICXX" ;; #(
5590
 
  x*:x) :
5591
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPI compilers desired but CXX is set while MPICXX is unset." >&5
5592
 
$as_echo "$as_me: WARNING: MPI compilers desired but CXX is set while MPICXX is unset." >&2;}
5593
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: CXX will be ignored during compiler selection, but will be" >&5
5594
 
$as_echo "$as_me: WARNING: CXX will be ignored during compiler selection, but will be" >&2;}
5595
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: tested first during MPI compiler unwrapping. Perhaps you" >&5
5596
 
$as_echo "$as_me: WARNING: tested first during MPI compiler unwrapping. Perhaps you" >&2;}
5597
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: meant to set MPICXX instead of or in addition to CXX?" >&5
5598
 
$as_echo "$as_me: WARNING: meant to set MPICXX instead of or in addition to CXX?" >&2;}
5599
 
 CXX= ;; #(
5600
 
  x*:x*) :
5601
 
    if test "x$CXX" != "x$MPICXX"; then :
5602
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPI compilers desired, MPICXX and CXX are set, and MPICXX!=CXX." >&5
5603
 
$as_echo "$as_me: WARNING: MPI compilers desired, MPICXX and CXX are set, and MPICXX!=CXX." >&2;}
5604
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Choosing MPICXX over CXX." >&5
5605
 
$as_echo "$as_me: WARNING: Choosing MPICXX over CXX." >&2;}
5606
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: CXX will be tested first during MPI compiler unwrapping." >&5
5607
 
$as_echo "$as_me: WARNING: CXX will be tested first during MPI compiler unwrapping." >&2;}
5608
 
fi
5609
 
 CXX="$MPICXX" ;; #(
5610
 
  *) :
5611
 
    as_fn_error $? "CXX/MPICXX case failure" "$LINENO" 5 ;;
5612
 
esac
5613
 
fi
5614
 
ga_cxx="icpc pgCC pathCC sxc++ xlC_r xlC bgxlC_r bgxlC openCC sunCC crayCC g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC"
5615
 
ga_mpicxx="mpic++ mpicxx mpiCC sxmpic++ hcp mpxlC_r mpxlC mpixlcxx_r mpixlcxx mpg++ mpc++ mpCC cmpic++ mpiFCC CC"
5616
 
if test x$with_mpi_wrappers = xyes; then :
5617
 
  CXX_TO_TEST="$ga_mpicxx_pref $ga_mpicxx"
5618
 
else
5619
 
  CXX_TO_TEST="$ga_cxx_pref $ga_cxx"
5620
 
fi
5621
 
ac_ext=cpp
5622
 
ac_cpp='$CXXCPP $CPPFLAGS'
5623
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5624
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5625
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5626
 
if test -z "$CXX"; then
5627
 
  if test -n "$CCC"; then
5628
 
    CXX=$CCC
5629
 
  else
5630
 
    if test -n "$ac_tool_prefix"; then
5631
 
  for ac_prog in $CXX_TO_TEST
5632
 
  do
5633
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5634
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5635
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5636
 
$as_echo_n "checking for $ac_word... " >&6; }
5637
 
if ${ac_cv_prog_CXX+:} false; then :
5638
 
  $as_echo_n "(cached) " >&6
5639
 
else
5640
 
  if test -n "$CXX"; then
5641
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5642
 
else
5643
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644
 
for as_dir in $PATH
5645
 
do
5646
 
  IFS=$as_save_IFS
5647
 
  test -z "$as_dir" && as_dir=.
5648
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5649
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5650
 
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5651
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5652
 
    break 2
5653
 
  fi
5654
 
done
5655
 
  done
5656
 
IFS=$as_save_IFS
5657
 
 
5658
 
fi
5659
 
fi
5660
 
CXX=$ac_cv_prog_CXX
5661
 
if test -n "$CXX"; then
5662
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5663
 
$as_echo "$CXX" >&6; }
5664
 
else
5665
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5666
 
$as_echo "no" >&6; }
5667
 
fi
5668
 
 
5669
 
 
5670
 
    test -n "$CXX" && break
5671
 
  done
5672
 
fi
5673
 
if test -z "$CXX"; then
5674
 
  ac_ct_CXX=$CXX
5675
 
  for ac_prog in $CXX_TO_TEST
5676
 
do
5677
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5678
 
set dummy $ac_prog; ac_word=$2
5679
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5680
 
$as_echo_n "checking for $ac_word... " >&6; }
5681
 
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5682
 
  $as_echo_n "(cached) " >&6
5683
 
else
5684
 
  if test -n "$ac_ct_CXX"; then
5685
 
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5686
 
else
5687
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688
 
for as_dir in $PATH
5689
 
do
5690
 
  IFS=$as_save_IFS
5691
 
  test -z "$as_dir" && as_dir=.
5692
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5693
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5694
 
    ac_cv_prog_ac_ct_CXX="$ac_prog"
5695
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5696
 
    break 2
5697
 
  fi
5698
 
done
5699
 
  done
5700
 
IFS=$as_save_IFS
5701
 
 
5702
 
fi
5703
 
fi
5704
 
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5705
 
if test -n "$ac_ct_CXX"; then
5706
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5707
 
$as_echo "$ac_ct_CXX" >&6; }
5708
 
else
5709
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710
 
$as_echo "no" >&6; }
5711
 
fi
5712
 
 
5713
 
 
5714
 
  test -n "$ac_ct_CXX" && break
5715
 
done
5716
 
 
5717
 
  if test "x$ac_ct_CXX" = x; then
5718
 
    CXX="g++"
5719
 
  else
5720
 
    case $cross_compiling:$ac_tool_warned in
5721
 
yes:)
5722
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5723
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5724
 
ac_tool_warned=yes ;;
5725
 
esac
5726
 
    CXX=$ac_ct_CXX
5727
 
  fi
5728
 
fi
5729
 
 
5730
 
  fi
5731
 
fi
5732
 
# Provide some information about the compiler.
5733
 
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5734
 
set X $ac_compile
5735
 
ac_compiler=$2
5736
 
for ac_option in --version -v -V -qversion; do
5737
 
  { { ac_try="$ac_compiler $ac_option >&5"
5738
 
case "(($ac_try" in
5739
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5740
 
  *) ac_try_echo=$ac_try;;
5741
 
esac
5742
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5743
 
$as_echo "$ac_try_echo"; } >&5
5744
 
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5745
 
  ac_status=$?
5746
 
  if test -s conftest.err; then
5747
 
    sed '10a\
5748
 
... rest of stderr output deleted ...
5749
 
         10q' conftest.err >conftest.er1
5750
 
    cat conftest.er1 >&5
5751
 
  fi
5752
 
  rm -f conftest.er1 conftest.err
5753
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5754
 
  test $ac_status = 0; }
5755
 
done
5756
 
 
5757
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5758
 
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5759
 
if ${ac_cv_cxx_compiler_gnu+:} false; then :
5760
 
  $as_echo_n "(cached) " >&6
5761
 
else
5762
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5763
 
/* end confdefs.h.  */
5764
 
 
5765
 
int
5766
 
main ()
5767
 
{
5768
 
#ifndef __GNUC__
5769
 
       choke me
5770
 
#endif
5771
 
 
5772
 
  ;
5773
 
  return 0;
5774
 
}
5775
 
_ACEOF
5776
 
if ac_fn_cxx_try_compile "$LINENO"; then :
5777
 
  ac_compiler_gnu=yes
5778
 
else
5779
 
  ac_compiler_gnu=no
5780
 
fi
5781
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5782
 
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5783
 
 
5784
 
fi
5785
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5786
 
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5787
 
if test $ac_compiler_gnu = yes; then
5788
 
  GXX=yes
5789
 
else
5790
 
  GXX=
5791
 
fi
5792
 
ac_test_CXXFLAGS=${CXXFLAGS+set}
5793
 
ac_save_CXXFLAGS=$CXXFLAGS
5794
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5795
 
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5796
 
if ${ac_cv_prog_cxx_g+:} false; then :
5797
 
  $as_echo_n "(cached) " >&6
5798
 
else
5799
 
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5800
 
   ac_cxx_werror_flag=yes
5801
 
   ac_cv_prog_cxx_g=no
5802
 
   CXXFLAGS="-g"
5803
 
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5804
 
/* end confdefs.h.  */
5805
 
 
5806
 
int
5807
 
main ()
5808
 
{
5809
 
 
5810
 
  ;
5811
 
  return 0;
5812
 
}
5813
 
_ACEOF
5814
 
if ac_fn_cxx_try_compile "$LINENO"; then :
5815
 
  ac_cv_prog_cxx_g=yes
5816
 
else
5817
 
  CXXFLAGS=""
5818
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5819
 
/* end confdefs.h.  */
5820
 
 
5821
 
int
5822
 
main ()
5823
 
{
5824
 
 
5825
 
  ;
5826
 
  return 0;
5827
 
}
5828
 
_ACEOF
5829
 
if ac_fn_cxx_try_compile "$LINENO"; then :
5830
 
 
5831
 
else
5832
 
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5833
 
         CXXFLAGS="-g"
5834
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5835
 
/* end confdefs.h.  */
5836
 
 
5837
 
int
5838
 
main ()
5839
 
{
5840
 
 
5841
 
  ;
5842
 
  return 0;
5843
 
}
5844
 
_ACEOF
5845
 
if ac_fn_cxx_try_compile "$LINENO"; then :
5846
 
  ac_cv_prog_cxx_g=yes
5847
 
fi
5848
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5849
 
fi
5850
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5851
 
fi
5852
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5853
 
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5854
 
fi
5855
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5856
 
$as_echo "$ac_cv_prog_cxx_g" >&6; }
5857
 
if test "$ac_test_CXXFLAGS" = set; then
5858
 
  CXXFLAGS=$ac_save_CXXFLAGS
5859
 
elif test $ac_cv_prog_cxx_g = yes; then
5860
 
  if test "$GXX" = yes; then
5861
 
    CXXFLAGS="-g -O2"
5862
 
  else
5863
 
    CXXFLAGS="-g"
5864
 
  fi
5865
 
else
5866
 
  if test "$GXX" = yes; then
5867
 
    CXXFLAGS="-O2"
5868
 
  else
5869
 
    CXXFLAGS=
5870
 
  fi
5871
 
fi
5872
 
ac_ext=cpp
5873
 
ac_cpp='$CXXCPP $CPPFLAGS'
5874
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5875
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5876
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5877
 
 
5878
 
depcc="$CXX"  am_compiler_list=
5879
 
 
5880
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5881
 
$as_echo_n "checking dependency style of $depcc... " >&6; }
5882
 
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5883
 
  $as_echo_n "(cached) " >&6
5884
 
else
5885
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5886
 
  # We make a subdir and do the tests there.  Otherwise we can end up
5887
 
  # making bogus files that we don't know about and never remove.  For
5888
 
  # instance it was reported that on HP-UX the gcc test will end up
5889
 
  # making a dummy file named `D' -- because `-MD' means `put the output
5890
 
  # in D'.
5891
 
  mkdir conftest.dir
5892
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
5893
 
  # using a relative directory.
5894
 
  cp "$am_depcomp" conftest.dir
5895
 
  cd conftest.dir
5896
 
  # We will build objects and dependencies in a subdirectory because
5897
 
  # it helps to detect inapplicable dependency modes.  For instance
5898
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
5899
 
  # side effect of compilation, but ICC will put the dependencies in
5900
 
  # the current directory while Tru64 will put them in the object
5901
 
  # directory.
5902
 
  mkdir sub
5903
 
 
5904
 
  am_cv_CXX_dependencies_compiler_type=none
5905
 
  if test "$am_compiler_list" = ""; then
5906
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5907
 
  fi
5908
 
  am__universal=false
5909
 
  case " $depcc " in #(
5910
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5911
 
     esac
5912
 
 
5913
 
  for depmode in $am_compiler_list; do
5914
 
    # Setup a source with many dependencies, because some compilers
5915
 
    # like to wrap large dependency lists on column 80 (with \), and
5916
 
    # we should not choose a depcomp mode which is confused by this.
5917
 
    #
5918
 
    # We need to recreate these files for each test, as the compiler may
5919
 
    # overwrite some of them when testing with obscure command lines.
5920
 
    # This happens at least with the AIX C compiler.
5921
 
    : > sub/conftest.c
5922
 
    for i in 1 2 3 4 5 6; do
5923
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5924
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5925
 
      # Solaris 8's {/usr,}/bin/sh.
5926
 
      touch sub/conftst$i.h
5927
 
    done
5928
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5929
 
 
5930
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5931
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
5932
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
5933
 
    # versions had trouble with output in subdirs
5934
 
    am__obj=sub/conftest.${OBJEXT-o}
5935
 
    am__minus_obj="-o $am__obj"
5936
 
    case $depmode in
5937
 
    gcc)
5938
 
      # This depmode causes a compiler race in universal mode.
5939
 
      test "$am__universal" = false || continue
5940
 
      ;;
5941
 
    nosideeffect)
5942
 
      # after this tag, mechanisms are not by side-effect, so they'll
5943
 
      # only be used when explicitly requested
5944
 
      if test "x$enable_dependency_tracking" = xyes; then
5945
 
        continue
5946
 
      else
5947
 
        break
5948
 
      fi
5949
 
      ;;
5950
 
    msvisualcpp | msvcmsys)
5951
 
      # This compiler won't grok `-c -o', but also, the minuso test has
5952
 
      # not run yet.  These depmodes are late enough in the game, and
5953
 
      # so weak that their functioning should not be impacted.
5954
 
      am__obj=conftest.${OBJEXT-o}
5955
 
      am__minus_obj=
5956
 
      ;;
5957
 
    none) break ;;
5958
 
    esac
5959
 
    if depmode=$depmode \
5960
 
       source=sub/conftest.c object=$am__obj \
5961
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5962
 
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5963
 
         >/dev/null 2>conftest.err &&
5964
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5965
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5966
 
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5967
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5968
 
      # icc doesn't choke on unknown options, it will just issue warnings
5969
 
      # or remarks (even with -Werror).  So we grep stderr for any message
5970
 
      # that says an option was ignored or not supported.
5971
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
5972
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
5973
 
      # The diagnosis changed in icc 8.0:
5974
 
      #   icc: Command line remark: option '-MP' not supported
5975
 
      if (grep 'ignoring option' conftest.err ||
5976
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5977
 
        am_cv_CXX_dependencies_compiler_type=$depmode
5978
 
        break
5979
 
      fi
5980
 
    fi
5981
 
  done
5982
 
 
5983
 
  cd ..
5984
 
  rm -rf conftest.dir
5985
 
else
5986
 
  am_cv_CXX_dependencies_compiler_type=none
5987
 
fi
5988
 
 
5989
 
fi
5990
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5991
 
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5992
 
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5993
 
 
5994
 
 if
5995
 
  test "x$enable_dependency_tracking" != xno \
5996
 
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5997
 
  am__fastdepCXX_TRUE=
5998
 
  am__fastdepCXX_FALSE='#'
5999
 
else
6000
 
  am__fastdepCXX_TRUE='#'
6001
 
  am__fastdepCXX_FALSE=
6002
 
fi
6003
 
 
6004
 
 
6005
 
 
6006
 
CXXFLAGS="$tascel_save_CXXFLAGS"
6007
 
 
6008
 
if test x$with_mpi_wrappers = xyes; then :
6009
 
 
6010
 
# Find perl.
6011
 
# Extract the first word of "perl", so it can be a program name with args.
6012
 
set dummy perl; ac_word=$2
6013
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6014
 
$as_echo_n "checking for $ac_word... " >&6; }
6015
 
if ${ac_cv_path_PERL+:} false; then :
6016
 
  $as_echo_n "(cached) " >&6
6017
 
else
6018
 
  case $PERL in
6019
 
  [\\/]* | ?:[\\/]*)
6020
 
  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6021
 
  ;;
6022
 
  *)
6023
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024
 
for as_dir in $PATH
6025
 
do
6026
 
  IFS=$as_save_IFS
6027
 
  test -z "$as_dir" && as_dir=.
6028
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6029
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6030
 
    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6031
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6032
 
    break 2
6033
 
  fi
6034
 
done
6035
 
  done
6036
 
IFS=$as_save_IFS
6037
 
 
6038
 
  ;;
6039
 
esac
6040
 
fi
6041
 
PERL=$ac_cv_path_PERL
6042
 
if test -n "$PERL"; then
6043
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
6044
 
$as_echo "$PERL" >&6; }
6045
 
else
6046
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6047
 
$as_echo "no" >&6; }
6048
 
fi
6049
 
 
6050
 
 
6051
 
# Create inside.pl.
6052
 
rm -f inside.pl
6053
 
cat >inside.pl <<"EOF"
6054
 
#!/usr/bin/perl
6055
 
$numargs = $#ARGV + 1;
6056
 
if ($numargs != 2) {
6057
 
    print "Usage: wrapped.txt naked.txt\n";
6058
 
    exit 1;
6059
 
}
6060
 
# Read each input file as a string (rather than a list).
6061
 
local $/=undef;
6062
 
open WRAPPED, "$ARGV[0]" or die "Could not open wrapped text file: $!";
6063
 
$wrapped_lines = <WRAPPED>;
6064
 
close WRAPPED;
6065
 
open NAKED, "$ARGV[1]" or die "Could not open naked text file: $!";
6066
 
$naked_lines = <NAKED>;
6067
 
close NAKED;
6068
 
# Replace newlines, + from wrapped and naked lines.
6069
 
$wrapped_lines =~ tr/\n+/ /;
6070
 
$naked_lines =~ tr/\n+/ /;
6071
 
# Remove whitespace from beginning of wrapped and naked lines.
6072
 
$wrapped_lines =~ s/^\s+//;
6073
 
$naked_lines =~ s/^\s+//;
6074
 
# Remove whitespace from end of wrapped and naked lines.
6075
 
$wrapped_lines =~ s/\s+$//;
6076
 
$naked_lines =~ s/\s+$//;
6077
 
# If either wrapped_lines or naked_lines are empty, this is an error.
6078
 
# It is assumed that the particular version string which created the input
6079
 
# files should generate SOMETHING.
6080
 
unless ($wrapped_lines) {
6081
 
    exit 1;
6082
 
}
6083
 
unless ($naked_lines) {
6084
 
    exit 1;
6085
 
}
6086
 
# Can the naked lines be found within the wrapped lines?
6087
 
if ($wrapped_lines =~ /\Q$naked_lines\E/) {
6088
 
    #print "Found as substring\n";
6089
 
    exit 0;
6090
 
}
6091
 
# Are the naked lines exactly the same as the wrapped lines?
6092
 
elsif ($wrapped_lines eq $naked_lines) {
6093
 
    #print "Found equal\n";
6094
 
    exit 0;
6095
 
}
6096
 
else {
6097
 
    #print "Not found\n";
6098
 
    exit 1;
6099
 
}
6100
 
EOF
6101
 
inside="$PERL inside.pl"
6102
 
wrapped="$CXX"
6103
 
case $wrapped in #(
6104
 
  *_r) :
6105
 
    compilers="bgxlC_r xlC_r" ;; #(
6106
 
  *) :
6107
 
    compilers="icpc pgCC pathCC sxc++ xlC bgxlC openCC sunCC crayCC g++ c++ gpp aCC cxx cc++ cl.exe FCC KCC RCC CC" ;; #(
6108
 
  *) :
6109
 
     ;;
6110
 
esac
6111
 
 
6112
 
 
6113
 
 
6114
 
 
6115
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for base $wrapped compiler" >&5
6116
 
$as_echo_n "checking for base $wrapped compiler... " >&6; }
6117
 
if ${ga_cv_mpicxx_naked+:} false; then :
6118
 
  $as_echo_n "(cached) " >&6
6119
 
else
6120
 
 
6121
 
base="`$wrapped -show 2>/dev/null | sed 's/[    ].*$//' | head -1`"
6122
 
ga_save_CXX="$CXX"
6123
 
CXX="$base"
6124
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6125
 
/* end confdefs.h.  */
6126
 
 
6127
 
int
6128
 
main ()
6129
 
{
6130
 
 
6131
 
  ;
6132
 
  return 0;
6133
 
}
6134
 
_ACEOF
6135
 
if ac_fn_cxx_try_link "$LINENO"; then :
6136
 
  ga_cv_mpicxx_naked="$base"
6137
 
fi
6138
 
rm -f core conftest.err conftest.$ac_objext \
6139
 
    conftest$ac_exeext conftest.$ac_ext
6140
 
CXX="$ga_save_CXX"
6141
 
versions="--version -v -V -qversion"
6142
 
found_wrapped_version=0
6143
 
# Try separating stdout and stderr. Only compare stdout.
6144
 
if test "x$ga_cv_mpicxx_naked" = x; then :
6145
 
 
6146
 
# prepend any CC/CXX/F77 the user may have specified
6147
 
compilers="$ga_orig_CXX $compilers"
6148
 
echo "only comparing stdout" >&5
6149
 
for version in $versions
6150
 
do
6151
 
    echo "trying version=$version" >&5
6152
 
    rm -f mpi.txt mpi.err naked.txt naked.err
6153
 
    if $wrapped $version 1>mpi.txt 2>mpi.err; then :
6154
 
  found_wrapped_version=1
6155
 
         for naked_compiler in $compilers
6156
 
         do
6157
 
            if test "x$naked_compiler" != "x$wrapped"; then :
6158
 
  if $naked_compiler $version 1>naked.txt 2>naked.err; then :
6159
 
  if $inside mpi.txt naked.txt >/dev/null; then :
6160
 
  ga_cv_mpicxx_naked=$naked_compiler; break
6161
 
else
6162
 
  echo "inside.pl $wrapped $naked_compiler failed, skipping" >&5
6163
 
fi
6164
 
else
6165
 
  echo "$naked_compiler $version failed, skipping" >&5
6166
 
fi
6167
 
fi
6168
 
         done
6169
 
else
6170
 
  echo "$wrapped $version failed, skipping" >&5
6171
 
fi
6172
 
    if test "x$ga_cv_mpicxx_naked" != x; then :
6173
 
  break
6174
 
fi
6175
 
done
6176
 
 
6177
 
fi
6178
 
# Perhaps none of the MPI compilers had a zero exit status (this is bad).
6179
 
# In this case we have to do a brute force match regardless of exit status.
6180
 
if test "x$found_wrapped_version" = x0; then :
6181
 
 
6182
 
if test "x$ga_cv_mpicxx_naked" = x; then :
6183
 
 
6184
 
echo "no zero exit status found for MPI compilers" >&5
6185
 
for version in $versions
6186
 
do
6187
 
    echo "trying version=$version" >&5
6188
 
    rm -f mpi.txt mpi.err
6189
 
    $wrapped $version 1>mpi.txt 2>mpi.err
6190
 
    for naked_compiler in $compilers
6191
 
    do
6192
 
        if test "x$naked_compiler" != "x$wrapped"; then :
6193
 
  rm -f naked.txt naked.err
6194
 
             if $naked_compiler $version 1>naked.txt 2>naked.err; then :
6195
 
  if $inside mpi.txt naked.txt >/dev/null; then :
6196
 
  ga_cv_mpicxx_naked=$naked_compiler; break
6197
 
else
6198
 
  echo "inside.pl $wrapped $naked_compiler failed, skipping" >&5
6199
 
fi
6200
 
else
6201
 
  echo "$naked_compiler $version failed, skipping" >&5
6202
 
fi
6203
 
fi
6204
 
    done
6205
 
    if test "x$ga_cv_mpicxx_naked" != x; then :
6206
 
  break
6207
 
fi
6208
 
done
6209
 
 
6210
 
fi
6211
 
 
6212
 
fi
6213
 
# Try by combining stdout/err into one file.
6214
 
if test "x$ga_cv_mpicxx_naked" = x; then :
6215
 
 
6216
 
echo "try combining stdout and stderr into one file" >&5
6217
 
for version in $versions
6218
 
do
6219
 
    echo "trying version=$version" >&5
6220
 
    rm -f mpi.txt naked.txt
6221
 
    if $wrapped $version 1>mpi.txt 2>&1; then :
6222
 
  for naked_compiler in $compilers
6223
 
         do
6224
 
            if test "x$naked_compiler" != "x$wrapped"; then :
6225
 
  if $naked_compiler $version 1>naked.txt 2>&1; then :
6226
 
  if $inside mpi.txt naked.txt >/dev/null; then :
6227
 
  ga_cv_mpicxx_naked=$naked_compiler; break
6228
 
else
6229
 
  echo "inside.pl $wrapped $naked_compiler failed, skipping" >&5
6230
 
fi
6231
 
else
6232
 
  echo "$naked_compiler $version failed, skipping" >&5
6233
 
fi
6234
 
fi
6235
 
         done
6236
 
else
6237
 
  echo "$wrapped $version failed, skipping" >&5
6238
 
fi
6239
 
    if test "x$ga_cv_mpicxx_naked" != x; then :
6240
 
  break
6241
 
fi
6242
 
done
6243
 
 
6244
 
fi
6245
 
# If we got this far, then it's likely that the MPI compiler had a zero exit
6246
 
# status when it shouldn't have for one version flag, but later had a non-zero
6247
 
# exit status for a flag it shouldn't have.  One false positive hid a false
6248
 
# negative.  In this case, brute force compare all MPI compiler output against
6249
 
# all compiler output.
6250
 
if test "x$ga_cv_mpicxx_naked" = x; then :
6251
 
 
6252
 
echo "we have a very badly behaving MPI compiler" >&5
6253
 
for version in $versions
6254
 
do
6255
 
    echo "trying version=$version" >&5
6256
 
    rm -f mpi.txt mpi.err
6257
 
    $wrapped $version 1>mpi.txt 2>mpi.err
6258
 
    for naked_compiler in $compilers
6259
 
    do
6260
 
        if test "x$naked_compiler" != "x$wrapped"; then :
6261
 
  rm -f naked.txt naked.err
6262
 
             if $naked_compiler $version 1>naked.txt 2>naked.err; then :
6263
 
  if $inside mpi.txt naked.txt >/dev/null; then :
6264
 
  ga_cv_mpicxx_naked=$naked_compiler; break
6265
 
else
6266
 
  echo "inside.pl $wrapped $naked_compiler failed, skipping" >&5
6267
 
fi
6268
 
else
6269
 
  echo "$naked_compiler $version failed, skipping" >&5
6270
 
fi
6271
 
fi
6272
 
    done
6273
 
    if test "x$ga_cv_mpicxx_naked" != x; then :
6274
 
  break
6275
 
fi
6276
 
done
6277
 
 
6278
 
fi
6279
 
rm -f mpi.txt mpi.err naked.txt naked.err
6280
 
 
6281
 
fi
6282
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_mpicxx_naked" >&5
6283
 
$as_echo "$ga_cv_mpicxx_naked" >&6; }
6284
 
if test "x$ga_cv_mpicxx_naked" = x; then :
6285
 
  as_fn_error $? "Could not determine the C++ compiler wrapped by MPI" "$LINENO" 5
6286
 
else
6287
 
  if test "x$ga_orig_CXX" != x && test "x$ga_orig_CXX" != "x$ga_cv_mpicxx_naked"; then :
6288
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unwrapped $wrapped ($ga_cv_mpicxx_naked) does not match user-specified $ga_orig_CXX" >&5
6289
 
$as_echo "$as_me: WARNING: unwrapped $wrapped ($ga_cv_mpicxx_naked) does not match user-specified $ga_orig_CXX" >&2;}
6290
 
fi
6291
 
fi
6292
 
 
6293
 
 
6294
 
rm -f inside.pl
6295
 
 
6296
 
fi
6297
 
 
6298
 
if test "x$with_mpi" != xno; then :
6299
 
 
6300
 
    ac_ext=cpp
6301
 
ac_cpp='$CXXCPP $CPPFLAGS'
6302
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6303
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6304
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6305
 
 
6306
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a simple C++ MPI program works" >&5
6307
 
$as_echo_n "checking whether a simple C++ MPI program works... " >&6; }
6308
 
if ${ga_cv_cxx_mpi_test+:} false; then :
6309
 
  $as_echo_n "(cached) " >&6
6310
 
else
6311
 
 
6312
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6313
 
/* end confdefs.h.  */
6314
 
#include <mpi.h>
6315
 
int
6316
 
main ()
6317
 
{
6318
 
int myargc; char **myargv; MPI_Init(&myargc, &myargv); MPI_Finalize();
6319
 
  ;
6320
 
  return 0;
6321
 
}
6322
 
_ACEOF
6323
 
if ac_fn_cxx_try_link "$LINENO"; then :
6324
 
  ga_cv_cxx_mpi_test=yes
6325
 
else
6326
 
  ga_cv_cxx_mpi_test=no
6327
 
fi
6328
 
rm -f core conftest.err conftest.$ac_objext \
6329
 
    conftest$ac_exeext conftest.$ac_ext
6330
 
# That didn't work, so now let's try with our GA_MP_* flags.
6331
 
        if test "x$ga_cv_cxx_mpi_test" = xno; then :
6332
 
 
6333
 
        ga_save_LIBS="$LIBS";           LIBS="$LIBS $GA_MP_LIBS"
6334
 
        ga_save_CPPFLAGS="$CPPFLAGS";   CPPFLAGS="$CPPFLAGS $GA_MP_CPPFLAGS"
6335
 
        ga_save_LDFLAGS="$LDFLAGS";     LDFLAGS="$LDFLAGS $GA_MP_LDFLAGS"
6336
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6337
 
/* end confdefs.h.  */
6338
 
#include <mpi.h>
6339
 
int
6340
 
main ()
6341
 
{
6342
 
int myargc; char **myargv; MPI_Init(&myargc, &myargv); MPI_Finalize();
6343
 
  ;
6344
 
  return 0;
6345
 
}
6346
 
_ACEOF
6347
 
if ac_fn_cxx_try_link "$LINENO"; then :
6348
 
  ga_cv_cxx_mpi_test=yes
6349
 
else
6350
 
  ga_cv_cxx_mpi_test=no
6351
 
fi
6352
 
rm -f core conftest.err conftest.$ac_objext \
6353
 
    conftest$ac_exeext conftest.$ac_ext
6354
 
        LIBS="$ga_save_LIBS"
6355
 
        CPPFLAGS="$ga_save_CPPFLAGS"
6356
 
        LDFLAGS="$ga_save_LDFLAGS"
6357
 
 
6358
 
fi
6359
 
# That didn't work, so now let's try with our GA_MP_* flags and various libs.
6360
 
        if test "x$ga_cv_cxx_mpi_test" = xno; then :
6361
 
 
6362
 
        for lib in -lmpi -lmpich; do
6363
 
        ga_save_LIBS="$LIBS";           LIBS="$LIBS $GA_MP_LIBS $lib"
6364
 
        ga_save_CPPFLAGS="$CPPFLAGS";   CPPFLAGS="$CPPFLAGS $GA_MP_CPPFLAGS"
6365
 
        ga_save_LDFLAGS="$LDFLAGS";     LDFLAGS="$LDFLAGS $GA_MP_LDFLAGS"
6366
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6367
 
/* end confdefs.h.  */
6368
 
#include <mpi.h>
6369
 
int
6370
 
main ()
6371
 
{
6372
 
int myargc; char **myargv; MPI_Init(&myargc, &myargv); MPI_Finalize();
6373
 
  ;
6374
 
  return 0;
6375
 
}
6376
 
_ACEOF
6377
 
if ac_fn_cxx_try_link "$LINENO"; then :
6378
 
  ga_cv_cxx_mpi_test=$lib; break
6379
 
else
6380
 
  ga_cv_cxx_mpi_test=no
6381
 
fi
6382
 
rm -f core conftest.err conftest.$ac_objext \
6383
 
    conftest$ac_exeext conftest.$ac_ext
6384
 
        LIBS="$ga_save_LIBS"
6385
 
        CPPFLAGS="$ga_save_CPPFLAGS"
6386
 
        LDFLAGS="$ga_save_LDFLAGS"
6387
 
        done
6388
 
        LIBS="$ga_save_LIBS"
6389
 
        CPPFLAGS="$ga_save_CPPFLAGS"
6390
 
        LDFLAGS="$ga_save_LDFLAGS"
6391
 
 
6392
 
fi
6393
 
 
6394
 
fi
6395
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_cxx_mpi_test" >&5
6396
 
$as_echo "$ga_cv_cxx_mpi_test" >&6; }
6397
 
    ac_ext=cpp
6398
 
ac_cpp='$CXXCPP $CPPFLAGS'
6399
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6400
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6401
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6402
 
 
6403
 
    case $ga_cv_cxx_mpi_test in #(
6404
 
  yes) :
6405
 
     ;; #(
6406
 
  no) :
6407
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6408
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6409
 
as_fn_error $? "could not link simple C++ MPI program
6410
 
See \`config.log' for more details" "$LINENO" 5; } ;; #(
6411
 
  *) :
6412
 
    GA_MP_LIBS="$ga_cv_cxx_mpi_test" ;; #(
6413
 
  *) :
6414
 
     ;;
6415
 
esac
6416
 
 
6417
 
fi
6418
 
 
6419
 
 
6420
 
# Checks for C++ header files.
6421
 
 
6422
 
# Checks for C++ typedefs, structures, and compiler characteristics.
6423
 
ac_ext=cpp
6424
 
ac_cpp='$CXXCPP $CPPFLAGS'
6425
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6426
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6427
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6428
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6429
 
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6430
 
if test -z "$CXXCPP"; then
6431
 
  if ${ac_cv_prog_CXXCPP+:} false; then :
6432
 
  $as_echo_n "(cached) " >&6
6433
 
else
6434
 
      # Double quotes because CXXCPP needs to be expanded
6435
 
    for CXXCPP in "$CXX -E" "/lib/cpp"
6436
 
    do
6437
 
      ac_preproc_ok=false
6438
 
for ac_cxx_preproc_warn_flag in '' yes
6439
 
do
6440
 
  # Use a header file that comes with gcc, so configuring glibc
6441
 
  # with a fresh cross-compiler works.
6442
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6443
 
  # <limits.h> exists even on freestanding compilers.
6444
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
6445
 
  # not just through cpp. "Syntax error" is here to catch this case.
6446
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6447
 
/* end confdefs.h.  */
6448
 
#ifdef __STDC__
6449
 
# include <limits.h>
6450
 
#else
6451
 
# include <assert.h>
6452
 
#endif
6453
 
                     Syntax error
6454
 
_ACEOF
6455
 
if ac_fn_cxx_try_cpp "$LINENO"; then :
6456
 
 
6457
 
else
6458
 
  # Broken: fails on valid input.
6459
 
continue
6460
 
fi
6461
 
rm -f conftest.err conftest.i conftest.$ac_ext
6462
 
 
6463
 
  # OK, works on sane cases.  Now check whether nonexistent headers
6464
 
  # can be detected and how.
6465
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6466
 
/* end confdefs.h.  */
6467
 
#include <ac_nonexistent.h>
6468
 
_ACEOF
6469
 
if ac_fn_cxx_try_cpp "$LINENO"; then :
6470
 
  # Broken: success on invalid input.
6471
 
continue
6472
 
else
6473
 
  # Passes both tests.
6474
 
ac_preproc_ok=:
6475
 
break
6476
 
fi
6477
 
rm -f conftest.err conftest.i conftest.$ac_ext
6478
 
 
6479
 
done
6480
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6481
 
rm -f conftest.i conftest.err conftest.$ac_ext
6482
 
if $ac_preproc_ok; then :
6483
 
  break
6484
 
fi
6485
 
 
6486
 
    done
6487
 
    ac_cv_prog_CXXCPP=$CXXCPP
6488
 
 
6489
 
fi
6490
 
  CXXCPP=$ac_cv_prog_CXXCPP
6491
 
else
6492
 
  ac_cv_prog_CXXCPP=$CXXCPP
6493
 
fi
6494
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6495
 
$as_echo "$CXXCPP" >&6; }
6496
 
ac_preproc_ok=false
6497
 
for ac_cxx_preproc_warn_flag in '' yes
6498
 
do
6499
 
  # Use a header file that comes with gcc, so configuring glibc
6500
 
  # with a fresh cross-compiler works.
6501
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6502
 
  # <limits.h> exists even on freestanding compilers.
6503
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
6504
 
  # not just through cpp. "Syntax error" is here to catch this case.
6505
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6506
 
/* end confdefs.h.  */
6507
 
#ifdef __STDC__
6508
 
# include <limits.h>
6509
 
#else
6510
 
# include <assert.h>
6511
 
#endif
6512
 
                     Syntax error
6513
 
_ACEOF
6514
 
if ac_fn_cxx_try_cpp "$LINENO"; then :
6515
 
 
6516
 
else
6517
 
  # Broken: fails on valid input.
6518
 
continue
6519
 
fi
6520
 
rm -f conftest.err conftest.i conftest.$ac_ext
6521
 
 
6522
 
  # OK, works on sane cases.  Now check whether nonexistent headers
6523
 
  # can be detected and how.
6524
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6525
 
/* end confdefs.h.  */
6526
 
#include <ac_nonexistent.h>
6527
 
_ACEOF
6528
 
if ac_fn_cxx_try_cpp "$LINENO"; then :
6529
 
  # Broken: success on invalid input.
6530
 
continue
6531
 
else
6532
 
  # Passes both tests.
6533
 
ac_preproc_ok=:
6534
 
break
6535
 
fi
6536
 
rm -f conftest.err conftest.i conftest.$ac_ext
6537
 
 
6538
 
done
6539
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6540
 
rm -f conftest.i conftest.err conftest.$ac_ext
6541
 
if $ac_preproc_ok; then :
6542
 
 
6543
 
else
6544
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6545
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6546
 
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6547
 
See \`config.log' for more details" "$LINENO" 5; }
6548
 
fi
6549
 
 
6550
 
ac_ext=cpp
6551
 
ac_cpp='$CXXCPP $CPPFLAGS'
6552
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6553
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6554
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6555
 
 
6556
 
 
6557
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6558
 
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6559
 
if ${ac_cv_path_GREP+:} false; then :
6560
 
  $as_echo_n "(cached) " >&6
6561
 
else
6562
 
  if test -z "$GREP"; then
6563
 
  ac_path_GREP_found=false
6564
 
  # Loop through the user's path and test for each of PROGNAME-LIST
6565
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6567
 
do
6568
 
  IFS=$as_save_IFS
6569
 
  test -z "$as_dir" && as_dir=.
6570
 
    for ac_prog in grep ggrep; do
6571
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6572
 
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6573
 
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6574
 
# Check for GNU ac_path_GREP and select it if it is found.
6575
 
  # Check for GNU $ac_path_GREP
6576
 
case `"$ac_path_GREP" --version 2>&1` in
6577
 
*GNU*)
6578
 
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6579
 
*)
6580
 
  ac_count=0
6581
 
  $as_echo_n 0123456789 >"conftest.in"
6582
 
  while :
6583
 
  do
6584
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
6585
 
    mv "conftest.tmp" "conftest.in"
6586
 
    cp "conftest.in" "conftest.nl"
6587
 
    $as_echo 'GREP' >> "conftest.nl"
6588
 
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6589
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6590
 
    as_fn_arith $ac_count + 1 && ac_count=$as_val
6591
 
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6592
 
      # Best one so far, save it but keep looking for a better one
6593
 
      ac_cv_path_GREP="$ac_path_GREP"
6594
 
      ac_path_GREP_max=$ac_count
6595
 
    fi
6596
 
    # 10*(2^10) chars as input seems more than enough
6597
 
    test $ac_count -gt 10 && break
6598
 
  done
6599
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6600
 
esac
6601
 
 
6602
 
      $ac_path_GREP_found && break 3
6603
 
    done
6604
 
  done
6605
 
  done
6606
 
IFS=$as_save_IFS
6607
 
  if test -z "$ac_cv_path_GREP"; then
6608
 
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6609
 
  fi
6610
 
else
6611
 
  ac_cv_path_GREP=$GREP
6612
 
fi
6613
 
 
6614
 
fi
6615
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6616
 
$as_echo "$ac_cv_path_GREP" >&6; }
6617
 
 GREP="$ac_cv_path_GREP"
6618
 
 
6619
 
 
6620
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6621
 
$as_echo_n "checking for egrep... " >&6; }
6622
 
if ${ac_cv_path_EGREP+:} false; then :
6623
 
  $as_echo_n "(cached) " >&6
6624
 
else
6625
 
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6626
 
   then ac_cv_path_EGREP="$GREP -E"
6627
 
   else
6628
 
     if test -z "$EGREP"; then
6629
 
  ac_path_EGREP_found=false
6630
 
  # Loop through the user's path and test for each of PROGNAME-LIST
6631
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6633
 
do
6634
 
  IFS=$as_save_IFS
6635
 
  test -z "$as_dir" && as_dir=.
6636
 
    for ac_prog in egrep; do
6637
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6638
 
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6639
 
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6640
 
# Check for GNU ac_path_EGREP and select it if it is found.
6641
 
  # Check for GNU $ac_path_EGREP
6642
 
case `"$ac_path_EGREP" --version 2>&1` in
6643
 
*GNU*)
6644
 
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6645
 
*)
6646
 
  ac_count=0
6647
 
  $as_echo_n 0123456789 >"conftest.in"
6648
 
  while :
6649
 
  do
6650
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
6651
 
    mv "conftest.tmp" "conftest.in"
6652
 
    cp "conftest.in" "conftest.nl"
6653
 
    $as_echo 'EGREP' >> "conftest.nl"
6654
 
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6655
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6656
 
    as_fn_arith $ac_count + 1 && ac_count=$as_val
6657
 
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6658
 
      # Best one so far, save it but keep looking for a better one
6659
 
      ac_cv_path_EGREP="$ac_path_EGREP"
6660
 
      ac_path_EGREP_max=$ac_count
6661
 
    fi
6662
 
    # 10*(2^10) chars as input seems more than enough
6663
 
    test $ac_count -gt 10 && break
6664
 
  done
6665
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6666
 
esac
6667
 
 
6668
 
      $ac_path_EGREP_found && break 3
6669
 
    done
6670
 
  done
6671
 
  done
6672
 
IFS=$as_save_IFS
6673
 
  if test -z "$ac_cv_path_EGREP"; then
6674
 
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6675
 
  fi
6676
 
else
6677
 
  ac_cv_path_EGREP=$EGREP
6678
 
fi
6679
 
 
6680
 
   fi
6681
 
fi
6682
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6683
 
$as_echo "$ac_cv_path_EGREP" >&6; }
6684
 
 EGREP="$ac_cv_path_EGREP"
6685
 
 
6686
 
 
6687
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6688
 
$as_echo_n "checking for ANSI C header files... " >&6; }
6689
 
if ${ac_cv_header_stdc+:} false; then :
6690
 
  $as_echo_n "(cached) " >&6
6691
 
else
6692
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693
 
/* end confdefs.h.  */
6694
 
#include <stdlib.h>
6695
 
#include <stdarg.h>
6696
 
#include <string.h>
6697
 
#include <float.h>
6698
 
 
6699
 
int
6700
 
main ()
6701
 
{
6702
 
 
6703
 
  ;
6704
 
  return 0;
6705
 
}
6706
 
_ACEOF
6707
 
if ac_fn_cxx_try_compile "$LINENO"; then :
6708
 
  ac_cv_header_stdc=yes
6709
 
else
6710
 
  ac_cv_header_stdc=no
6711
 
fi
6712
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6713
 
 
6714
 
if test $ac_cv_header_stdc = yes; then
6715
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6716
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717
 
/* end confdefs.h.  */
6718
 
#include <string.h>
6719
 
 
6720
 
_ACEOF
6721
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6722
 
  $EGREP "memchr" >/dev/null 2>&1; then :
6723
 
 
6724
 
else
6725
 
  ac_cv_header_stdc=no
6726
 
fi
6727
 
rm -f conftest*
6728
 
 
6729
 
fi
6730
 
 
6731
 
if test $ac_cv_header_stdc = yes; then
6732
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6733
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6734
 
/* end confdefs.h.  */
6735
 
#include <stdlib.h>
6736
 
 
6737
 
_ACEOF
6738
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6739
 
  $EGREP "free" >/dev/null 2>&1; then :
6740
 
 
6741
 
else
6742
 
  ac_cv_header_stdc=no
6743
 
fi
6744
 
rm -f conftest*
6745
 
 
6746
 
fi
6747
 
 
6748
 
if test $ac_cv_header_stdc = yes; then
6749
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6750
 
  if test "$cross_compiling" = yes; then :
6751
 
  :
6752
 
else
6753
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754
 
/* end confdefs.h.  */
6755
 
#include <ctype.h>
6756
 
#include <stdlib.h>
6757
 
#if ((' ' & 0x0FF) == 0x020)
6758
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6759
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6760
 
#else
6761
 
# define ISLOWER(c) \
6762
 
                   (('a' <= (c) && (c) <= 'i') \
6763
 
                     || ('j' <= (c) && (c) <= 'r') \
6764
 
                     || ('s' <= (c) && (c) <= 'z'))
6765
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6766
 
#endif
6767
 
 
6768
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6769
 
int
6770
 
main ()
6771
 
{
6772
 
  int i;
6773
 
  for (i = 0; i < 256; i++)
6774
 
    if (XOR (islower (i), ISLOWER (i))
6775
 
        || toupper (i) != TOUPPER (i))
6776
 
      return 2;
6777
 
  return 0;
6778
 
}
6779
 
_ACEOF
6780
 
if ac_fn_cxx_try_run "$LINENO"; then :
6781
 
 
6782
 
else
6783
 
  ac_cv_header_stdc=no
6784
 
fi
6785
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6786
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
6787
 
fi
6788
 
 
6789
 
fi
6790
 
fi
6791
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6792
 
$as_echo "$ac_cv_header_stdc" >&6; }
6793
 
if test $ac_cv_header_stdc = yes; then
6794
 
 
6795
 
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6796
 
 
6797
 
fi
6798
 
 
6799
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6800
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6801
 
                  inttypes.h stdint.h unistd.h
6802
 
do :
6803
 
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6804
 
ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6805
 
"
6806
 
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6807
 
  cat >>confdefs.h <<_ACEOF
6808
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6809
 
_ACEOF
6810
 
 
6811
 
fi
6812
 
 
6813
 
done
6814
 
 
6815
 
 
6816
 
ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6817
 
case $ac_cv_c_int64_t in #(
6818
 
  no|yes) ;; #(
6819
 
  *)
6820
 
 
6821
 
cat >>confdefs.h <<_ACEOF
6822
 
#define int64_t $ac_cv_c_int64_t
6823
 
_ACEOF
6824
 
;;
6825
 
esac
6826
 
 
6827
 
 
6828
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6829
 
$as_echo_n "checking for long double... " >&6; }
6830
 
if ${ac_cv_type_long_double+:} false; then :
6831
 
  $as_echo_n "(cached) " >&6
6832
 
else
6833
 
  if test "$GCC" = yes; then
6834
 
       ac_cv_type_long_double=yes
6835
 
     else
6836
 
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6837
 
/* end confdefs.h.  */
6838
 
/* The Stardent Vistra knows sizeof (long double), but does
6839
 
                 not support it.  */
6840
 
              long double foo = 0.0L;
6841
 
int
6842
 
main ()
6843
 
{
6844
 
static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
6845
 
              sizeof (double) <= sizeof (long double))];
6846
 
test_array [0] = 0
6847
 
 
6848
 
  ;
6849
 
  return 0;
6850
 
}
6851
 
_ACEOF
6852
 
if ac_fn_cxx_try_compile "$LINENO"; then :
6853
 
  ac_cv_type_long_double=yes
6854
 
else
6855
 
  ac_cv_type_long_double=no
6856
 
fi
6857
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6858
 
     fi
6859
 
fi
6860
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
6861
 
$as_echo "$ac_cv_type_long_double" >&6; }
6862
 
  if test $ac_cv_type_long_double = yes; then
6863
 
 
6864
 
$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6865
 
 
6866
 
  fi
6867
 
 
6868
 
 
6869
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6870
 
$as_echo_n "checking for long long int... " >&6; }
6871
 
if ${ac_cv_type_long_long_int+:} false; then :
6872
 
  $as_echo_n "(cached) " >&6
6873
 
else
6874
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875
 
/* end confdefs.h.  */
6876
 
 
6877
 
  /* For now, do not test the preprocessor; as of 2007 there are too many
6878
 
         implementations with broken preprocessors.  Perhaps this can
6879
 
         be revisited in 2012.  In the meantime, code should not expect
6880
 
         #if to work with literals wider than 32 bits.  */
6881
 
      /* Test literals.  */
6882
 
      long long int ll = 9223372036854775807ll;
6883
 
      long long int nll = -9223372036854775807LL;
6884
 
      unsigned long long int ull = 18446744073709551615ULL;
6885
 
      /* Test constant expressions.   */
6886
 
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6887
 
                     ? 1 : -1)];
6888
 
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6889
 
                     ? 1 : -1)];
6890
 
      int i = 63;
6891
 
int
6892
 
main ()
6893
 
{
6894
 
/* Test availability of runtime routines for shift and division.  */
6895
 
      long long int llmax = 9223372036854775807ll;
6896
 
      unsigned long long int ullmax = 18446744073709551615ull;
6897
 
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6898
 
              | (llmax / ll) | (llmax % ll)
6899
 
              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6900
 
              | (ullmax / ull) | (ullmax % ull));
6901
 
  ;
6902
 
  return 0;
6903
 
}
6904
 
 
6905
 
_ACEOF
6906
 
if ac_fn_cxx_try_link "$LINENO"; then :
6907
 
                        if test "$cross_compiling" = yes; then :
6908
 
  ac_cv_type_long_long_int=yes
6909
 
else
6910
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6911
 
/* end confdefs.h.  */
6912
 
#include <limits.h>
6913
 
               #ifndef LLONG_MAX
6914
 
               # define HALF \
6915
 
                        (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6916
 
               # define LLONG_MAX (HALF - 1 + HALF)
6917
 
               #endif
6918
 
int
6919
 
main ()
6920
 
{
6921
 
long long int n = 1;
6922
 
               int i;
6923
 
               for (i = 0; ; i++)
6924
 
                 {
6925
 
                   long long int m = n << i;
6926
 
                   if (m >> i != n)
6927
 
                     return 1;
6928
 
                   if (LLONG_MAX / 2 < m)
6929
 
                     break;
6930
 
                 }
6931
 
               return 0;
6932
 
  ;
6933
 
  return 0;
6934
 
}
6935
 
_ACEOF
6936
 
if ac_fn_cxx_try_run "$LINENO"; then :
6937
 
  ac_cv_type_long_long_int=yes
6938
 
else
6939
 
  ac_cv_type_long_long_int=no
6940
 
fi
6941
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6942
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
6943
 
fi
6944
 
 
6945
 
else
6946
 
  ac_cv_type_long_long_int=no
6947
 
fi
6948
 
rm -f core conftest.err conftest.$ac_objext \
6949
 
    conftest$ac_exeext conftest.$ac_ext
6950
 
fi
6951
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6952
 
$as_echo "$ac_cv_type_long_long_int" >&6; }
6953
 
  if test $ac_cv_type_long_long_int = yes; then
6954
 
 
6955
 
$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6956
 
 
6957
 
  fi
6958
 
 
6959
 
ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6960
 
if test "x$ac_cv_type_size_t" = xyes; then :
6961
 
 
6962
 
else
6963
 
 
6964
 
cat >>confdefs.h <<_ACEOF
6965
 
#define size_t unsigned int
6966
 
_ACEOF
6967
 
 
6968
 
fi
6969
 
 
6970
 
 
6971
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6972
 
$as_echo_n "checking for unsigned long long int... " >&6; }
6973
 
if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6974
 
  $as_echo_n "(cached) " >&6
6975
 
else
6976
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6977
 
/* end confdefs.h.  */
6978
 
 
6979
 
  /* For now, do not test the preprocessor; as of 2007 there are too many
6980
 
         implementations with broken preprocessors.  Perhaps this can
6981
 
         be revisited in 2012.  In the meantime, code should not expect
6982
 
         #if to work with literals wider than 32 bits.  */
6983
 
      /* Test literals.  */
6984
 
      long long int ll = 9223372036854775807ll;
6985
 
      long long int nll = -9223372036854775807LL;
6986
 
      unsigned long long int ull = 18446744073709551615ULL;
6987
 
      /* Test constant expressions.   */
6988
 
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6989
 
                     ? 1 : -1)];
6990
 
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6991
 
                     ? 1 : -1)];
6992
 
      int i = 63;
6993
 
int
6994
 
main ()
6995
 
{
6996
 
/* Test availability of runtime routines for shift and division.  */
6997
 
      long long int llmax = 9223372036854775807ll;
6998
 
      unsigned long long int ullmax = 18446744073709551615ull;
6999
 
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7000
 
              | (llmax / ll) | (llmax % ll)
7001
 
              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7002
 
              | (ullmax / ull) | (ullmax % ull));
7003
 
  ;
7004
 
  return 0;
7005
 
}
7006
 
 
7007
 
_ACEOF
7008
 
if ac_fn_cxx_try_link "$LINENO"; then :
7009
 
  ac_cv_type_unsigned_long_long_int=yes
7010
 
else
7011
 
  ac_cv_type_unsigned_long_long_int=no
7012
 
fi
7013
 
rm -f core conftest.err conftest.$ac_objext \
7014
 
    conftest$ac_exeext conftest.$ac_ext
7015
 
fi
7016
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7017
 
$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7018
 
  if test $ac_cv_type_unsigned_long_long_int = yes; then
7019
 
 
7020
 
$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7021
 
 
7022
 
  fi
7023
 
 
7024
 
 
7025
 
# Checks for C++ type sizes.
7026
 
# The cast to long int works around a bug in the HP C Compiler
7027
 
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7028
 
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7029
 
# This bug is HP SR number 8606223364.
7030
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
7031
 
$as_echo_n "checking size of void*... " >&6; }
7032
 
if ${ac_cv_sizeof_voidp+:} false; then :
7033
 
  $as_echo_n "(cached) " >&6
7034
 
else
7035
 
  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
7036
 
 
7037
 
else
7038
 
  if test "$ac_cv_type_voidp" = yes; then
7039
 
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7040
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7041
 
as_fn_error 77 "cannot compute sizeof (void*)
7042
 
See \`config.log' for more details" "$LINENO" 5; }
7043
 
   else
7044
 
     ac_cv_sizeof_voidp=0
7045
 
   fi
7046
 
fi
7047
 
 
7048
 
fi
7049
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
7050
 
$as_echo "$ac_cv_sizeof_voidp" >&6; }
7051
 
 
7052
 
 
7053
 
 
7054
 
cat >>confdefs.h <<_ACEOF
7055
 
#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
7056
 
_ACEOF
7057
 
 
7058
 
 
7059
 
# The cast to long int works around a bug in the HP C Compiler
7060
 
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7061
 
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7062
 
# This bug is HP SR number 8606223364.
7063
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
7064
 
$as_echo_n "checking size of char... " >&6; }
7065
 
if ${ac_cv_sizeof_char+:} false; then :
7066
 
  $as_echo_n "(cached) " >&6
7067
 
else
7068
 
  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
7069
 
 
7070
 
else
7071
 
  if test "$ac_cv_type_char" = yes; then
7072
 
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7073
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7074
 
as_fn_error 77 "cannot compute sizeof (char)
7075
 
See \`config.log' for more details" "$LINENO" 5; }
7076
 
   else
7077
 
     ac_cv_sizeof_char=0
7078
 
   fi
7079
 
fi
7080
 
 
7081
 
fi
7082
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
7083
 
$as_echo "$ac_cv_sizeof_char" >&6; }
7084
 
 
7085
 
 
7086
 
 
7087
 
cat >>confdefs.h <<_ACEOF
7088
 
#define SIZEOF_CHAR $ac_cv_sizeof_char
7089
 
_ACEOF
7090
 
 
7091
 
 
7092
 
# The cast to long int works around a bug in the HP C Compiler
7093
 
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7094
 
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7095
 
# This bug is HP SR number 8606223364.
7096
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
7097
 
$as_echo_n "checking size of short... " >&6; }
7098
 
if ${ac_cv_sizeof_short+:} false; then :
7099
 
  $as_echo_n "(cached) " >&6
7100
 
else
7101
 
  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
7102
 
 
7103
 
else
7104
 
  if test "$ac_cv_type_short" = yes; then
7105
 
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7106
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7107
 
as_fn_error 77 "cannot compute sizeof (short)
7108
 
See \`config.log' for more details" "$LINENO" 5; }
7109
 
   else
7110
 
     ac_cv_sizeof_short=0
7111
 
   fi
7112
 
fi
7113
 
 
7114
 
fi
7115
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
7116
 
$as_echo "$ac_cv_sizeof_short" >&6; }
7117
 
 
7118
 
 
7119
 
 
7120
 
cat >>confdefs.h <<_ACEOF
7121
 
#define SIZEOF_SHORT $ac_cv_sizeof_short
7122
 
_ACEOF
7123
 
 
7124
 
 
7125
 
# The cast to long int works around a bug in the HP C Compiler
7126
 
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7127
 
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7128
 
# This bug is HP SR number 8606223364.
7129
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
7130
 
$as_echo_n "checking size of int... " >&6; }
7131
 
if ${ac_cv_sizeof_int+:} false; then :
7132
 
  $as_echo_n "(cached) " >&6
7133
 
else
7134
 
  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
7135
 
 
7136
 
else
7137
 
  if test "$ac_cv_type_int" = yes; then
7138
 
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7139
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7140
 
as_fn_error 77 "cannot compute sizeof (int)
7141
 
See \`config.log' for more details" "$LINENO" 5; }
7142
 
   else
7143
 
     ac_cv_sizeof_int=0
7144
 
   fi
7145
 
fi
7146
 
 
7147
 
fi
7148
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
7149
 
$as_echo "$ac_cv_sizeof_int" >&6; }
7150
 
 
7151
 
 
7152
 
 
7153
 
cat >>confdefs.h <<_ACEOF
7154
 
#define SIZEOF_INT $ac_cv_sizeof_int
7155
 
_ACEOF
7156
 
 
7157
 
 
7158
 
# The cast to long int works around a bug in the HP C Compiler
7159
 
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7160
 
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7161
 
# This bug is HP SR number 8606223364.
7162
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7163
 
$as_echo_n "checking size of long... " >&6; }
7164
 
if ${ac_cv_sizeof_long+:} false; then :
7165
 
  $as_echo_n "(cached) " >&6
7166
 
else
7167
 
  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
7168
 
 
7169
 
else
7170
 
  if test "$ac_cv_type_long" = yes; then
7171
 
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7172
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7173
 
as_fn_error 77 "cannot compute sizeof (long)
7174
 
See \`config.log' for more details" "$LINENO" 5; }
7175
 
   else
7176
 
     ac_cv_sizeof_long=0
7177
 
   fi
7178
 
fi
7179
 
 
7180
 
fi
7181
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
7182
 
$as_echo "$ac_cv_sizeof_long" >&6; }
7183
 
 
7184
 
 
7185
 
 
7186
 
cat >>confdefs.h <<_ACEOF
7187
 
#define SIZEOF_LONG $ac_cv_sizeof_long
7188
 
_ACEOF
7189
 
 
7190
 
 
7191
 
if test x$ac_cv_type_long_long_int = xyes; then :
7192
 
  # The cast to long int works around a bug in the HP C Compiler
7193
 
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7194
 
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7195
 
# This bug is HP SR number 8606223364.
7196
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
7197
 
$as_echo_n "checking size of long long... " >&6; }
7198
 
if ${ac_cv_sizeof_long_long+:} false; then :
7199
 
  $as_echo_n "(cached) " >&6
7200
 
else
7201
 
  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
7202
 
 
7203
 
else
7204
 
  if test "$ac_cv_type_long_long" = yes; then
7205
 
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7206
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7207
 
as_fn_error 77 "cannot compute sizeof (long long)
7208
 
See \`config.log' for more details" "$LINENO" 5; }
7209
 
   else
7210
 
     ac_cv_sizeof_long_long=0
7211
 
   fi
7212
 
fi
7213
 
 
7214
 
fi
7215
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
7216
 
$as_echo "$ac_cv_sizeof_long_long" >&6; }
7217
 
 
7218
 
 
7219
 
 
7220
 
cat >>confdefs.h <<_ACEOF
7221
 
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7222
 
_ACEOF
7223
 
 
7224
 
 
7225
 
fi
7226
 
# The cast to long int works around a bug in the HP C Compiler
7227
 
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7228
 
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7229
 
# This bug is HP SR number 8606223364.
7230
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
7231
 
$as_echo_n "checking size of float... " >&6; }
7232
 
if ${ac_cv_sizeof_float+:} false; then :
7233
 
  $as_echo_n "(cached) " >&6
7234
 
else
7235
 
  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
7236
 
 
7237
 
else
7238
 
  if test "$ac_cv_type_float" = yes; then
7239
 
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7240
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7241
 
as_fn_error 77 "cannot compute sizeof (float)
7242
 
See \`config.log' for more details" "$LINENO" 5; }
7243
 
   else
7244
 
     ac_cv_sizeof_float=0
7245
 
   fi
7246
 
fi
7247
 
 
7248
 
fi
7249
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
7250
 
$as_echo "$ac_cv_sizeof_float" >&6; }
7251
 
 
7252
 
 
7253
 
 
7254
 
cat >>confdefs.h <<_ACEOF
7255
 
#define SIZEOF_FLOAT $ac_cv_sizeof_float
7256
 
_ACEOF
7257
 
 
7258
 
 
7259
 
# The cast to long int works around a bug in the HP C Compiler
7260
 
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7261
 
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7262
 
# This bug is HP SR number 8606223364.
7263
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
7264
 
$as_echo_n "checking size of double... " >&6; }
7265
 
if ${ac_cv_sizeof_double+:} false; then :
7266
 
  $as_echo_n "(cached) " >&6
7267
 
else
7268
 
  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
7269
 
 
7270
 
else
7271
 
  if test "$ac_cv_type_double" = yes; then
7272
 
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7273
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7274
 
as_fn_error 77 "cannot compute sizeof (double)
7275
 
See \`config.log' for more details" "$LINENO" 5; }
7276
 
   else
7277
 
     ac_cv_sizeof_double=0
7278
 
   fi
7279
 
fi
7280
 
 
7281
 
fi
7282
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
7283
 
$as_echo "$ac_cv_sizeof_double" >&6; }
7284
 
 
7285
 
 
7286
 
 
7287
 
cat >>confdefs.h <<_ACEOF
7288
 
#define SIZEOF_DOUBLE $ac_cv_sizeof_double
7289
 
_ACEOF
7290
 
 
7291
 
 
7292
 
if test x$ac_cv_type_long_double = xyes; then :
7293
 
  # The cast to long int works around a bug in the HP C Compiler
7294
 
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7295
 
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7296
 
# This bug is HP SR number 8606223364.
7297
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
7298
 
$as_echo_n "checking size of long double... " >&6; }
7299
 
if ${ac_cv_sizeof_long_double+:} false; then :
7300
 
  $as_echo_n "(cached) " >&6
7301
 
else
7302
 
  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
7303
 
 
7304
 
else
7305
 
  if test "$ac_cv_type_long_double" = yes; then
7306
 
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7307
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7308
 
as_fn_error 77 "cannot compute sizeof (long double)
7309
 
See \`config.log' for more details" "$LINENO" 5; }
7310
 
   else
7311
 
     ac_cv_sizeof_long_double=0
7312
 
   fi
7313
 
fi
7314
 
 
7315
 
fi
7316
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
7317
 
$as_echo "$ac_cv_sizeof_long_double" >&6; }
7318
 
 
7319
 
 
7320
 
 
7321
 
cat >>confdefs.h <<_ACEOF
7322
 
#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
7323
 
_ACEOF
7324
 
 
7325
 
 
7326
 
fi
7327
 
 
7328
 
# Checks for C++ library functions.
7329
 
 
7330
 
ac_ext=c
7331
 
ac_cpp='$CPP $CPPFLAGS'
7332
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7333
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7334
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7335
 
 
7336
 
 
7337
 
###############################################################################
7338
 
# Fortran compiler
7339
 
###############################################################################
7340
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
7341
 
$as_echo "$as_me: " >&6;}
7342
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: Fortran compiler" >&5
7343
 
$as_echo "$as_me: Fortran compiler" >&6;}
7344
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
7345
 
$as_echo "$as_me: " >&6;}
7346
 
ac_ext=f
7347
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7348
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7349
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7350
 
 
7351
 
 
7352
 
tascel_save_FFLAGS="$FFLAGS"
7353
 
 
7354
 
case $ga_cv_target_base in #(
7355
 
  BGP) :
7356
 
    ga_mpif77_pref=mpixlf77_r;ga_f77_pref=bgxlf_r ;; #(
7357
 
  BGL) :
7358
 
    ga_mpif77_pref=mpxlf95;   ga_f77_pref=blrts_xlf95 ;; #(
7359
 
  *) :
7360
 
     ;;
7361
 
esac
7362
 
# If FC is set, override F77.  Similarly for MPIFC/MPIF77 and FCFLAGS/FFLAGS.
7363
 
if test "x$FC" != x; then :
7364
 
  F77="$FC"
7365
 
fi
7366
 
if test "x$MPIFC" != x; then :
7367
 
  MPIF77="$MPIFC"
7368
 
fi
7369
 
if test "x$FCFLAGS" != x; then :
7370
 
  FFLAGS="$FCFLAGS"
7371
 
fi
7372
 
# In the case of using MPI wrappers, set F77=MPIF77 since F77 will override
7373
 
# absolutely everything in our list of compilers.
7374
 
# Save F77, just in case.
7375
 
if test x$with_mpi_wrappers = xyes; then :
7376
 
  if test "x$F77" != "x$MPIF77"; then :
7377
 
  ga_orig_F77="$F77"
7378
 
fi
7379
 
     case x$F77:x$MPIF77 in #(
7380
 
  x:x) :
7381
 
     ;; #(
7382
 
  x:x*) :
7383
 
    F77="$MPIF77" ;; #(
7384
 
  x*:x) :
7385
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPI compilers desired but F77 is set while MPIF77 is unset." >&5
7386
 
$as_echo "$as_me: WARNING: MPI compilers desired but F77 is set while MPIF77 is unset." >&2;}
7387
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: F77 will be ignored during compiler selection, but will be" >&5
7388
 
$as_echo "$as_me: WARNING: F77 will be ignored during compiler selection, but will be" >&2;}
7389
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: tested first during MPI compiler unwrapping. Perhaps you" >&5
7390
 
$as_echo "$as_me: WARNING: tested first during MPI compiler unwrapping. Perhaps you" >&2;}
7391
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: meant to set MPIF77 instead of or in addition to F77?" >&5
7392
 
$as_echo "$as_me: WARNING: meant to set MPIF77 instead of or in addition to F77?" >&2;}
7393
 
 F77= ;; #(
7394
 
  x*:x*) :
7395
 
    if test "x$F77" != "x$MPIF77"; then :
7396
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPI compilers desired, MPIF77 and F77 are set, and MPIF77!=F77." >&5
7397
 
$as_echo "$as_me: WARNING: MPI compilers desired, MPIF77 and F77 are set, and MPIF77!=F77." >&2;}
7398
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Choosing MPIF77 over F77." >&5
7399
 
$as_echo "$as_me: WARNING: Choosing MPIF77 over F77." >&2;}
7400
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: F77 will be tested first during MPI compiler unwrapping." >&5
7401
 
$as_echo "$as_me: WARNING: F77 will be tested first during MPI compiler unwrapping." >&2;}
7402
 
fi
7403
 
 F77="$MPIF77" ;; #(
7404
 
  *) :
7405
 
    as_fn_error $? "F77/MPIF77 case failure" "$LINENO" 5 ;;
7406
 
esac
7407
 
fi
7408
 
ga_mpif95="mpif95 mpxlf95_r mpxlf95 ftn"
7409
 
ga_mpif90="mpif90 mpxlf90_r mpxlf90 mpf90 cmpif90c sxmpif90"
7410
 
ga_mpif77="mpif77 hf77 mpxlf_r mpxlf mpifrt mpf77 cmpifc"
7411
 
ga_f95="xlf95 pgf95 pathf95 ifort g95 f95 fort ifc efc openf95 sunf95 crayftn gfortran lf95 ftn"
7412
 
ga_f90="xlf90 f90 pgf90 pghpf pathf90 epcf90 sxf90 openf90 sunf90"
7413
 
ga_f77="xlf f77 frt pgf77 pathf77 g77 cf77 fort77 fl32 af77"
7414
 
if test x$with_mpi_wrappers = xyes; then :
7415
 
  F77_TO_TEST="$ga_mpif77_pref $ga_mpif95 $ga_mpif90 $ga_mpif77"
7416
 
else
7417
 
  F77_TO_TEST="$ga_f77_pref $ga_f95 $ga_f90 $ga_f77"
7418
 
fi
7419
 
ac_ext=f
7420
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7421
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7422
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7423
 
if test -n "$ac_tool_prefix"; then
7424
 
  for ac_prog in $F77_TO_TEST
7425
 
  do
7426
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7427
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7428
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7429
 
$as_echo_n "checking for $ac_word... " >&6; }
7430
 
if ${ac_cv_prog_F77+:} false; then :
7431
 
  $as_echo_n "(cached) " >&6
7432
 
else
7433
 
  if test -n "$F77"; then
7434
 
  ac_cv_prog_F77="$F77" # Let the user override the test.
7435
 
else
7436
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437
 
for as_dir in $PATH
7438
 
do
7439
 
  IFS=$as_save_IFS
7440
 
  test -z "$as_dir" && as_dir=.
7441
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7442
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7443
 
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7444
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7445
 
    break 2
7446
 
  fi
7447
 
done
7448
 
  done
7449
 
IFS=$as_save_IFS
7450
 
 
7451
 
fi
7452
 
fi
7453
 
F77=$ac_cv_prog_F77
7454
 
if test -n "$F77"; then
7455
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
7456
 
$as_echo "$F77" >&6; }
7457
 
else
7458
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459
 
$as_echo "no" >&6; }
7460
 
fi
7461
 
 
7462
 
 
7463
 
    test -n "$F77" && break
7464
 
  done
7465
 
fi
7466
 
if test -z "$F77"; then
7467
 
  ac_ct_F77=$F77
7468
 
  for ac_prog in $F77_TO_TEST
7469
 
do
7470
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
7471
 
set dummy $ac_prog; ac_word=$2
7472
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7473
 
$as_echo_n "checking for $ac_word... " >&6; }
7474
 
if ${ac_cv_prog_ac_ct_F77+:} false; then :
7475
 
  $as_echo_n "(cached) " >&6
7476
 
else
7477
 
  if test -n "$ac_ct_F77"; then
7478
 
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7479
 
else
7480
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481
 
for as_dir in $PATH
7482
 
do
7483
 
  IFS=$as_save_IFS
7484
 
  test -z "$as_dir" && as_dir=.
7485
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7486
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7487
 
    ac_cv_prog_ac_ct_F77="$ac_prog"
7488
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7489
 
    break 2
7490
 
  fi
7491
 
done
7492
 
  done
7493
 
IFS=$as_save_IFS
7494
 
 
7495
 
fi
7496
 
fi
7497
 
ac_ct_F77=$ac_cv_prog_ac_ct_F77
7498
 
if test -n "$ac_ct_F77"; then
7499
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
7500
 
$as_echo "$ac_ct_F77" >&6; }
7501
 
else
7502
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7503
 
$as_echo "no" >&6; }
7504
 
fi
7505
 
 
7506
 
 
7507
 
  test -n "$ac_ct_F77" && break
7508
 
done
7509
 
 
7510
 
  if test "x$ac_ct_F77" = x; then
7511
 
    F77=""
7512
 
  else
7513
 
    case $cross_compiling:$ac_tool_warned in
7514
 
yes:)
7515
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7516
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7517
 
ac_tool_warned=yes ;;
7518
 
esac
7519
 
    F77=$ac_ct_F77
7520
 
  fi
7521
 
fi
7522
 
 
7523
 
 
7524
 
# Provide some information about the compiler.
7525
 
$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
7526
 
set X $ac_compile
7527
 
ac_compiler=$2
7528
 
for ac_option in --version -v -V -qversion; do
7529
 
  { { ac_try="$ac_compiler $ac_option >&5"
7530
 
case "(($ac_try" in
7531
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7532
 
  *) ac_try_echo=$ac_try;;
7533
 
esac
7534
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7535
 
$as_echo "$ac_try_echo"; } >&5
7536
 
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7537
 
  ac_status=$?
7538
 
  if test -s conftest.err; then
7539
 
    sed '10a\
7540
 
... rest of stderr output deleted ...
7541
 
         10q' conftest.err >conftest.er1
7542
 
    cat conftest.er1 >&5
7543
 
  fi
7544
 
  rm -f conftest.er1 conftest.err
7545
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7546
 
  test $ac_status = 0; }
7547
 
done
7548
 
rm -f a.out
7549
 
 
7550
 
# If we don't use `.F' as extension, the preprocessor is not run on the
7551
 
# input file.  (Note that this only needs to work for GNU compilers.)
7552
 
ac_save_ext=$ac_ext
7553
 
ac_ext=F
7554
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
7555
 
$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
7556
 
if ${ac_cv_f77_compiler_gnu+:} false; then :
7557
 
  $as_echo_n "(cached) " >&6
7558
 
else
7559
 
  cat > conftest.$ac_ext <<_ACEOF
7560
 
      program main
7561
 
#ifndef __GNUC__
7562
 
       choke me
7563
 
#endif
7564
 
 
7565
 
      end
7566
 
_ACEOF
7567
 
if ac_fn_f77_try_compile "$LINENO"; then :
7568
 
  ac_compiler_gnu=yes
7569
 
else
7570
 
  ac_compiler_gnu=no
7571
 
fi
7572
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7573
 
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7574
 
 
7575
 
fi
7576
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
7577
 
$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
7578
 
ac_ext=$ac_save_ext
7579
 
ac_test_FFLAGS=${FFLAGS+set}
7580
 
ac_save_FFLAGS=$FFLAGS
7581
 
FFLAGS=
7582
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
7583
 
$as_echo_n "checking whether $F77 accepts -g... " >&6; }
7584
 
if ${ac_cv_prog_f77_g+:} false; then :
7585
 
  $as_echo_n "(cached) " >&6
7586
 
else
7587
 
  FFLAGS=-g
7588
 
cat > conftest.$ac_ext <<_ACEOF
7589
 
      program main
7590
 
 
7591
 
      end
7592
 
_ACEOF
7593
 
if ac_fn_f77_try_compile "$LINENO"; then :
7594
 
  ac_cv_prog_f77_g=yes
7595
 
else
7596
 
  ac_cv_prog_f77_g=no
7597
 
fi
7598
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7599
 
 
7600
 
fi
7601
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
7602
 
$as_echo "$ac_cv_prog_f77_g" >&6; }
7603
 
if test "$ac_test_FFLAGS" = set; then
7604
 
  FFLAGS=$ac_save_FFLAGS
7605
 
elif test $ac_cv_prog_f77_g = yes; then
7606
 
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7607
 
    FFLAGS="-g -O2"
7608
 
  else
7609
 
    FFLAGS="-g"
7610
 
  fi
7611
 
else
7612
 
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7613
 
    FFLAGS="-O2"
7614
 
  else
7615
 
    FFLAGS=
7616
 
  fi
7617
 
fi
7618
 
 
7619
 
if test $ac_compiler_gnu = yes; then
7620
 
  G77=yes
7621
 
else
7622
 
  G77=
7623
 
fi
7624
 
ac_ext=f
7625
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7626
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7627
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7628
 
 
7629
 
 
7630
 
FFLAGS="$tascel_save_FFLAGS"
7631
 
 
7632
 
# If Fortran 77 compiler was not found, we disable support for it.
7633
 
if test "x$F77" = x; then :
7634
 
  enable_f77=no
7635
 
fi
7636
 
 
7637
 
# If Fortran 77 compiler does not work, we disable support for it.
7638
 
 
7639
 
cat > conftest.$ac_ext <<_ACEOF
7640
 
      program main
7641
 
 
7642
 
      end
7643
 
_ACEOF
7644
 
if ac_fn_f77_try_link "$LINENO"; then :
7645
 
 
7646
 
else
7647
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Fortran compiler does not work, disabling" >&5
7648
 
$as_echo "$as_me: WARNING: Fortran compiler does not work, disabling" >&2;}
7649
 
     enable_f77=no
7650
 
     F77=
7651
 
fi
7652
 
rm -f core conftest.err conftest.$ac_objext \
7653
 
    conftest$ac_exeext conftest.$ac_ext
7654
 
 
7655
 
 
7656
 
if test "x$enable_f77" = xyes; then :
7657
 
 
7658
 
$as_echo "#define NOFORT 0" >>confdefs.h
7659
 
 
7660
 
 
7661
 
$as_echo "#define ENABLE_F77 1" >>confdefs.h
7662
 
 
7663
 
else
7664
 
 
7665
 
$as_echo "#define NOFORT 1" >>confdefs.h
7666
 
 
7667
 
 
7668
 
$as_echo "#define ENABLE_F77 0" >>confdefs.h
7669
 
 
7670
 
fi
7671
 
 if test "x$enable_f77" = xno; then
7672
 
  NOFORT_TRUE=
7673
 
  NOFORT_FALSE='#'
7674
 
else
7675
 
  NOFORT_TRUE='#'
7676
 
  NOFORT_FALSE=
7677
 
fi
7678
 
 
7679
 
 if test "x$enable_f77" = xyes; then
7680
 
  ENABLE_F77_TRUE=
7681
 
  ENABLE_F77_FALSE='#'
7682
 
else
7683
 
  ENABLE_F77_TRUE='#'
7684
 
  ENABLE_F77_FALSE=
7685
 
fi
7686
 
 
7687
 
 
7688
 
 
7689
 
# Perform Fortran 77 tests only if enabled.
7690
 
if test "x$enable_f77" = xyes; then :
7691
 
 
7692
 
if test x$with_mpi_wrappers = xyes; then :
7693
 
 
7694
 
# Find perl.
7695
 
# Extract the first word of "perl", so it can be a program name with args.
7696
 
set dummy perl; ac_word=$2
7697
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7698
 
$as_echo_n "checking for $ac_word... " >&6; }
7699
 
if ${ac_cv_path_PERL+:} false; then :
7700
 
  $as_echo_n "(cached) " >&6
7701
 
else
7702
 
  case $PERL in
7703
 
  [\\/]* | ?:[\\/]*)
7704
 
  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7705
 
  ;;
7706
 
  *)
7707
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708
 
for as_dir in $PATH
7709
 
do
7710
 
  IFS=$as_save_IFS
7711
 
  test -z "$as_dir" && as_dir=.
7712
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7713
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7714
 
    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7715
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7716
 
    break 2
7717
 
  fi
7718
 
done
7719
 
  done
7720
 
IFS=$as_save_IFS
7721
 
 
7722
 
  ;;
7723
 
esac
7724
 
fi
7725
 
PERL=$ac_cv_path_PERL
7726
 
if test -n "$PERL"; then
7727
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7728
 
$as_echo "$PERL" >&6; }
7729
 
else
7730
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7731
 
$as_echo "no" >&6; }
7732
 
fi
7733
 
 
7734
 
 
7735
 
# Create inside.pl.
7736
 
rm -f inside.pl
7737
 
cat >inside.pl <<"EOF"
7738
 
#!/usr/bin/perl
7739
 
$numargs = $#ARGV + 1;
7740
 
if ($numargs != 2) {
7741
 
    print "Usage: wrapped.txt naked.txt\n";
7742
 
    exit 1;
7743
 
}
7744
 
# Read each input file as a string (rather than a list).
7745
 
local $/=undef;
7746
 
open WRAPPED, "$ARGV[0]" or die "Could not open wrapped text file: $!";
7747
 
$wrapped_lines = <WRAPPED>;
7748
 
close WRAPPED;
7749
 
open NAKED, "$ARGV[1]" or die "Could not open naked text file: $!";
7750
 
$naked_lines = <NAKED>;
7751
 
close NAKED;
7752
 
# Replace newlines, + from wrapped and naked lines.
7753
 
$wrapped_lines =~ tr/\n+/ /;
7754
 
$naked_lines =~ tr/\n+/ /;
7755
 
# Remove whitespace from beginning of wrapped and naked lines.
7756
 
$wrapped_lines =~ s/^\s+//;
7757
 
$naked_lines =~ s/^\s+//;
7758
 
# Remove whitespace from end of wrapped and naked lines.
7759
 
$wrapped_lines =~ s/\s+$//;
7760
 
$naked_lines =~ s/\s+$//;
7761
 
# If either wrapped_lines or naked_lines are empty, this is an error.
7762
 
# It is assumed that the particular version string which created the input
7763
 
# files should generate SOMETHING.
7764
 
unless ($wrapped_lines) {
7765
 
    exit 1;
7766
 
}
7767
 
unless ($naked_lines) {
7768
 
    exit 1;
7769
 
}
7770
 
# Can the naked lines be found within the wrapped lines?
7771
 
if ($wrapped_lines =~ /\Q$naked_lines\E/) {
7772
 
    #print "Found as substring\n";
7773
 
    exit 0;
7774
 
}
7775
 
# Are the naked lines exactly the same as the wrapped lines?
7776
 
elsif ($wrapped_lines eq $naked_lines) {
7777
 
    #print "Found equal\n";
7778
 
    exit 0;
7779
 
}
7780
 
else {
7781
 
    #print "Not found\n";
7782
 
    exit 1;
7783
 
}
7784
 
EOF
7785
 
inside="$PERL inside.pl"
7786
 
wrapped="$F77"
7787
 
case $wrapped in #(
7788
 
  *_r) :
7789
 
    compilers="bgxlf95_r xlf95_r bgxlf90_r xlf90_r bgxlf_r xlf_r" ;; #(
7790
 
  *) :
7791
 
    compilers="gfortran g95 bgxlf95 xlf95 f95 fort ifort ifc efc pgf95 pathf95 lf95 openf95 sunf95 crayftn bgxlf90 xlf90 f90 pgf90 pathf90 pghpf epcf90 sxf90 openf90 sunf90 g77 bgxlf xlf f77 frt pgf77 pathf77 cf77 fort77 fl32 af77" ;; #(
7792
 
  *) :
7793
 
     ;;
7794
 
esac
7795
 
 
7796
 
 
7797
 
 
7798
 
 
7799
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for base $wrapped compiler" >&5
7800
 
$as_echo_n "checking for base $wrapped compiler... " >&6; }
7801
 
if ${ga_cv_mpif77_naked+:} false; then :
7802
 
  $as_echo_n "(cached) " >&6
7803
 
else
7804
 
 
7805
 
base="`$wrapped -show 2>/dev/null | sed 's/[    ].*$//' | head -1`"
7806
 
ga_save_F77="$F77"
7807
 
F77="$base"
7808
 
cat > conftest.$ac_ext <<_ACEOF
7809
 
      program main
7810
 
 
7811
 
      end
7812
 
_ACEOF
7813
 
if ac_fn_f77_try_link "$LINENO"; then :
7814
 
  ga_cv_mpif77_naked="$base"
7815
 
fi
7816
 
rm -f core conftest.err conftest.$ac_objext \
7817
 
    conftest$ac_exeext conftest.$ac_ext
7818
 
F77="$ga_save_F77"
7819
 
versions="--version -v -V -qversion"
7820
 
found_wrapped_version=0
7821
 
# Try separating stdout and stderr. Only compare stdout.
7822
 
if test "x$ga_cv_mpif77_naked" = x; then :
7823
 
 
7824
 
# prepend any CC/CXX/F77 the user may have specified
7825
 
compilers="$ga_orig_F77 $compilers"
7826
 
echo "only comparing stdout" >&5
7827
 
for version in $versions
7828
 
do
7829
 
    echo "trying version=$version" >&5
7830
 
    rm -f mpi.txt mpi.err naked.txt naked.err
7831
 
    if $wrapped $version 1>mpi.txt 2>mpi.err; then :
7832
 
  found_wrapped_version=1
7833
 
         for naked_compiler in $compilers
7834
 
         do
7835
 
            if test "x$naked_compiler" != "x$wrapped"; then :
7836
 
  if $naked_compiler $version 1>naked.txt 2>naked.err; then :
7837
 
  if $inside mpi.txt naked.txt >/dev/null; then :
7838
 
  ga_cv_mpif77_naked=$naked_compiler; break
7839
 
else
7840
 
  echo "inside.pl $wrapped $naked_compiler failed, skipping" >&5
7841
 
fi
7842
 
else
7843
 
  echo "$naked_compiler $version failed, skipping" >&5
7844
 
fi
7845
 
fi
7846
 
         done
7847
 
else
7848
 
  echo "$wrapped $version failed, skipping" >&5
7849
 
fi
7850
 
    if test "x$ga_cv_mpif77_naked" != x; then :
7851
 
  break
7852
 
fi
7853
 
done
7854
 
 
7855
 
fi
7856
 
# Perhaps none of the MPI compilers had a zero exit status (this is bad).
7857
 
# In this case we have to do a brute force match regardless of exit status.
7858
 
if test "x$found_wrapped_version" = x0; then :
7859
 
 
7860
 
if test "x$ga_cv_mpif77_naked" = x; then :
7861
 
 
7862
 
echo "no zero exit status found for MPI compilers" >&5
7863
 
for version in $versions
7864
 
do
7865
 
    echo "trying version=$version" >&5
7866
 
    rm -f mpi.txt mpi.err
7867
 
    $wrapped $version 1>mpi.txt 2>mpi.err
7868
 
    for naked_compiler in $compilers
7869
 
    do
7870
 
        if test "x$naked_compiler" != "x$wrapped"; then :
7871
 
  rm -f naked.txt naked.err
7872
 
             if $naked_compiler $version 1>naked.txt 2>naked.err; then :
7873
 
  if $inside mpi.txt naked.txt >/dev/null; then :
7874
 
  ga_cv_mpif77_naked=$naked_compiler; break
7875
 
else
7876
 
  echo "inside.pl $wrapped $naked_compiler failed, skipping" >&5
7877
 
fi
7878
 
else
7879
 
  echo "$naked_compiler $version failed, skipping" >&5
7880
 
fi
7881
 
fi
7882
 
    done
7883
 
    if test "x$ga_cv_mpif77_naked" != x; then :
7884
 
  break
7885
 
fi
7886
 
done
7887
 
 
7888
 
fi
7889
 
 
7890
 
fi
7891
 
# Try by combining stdout/err into one file.
7892
 
if test "x$ga_cv_mpif77_naked" = x; then :
7893
 
 
7894
 
echo "try combining stdout and stderr into one file" >&5
7895
 
for version in $versions
7896
 
do
7897
 
    echo "trying version=$version" >&5
7898
 
    rm -f mpi.txt naked.txt
7899
 
    if $wrapped $version 1>mpi.txt 2>&1; then :
7900
 
  for naked_compiler in $compilers
7901
 
         do
7902
 
            if test "x$naked_compiler" != "x$wrapped"; then :
7903
 
  if $naked_compiler $version 1>naked.txt 2>&1; then :
7904
 
  if $inside mpi.txt naked.txt >/dev/null; then :
7905
 
  ga_cv_mpif77_naked=$naked_compiler; break
7906
 
else
7907
 
  echo "inside.pl $wrapped $naked_compiler failed, skipping" >&5
7908
 
fi
7909
 
else
7910
 
  echo "$naked_compiler $version failed, skipping" >&5
7911
 
fi
7912
 
fi
7913
 
         done
7914
 
else
7915
 
  echo "$wrapped $version failed, skipping" >&5
7916
 
fi
7917
 
    if test "x$ga_cv_mpif77_naked" != x; then :
7918
 
  break
7919
 
fi
7920
 
done
7921
 
 
7922
 
fi
7923
 
# If we got this far, then it's likely that the MPI compiler had a zero exit
7924
 
# status when it shouldn't have for one version flag, but later had a non-zero
7925
 
# exit status for a flag it shouldn't have.  One false positive hid a false
7926
 
# negative.  In this case, brute force compare all MPI compiler output against
7927
 
# all compiler output.
7928
 
if test "x$ga_cv_mpif77_naked" = x; then :
7929
 
 
7930
 
echo "we have a very badly behaving MPI compiler" >&5
7931
 
for version in $versions
7932
 
do
7933
 
    echo "trying version=$version" >&5
7934
 
    rm -f mpi.txt mpi.err
7935
 
    $wrapped $version 1>mpi.txt 2>mpi.err
7936
 
    for naked_compiler in $compilers
7937
 
    do
7938
 
        if test "x$naked_compiler" != "x$wrapped"; then :
7939
 
  rm -f naked.txt naked.err
7940
 
             if $naked_compiler $version 1>naked.txt 2>naked.err; then :
7941
 
  if $inside mpi.txt naked.txt >/dev/null; then :
7942
 
  ga_cv_mpif77_naked=$naked_compiler; break
7943
 
else
7944
 
  echo "inside.pl $wrapped $naked_compiler failed, skipping" >&5
7945
 
fi
7946
 
else
7947
 
  echo "$naked_compiler $version failed, skipping" >&5
7948
 
fi
7949
 
fi
7950
 
    done
7951
 
    if test "x$ga_cv_mpif77_naked" != x; then :
7952
 
  break
7953
 
fi
7954
 
done
7955
 
 
7956
 
fi
7957
 
rm -f mpi.txt mpi.err naked.txt naked.err
7958
 
 
7959
 
fi
7960
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_mpif77_naked" >&5
7961
 
$as_echo "$ga_cv_mpif77_naked" >&6; }
7962
 
if test "x$ga_cv_mpif77_naked" = x; then :
7963
 
  as_fn_error $? "Could not determine the Fortran 77 compiler wrapped by MPI" "$LINENO" 5
7964
 
else
7965
 
  if test "x$ga_orig_F77" != x && test "x$ga_orig_F77" != "x$ga_cv_mpif77_naked"; then :
7966
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unwrapped $wrapped ($ga_cv_mpif77_naked) does not match user-specified $ga_orig_F77" >&5
7967
 
$as_echo "$as_me: WARNING: unwrapped $wrapped ($ga_cv_mpif77_naked) does not match user-specified $ga_orig_F77" >&2;}
7968
 
fi
7969
 
fi
7970
 
 
7971
 
 
7972
 
rm -f inside.pl
7973
 
 
7974
 
fi
7975
 
 
7976
 
 
7977
 
ac_ext=f
7978
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7979
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7980
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7981
 
 
7982
 
 
7983
 
ac_ext=f
7984
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7985
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7986
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7987
 
 
7988
 
cat > conftest.$ac_ext <<_ACEOF
7989
 
      program main
7990
 
      include 'mpif.h'
7991
 
      integer ierr
7992
 
      call MPI_Init( ierr )
7993
 
      call MPI_Finalize( ierr )
7994
 
      end
7995
 
_ACEOF
7996
 
ac_ext=f
7997
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7998
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7999
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
8000
 
 
8001
 
 
8002
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a simple Fortran MPI program compiles" >&5
8003
 
$as_echo_n "checking whether a simple Fortran MPI program compiles... " >&6; }
8004
 
if ${ga_cv_f77_mpi_test_compile+:} false; then :
8005
 
  $as_echo_n "(cached) " >&6
8006
 
else
8007
 
  ga_save_FFLAGS="$FFLAGS"; FFLAGS="$FFLAGS $GA_MP_CPPFLAGS"
8008
 
     if ac_fn_f77_try_compile "$LINENO"; then :
8009
 
  ga_cv_f77_mpi_test_compile=yes
8010
 
else
8011
 
  ga_cv_f77_mpi_test_compile=no
8012
 
fi
8013
 
rm -f core conftest.err conftest.$ac_objext
8014
 
     FFLAGS="$ga_save_FFLAGS"
8015
 
fi
8016
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_f77_mpi_test_compile" >&5
8017
 
$as_echo "$ga_cv_f77_mpi_test_compile" >&6; }
8018
 
rm -f conftest.$ac_ext
8019
 
ac_ext=f
8020
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
8021
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8022
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
8023
 
 
8024
 
if test "x$ga_cv_f77_mpi_test_compile" = xno; then :
8025
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8026
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8027
 
as_fn_error $? "could not compile simple Fortran MPI program
8028
 
See \`config.log' for more details" "$LINENO" 5; }
8029
 
fi
8030
 
 
8031
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 flag to suppress info messages" >&5
8032
 
$as_echo_n "checking for Fortran 77 flag to suppress info messages... " >&6; }
8033
 
if ${ga_cv_f77_suppress+:} false; then :
8034
 
  $as_echo_n "(cached) " >&6
8035
 
else
8036
 
  ga_save_FFLAGS="$FFLAGS"
8037
 
     ga_save_werror_flag=$ac_f77_werror_flag
8038
 
     ac_f77_werror_flag=yes
8039
 
     for flag in none -qsuppress=cmpmsg ; do
8040
 
        FFLAGS=$ga_save_FFLAGS
8041
 
        if test "x$flag" != xnone; then :
8042
 
  FFLAGS="$FFLAGS $flag"
8043
 
fi
8044
 
        cat > conftest.$ac_ext <<_ACEOF
8045
 
      program main
8046
 
 
8047
 
      end
8048
 
_ACEOF
8049
 
if ac_fn_f77_try_link "$LINENO"; then :
8050
 
  ga_cv_f77_suppress="$flag"; break
8051
 
fi
8052
 
rm -f core conftest.err conftest.$ac_objext \
8053
 
    conftest$ac_exeext conftest.$ac_ext
8054
 
     done
8055
 
     FFLAGS=$ga_save_FFLAGS
8056
 
     ac_f77_werror_flag=$ga_save_werror_flag
8057
 
 
8058
 
fi
8059
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_f77_suppress" >&5
8060
 
$as_echo "$ga_cv_f77_suppress" >&6; }
8061
 
 
8062
 
 
8063
 
 
8064
 
ga_mpi_unwrap_push_save_CC="$CC"
8065
 
ga_mpi_unwrap_push_save_CXX="$CXX"
8066
 
ga_mpi_unwrap_push_save_F77="$F77"
8067
 
ga_mpi_unwrap_push_save_FC="$FC"
8068
 
if test "x$ga_cv_mpic_naked"   != x; then :
8069
 
   CC="$ga_cv_mpic_naked"
8070
 
fi
8071
 
if test "x$ga_cv_mpicxx_naked" != x; then :
8072
 
  CXX="$ga_cv_mpicxx_naked"
8073
 
fi
8074
 
if test "x$ga_cv_mpif77_naked" != x; then :
8075
 
  F77="$ga_cv_mpif77_naked"
8076
 
fi
8077
 
if test "x$ga_cv_mpifc_naked"  != x; then :
8078
 
   FC="$ga_cv_mpifc_naked"
8079
 
fi
8080
 
 
8081
 
    ac_ext=f
8082
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
8083
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8084
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
8085
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $F77" >&5
8086
 
$as_echo_n "checking how to get verbose linking output from $F77... " >&6; }
8087
 
if ${ac_cv_prog_f77_v+:} false; then :
8088
 
  $as_echo_n "(cached) " >&6
8089
 
else
8090
 
  cat > conftest.$ac_ext <<_ACEOF
8091
 
      program main
8092
 
 
8093
 
      end
8094
 
_ACEOF
8095
 
if ac_fn_f77_try_compile "$LINENO"; then :
8096
 
  ac_cv_prog_f77_v=
8097
 
# Try some options frequently used verbose output
8098
 
for ac_verb in -v -verbose --verbose -V -\#\#\#; do
8099
 
  cat > conftest.$ac_ext <<_ACEOF
8100
 
      program main
8101
 
 
8102
 
      end
8103
 
_ACEOF
8104
 
 
8105
 
# Compile and link our simple test program by passing a flag (argument
8106
 
# 1 to this macro) to the Fortran compiler in order to get
8107
 
# "verbose" output that we can then parse for the Fortran linker
8108
 
# flags.
8109
 
ac_save_FFLAGS=$FFLAGS
8110
 
FFLAGS="$FFLAGS $ac_verb"
8111
 
eval "set x $ac_link"
8112
 
shift
8113
 
$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
8114
 
# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
8115
 
# LIBRARY_PATH; skip all such settings.
8116
 
ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
8117
 
  sed '/^Driving:/d; /^Configured with:/d;
8118
 
      '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
8119
 
$as_echo "$ac_f77_v_output" >&5
8120
 
FFLAGS=$ac_save_FFLAGS
8121
 
 
8122
 
rm -rf conftest*
8123
 
 
8124
 
# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
8125
 
# /foo, /bar, and /baz are search directories for the Fortran linker.
8126
 
# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
8127
 
ac_f77_v_output="`echo $ac_f77_v_output |
8128
 
        grep 'LPATH is:' |
8129
 
        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
8130
 
 
8131
 
# FIXME: we keep getting bitten by quoted arguments; a more general fix
8132
 
#        that detects unbalanced quotes in FLIBS should be implemented
8133
 
#        and (ugh) tested at some point.
8134
 
case $ac_f77_v_output in
8135
 
  # If we are using xlf then replace all the commas with spaces.
8136
 
  *xlfentry*)
8137
 
    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
8138
 
 
8139
 
  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
8140
 
  # $LIBS confuse us, and the libraries appear later in the output anyway).
8141
 
  *mGLOB_options_string*)
8142
 
    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
8143
 
 
8144
 
  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
8145
 
  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
8146
 
  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
8147
 
  *-cmdline\ * | *-ignore\ * | *-def\ *)
8148
 
    ac_f77_v_output=`echo $ac_f77_v_output | sed "\
8149
 
        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
8150
 
        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
8151
 
        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
8152
 
 
8153
 
  # If we are using Cray Fortran then delete quotes.
8154
 
  *cft90*)
8155
 
    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
8156
 
esac
8157
 
 
8158
 
 
8159
 
  # look for -l* and *.a constructs in the output
8160
 
  for ac_arg in $ac_f77_v_output; do
8161
 
     case $ac_arg in
8162
 
        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
8163
 
          ac_cv_prog_f77_v=$ac_verb
8164
 
          break 2 ;;
8165
 
     esac
8166
 
  done
8167
 
done
8168
 
if test -z "$ac_cv_prog_f77_v"; then
8169
 
   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $F77" >&5
8170
 
$as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
8171
 
fi
8172
 
else
8173
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
8174
 
$as_echo "$as_me: WARNING: compilation failed" >&2;}
8175
 
fi
8176
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8177
 
 
8178
 
fi
8179
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_v" >&5
8180
 
$as_echo "$ac_cv_prog_f77_v" >&6; }
8181
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 libraries of $F77" >&5
8182
 
$as_echo_n "checking for Fortran 77 libraries of $F77... " >&6; }
8183
 
if ${ac_cv_f77_libs+:} false; then :
8184
 
  $as_echo_n "(cached) " >&6
8185
 
else
8186
 
  if test "x$FLIBS" != "x"; then
8187
 
  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
8188
 
else
8189
 
 
8190
 
cat > conftest.$ac_ext <<_ACEOF
8191
 
      program main
8192
 
 
8193
 
      end
8194
 
_ACEOF
8195
 
 
8196
 
# Compile and link our simple test program by passing a flag (argument
8197
 
# 1 to this macro) to the Fortran compiler in order to get
8198
 
# "verbose" output that we can then parse for the Fortran linker
8199
 
# flags.
8200
 
ac_save_FFLAGS=$FFLAGS
8201
 
FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
8202
 
eval "set x $ac_link"
8203
 
shift
8204
 
$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
8205
 
# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
8206
 
# LIBRARY_PATH; skip all such settings.
8207
 
ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
8208
 
  sed '/^Driving:/d; /^Configured with:/d;
8209
 
      '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
8210
 
$as_echo "$ac_f77_v_output" >&5
8211
 
FFLAGS=$ac_save_FFLAGS
8212
 
 
8213
 
rm -rf conftest*
8214
 
 
8215
 
# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
8216
 
# /foo, /bar, and /baz are search directories for the Fortran linker.
8217
 
# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
8218
 
ac_f77_v_output="`echo $ac_f77_v_output |
8219
 
        grep 'LPATH is:' |
8220
 
        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
8221
 
 
8222
 
# FIXME: we keep getting bitten by quoted arguments; a more general fix
8223
 
#        that detects unbalanced quotes in FLIBS should be implemented
8224
 
#        and (ugh) tested at some point.
8225
 
case $ac_f77_v_output in
8226
 
  # If we are using xlf then replace all the commas with spaces.
8227
 
  *xlfentry*)
8228
 
    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
8229
 
 
8230
 
  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
8231
 
  # $LIBS confuse us, and the libraries appear later in the output anyway).
8232
 
  *mGLOB_options_string*)
8233
 
    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
8234
 
 
8235
 
  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
8236
 
  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
8237
 
  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
8238
 
  *-cmdline\ * | *-ignore\ * | *-def\ *)
8239
 
    ac_f77_v_output=`echo $ac_f77_v_output | sed "\
8240
 
        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
8241
 
        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
8242
 
        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
8243
 
 
8244
 
  # If we are using Cray Fortran then delete quotes.
8245
 
  *cft90*)
8246
 
    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
8247
 
esac
8248
 
 
8249
 
 
8250
 
 
8251
 
ac_cv_f77_libs=
8252
 
 
8253
 
# Save positional arguments (if any)
8254
 
ac_save_positional="$@"
8255
 
 
8256
 
set X $ac_f77_v_output
8257
 
while test $# != 1; do
8258
 
  shift
8259
 
  ac_arg=$1
8260
 
  case $ac_arg in
8261
 
        [\\/]*.a | ?:[\\/]*.a)
8262
 
            ac_exists=false
8263
 
  for ac_i in $ac_cv_f77_libs; do
8264
 
    if test x"$ac_arg" = x"$ac_i"; then
8265
 
      ac_exists=true
8266
 
      break
8267
 
    fi
8268
 
  done
8269
 
 
8270
 
  if test x"$ac_exists" = xtrue; then :
8271
 
 
8272
 
else
8273
 
  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
8274
 
fi
8275
 
          ;;
8276
 
        -bI:*)
8277
 
            ac_exists=false
8278
 
  for ac_i in $ac_cv_f77_libs; do
8279
 
    if test x"$ac_arg" = x"$ac_i"; then
8280
 
      ac_exists=true
8281
 
      break
8282
 
    fi
8283
 
  done
8284
 
 
8285
 
  if test x"$ac_exists" = xtrue; then :
8286
 
 
8287
 
else
8288
 
  if test "$ac_compiler_gnu" = yes; then
8289
 
  for ac_link_opt in $ac_arg; do
8290
 
    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
8291
 
  done
8292
 
else
8293
 
  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
8294
 
fi
8295
 
fi
8296
 
          ;;
8297
 
          # Ignore these flags.
8298
 
        -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
8299
 
          |-LANG:=* | -LIST:* | -LNO:* | -link)
8300
 
          ;;
8301
 
        -lkernel32)
8302
 
          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
8303
 
          ;;
8304
 
        -[LRuYz])
8305
 
          # These flags, when seen by themselves, take an argument.
8306
 
          # We remove the space between option and argument and re-iterate
8307
 
          # unless we find an empty arg or a new option (starting with -)
8308
 
          case $2 in
8309
 
             "" | -*);;
8310
 
             *)
8311
 
                ac_arg="$ac_arg$2"
8312
 
                shift; shift
8313
 
                set X $ac_arg "$@"
8314
 
                ;;
8315
 
          esac
8316
 
          ;;
8317
 
        -YP,*)
8318
 
          for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
8319
 
              ac_exists=false
8320
 
  for ac_i in $ac_cv_f77_libs; do
8321
 
    if test x"$ac_j" = x"$ac_i"; then
8322
 
      ac_exists=true
8323
 
      break
8324
 
    fi
8325
 
  done
8326
 
 
8327
 
  if test x"$ac_exists" = xtrue; then :
8328
 
 
8329
 
else
8330
 
  ac_arg="$ac_arg $ac_j"
8331
 
                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
8332
 
fi
8333
 
          done
8334
 
          ;;
8335
 
        -[lLR]*)
8336
 
            ac_exists=false
8337
 
  for ac_i in $ac_cv_f77_libs; do
8338
 
    if test x"$ac_arg" = x"$ac_i"; then
8339
 
      ac_exists=true
8340
 
      break
8341
 
    fi
8342
 
  done
8343
 
 
8344
 
  if test x"$ac_exists" = xtrue; then :
8345
 
 
8346
 
else
8347
 
  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
8348
 
fi
8349
 
          ;;
8350
 
        -zallextract*| -zdefaultextract)
8351
 
          ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
8352
 
          ;;
8353
 
          # Ignore everything else.
8354
 
  esac
8355
 
done
8356
 
# restore positional arguments
8357
 
set X $ac_save_positional; shift
8358
 
 
8359
 
# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
8360
 
# then we insist that the "run path" must be an absolute path (i.e. it
8361
 
# must begin with a "/").
8362
 
case `(uname -sr) 2>/dev/null` in
8363
 
   "SunOS 5"*)
8364
 
      ac_ld_run_path=`$as_echo "$ac_f77_v_output" |
8365
 
                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
8366
 
      test "x$ac_ld_run_path" != x &&
8367
 
        if test "$ac_compiler_gnu" = yes; then
8368
 
  for ac_link_opt in $ac_ld_run_path; do
8369
 
    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
8370
 
  done
8371
 
else
8372
 
  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
8373
 
fi
8374
 
      ;;
8375
 
esac
8376
 
fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
8377
 
 
8378
 
fi
8379
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_libs" >&5
8380
 
$as_echo "$ac_cv_f77_libs" >&6; }
8381
 
FLIBS="$ac_cv_f77_libs"
8382
 
 
8383
 
 
8384
 
ac_ext=f
8385
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
8386
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8387
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
8388
 
 
8389
 
 
8390
 
 CC="$ga_mpi_unwrap_push_save_CC"
8391
 
CXX="$ga_mpi_unwrap_push_save_CXX"
8392
 
F77="$ga_mpi_unwrap_push_save_F77"
8393
 
 FC="$ga_mpi_unwrap_push_save_FC"
8394
 
 
8395
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FLIBS needs -lgcc_s" >&5
8396
 
$as_echo_n "checking whether FLIBS needs -lgcc_s... " >&6; }
8397
 
if ${ga_cv_flibs_gcc_s+:} false; then :
8398
 
  $as_echo_n "(cached) " >&6
8399
 
else
8400
 
  happy=yes
8401
 
         ga_save_LIBS="$LIBS";  LIBS="$LIBS $FLIBS"
8402
 
         ga_save_FLIBS="$FLIBS"
8403
 
         ac_ext=c
8404
 
ac_cpp='$CPP $CPPFLAGS'
8405
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8406
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8407
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8408
 
 
8409
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8410
 
/* end confdefs.h.  */
8411
 
 
8412
 
int
8413
 
main ()
8414
 
{
8415
 
 
8416
 
  ;
8417
 
  return 0;
8418
 
}
8419
 
_ACEOF
8420
 
if ac_fn_c_try_link "$LINENO"; then :
8421
 
  ga_cv_flibs_gcc_s=no
8422
 
else
8423
 
  LIBS="$LIBS -lgcc_s"
8424
 
             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8425
 
/* end confdefs.h.  */
8426
 
 
8427
 
int
8428
 
main ()
8429
 
{
8430
 
 
8431
 
  ;
8432
 
  return 0;
8433
 
}
8434
 
_ACEOF
8435
 
if ac_fn_c_try_link "$LINENO"; then :
8436
 
  FLIBS="$FLIBS -lgcc_s"
8437
 
                 ga_cv_flibs_gcc_s=yes
8438
 
else
8439
 
  happy=no
8440
 
                 FLIBS="$ga_save_FLIBS"
8441
 
                 ga_cv_flibs_gcc_s=no
8442
 
fi
8443
 
rm -f core conftest.err conftest.$ac_objext \
8444
 
    conftest$ac_exeext conftest.$ac_ext
8445
 
fi
8446
 
rm -f core conftest.err conftest.$ac_objext \
8447
 
    conftest$ac_exeext conftest.$ac_ext
8448
 
         LIBS="$ga_save_LIBS"
8449
 
         ac_ext=f
8450
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
8451
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8452
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
8453
 
 
8454
 
fi
8455
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_flibs_gcc_s" >&5
8456
 
$as_echo "$ga_cv_flibs_gcc_s" >&6; }
8457
 
    if test "x$happy" = xno; then :
8458
 
  { ac_cv_f77_libs=; unset ac_cv_f77_libs;}
8459
 
         { FLIBS=; unset FLIBS;}
8460
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $F77" >&5
8461
 
$as_echo_n "checking how to get verbose linking output from $F77... " >&6; }
8462
 
if ${ac_cv_prog_f77_v+:} false; then :
8463
 
  $as_echo_n "(cached) " >&6
8464
 
else
8465
 
  cat > conftest.$ac_ext <<_ACEOF
8466
 
      program main
8467
 
 
8468
 
      end
8469
 
_ACEOF
8470
 
if ac_fn_f77_try_compile "$LINENO"; then :
8471
 
  ac_cv_prog_f77_v=
8472
 
# Try some options frequently used verbose output
8473
 
for ac_verb in -v -verbose --verbose -V -\#\#\#; do
8474
 
  cat > conftest.$ac_ext <<_ACEOF
8475
 
      program main
8476
 
 
8477
 
      end
8478
 
_ACEOF
8479
 
 
8480
 
# Compile and link our simple test program by passing a flag (argument
8481
 
# 1 to this macro) to the Fortran compiler in order to get
8482
 
# "verbose" output that we can then parse for the Fortran linker
8483
 
# flags.
8484
 
ac_save_FFLAGS=$FFLAGS
8485
 
FFLAGS="$FFLAGS $ac_verb"
8486
 
eval "set x $ac_link"
8487
 
shift
8488
 
$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
8489
 
# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
8490
 
# LIBRARY_PATH; skip all such settings.
8491
 
ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
8492
 
  sed '/^Driving:/d; /^Configured with:/d;
8493
 
      '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
8494
 
$as_echo "$ac_f77_v_output" >&5
8495
 
FFLAGS=$ac_save_FFLAGS
8496
 
 
8497
 
rm -rf conftest*
8498
 
 
8499
 
# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
8500
 
# /foo, /bar, and /baz are search directories for the Fortran linker.
8501
 
# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
8502
 
ac_f77_v_output="`echo $ac_f77_v_output |
8503
 
        grep 'LPATH is:' |
8504
 
        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
8505
 
 
8506
 
# FIXME: we keep getting bitten by quoted arguments; a more general fix
8507
 
#        that detects unbalanced quotes in FLIBS should be implemented
8508
 
#        and (ugh) tested at some point.
8509
 
case $ac_f77_v_output in
8510
 
  # If we are using xlf then replace all the commas with spaces.
8511
 
  *xlfentry*)
8512
 
    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
8513
 
 
8514
 
  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
8515
 
  # $LIBS confuse us, and the libraries appear later in the output anyway).
8516
 
  *mGLOB_options_string*)
8517
 
    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
8518
 
 
8519
 
  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
8520
 
  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
8521
 
  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
8522
 
  *-cmdline\ * | *-ignore\ * | *-def\ *)
8523
 
    ac_f77_v_output=`echo $ac_f77_v_output | sed "\
8524
 
        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
8525
 
        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
8526
 
        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
8527
 
 
8528
 
  # If we are using Cray Fortran then delete quotes.
8529
 
  *cft90*)
8530
 
    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
8531
 
esac
8532
 
 
8533
 
 
8534
 
  # look for -l* and *.a constructs in the output
8535
 
  for ac_arg in $ac_f77_v_output; do
8536
 
     case $ac_arg in
8537
 
        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
8538
 
          ac_cv_prog_f77_v=$ac_verb
8539
 
          break 2 ;;
8540
 
     esac
8541
 
  done
8542
 
done
8543
 
if test -z "$ac_cv_prog_f77_v"; then
8544
 
   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $F77" >&5
8545
 
$as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
8546
 
fi
8547
 
else
8548
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
8549
 
$as_echo "$as_me: WARNING: compilation failed" >&2;}
8550
 
fi
8551
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8552
 
 
8553
 
fi
8554
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_v" >&5
8555
 
$as_echo "$ac_cv_prog_f77_v" >&6; }
8556
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 libraries of $F77" >&5
8557
 
$as_echo_n "checking for Fortran 77 libraries of $F77... " >&6; }
8558
 
if ${ac_cv_f77_libs+:} false; then :
8559
 
  $as_echo_n "(cached) " >&6
8560
 
else
8561
 
  if test "x$FLIBS" != "x"; then
8562
 
  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
8563
 
else
8564
 
 
8565
 
cat > conftest.$ac_ext <<_ACEOF
8566
 
      program main
8567
 
 
8568
 
      end
8569
 
_ACEOF
8570
 
 
8571
 
# Compile and link our simple test program by passing a flag (argument
8572
 
# 1 to this macro) to the Fortran compiler in order to get
8573
 
# "verbose" output that we can then parse for the Fortran linker
8574
 
# flags.
8575
 
ac_save_FFLAGS=$FFLAGS
8576
 
FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
8577
 
eval "set x $ac_link"
8578
 
shift
8579
 
$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
8580
 
# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
8581
 
# LIBRARY_PATH; skip all such settings.
8582
 
ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
8583
 
  sed '/^Driving:/d; /^Configured with:/d;
8584
 
      '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
8585
 
$as_echo "$ac_f77_v_output" >&5
8586
 
FFLAGS=$ac_save_FFLAGS
8587
 
 
8588
 
rm -rf conftest*
8589
 
 
8590
 
# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
8591
 
# /foo, /bar, and /baz are search directories for the Fortran linker.
8592
 
# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
8593
 
ac_f77_v_output="`echo $ac_f77_v_output |
8594
 
        grep 'LPATH is:' |
8595
 
        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
8596
 
 
8597
 
# FIXME: we keep getting bitten by quoted arguments; a more general fix
8598
 
#        that detects unbalanced quotes in FLIBS should be implemented
8599
 
#        and (ugh) tested at some point.
8600
 
case $ac_f77_v_output in
8601
 
  # If we are using xlf then replace all the commas with spaces.
8602
 
  *xlfentry*)
8603
 
    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
8604
 
 
8605
 
  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
8606
 
  # $LIBS confuse us, and the libraries appear later in the output anyway).
8607
 
  *mGLOB_options_string*)
8608
 
    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
8609
 
 
8610
 
  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
8611
 
  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
8612
 
  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
8613
 
  *-cmdline\ * | *-ignore\ * | *-def\ *)
8614
 
    ac_f77_v_output=`echo $ac_f77_v_output | sed "\
8615
 
        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
8616
 
        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
8617
 
        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
8618
 
 
8619
 
  # If we are using Cray Fortran then delete quotes.
8620
 
  *cft90*)
8621
 
    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
8622
 
esac
8623
 
 
8624
 
 
8625
 
 
8626
 
ac_cv_f77_libs=
8627
 
 
8628
 
# Save positional arguments (if any)
8629
 
ac_save_positional="$@"
8630
 
 
8631
 
set X $ac_f77_v_output
8632
 
while test $# != 1; do
8633
 
  shift
8634
 
  ac_arg=$1
8635
 
  case $ac_arg in
8636
 
        [\\/]*.a | ?:[\\/]*.a)
8637
 
            ac_exists=false
8638
 
  for ac_i in $ac_cv_f77_libs; do
8639
 
    if test x"$ac_arg" = x"$ac_i"; then
8640
 
      ac_exists=true
8641
 
      break
8642
 
    fi
8643
 
  done
8644
 
 
8645
 
  if test x"$ac_exists" = xtrue; then :
8646
 
 
8647
 
else
8648
 
  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
8649
 
fi
8650
 
          ;;
8651
 
        -bI:*)
8652
 
            ac_exists=false
8653
 
  for ac_i in $ac_cv_f77_libs; do
8654
 
    if test x"$ac_arg" = x"$ac_i"; then
8655
 
      ac_exists=true
8656
 
      break
8657
 
    fi
8658
 
  done
8659
 
 
8660
 
  if test x"$ac_exists" = xtrue; then :
8661
 
 
8662
 
else
8663
 
  if test "$ac_compiler_gnu" = yes; then
8664
 
  for ac_link_opt in $ac_arg; do
8665
 
    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
8666
 
  done
8667
 
else
8668
 
  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
8669
 
fi
8670
 
fi
8671
 
          ;;
8672
 
          # Ignore these flags.
8673
 
        -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
8674
 
          |-LANG:=* | -LIST:* | -LNO:* | -link)
8675
 
          ;;
8676
 
        -lkernel32)
8677
 
          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
8678
 
          ;;
8679
 
        -[LRuYz])
8680
 
          # These flags, when seen by themselves, take an argument.
8681
 
          # We remove the space between option and argument and re-iterate
8682
 
          # unless we find an empty arg or a new option (starting with -)
8683
 
          case $2 in
8684
 
             "" | -*);;
8685
 
             *)
8686
 
                ac_arg="$ac_arg$2"
8687
 
                shift; shift
8688
 
                set X $ac_arg "$@"
8689
 
                ;;
8690
 
          esac
8691
 
          ;;
8692
 
        -YP,*)
8693
 
          for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
8694
 
              ac_exists=false
8695
 
  for ac_i in $ac_cv_f77_libs; do
8696
 
    if test x"$ac_j" = x"$ac_i"; then
8697
 
      ac_exists=true
8698
 
      break
8699
 
    fi
8700
 
  done
8701
 
 
8702
 
  if test x"$ac_exists" = xtrue; then :
8703
 
 
8704
 
else
8705
 
  ac_arg="$ac_arg $ac_j"
8706
 
                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
8707
 
fi
8708
 
          done
8709
 
          ;;
8710
 
        -Y*)
8711
 
          for ac_j in `$as_echo "$ac_arg" | sed -e 's/-Y/-L/;s/"//g;s/:/ -L/g'`; do
8712
 
              ac_exists=false
8713
 
  for ac_i in $ac_cv_f77_libs; do
8714
 
    if test x"$ac_j" = x"$ac_i"; then
8715
 
      ac_exists=true
8716
 
      break
8717
 
    fi
8718
 
  done
8719
 
 
8720
 
  if test x"$ac_exists" = xtrue; then :
8721
 
 
8722
 
else
8723
 
  ac_arg="$ac_arg $ac_j"
8724
 
                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
8725
 
fi
8726
 
          done
8727
 
          ;;
8728
 
        -[lLR]*)
8729
 
            ac_exists=false
8730
 
  for ac_i in $ac_cv_f77_libs; do
8731
 
    if test x"$ac_arg" = x"$ac_i"; then
8732
 
      ac_exists=true
8733
 
      break
8734
 
    fi
8735
 
  done
8736
 
 
8737
 
  if test x"$ac_exists" = xtrue; then :
8738
 
 
8739
 
else
8740
 
  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
8741
 
fi
8742
 
          ;;
8743
 
        -zallextract*| -zdefaultextract)
8744
 
          ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
8745
 
          ;;
8746
 
          # Ignore everything else.
8747
 
  esac
8748
 
done
8749
 
# restore positional arguments
8750
 
set X $ac_save_positional; shift
8751
 
 
8752
 
# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
8753
 
# then we insist that the "run path" must be an absolute path (i.e. it
8754
 
# must begin with a "/").
8755
 
case `(uname -sr) 2>/dev/null` in
8756
 
   "SunOS 5"*)
8757
 
      ac_ld_run_path=`$as_echo "$ac_f77_v_output" |
8758
 
                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
8759
 
      test "x$ac_ld_run_path" != x &&
8760
 
        if test "$ac_compiler_gnu" = yes; then
8761
 
  for ac_link_opt in $ac_ld_run_path; do
8762
 
    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
8763
 
  done
8764
 
else
8765
 
  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
8766
 
fi
8767
 
      ;;
8768
 
esac
8769
 
fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
8770
 
 
8771
 
fi
8772
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_libs" >&5
8773
 
$as_echo "$ac_cv_f77_libs" >&6; }
8774
 
FLIBS="$ac_cv_f77_libs"
8775
 
 
8776
 
 
8777
 
         ga_save_LIBS="$LIBS";  LIBS="$LIBS $FLIBS"
8778
 
         ac_ext=c
8779
 
ac_cpp='$CPP $CPPFLAGS'
8780
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8781
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8782
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8783
 
 
8784
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8785
 
/* end confdefs.h.  */
8786
 
 
8787
 
int
8788
 
main ()
8789
 
{
8790
 
 
8791
 
  ;
8792
 
  return 0;
8793
 
}
8794
 
_ACEOF
8795
 
if ac_fn_c_try_link "$LINENO"; then :
8796
 
  happy=yes
8797
 
else
8798
 
  happy=no
8799
 
fi
8800
 
rm -f core conftest.err conftest.$ac_objext \
8801
 
    conftest$ac_exeext conftest.$ac_ext
8802
 
         LIBS="$ga_save_LIBS"
8803
 
         ac_ext=f
8804
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
8805
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8806
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
8807
 
 
8808
 
fi
8809
 
    if test "x$happy" = xno; then :
8810
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FLIBS does not work" >&5
8811
 
$as_echo "$as_me: WARNING: FLIBS does not work" >&2;}
8812
 
fi
8813
 
 
8814
 
# Check whether --enable-underscoring was given.
8815
 
if test "${enable_underscoring+set}" = set; then :
8816
 
  enableval=$enable_underscoring;
8817
 
fi
8818
 
 
8819
 
if test "x$enable_underscoring" = xyes; then :
8820
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $F77 flag to add single underscore to external names" >&5
8821
 
$as_echo_n "checking for $F77 flag to add single underscore to external names... " >&6; }
8822
 
if ${ga_cv_f77_underscore_flag+:} false; then :
8823
 
  $as_echo_n "(cached) " >&6
8824
 
else
8825
 
  ac_ext=c
8826
 
ac_cpp='$CPP $CPPFLAGS'
8827
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8828
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8829
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8830
 
 
8831
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8832
 
/* end confdefs.h.  */
8833
 
void my_sub_() {}
8834
 
_ACEOF
8835
 
if ac_fn_c_try_compile "$LINENO"; then :
8836
 
  mv conftest.$ac_objext cfortran_test.$ac_objext
8837
 
    ga_save_LIBS="$LIBS"
8838
 
    LIBS="cfortran_test.$ac_objext $LIBS"
8839
 
    ac_ext=f
8840
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
8841
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8842
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
8843
 
 
8844
 
    for ga_flag in none -qextname -qEXTNAME -funderscoring -fno-second-underscore -f +ppu ; do
8845
 
        ga_save_FFLAGS="$FFLAGS"
8846
 
        if test "x$ga_flag" != xnone; then :
8847
 
  FFLAGS="$FFLAGS $ga_flag"
8848
 
fi
8849
 
        cat > conftest.$ac_ext <<_ACEOF
8850
 
      program main
8851
 
      call my_sub
8852
 
      end
8853
 
_ACEOF
8854
 
if ac_fn_f77_try_link "$LINENO"; then :
8855
 
  ga_cv_f77_underscore_flag="$ga_flag"
8856
 
fi
8857
 
rm -f core conftest.err conftest.$ac_objext \
8858
 
    conftest$ac_exeext conftest.$ac_ext
8859
 
        FFLAGS="$ga_save_FFLAGS"
8860
 
        if test "x$ga_cv_f77_underscore_flag" != x; then :
8861
 
  break
8862
 
fi
8863
 
    done
8864
 
    ac_ext=c
8865
 
ac_cpp='$CPP $CPPFLAGS'
8866
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8867
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8868
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8869
 
 
8870
 
    LIBS="$ga_save_LIBS"
8871
 
    rm -f cfortran_test.$ac_objext
8872
 
fi
8873
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8874
 
ac_ext=f
8875
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
8876
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8877
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
8878
 
 
8879
 
fi
8880
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_f77_underscore_flag" >&5
8881
 
$as_echo "$ga_cv_f77_underscore_flag" >&6; }
8882
 
if test "x$ga_cv_f77_underscore_flag" != xnone; then :
8883
 
  if test "x$ga_cv_f77_underscore_flag" != x; then :
8884
 
  FFLAGS="$FFLAGS $ga_cv_f77_underscore_flag"
8885
 
fi
8886
 
fi
8887
 
 
8888
 
fi
8889
 
 
8890
 
ac_ext=f
8891
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
8892
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8893
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
8894
 
 
8895
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran 77 libraries" >&5
8896
 
$as_echo_n "checking for dummy main to link with Fortran 77 libraries... " >&6; }
8897
 
if ${ac_cv_f77_dummy_main+:} false; then :
8898
 
  $as_echo_n "(cached) " >&6
8899
 
else
8900
 
  ac_f77_dm_save_LIBS=$LIBS
8901
 
 LIBS="$LIBS $FLIBS"
8902
 
 ac_fortran_dm_var=F77_DUMMY_MAIN
8903
 
 ac_ext=c
8904
 
ac_cpp='$CPP $CPPFLAGS'
8905
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8906
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8907
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8908
 
 
8909
 
 # First, try linking without a dummy main:
8910
 
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8911
 
/* end confdefs.h.  */
8912
 
 
8913
 
#ifdef F77_DUMMY_MAIN
8914
 
 
8915
 
#  ifdef __cplusplus
8916
 
     extern "C"
8917
 
#  endif
8918
 
   int F77_DUMMY_MAIN() { return 1; }
8919
 
 
8920
 
#endif
8921
 
int
8922
 
main ()
8923
 
{
8924
 
 
8925
 
  ;
8926
 
  return 0;
8927
 
}
8928
 
_ACEOF
8929
 
if ac_fn_c_try_link "$LINENO"; then :
8930
 
  ac_cv_fortran_dummy_main=none
8931
 
else
8932
 
  ac_cv_fortran_dummy_main=unknown
8933
 
fi
8934
 
rm -f core conftest.err conftest.$ac_objext \
8935
 
    conftest$ac_exeext conftest.$ac_ext
8936
 
 
8937
 
 if test $ac_cv_fortran_dummy_main = unknown; then
8938
 
   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
8939
 
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8940
 
/* end confdefs.h.  */
8941
 
#define $ac_fortran_dm_var $ac_func
8942
 
#ifdef F77_DUMMY_MAIN
8943
 
 
8944
 
#  ifdef __cplusplus
8945
 
     extern "C"
8946
 
#  endif
8947
 
   int F77_DUMMY_MAIN() { return 1; }
8948
 
 
8949
 
#endif
8950
 
int
8951
 
main ()
8952
 
{
8953
 
 
8954
 
  ;
8955
 
  return 0;
8956
 
}
8957
 
_ACEOF
8958
 
if ac_fn_c_try_link "$LINENO"; then :
8959
 
  ac_cv_fortran_dummy_main=$ac_func; break
8960
 
fi
8961
 
rm -f core conftest.err conftest.$ac_objext \
8962
 
    conftest$ac_exeext conftest.$ac_ext
8963
 
   done
8964
 
 fi
8965
 
 ac_ext=f
8966
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
8967
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8968
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
8969
 
 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
8970
 
 rm -rf conftest*
8971
 
 LIBS=$ac_f77_dm_save_LIBS
8972
 
 
8973
 
fi
8974
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_dummy_main" >&5
8975
 
$as_echo "$ac_cv_f77_dummy_main" >&6; }
8976
 
F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
8977
 
if test "$F77_DUMMY_MAIN" != unknown; then :
8978
 
  if test $F77_DUMMY_MAIN != none; then
8979
 
 
8980
 
cat >>confdefs.h <<_ACEOF
8981
 
#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
8982
 
_ACEOF
8983
 
 
8984
 
  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
8985
 
 
8986
 
$as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h
8987
 
 
8988
 
  fi
8989
 
fi
8990
 
else
8991
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8992
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8993
 
as_fn_error $? "linking to Fortran libraries from C fails
8994
 
See \`config.log' for more details" "$LINENO" 5; }
8995
 
fi
8996
 
 
8997
 
ac_ext=f
8998
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
8999
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9000
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9001
 
 
9002
 
ac_ext=f
9003
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9004
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9005
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9006
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 name-mangling scheme" >&5
9007
 
$as_echo_n "checking for Fortran 77 name-mangling scheme... " >&6; }
9008
 
if ${ac_cv_f77_mangling+:} false; then :
9009
 
  $as_echo_n "(cached) " >&6
9010
 
else
9011
 
  cat > conftest.$ac_ext <<_ACEOF
9012
 
      subroutine foobar()
9013
 
      return
9014
 
      end
9015
 
      subroutine foo_bar()
9016
 
      return
9017
 
      end
9018
 
_ACEOF
9019
 
if ac_fn_f77_try_compile "$LINENO"; then :
9020
 
  mv conftest.$ac_objext cfortran_test.$ac_objext
9021
 
 
9022
 
  ac_save_LIBS=$LIBS
9023
 
  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
9024
 
 
9025
 
  ac_ext=c
9026
 
ac_cpp='$CPP $CPPFLAGS'
9027
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9028
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9029
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9030
 
  ac_success=no
9031
 
  for ac_foobar in foobar FOOBAR; do
9032
 
    for ac_underscore in "" "_"; do
9033
 
      ac_func="$ac_foobar$ac_underscore"
9034
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9035
 
/* end confdefs.h.  */
9036
 
 
9037
 
/* Override any GCC internal prototype to avoid an error.
9038
 
   Use char because int might match the return type of a GCC
9039
 
   builtin and then its argument prototype would still apply.  */
9040
 
#ifdef __cplusplus
9041
 
extern "C"
9042
 
#endif
9043
 
char $ac_func ();
9044
 
#ifdef F77_DUMMY_MAIN
9045
 
 
9046
 
#  ifdef __cplusplus
9047
 
     extern "C"
9048
 
#  endif
9049
 
   int F77_DUMMY_MAIN() { return 1; }
9050
 
 
9051
 
#endif
9052
 
int
9053
 
main ()
9054
 
{
9055
 
return $ac_func ();
9056
 
  ;
9057
 
  return 0;
9058
 
}
9059
 
_ACEOF
9060
 
if ac_fn_c_try_link "$LINENO"; then :
9061
 
  ac_success=yes; break 2
9062
 
fi
9063
 
rm -f core conftest.err conftest.$ac_objext \
9064
 
    conftest$ac_exeext conftest.$ac_ext
9065
 
    done
9066
 
  done
9067
 
  ac_ext=f
9068
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9069
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9070
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9071
 
 
9072
 
  if test "$ac_success" = "yes"; then
9073
 
     case $ac_foobar in
9074
 
        foobar)
9075
 
           ac_case=lower
9076
 
           ac_foo_bar=foo_bar
9077
 
           ;;
9078
 
        FOOBAR)
9079
 
           ac_case=upper
9080
 
           ac_foo_bar=FOO_BAR
9081
 
           ;;
9082
 
     esac
9083
 
 
9084
 
     ac_ext=c
9085
 
ac_cpp='$CPP $CPPFLAGS'
9086
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9087
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9088
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9089
 
     ac_success_extra=no
9090
 
     for ac_extra in "" "_"; do
9091
 
        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
9092
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9093
 
/* end confdefs.h.  */
9094
 
 
9095
 
/* Override any GCC internal prototype to avoid an error.
9096
 
   Use char because int might match the return type of a GCC
9097
 
   builtin and then its argument prototype would still apply.  */
9098
 
#ifdef __cplusplus
9099
 
extern "C"
9100
 
#endif
9101
 
char $ac_func ();
9102
 
#ifdef F77_DUMMY_MAIN
9103
 
 
9104
 
#  ifdef __cplusplus
9105
 
     extern "C"
9106
 
#  endif
9107
 
   int F77_DUMMY_MAIN() { return 1; }
9108
 
 
9109
 
#endif
9110
 
int
9111
 
main ()
9112
 
{
9113
 
return $ac_func ();
9114
 
  ;
9115
 
  return 0;
9116
 
}
9117
 
_ACEOF
9118
 
if ac_fn_c_try_link "$LINENO"; then :
9119
 
  ac_success_extra=yes; break
9120
 
fi
9121
 
rm -f core conftest.err conftest.$ac_objext \
9122
 
    conftest$ac_exeext conftest.$ac_ext
9123
 
     done
9124
 
     ac_ext=f
9125
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9126
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9127
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9128
 
 
9129
 
     if test "$ac_success_extra" = "yes"; then
9130
 
        ac_cv_f77_mangling="$ac_case case"
9131
 
        if test -z "$ac_underscore"; then
9132
 
           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
9133
 
        else
9134
 
           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
9135
 
        fi
9136
 
        if test -z "$ac_extra"; then
9137
 
           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
9138
 
        else
9139
 
           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
9140
 
        fi
9141
 
      else
9142
 
        ac_cv_f77_mangling="unknown"
9143
 
      fi
9144
 
  else
9145
 
     ac_cv_f77_mangling="unknown"
9146
 
  fi
9147
 
 
9148
 
  LIBS=$ac_save_LIBS
9149
 
  rm -rf conftest*
9150
 
  rm -f cfortran_test*
9151
 
else
9152
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9153
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9154
 
as_fn_error $? "cannot compile a simple Fortran program
9155
 
See \`config.log' for more details" "$LINENO" 5; }
9156
 
fi
9157
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9158
 
 
9159
 
fi
9160
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_mangling" >&5
9161
 
$as_echo "$ac_cv_f77_mangling" >&6; }
9162
 
 
9163
 
ac_ext=f
9164
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9165
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9166
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9167
 
 
9168
 
ac_ext=f
9169
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9170
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9171
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9172
 
case $ac_cv_f77_mangling in
9173
 
  "lower case, no underscore, no extra underscore")
9174
 
          $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h
9175
 
 
9176
 
          $as_echo "#define F77_FUNC_(name,NAME) name" >>confdefs.h
9177
 
 ;;
9178
 
  "lower case, no underscore, extra underscore")
9179
 
          $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h
9180
 
 
9181
 
          $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h
9182
 
 ;;
9183
 
  "lower case, underscore, no extra underscore")
9184
 
          $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h
9185
 
 
9186
 
          $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h
9187
 
 ;;
9188
 
  "lower case, underscore, extra underscore")
9189
 
          $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h
9190
 
 
9191
 
          $as_echo "#define F77_FUNC_(name,NAME) name ## __" >>confdefs.h
9192
 
 ;;
9193
 
  "upper case, no underscore, no extra underscore")
9194
 
          $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h
9195
 
 
9196
 
          $as_echo "#define F77_FUNC_(name,NAME) NAME" >>confdefs.h
9197
 
 ;;
9198
 
  "upper case, no underscore, extra underscore")
9199
 
          $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h
9200
 
 
9201
 
          $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h
9202
 
 ;;
9203
 
  "upper case, underscore, no extra underscore")
9204
 
          $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h
9205
 
 
9206
 
          $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h
9207
 
 ;;
9208
 
  "upper case, underscore, extra underscore")
9209
 
          $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h
9210
 
 
9211
 
          $as_echo "#define F77_FUNC_(name,NAME) NAME ## __" >>confdefs.h
9212
 
 ;;
9213
 
  *)
9214
 
          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5
9215
 
$as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
9216
 
          ;;
9217
 
esac
9218
 
 
9219
 
ac_ext=f
9220
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9221
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9222
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9223
 
 
9224
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to pass symbols to preprocessed $F77" >&5
9225
 
$as_echo_n "checking how to pass symbols to preprocessed $F77... " >&6; }
9226
 
if ${ga_cv_f77_cpp_symbol+:} false; then :
9227
 
  $as_echo_n "(cached) " >&6
9228
 
else
9229
 
  ac_ext=f
9230
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9231
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9232
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9233
 
 
9234
 
ac_ext=F
9235
 
for symbol in -D -WF,-D -Wp,-D
9236
 
do
9237
 
    ga_save_CPPFLAGS="$CPPFLAGS"
9238
 
    ga_save_FFLAGS="$FFLAGS"
9239
 
    CPPFLAGS="$CPPFLAGS ${symbol}GABLAHBLAH"
9240
 
    FFLAGS="$CPPFLAGS $FFLAGS"
9241
 
    cat > conftest.$ac_ext <<_ACEOF
9242
 
#ifndef GABLAHBLAH
9243
 
this is an error
9244
 
#endif
9245
 
      end program
9246
 
_ACEOF
9247
 
if ac_fn_f77_try_compile "$LINENO"; then :
9248
 
  ga_cv_f77_cpp_symbol="$symbol"
9249
 
fi
9250
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9251
 
    CPPFLAGS="$ga_save_CPPFLAGS"
9252
 
    FFLAGS="$ga_save_FFLAGS"
9253
 
    if test "x$ga_cv_f77_cpp_symbol" != x; then :
9254
 
  break
9255
 
fi
9256
 
done
9257
 
ac_ext=f
9258
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9259
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9260
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9261
 
 
9262
 
 
9263
 
fi
9264
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_f77_cpp_symbol" >&5
9265
 
$as_echo "$ga_cv_f77_cpp_symbol" >&6; }
9266
 
if test "x$ga_cv_f77_cpp_symbol" = x; then :
9267
 
  as_fn_error $? "don't know how to pass symbols to preprocessed Fortran" "$LINENO" 5
9268
 
fi
9269
 
case $ga_cv_f77_cpp_symbol in #(
9270
 
  -D) :
9271
 
     ;; #(
9272
 
  *) :
9273
 
    FFLAGS="$FFLAGS ${ga_cv_f77_cpp_symbol}HAVE_CONFIG_H" ;;
9274
 
esac
9275
 
 
9276
 
 
9277
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 needs a flag to compile fixed format source" >&5
9278
 
$as_echo_n "checking whether $F77 needs a flag to compile fixed format source... " >&6; }
9279
 
if ${ga_cv_f77_fixed_flag+:} false; then :
9280
 
  $as_echo_n "(cached) " >&6
9281
 
else
9282
 
  ac_ext=f
9283
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9284
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9285
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9286
 
 
9287
 
for testflag in none -ffixed-form -qfixed -Mfixed -fixedform "-f fixed" +source=fixed -fix ; do
9288
 
    ga_save_FFLAGS=$FFLAGS
9289
 
    if test "x$testflag" != xnone; then :
9290
 
  FFLAGS="$FFLAGS $testflag"
9291
 
fi
9292
 
    cat > conftest.$ac_ext <<_ACEOF
9293
 
c some comment
9294
 
      end program
9295
 
_ACEOF
9296
 
if ac_fn_f77_try_compile "$LINENO"; then :
9297
 
  ga_cv_f77_fixed_flag=$testflag
9298
 
fi
9299
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9300
 
    FFLAGS=$ga_save_FFLAGS
9301
 
    if test "x$ga_cv_f77_fixed_flag" != x; then :
9302
 
  break
9303
 
fi
9304
 
done
9305
 
ac_ext=f
9306
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9307
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9308
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9309
 
 
9310
 
fi
9311
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_f77_fixed_flag" >&5
9312
 
$as_echo "$ga_cv_f77_fixed_flag" >&6; }
9313
 
if test "x$ga_cv_f77_fixed_flag" != xnone; then :
9314
 
  if test "x$ga_cv_f77_fixed_flag" != x; then :
9315
 
  FFLAGS="$FFLAGS $ga_cv_f77_fixed_flag"
9316
 
fi
9317
 
fi
9318
 
 
9319
 
 
9320
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 needs a flag to compile inconsistent types" >&5
9321
 
$as_echo_n "checking whether $F77 needs a flag to compile inconsistent types... " >&6; }
9322
 
if ${ga_cv_f77_mismatch_type_flag+:} false; then :
9323
 
  $as_echo_n "(cached) " >&6
9324
 
else
9325
 
  ac_ext=f
9326
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9327
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9328
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9329
 
 
9330
 
for testflag in none -mismatch_all
9331
 
do
9332
 
    ga_save_FFLAGS="$FFLAGS"
9333
 
    if test "x$testflag" != xnone; then :
9334
 
  FFLAGS="$FFLAGS $testflag"
9335
 
fi
9336
 
    cat > conftest.$ac_ext <<_ACEOF
9337
 
      integer function the_test ()
9338
 
      implicit none
9339
 
      logical foo
9340
 
      external foo
9341
 
      character*1       byte_mb
9342
 
      integer           int_mb
9343
 
      the_test = 0
9344
 
      if (foo(byte_mb)) return
9345
 
      if (foo( int_mb)) return
9346
 
      the_test = 1
9347
 
      return
9348
 
      end
9349
 
_ACEOF
9350
 
if ac_fn_f77_try_compile "$LINENO"; then :
9351
 
  ga_cv_f77_mismatch_type_flag="$testflag"
9352
 
fi
9353
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9354
 
    FFLAGS="$ga_save_FFLAGS"
9355
 
    if test "x$ga_cv_f77_mismatch_type_flag" != x; then :
9356
 
  break
9357
 
fi
9358
 
done
9359
 
ac_ext=f
9360
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9361
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9362
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9363
 
 
9364
 
fi
9365
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_f77_mismatch_type_flag" >&5
9366
 
$as_echo "$ga_cv_f77_mismatch_type_flag" >&6; }
9367
 
if test "x$ga_cv_f77_mismatch_type_flag" != xnone; then :
9368
 
  if test "x$ga_cv_f77_mismatch_type_flag" != x; then :
9369
 
  FFLAGS="$FFLAGS $ga_cv_f77_mismatch_type_flag"
9370
 
fi
9371
 
fi
9372
 
 
9373
 
 
9374
 
# Check whether --enable-i4 was given.
9375
 
if test "${enable_i4+set}" = set; then :
9376
 
  enableval=$enable_i4; enable_i4=yes
9377
 
fi
9378
 
 
9379
 
# Check whether --enable-i8 was given.
9380
 
if test "${enable_i8+set}" = set; then :
9381
 
  enableval=$enable_i8; enable_i8=yes
9382
 
fi
9383
 
 
9384
 
ac_ext=c
9385
 
ac_cpp='$CPP $CPPFLAGS'
9386
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9387
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9388
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9389
 
 
9390
 
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ga_f77_integer_size"        "$ac_includes_default"; then :
9391
 
 
9392
 
else
9393
 
  ga_f77_integer_size=0
9394
 
fi
9395
 
 
9396
 
ac_ext=f
9397
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9398
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9399
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9400
 
 
9401
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for desired Fortran INTEGER size" >&5
9402
 
$as_echo_n "checking for desired Fortran INTEGER size... " >&6; }
9403
 
if ${ga_cv_f77_integer_size+:} false; then :
9404
 
  $as_echo_n "(cached) " >&6
9405
 
else
9406
 
  if test x$enable_i4 = xyes; then :
9407
 
  if test x$enable_i8 = xyes; then :
9408
 
  as_fn_error $? "Cannot enable both i4 and i8" "$LINENO" 5
9409
 
else
9410
 
  ga_cv_f77_integer_size=4
9411
 
fi
9412
 
else
9413
 
  if test x$enable_i8 = xyes; then :
9414
 
  ga_cv_f77_integer_size=8
9415
 
else
9416
 
  ga_cv_f77_integer_size=$ga_f77_integer_size
9417
 
fi
9418
 
fi
9419
 
fi
9420
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_f77_integer_size" >&5
9421
 
$as_echo "$ga_cv_f77_integer_size" >&6; }
9422
 
# Now determine the correct compiler flag to adjust the integer size.
9423
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for INTEGER size compile flag" >&5
9424
 
$as_echo_n "checking for INTEGER size compile flag... " >&6; }
9425
 
if ${ga_cv_f77_integer_size_flag+:} false; then :
9426
 
  $as_echo_n "(cached) " >&6
9427
 
else
9428
 
  case $cross_compiling:$ga_cv_f77_integer_size in #(
9429
 
  yes:4) :
9430
 
    ac_ext=f
9431
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9432
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9433
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9434
 
 
9435
 
ga_result=
9436
 
ga_save_FFLAGS="$FFLAGS"
9437
 
ga_save_suppress_FFLAGS="$FFLAGS"
9438
 
ga_save_werror_flag=$ac_f77_werror_flag
9439
 
ac_f77_werror_flag=yes
9440
 
if test "x$ga_cv_f77_suppress" != xnone; then :
9441
 
  ga_save_suppress_FFLAGS="$FFLAGS $ga_cv_f77_suppress"
9442
 
fi
9443
 
if test "x$FFLAG_INT" != x; then :
9444
 
  FFLAGS="$ga_save_suppress_FFLAGS $FFLAG_INT"
9445
 
     cat > conftest.$ac_ext <<_ACEOF
9446
 
      program main
9447
 
      integer i
9448
 
      end program
9449
 
_ACEOF
9450
 
if ac_fn_f77_try_link "$LINENO"; then :
9451
 
  ga_result=$flag
9452
 
fi
9453
 
rm -f core conftest.err conftest.$ac_objext \
9454
 
    conftest$ac_exeext conftest.$ac_ext
9455
 
fi
9456
 
if test "x$ga_result" = x; then :
9457
 
  for flag in -fdefault-integer-4 -qintsize=4 "-integer-size 32" -CcdII4 "-s integer32" -xtypemap=integer:32 -i4 +i4
9458
 
     do
9459
 
        FFLAGS="$ga_save_suppress_FFLAGS $flag"
9460
 
        cat > conftest.$ac_ext <<_ACEOF
9461
 
      program main
9462
 
      integer i
9463
 
      end program
9464
 
_ACEOF
9465
 
if ac_fn_f77_try_link "$LINENO"; then :
9466
 
  ac_ext=F
9467
 
             cat > conftest.$ac_ext <<_ACEOF
9468
 
      program main
9469
 
      integer i
9470
 
      end program
9471
 
_ACEOF
9472
 
if ac_fn_f77_try_link "$LINENO"; then :
9473
 
  ga_result=$flag; break
9474
 
fi
9475
 
rm -f core conftest.err conftest.$ac_objext \
9476
 
    conftest$ac_exeext conftest.$ac_ext
9477
 
             ac_ext=f
9478
 
fi
9479
 
rm -f core conftest.err conftest.$ac_objext \
9480
 
    conftest$ac_exeext conftest.$ac_ext
9481
 
     done
9482
 
fi
9483
 
ac_f77_werror_flag=$ga_save_werror_flag
9484
 
FFLAGS="$ga_save_FFLAGS"
9485
 
ga_cv_f77_integer_size_flag="$ga_result"
9486
 
ac_ext=f
9487
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9488
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9489
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9490
 
 
9491
 
 ;; #(
9492
 
  yes:8) :
9493
 
    ac_ext=f
9494
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9495
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9496
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9497
 
 
9498
 
ga_result=
9499
 
ga_save_FFLAGS="$FFLAGS"
9500
 
ga_save_suppress_FFLAGS="$FFLAGS"
9501
 
ga_save_werror_flag=$ac_f77_werror_flag
9502
 
ac_f77_werror_flag=yes
9503
 
if test "x$ga_cv_f77_suppress" != xnone; then :
9504
 
  ga_save_suppress_FFLAGS="$FFLAGS $ga_cv_f77_suppress"
9505
 
fi
9506
 
if test "x$FFLAG_INT" != x; then :
9507
 
  FFLAGS="$ga_save_suppress_FFLAGS $FFLAG_INT"
9508
 
     cat > conftest.$ac_ext <<_ACEOF
9509
 
      program main
9510
 
      integer i
9511
 
      end program
9512
 
_ACEOF
9513
 
if ac_fn_f77_try_link "$LINENO"; then :
9514
 
  ga_result=$flag
9515
 
fi
9516
 
rm -f core conftest.err conftest.$ac_objext \
9517
 
    conftest$ac_exeext conftest.$ac_ext
9518
 
fi
9519
 
if test "x$ga_result" = x; then :
9520
 
  for flag in -fdefault-integer-8 -qintsize=8 "-integer-size 64" -CcdII8 "-s integer64" -xtypemap=integer:64 -i8 +i8
9521
 
     do
9522
 
        FFLAGS="$ga_save_suppress_FFLAGS $flag"
9523
 
        cat > conftest.$ac_ext <<_ACEOF
9524
 
      program main
9525
 
      integer i
9526
 
      end program
9527
 
_ACEOF
9528
 
if ac_fn_f77_try_link "$LINENO"; then :
9529
 
  ac_ext=F
9530
 
             cat > conftest.$ac_ext <<_ACEOF
9531
 
      program main
9532
 
      integer i
9533
 
      end program
9534
 
_ACEOF
9535
 
if ac_fn_f77_try_link "$LINENO"; then :
9536
 
  ga_result=$flag; break
9537
 
fi
9538
 
rm -f core conftest.err conftest.$ac_objext \
9539
 
    conftest$ac_exeext conftest.$ac_ext
9540
 
             ac_ext=f
9541
 
fi
9542
 
rm -f core conftest.err conftest.$ac_objext \
9543
 
    conftest$ac_exeext conftest.$ac_ext
9544
 
     done
9545
 
fi
9546
 
ac_f77_werror_flag=$ga_save_werror_flag
9547
 
FFLAGS="$ga_save_FFLAGS"
9548
 
ga_cv_f77_integer_size_flag="$ga_result"
9549
 
ac_ext=f
9550
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9551
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9552
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9553
 
 
9554
 
 ;; #(
9555
 
  *:4) :
9556
 
    for flag in none $FFLAG_INT -fdefault-integer-4 -qintsize=4 "-integer-size 32" -CcdII4 "-s integer32" -xtypemap=integer:32 -i4 +i4
9557
 
do
9558
 
    ga_save_FFLAGS="$FFLAGS"
9559
 
    if test "x$flag" != xnone; then :
9560
 
  FFLAGS="$flag $FFLAGS"
9561
 
fi
9562
 
    sizeof_integer=0
9563
 
    ac_ext=f
9564
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9565
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9566
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9567
 
case $ac_cv_f77_mangling in
9568
 
  upper*) ac_val="SIZE" ;;
9569
 
  lower*) ac_val="size" ;;
9570
 
  *)      ac_val="unknown" ;;
9571
 
esac
9572
 
case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
9573
 
 
9574
 
size="$ac_val"
9575
 
 
9576
 
ac_ext=f
9577
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9578
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9579
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9580
 
 
9581
 
 ac_ext=c
9582
 
ac_cpp='$CPP $CPPFLAGS'
9583
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9584
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9585
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9586
 
 
9587
 
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9588
 
/* end confdefs.h.  */
9589
 
#include <stdio.h>
9590
 
#include <stdlib.h>
9591
 
#ifdef __cplusplus
9592
 
extern "C" {
9593
 
#endif
9594
 
void $size(char *a, char *b)
9595
 
{
9596
 
    long diff = (long) (b - a);
9597
 
    FILE *f=fopen("conftestval", "w");
9598
 
    if (!f) exit(1);
9599
 
    fprintf(f, "%ld\n", diff);
9600
 
    fclose(f);
9601
 
}
9602
 
#ifdef __cplusplus
9603
 
}
9604
 
#endif
9605
 
_ACEOF
9606
 
if ac_fn_c_try_compile "$LINENO"; then :
9607
 
  mv conftest.$ac_objext cfortran_test.$ac_objext
9608
 
     ga_save_LIBS=$LIBS
9609
 
     LIBS="cfortran_test.$ac_objext $LIBS $CLIBS"
9610
 
     ac_ext=f
9611
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9612
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9613
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9614
 
 
9615
 
     if test "$cross_compiling" = yes; then :
9616
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9617
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9618
 
as_fn_error $? "cannot run test program while cross compiling
9619
 
See \`config.log' for more details" "$LINENO" 5; }
9620
 
else
9621
 
  cat > conftest.$ac_ext <<_ACEOF
9622
 
      program main
9623
 
      external size
9624
 
      INTEGER x(2)
9625
 
      call size(x(1),x(2))
9626
 
      end
9627
 
_ACEOF
9628
 
if ac_fn_f77_try_run "$LINENO"; then :
9629
 
  sizeof_integer=`cat conftestval`
9630
 
else
9631
 
  sizeof_integer=no
9632
 
fi
9633
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9634
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
9635
 
fi
9636
 
 
9637
 
     ac_ext=c
9638
 
ac_cpp='$CPP $CPPFLAGS'
9639
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9640
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9641
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9642
 
 
9643
 
     LIBS=$ga_save_LIBS
9644
 
     rm -f cfortran_test*
9645
 
else
9646
 
  sizeof_integer=no
9647
 
fi
9648
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9649
 
ac_ext=f
9650
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9651
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9652
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9653
 
 
9654
 
rm -rf conftest*
9655
 
 
9656
 
    FFLAGS="$ga_save_FFLAGS"
9657
 
    if test x$sizeof_integer = x4; then :
9658
 
  ga_cv_f77_integer_size_flag=$flag; break
9659
 
fi
9660
 
done
9661
 
 ;; #(
9662
 
  *:8) :
9663
 
    for flag in none $FFLAG_INT -fdefault-integer-8 -qintsize=8 "-integer-size 64" -CcdII8 "-s integer64" -xtypemap=integer:64 -i8 +i8
9664
 
do
9665
 
    ga_save_FFLAGS="$FFLAGS"
9666
 
    if test "x$flag" != xnone; then :
9667
 
  FFLAGS="$flag $FFLAGS"
9668
 
fi
9669
 
    sizeof_integer=0
9670
 
    ac_ext=f
9671
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9672
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9673
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9674
 
case $ac_cv_f77_mangling in
9675
 
  upper*) ac_val="SIZE" ;;
9676
 
  lower*) ac_val="size" ;;
9677
 
  *)      ac_val="unknown" ;;
9678
 
esac
9679
 
case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
9680
 
 
9681
 
size="$ac_val"
9682
 
 
9683
 
ac_ext=f
9684
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9685
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9686
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9687
 
 
9688
 
 ac_ext=c
9689
 
ac_cpp='$CPP $CPPFLAGS'
9690
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9691
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9692
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9693
 
 
9694
 
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9695
 
/* end confdefs.h.  */
9696
 
#include <stdio.h>
9697
 
#include <stdlib.h>
9698
 
#ifdef __cplusplus
9699
 
extern "C" {
9700
 
#endif
9701
 
void $size(char *a, char *b)
9702
 
{
9703
 
    long diff = (long) (b - a);
9704
 
    FILE *f=fopen("conftestval", "w");
9705
 
    if (!f) exit(1);
9706
 
    fprintf(f, "%ld\n", diff);
9707
 
    fclose(f);
9708
 
}
9709
 
#ifdef __cplusplus
9710
 
}
9711
 
#endif
9712
 
_ACEOF
9713
 
if ac_fn_c_try_compile "$LINENO"; then :
9714
 
  mv conftest.$ac_objext cfortran_test.$ac_objext
9715
 
     ga_save_LIBS=$LIBS
9716
 
     LIBS="cfortran_test.$ac_objext $LIBS $CLIBS"
9717
 
     ac_ext=f
9718
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9719
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9720
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9721
 
 
9722
 
     if test "$cross_compiling" = yes; then :
9723
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9724
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9725
 
as_fn_error $? "cannot run test program while cross compiling
9726
 
See \`config.log' for more details" "$LINENO" 5; }
9727
 
else
9728
 
  cat > conftest.$ac_ext <<_ACEOF
9729
 
      program main
9730
 
      external size
9731
 
      INTEGER x(2)
9732
 
      call size(x(1),x(2))
9733
 
      end
9734
 
_ACEOF
9735
 
if ac_fn_f77_try_run "$LINENO"; then :
9736
 
  sizeof_integer=`cat conftestval`
9737
 
else
9738
 
  sizeof_integer=no
9739
 
fi
9740
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9741
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
9742
 
fi
9743
 
 
9744
 
     ac_ext=c
9745
 
ac_cpp='$CPP $CPPFLAGS'
9746
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9747
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9748
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9749
 
 
9750
 
     LIBS=$ga_save_LIBS
9751
 
     rm -f cfortran_test*
9752
 
else
9753
 
  sizeof_integer=no
9754
 
fi
9755
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9756
 
ac_ext=f
9757
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9758
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9759
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9760
 
 
9761
 
rm -rf conftest*
9762
 
 
9763
 
    FFLAGS="$ga_save_FFLAGS"
9764
 
    if test x$sizeof_integer = x8; then :
9765
 
  ga_cv_f77_integer_size_flag=$flag; break
9766
 
fi
9767
 
done
9768
 
 ;; #(
9769
 
  *) :
9770
 
     ;;
9771
 
esac
9772
 
fi
9773
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_f77_integer_size_flag" >&5
9774
 
$as_echo "$ga_cv_f77_integer_size_flag" >&6; }
9775
 
if test "x$ga_cv_f77_integer_size_flag" != x; then :
9776
 
  if test "x$ga_cv_f77_integer_size_flag" != xnone; then :
9777
 
  FFLAG_INT=$ga_cv_f77_integer_size_flag
9778
 
 
9779
 
fi
9780
 
fi
9781
 
if test "x$ga_cv_f77_integer_size" = x8; then :
9782
 
  if test "x$ga_cv_f77_integer_size_flag" = x; then :
9783
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
9784
 
$as_echo "$as_me: WARNING: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
9785
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find a flag to promote Fortran integers" >&5
9786
 
$as_echo "$as_me: WARNING: Unable to find a flag to promote Fortran integers" >&2;}
9787
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INTEGER*8 promotion is not supported" >&5
9788
 
$as_echo "$as_me: WARNING: INTEGER*8 promotion is not supported" >&2;}
9789
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
9790
 
$as_echo "$as_me: WARNING: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
9791
 
fi
9792
 
fi
9793
 
 
9794
 
 
9795
 
#Checks for Fortran typedefs, structures, and compiler characteristics.
9796
 
 
9797
 
#Checks for Fortran type sizes.
9798
 
tascel_save_FFLAGS="$FFLAGS"; FFLAGS="$FFLAGS $FFLAG_INT"
9799
 
 
9800
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran INTEGER" >&5
9801
 
$as_echo_n "checking size of Fortran INTEGER... " >&6; }
9802
 
if ${ga_cv_f77_sizeof_INTEGER+:} false; then :
9803
 
  $as_echo_n "(cached) " >&6
9804
 
else
9805
 
  if test x$cross_compiling = xyes; then :
9806
 
  ga_cv_f77_sizeof_INTEGER=$ga_cv_f77_integer_size
9807
 
else
9808
 
  ac_ext=f
9809
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9810
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9811
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9812
 
case $ac_cv_f77_mangling in
9813
 
  upper*) ac_val="SIZE" ;;
9814
 
  lower*) ac_val="size" ;;
9815
 
  *)      ac_val="unknown" ;;
9816
 
esac
9817
 
case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
9818
 
 
9819
 
size="$ac_val"
9820
 
 
9821
 
ac_ext=f
9822
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9823
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9824
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9825
 
 
9826
 
 ac_ext=c
9827
 
ac_cpp='$CPP $CPPFLAGS'
9828
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9829
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9830
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9831
 
 
9832
 
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9833
 
/* end confdefs.h.  */
9834
 
#include <stdio.h>
9835
 
#include <stdlib.h>
9836
 
#ifdef __cplusplus
9837
 
extern "C" {
9838
 
#endif
9839
 
void $size(char *a, char *b)
9840
 
{
9841
 
    long diff = (long) (b - a);
9842
 
    FILE *f=fopen("conftestval", "w");
9843
 
    if (!f) exit(1);
9844
 
    fprintf(f, "%ld\n", diff);
9845
 
    fclose(f);
9846
 
}
9847
 
#ifdef __cplusplus
9848
 
}
9849
 
#endif
9850
 
_ACEOF
9851
 
if ac_fn_c_try_compile "$LINENO"; then :
9852
 
  mv conftest.$ac_objext cfortran_test.$ac_objext
9853
 
     ga_save_LIBS=$LIBS
9854
 
     LIBS="cfortran_test.$ac_objext $LIBS $CLIBS"
9855
 
     ac_ext=f
9856
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9857
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9858
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9859
 
 
9860
 
     if test "$cross_compiling" = yes; then :
9861
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9862
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9863
 
as_fn_error $? "cannot run test program while cross compiling
9864
 
See \`config.log' for more details" "$LINENO" 5; }
9865
 
else
9866
 
  cat > conftest.$ac_ext <<_ACEOF
9867
 
      program main
9868
 
      external size
9869
 
      INTEGER x(2)
9870
 
      call size(x(1),x(2))
9871
 
      end
9872
 
_ACEOF
9873
 
if ac_fn_f77_try_run "$LINENO"; then :
9874
 
  ga_cv_f77_sizeof_INTEGER=`cat conftestval`
9875
 
else
9876
 
  ga_cv_f77_sizeof_INTEGER=no
9877
 
fi
9878
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9879
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
9880
 
fi
9881
 
 
9882
 
     ac_ext=c
9883
 
ac_cpp='$CPP $CPPFLAGS'
9884
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9885
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9886
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9887
 
 
9888
 
     LIBS=$ga_save_LIBS
9889
 
     rm -f cfortran_test*
9890
 
else
9891
 
  ga_cv_f77_sizeof_INTEGER=no
9892
 
fi
9893
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9894
 
ac_ext=f
9895
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9896
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9897
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9898
 
 
9899
 
rm -rf conftest*
9900
 
 
9901
 
fi
9902
 
fi
9903
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_f77_sizeof_INTEGER" >&5
9904
 
$as_echo "$ga_cv_f77_sizeof_INTEGER" >&6; }
9905
 
if test x$cross_compiling = xyes; then :
9906
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot determine size of INTEGER when cross-compiling." >&5
9907
 
$as_echo "$as_me: WARNING: Cannot determine size of INTEGER when cross-compiling." >&2;}
9908
 
     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Defaulting to $ga_cv_f77_integer_size" >&5
9909
 
$as_echo "$as_me: WARNING: Defaulting to $ga_cv_f77_integer_size" >&2;}
9910
 
fi
9911
 
 
9912
 
cat >>confdefs.h <<_ACEOF
9913
 
#define SIZEOF_F77_INTEGER $ga_cv_f77_sizeof_INTEGER
9914
 
_ACEOF
9915
 
 
9916
 
 
9917
 
 
9918
 
FFLAGS="$tascel_save_FFLAGS"
9919
 
 
9920
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran REAL" >&5
9921
 
$as_echo_n "checking size of Fortran REAL... " >&6; }
9922
 
if ${ga_cv_f77_sizeof_REAL+:} false; then :
9923
 
  $as_echo_n "(cached) " >&6
9924
 
else
9925
 
  if test x$cross_compiling = xyes; then :
9926
 
  ga_cv_f77_sizeof_REAL=4
9927
 
else
9928
 
  ac_ext=f
9929
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9930
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9931
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9932
 
case $ac_cv_f77_mangling in
9933
 
  upper*) ac_val="SIZE" ;;
9934
 
  lower*) ac_val="size" ;;
9935
 
  *)      ac_val="unknown" ;;
9936
 
esac
9937
 
case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
9938
 
 
9939
 
size="$ac_val"
9940
 
 
9941
 
ac_ext=f
9942
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9943
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9944
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9945
 
 
9946
 
 ac_ext=c
9947
 
ac_cpp='$CPP $CPPFLAGS'
9948
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9949
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9950
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9951
 
 
9952
 
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9953
 
/* end confdefs.h.  */
9954
 
#include <stdio.h>
9955
 
#include <stdlib.h>
9956
 
#ifdef __cplusplus
9957
 
extern "C" {
9958
 
#endif
9959
 
void $size(char *a, char *b)
9960
 
{
9961
 
    long diff = (long) (b - a);
9962
 
    FILE *f=fopen("conftestval", "w");
9963
 
    if (!f) exit(1);
9964
 
    fprintf(f, "%ld\n", diff);
9965
 
    fclose(f);
9966
 
}
9967
 
#ifdef __cplusplus
9968
 
}
9969
 
#endif
9970
 
_ACEOF
9971
 
if ac_fn_c_try_compile "$LINENO"; then :
9972
 
  mv conftest.$ac_objext cfortran_test.$ac_objext
9973
 
     ga_save_LIBS=$LIBS
9974
 
     LIBS="cfortran_test.$ac_objext $LIBS $CLIBS"
9975
 
     ac_ext=f
9976
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9977
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9978
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9979
 
 
9980
 
     if test "$cross_compiling" = yes; then :
9981
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9982
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9983
 
as_fn_error $? "cannot run test program while cross compiling
9984
 
See \`config.log' for more details" "$LINENO" 5; }
9985
 
else
9986
 
  cat > conftest.$ac_ext <<_ACEOF
9987
 
      program main
9988
 
      external size
9989
 
      REAL x(2)
9990
 
      call size(x(1),x(2))
9991
 
      end
9992
 
_ACEOF
9993
 
if ac_fn_f77_try_run "$LINENO"; then :
9994
 
  ga_cv_f77_sizeof_REAL=`cat conftestval`
9995
 
else
9996
 
  ga_cv_f77_sizeof_REAL=no
9997
 
fi
9998
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9999
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
10000
 
fi
10001
 
 
10002
 
     ac_ext=c
10003
 
ac_cpp='$CPP $CPPFLAGS'
10004
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10005
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10006
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10007
 
 
10008
 
     LIBS=$ga_save_LIBS
10009
 
     rm -f cfortran_test*
10010
 
else
10011
 
  ga_cv_f77_sizeof_REAL=no
10012
 
fi
10013
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10014
 
ac_ext=f
10015
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10016
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10017
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10018
 
 
10019
 
rm -rf conftest*
10020
 
 
10021
 
fi
10022
 
fi
10023
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_f77_sizeof_REAL" >&5
10024
 
$as_echo "$ga_cv_f77_sizeof_REAL" >&6; }
10025
 
if test x$cross_compiling = xyes; then :
10026
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot determine size of REAL when cross-compiling." >&5
10027
 
$as_echo "$as_me: WARNING: Cannot determine size of REAL when cross-compiling." >&2;}
10028
 
     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Defaulting to 4" >&5
10029
 
$as_echo "$as_me: WARNING: Defaulting to 4" >&2;}
10030
 
fi
10031
 
 
10032
 
cat >>confdefs.h <<_ACEOF
10033
 
#define SIZEOF_F77_REAL $ga_cv_f77_sizeof_REAL
10034
 
_ACEOF
10035
 
 
10036
 
 
10037
 
 
10038
 
 
10039
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran DOUBLE PRECISION" >&5
10040
 
$as_echo_n "checking size of Fortran DOUBLE PRECISION... " >&6; }
10041
 
if ${ga_cv_f77_sizeof_DOUBLE_PRECISION+:} false; then :
10042
 
  $as_echo_n "(cached) " >&6
10043
 
else
10044
 
  if test x$cross_compiling = xyes; then :
10045
 
  ga_cv_f77_sizeof_DOUBLE_PRECISION=8
10046
 
else
10047
 
  ac_ext=f
10048
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10049
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10050
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10051
 
case $ac_cv_f77_mangling in
10052
 
  upper*) ac_val="SIZE" ;;
10053
 
  lower*) ac_val="size" ;;
10054
 
  *)      ac_val="unknown" ;;
10055
 
esac
10056
 
case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
10057
 
 
10058
 
size="$ac_val"
10059
 
 
10060
 
ac_ext=f
10061
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10062
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10063
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10064
 
 
10065
 
 ac_ext=c
10066
 
ac_cpp='$CPP $CPPFLAGS'
10067
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10068
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10069
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10070
 
 
10071
 
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10072
 
/* end confdefs.h.  */
10073
 
#include <stdio.h>
10074
 
#include <stdlib.h>
10075
 
#ifdef __cplusplus
10076
 
extern "C" {
10077
 
#endif
10078
 
void $size(char *a, char *b)
10079
 
{
10080
 
    long diff = (long) (b - a);
10081
 
    FILE *f=fopen("conftestval", "w");
10082
 
    if (!f) exit(1);
10083
 
    fprintf(f, "%ld\n", diff);
10084
 
    fclose(f);
10085
 
}
10086
 
#ifdef __cplusplus
10087
 
}
10088
 
#endif
10089
 
_ACEOF
10090
 
if ac_fn_c_try_compile "$LINENO"; then :
10091
 
  mv conftest.$ac_objext cfortran_test.$ac_objext
10092
 
     ga_save_LIBS=$LIBS
10093
 
     LIBS="cfortran_test.$ac_objext $LIBS $CLIBS"
10094
 
     ac_ext=f
10095
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10096
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10097
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10098
 
 
10099
 
     if test "$cross_compiling" = yes; then :
10100
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10101
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10102
 
as_fn_error $? "cannot run test program while cross compiling
10103
 
See \`config.log' for more details" "$LINENO" 5; }
10104
 
else
10105
 
  cat > conftest.$ac_ext <<_ACEOF
10106
 
      program main
10107
 
      external size
10108
 
      DOUBLE PRECISION x(2)
10109
 
      call size(x(1),x(2))
10110
 
      end
10111
 
_ACEOF
10112
 
if ac_fn_f77_try_run "$LINENO"; then :
10113
 
  ga_cv_f77_sizeof_DOUBLE_PRECISION=`cat conftestval`
10114
 
else
10115
 
  ga_cv_f77_sizeof_DOUBLE_PRECISION=no
10116
 
fi
10117
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10118
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
10119
 
fi
10120
 
 
10121
 
     ac_ext=c
10122
 
ac_cpp='$CPP $CPPFLAGS'
10123
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10124
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10125
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10126
 
 
10127
 
     LIBS=$ga_save_LIBS
10128
 
     rm -f cfortran_test*
10129
 
else
10130
 
  ga_cv_f77_sizeof_DOUBLE_PRECISION=no
10131
 
fi
10132
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10133
 
ac_ext=f
10134
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10135
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10136
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10137
 
 
10138
 
rm -rf conftest*
10139
 
 
10140
 
fi
10141
 
fi
10142
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_f77_sizeof_DOUBLE_PRECISION" >&5
10143
 
$as_echo "$ga_cv_f77_sizeof_DOUBLE_PRECISION" >&6; }
10144
 
if test x$cross_compiling = xyes; then :
10145
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot determine size of DOUBLE PRECISION when cross-compiling." >&5
10146
 
$as_echo "$as_me: WARNING: Cannot determine size of DOUBLE PRECISION when cross-compiling." >&2;}
10147
 
     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Defaulting to 8" >&5
10148
 
$as_echo "$as_me: WARNING: Defaulting to 8" >&2;}
10149
 
fi
10150
 
 
10151
 
cat >>confdefs.h <<_ACEOF
10152
 
#define SIZEOF_F77_DOUBLE_PRECISION $ga_cv_f77_sizeof_DOUBLE_PRECISION
10153
 
_ACEOF
10154
 
 
10155
 
 
10156
 
 
10157
 
 
10158
 
# The rest of the Fortran 77 to C compatibility checks.
10159
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flag to disable $F77 main when linking with C main" >&5
10160
 
$as_echo_n "checking for flag to disable $F77 main when linking with C main... " >&6; }
10161
 
if ${ga_cv_fld_nomain+:} false; then :
10162
 
  $as_echo_n "(cached) " >&6
10163
 
else
10164
 
  ac_ext=c
10165
 
ac_cpp='$CPP $CPPFLAGS'
10166
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10167
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10168
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10169
 
 
10170
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10171
 
/* end confdefs.h.  */
10172
 
 
10173
 
#ifdef F77_DUMMY_MAIN
10174
 
 
10175
 
#  ifdef __cplusplus
10176
 
     extern "C"
10177
 
#  endif
10178
 
   int F77_DUMMY_MAIN() { return 1; }
10179
 
 
10180
 
#endif
10181
 
int
10182
 
main ()
10183
 
{
10184
 
 
10185
 
  ;
10186
 
  return 0;
10187
 
}
10188
 
_ACEOF
10189
 
if ac_fn_c_try_compile "$LINENO"; then :
10190
 
  mv conftest.$ac_objext cfortran_test.$ac_objext
10191
 
        ga_save_LIBS=$LIBS
10192
 
        LIBS="cfortran_test.$ac_objext $LIBS"
10193
 
        ac_ext=f
10194
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10195
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10196
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10197
 
 
10198
 
        for flag in none -nofor-main -nofor_main -Mnomain -mlcmain=main; do
10199
 
            ga_save_FFLAGS=$FFLAGS
10200
 
            if test "x$flag" != xnone; then :
10201
 
  FFLAGS="$FFLAGS $flag"
10202
 
fi
10203
 
            cat > conftest.$ac_ext <<_ACEOF
10204
 
      subroutine donothing()
10205
 
      end
10206
 
_ACEOF
10207
 
if ac_fn_f77_try_link "$LINENO"; then :
10208
 
  ga_cv_fld_nomain=$flag
10209
 
fi
10210
 
rm -f core conftest.err conftest.$ac_objext \
10211
 
    conftest$ac_exeext conftest.$ac_ext
10212
 
            FFLAGS=$ga_save_FFLAGS
10213
 
            if test "x$ga_cv_fld_nomain" != x; then :
10214
 
  break
10215
 
fi
10216
 
        done
10217
 
        ac_ext=c
10218
 
ac_cpp='$CPP $CPPFLAGS'
10219
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10220
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10221
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10222
 
 
10223
 
        LIBS=$ga_save_LIBS
10224
 
        rm -f cfortran_test.$ac_objext
10225
 
fi
10226
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10227
 
    ac_ext=f
10228
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10229
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10230
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10231
 
 
10232
 
fi
10233
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_fld_nomain" >&5
10234
 
$as_echo "$ga_cv_fld_nomain" >&6; }
10235
 
if test "x$ga_cv_fld_nomain" != xnone; then :
10236
 
  FLD_NOMAIN=$ga_cv_fld_nomain
10237
 
 
10238
 
fi
10239
 
 
10240
 
 
10241
 
ac_ext=f
10242
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10243
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10244
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10245
 
 
10246
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for routines to access the command line from Fortran" >&5
10247
 
$as_echo_n "checking for routines to access the command line from Fortran... " >&6; }
10248
 
# User-specified values
10249
 
# Standard practice, uppercase
10250
 
if test "x$ga_f77_getarg" = x; then :
10251
 
  ga_fxx_module=
10252
 
    ga_f77_getarg_decl="external GETARG"
10253
 
    ga_f77_getarg=GETARG
10254
 
    ga_f77_getarg_args="i,s"
10255
 
    ga_f77_iargc=IARGC
10256
 
    cat > conftest.$ac_ext <<_ACEOF
10257
 
      program main
10258
 
      $ga_fxx_module
10259
 
      integer i, j, l, ier
10260
 
      character*20 s
10261
 
      $ga_f77_getarg_decl
10262
 
      i = 0
10263
 
      call $ga_f77_getarg($ga_f77_getarg_args)
10264
 
      i=$ga_f77_iargc()
10265
 
      if (i .gt. 1) then
10266
 
          j = i - $ga_f77_iargc()
10267
 
          j = 1.0 / j
10268
 
      endif
10269
 
      end
10270
 
_ACEOF
10271
 
if ac_fn_f77_try_link "$LINENO"; then :
10272
 
 
10273
 
else
10274
 
  ga_f77_getarg=
10275
 
fi
10276
 
rm -f core conftest.err conftest.$ac_objext \
10277
 
    conftest$ac_exeext conftest.$ac_ext
10278
 
 
10279
 
fi
10280
 
# Standard practice, lowercase
10281
 
if test "x$ga_f77_getarg" = x; then :
10282
 
  ga_fxx_module=
10283
 
    ga_f77_getarg_decl="external getarg"
10284
 
    ga_f77_getarg=getarg
10285
 
    ga_f77_getarg_args="i,s"
10286
 
    ga_f77_iargc=iargc
10287
 
    cat > conftest.$ac_ext <<_ACEOF
10288
 
      program main
10289
 
      $ga_fxx_module
10290
 
      integer i, j, l, ier
10291
 
      character*20 s
10292
 
      $ga_f77_getarg_decl
10293
 
      i = 0
10294
 
      call $ga_f77_getarg($ga_f77_getarg_args)
10295
 
      i=$ga_f77_iargc()
10296
 
      if (i .gt. 1) then
10297
 
          j = i - $ga_f77_iargc()
10298
 
          j = 1.0 / j
10299
 
      endif
10300
 
      end
10301
 
_ACEOF
10302
 
if ac_fn_f77_try_link "$LINENO"; then :
10303
 
 
10304
 
else
10305
 
  ga_f77_getarg=
10306
 
fi
10307
 
rm -f core conftest.err conftest.$ac_objext \
10308
 
    conftest$ac_exeext conftest.$ac_ext
10309
 
 
10310
 
fi
10311
 
# Posix alternative
10312
 
if test "x$ga_f77_getarg" = x; then :
10313
 
  ga_fxx_module=
10314
 
    ga_f77_getarg_decl="external pxfgetarg"
10315
 
    ga_f77_getarg=pxfgetarg
10316
 
    ga_f77_getarg_args="i,s,l,ier"
10317
 
    ga_f77_iargc=ipxfargc
10318
 
    cat > conftest.$ac_ext <<_ACEOF
10319
 
      program main
10320
 
      $ga_fxx_module
10321
 
      integer i, j, l, ier
10322
 
      character*20 s
10323
 
      $ga_f77_getarg_decl
10324
 
      i = 0
10325
 
      call $ga_f77_getarg($ga_f77_getarg_args)
10326
 
      i=$ga_f77_iargc()
10327
 
      if (i .gt. 1) then
10328
 
          j = i - $ga_f77_iargc()
10329
 
          j = 1.0 / j
10330
 
      endif
10331
 
      end
10332
 
_ACEOF
10333
 
if ac_fn_f77_try_link "$LINENO"; then :
10334
 
 
10335
 
else
10336
 
  ga_f77_getarg=
10337
 
fi
10338
 
rm -f core conftest.err conftest.$ac_objext \
10339
 
    conftest$ac_exeext conftest.$ac_ext
10340
 
 
10341
 
fi
10342
 
# Nag f90_unix_env module
10343
 
if test "x$ga_f77_getarg" = x; then :
10344
 
  ga_fxx_module="        use f90_unix_env"
10345
 
    ga_f77_getarg_decl=
10346
 
    ga_f77_getarg=getarg
10347
 
    ga_f77_getarg_args="i,s"
10348
 
    ga_f77_iargc=iargc
10349
 
    cat > conftest.$ac_ext <<_ACEOF
10350
 
      program main
10351
 
      $ga_fxx_module
10352
 
      integer i, j, l, ier
10353
 
      character*20 s
10354
 
      $ga_f77_getarg_decl
10355
 
      i = 0
10356
 
      call $ga_f77_getarg($ga_f77_getarg_args)
10357
 
      i=$ga_f77_iargc()
10358
 
      if (i .gt. 1) then
10359
 
          j = i - $ga_f77_iargc()
10360
 
          j = 1.0 / j
10361
 
      endif
10362
 
      end
10363
 
_ACEOF
10364
 
if ac_fn_f77_try_link "$LINENO"; then :
10365
 
 
10366
 
else
10367
 
  ga_f77_getarg=
10368
 
fi
10369
 
rm -f core conftest.err conftest.$ac_objext \
10370
 
    conftest$ac_exeext conftest.$ac_ext
10371
 
 
10372
 
fi
10373
 
# Nag f90_unix module
10374
 
if test "x$ga_f77_getarg" = x; then :
10375
 
  ga_fxx_module="        use f90_unix"
10376
 
    ga_f77_getarg_decl=
10377
 
    ga_f77_getarg=getarg
10378
 
    ga_f77_getarg_args="i,s"
10379
 
    ga_f77_iargc=iargc
10380
 
    cat > conftest.$ac_ext <<_ACEOF
10381
 
      program main
10382
 
      $ga_fxx_module
10383
 
      integer i, j, l, ier
10384
 
      character*20 s
10385
 
      $ga_f77_getarg_decl
10386
 
      i = 0
10387
 
      call $ga_f77_getarg($ga_f77_getarg_args)
10388
 
      i=$ga_f77_iargc()
10389
 
      if (i .gt. 1) then
10390
 
          j = i - $ga_f77_iargc()
10391
 
          j = 1.0 / j
10392
 
      endif
10393
 
      end
10394
 
_ACEOF
10395
 
if ac_fn_f77_try_link "$LINENO"; then :
10396
 
 
10397
 
else
10398
 
  ga_f77_getarg=
10399
 
fi
10400
 
rm -f core conftest.err conftest.$ac_objext \
10401
 
    conftest$ac_exeext conftest.$ac_ext
10402
 
 
10403
 
fi
10404
 
# gfortran won't find getarg if it is marked as external
10405
 
if test "x$ga_f77_getarg" = x; then :
10406
 
  ga_fxx_module=
10407
 
    ga_f77_getarg_decl="intrinsic GETARG"
10408
 
    ga_f77_getarg=GETARG
10409
 
    ga_f77_getarg_args="i,s"
10410
 
    ga_f77_iargc=IARGC
10411
 
    cat > conftest.$ac_ext <<_ACEOF
10412
 
      program main
10413
 
      $ga_fxx_module
10414
 
      integer i, j, l, ier
10415
 
      character*20 s
10416
 
      $ga_f77_getarg_decl
10417
 
      i = 0
10418
 
      call $ga_f77_getarg($ga_f77_getarg_args)
10419
 
      i=$ga_f77_iargc()
10420
 
      if (i .gt. 1) then
10421
 
          j = i - $ga_f77_iargc()
10422
 
          j = 1.0 / j
10423
 
      endif
10424
 
      end
10425
 
_ACEOF
10426
 
if ac_fn_f77_try_link "$LINENO"; then :
10427
 
 
10428
 
else
10429
 
  ga_f77_getarg=
10430
 
fi
10431
 
rm -f core conftest.err conftest.$ac_objext \
10432
 
    conftest$ac_exeext conftest.$ac_ext
10433
 
 
10434
 
fi
10435
 
if test "x$ga_f77_getarg" = x; then :
10436
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10437
 
$as_echo "no" >&6; }
10438
 
    as_fn_error $? "Could not find way to access Fortran cmd line from C" "$LINENO" 5
10439
 
fi
10440
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10441
 
$as_echo "yes" >&6; }
10442
 
 
10443
 
cat >>confdefs.h <<_ACEOF
10444
 
#define F77_GETARG_DECL $ga_f77_getarg_decl
10445
 
_ACEOF
10446
 
 
10447
 
 
10448
 
cat >>confdefs.h <<_ACEOF
10449
 
#define F77_GETARG $ga_f77_getarg
10450
 
_ACEOF
10451
 
 
10452
 
 
10453
 
cat >>confdefs.h <<_ACEOF
10454
 
#define F77_GETARG_ARGS $ga_f77_getarg_args
10455
 
_ACEOF
10456
 
 
10457
 
 
10458
 
cat >>confdefs.h <<_ACEOF
10459
 
#define F77_IARGC $ga_f77_iargc
10460
 
_ACEOF
10461
 
 
10462
 
 
10463
 
cat >>confdefs.h <<_ACEOF
10464
 
#define FXX_MODULE $ga_fxx_module
10465
 
_ACEOF
10466
 
 
10467
 
ac_ext=f
10468
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10469
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10470
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10471
 
case $ac_cv_f77_mangling in
10472
 
  upper*) ac_val="F2C_GETARG" ;;
10473
 
  lower*) ac_val="f2c_getarg" ;;
10474
 
  *)      ac_val="unknown" ;;
10475
 
esac
10476
 
case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
10477
 
case $ac_cv_f77_mangling in *," extra underscore"*) ac_val="$ac_val"_ ;; esac
10478
 
 
10479
 
F2C_GETARG="$ac_val"
10480
 
 
10481
 
ac_ext=f
10482
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10483
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10484
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10485
 
 
10486
 
ac_ext=f
10487
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10488
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10489
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10490
 
case $ac_cv_f77_mangling in
10491
 
  upper*) ac_val="F2C_IARGC" ;;
10492
 
  lower*) ac_val="f2c_iargc" ;;
10493
 
  *)      ac_val="unknown" ;;
10494
 
esac
10495
 
case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
10496
 
case $ac_cv_f77_mangling in *," extra underscore"*) ac_val="$ac_val"_ ;; esac
10497
 
 
10498
 
F2C_IARGC="$ac_val"
10499
 
 
10500
 
ac_ext=f
10501
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10502
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10503
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10504
 
 
10505
 
ac_ext=f
10506
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10507
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10508
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10509
 
 
10510
 
 
10511
 
 
10512
 
 
10513
 
 
10514
 
 
10515
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Fortran hidden string length convention is after args" >&5
10516
 
$as_echo_n "checking whether Fortran hidden string length convention is after args... " >&6; }
10517
 
if ${ga_cv_f2c_string_after_args+:} false; then :
10518
 
  $as_echo_n "(cached) " >&6
10519
 
else
10520
 
  if test "x$F2C_HIDDEN_STRING_LENGTH_AFTER_ARGS" != x; then :
10521
 
  ga_cv_f2c_string_after_args="$F2C_HIDDEN_STRING_LENGTH_AFTER_ARGS"
10522
 
fi
10523
 
  if test "x$ga_cv_f2c_string_after_args" = x; then :
10524
 
  if test x$cross_compiling = xyes; then :
10525
 
  if test "x" != x; then :
10526
 
  ga_cv_f2c_string_after_args=""
10527
 
else
10528
 
  ga_cv_f2c_string_after_args="yes"
10529
 
fi
10530
 
fi
10531
 
fi
10532
 
  if test "x$ga_cv_f2c_string_after_args" = x; then :
10533
 
  ac_ext=f
10534
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10535
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10536
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10537
 
case $ac_cv_f77_mangling in
10538
 
  upper*) ac_val="SUB" ;;
10539
 
  lower*) ac_val="sub" ;;
10540
 
  *)      ac_val="unknown" ;;
10541
 
esac
10542
 
case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
10543
 
 
10544
 
SUB="$ac_val"
10545
 
 
10546
 
ac_ext=f
10547
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10548
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10549
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10550
 
 
10551
 
ac_ext=c
10552
 
ac_cpp='$CPP $CPPFLAGS'
10553
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10554
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10555
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10556
 
 
10557
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10558
 
/* end confdefs.h.  */
10559
 
#include <stdio.h>
10560
 
#include <string.h>
10561
 
#define LEN 80
10562
 
 
10563
 
void fix_c_string_for_f(char *s, int len);
10564
 
void fix_f_string_for_c(char *s, int len);
10565
 
 
10566
 
void $SUB(char *fname, char *lname, int fname_len, int lname_len)
10567
 
{
10568
 
    char result[LEN];
10569
 
    fix_f_string_for_c(fname, fname_len);
10570
 
    fix_f_string_for_c(lname, lname_len);
10571
 
    snprintf(result, LEN, "The names passed to C:  %s %s\n", fname, lname);
10572
 
    fix_c_string_for_f(fname, fname_len);
10573
 
    fix_c_string_for_f(lname, lname_len);
10574
 
}
10575
 
 
10576
 
void fix_c_string_for_f(char *s, int len)
10577
 
{
10578
 
    int i;
10579
 
    for (i=strlen(s); i < len; i++) {
10580
 
        s[i] = ' ';
10581
 
    }
10582
 
}
10583
 
 
10584
 
void fix_f_string_for_c(char *s, int len)
10585
 
{
10586
 
    int i;
10587
 
    for (i=len-1; s[i] == ' ' && i>=0; i--) {
10588
 
        s[i] = '\0';
10589
 
    }
10590
 
}
10591
 
_ACEOF
10592
 
if ac_fn_c_try_compile "$LINENO"; then :
10593
 
  mv conftest.$ac_objext cfortran_test.$ac_objext
10594
 
    ga_save_LIBS=$LIBS
10595
 
    LIBS="cfortran_test.$ac_objext $LIBS $CLIBS"
10596
 
    ac_ext=f
10597
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10598
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10599
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10600
 
 
10601
 
    if test "$cross_compiling" = yes; then :
10602
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10603
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10604
 
as_fn_error $? "cannot run test program while cross compiling
10605
 
See \`config.log' for more details" "$LINENO" 5; }
10606
 
else
10607
 
  cat > conftest.$ac_ext <<_ACEOF
10608
 
      program main
10609
 
      character(LEN=10) :: first_name
10610
 
      character(LEN=15) :: last_name
10611
 
      first_name = "John"
10612
 
      last_name = "Doe"
10613
 
      call sub(first_name, last_name)
10614
 
      end
10615
 
_ACEOF
10616
 
if ac_fn_f77_try_run "$LINENO"; then :
10617
 
  ga_cv_f2c_string_after_args="yes"
10618
 
else
10619
 
  :
10620
 
fi
10621
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10622
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
10623
 
fi
10624
 
 
10625
 
    ac_ext=c
10626
 
ac_cpp='$CPP $CPPFLAGS'
10627
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10628
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10629
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10630
 
 
10631
 
    LIBS=$ga_save_LIBS
10632
 
    rm -f cfortran_test*
10633
 
else
10634
 
  :
10635
 
fi
10636
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10637
 
ac_ext=f
10638
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10639
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10640
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10641
 
 
10642
 
rm -rf conftest*
10643
 
 
10644
 
fi
10645
 
  if test "x$ga_cv_f2c_string_after_args" = x; then :
10646
 
  ac_ext=f
10647
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10648
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10649
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10650
 
case $ac_cv_f77_mangling in
10651
 
  upper*) ac_val="SUB" ;;
10652
 
  lower*) ac_val="sub" ;;
10653
 
  *)      ac_val="unknown" ;;
10654
 
esac
10655
 
case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
10656
 
 
10657
 
SUB="$ac_val"
10658
 
 
10659
 
ac_ext=f
10660
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10661
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10662
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10663
 
 
10664
 
ac_ext=c
10665
 
ac_cpp='$CPP $CPPFLAGS'
10666
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10667
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10668
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10669
 
 
10670
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10671
 
/* end confdefs.h.  */
10672
 
#include <stdio.h>
10673
 
#include <string.h>
10674
 
#define LEN 80
10675
 
 
10676
 
void fix_c_string_for_f(char *s, int len);
10677
 
void fix_f_string_for_c(char *s, int len);
10678
 
 
10679
 
void $SUB(char *fname, int fname_len, char *lname, int lname_len)
10680
 
{
10681
 
    char result[LEN];
10682
 
    fix_f_string_for_c(fname, fname_len);
10683
 
    fix_f_string_for_c(lname, lname_len);
10684
 
    snprintf(result, LEN, "The names passed to C:  %s %s\n", fname, lname);
10685
 
    fix_c_string_for_f(fname, fname_len);
10686
 
    fix_c_string_for_f(lname, lname_len);
10687
 
}
10688
 
 
10689
 
void fix_c_string_for_f(char *s, int len)
10690
 
{
10691
 
    int i;
10692
 
    for (i=strlen(s); i < len; i++) {
10693
 
        s[i] = ' ';
10694
 
    }
10695
 
}
10696
 
 
10697
 
void fix_f_string_for_c(char *s, int len)
10698
 
{
10699
 
    int i;
10700
 
    for (i=len-1; s[i] == ' ' && i>=0; i--) {
10701
 
        s[i] = '\0';
10702
 
    }
10703
 
}
10704
 
_ACEOF
10705
 
if ac_fn_c_try_compile "$LINENO"; then :
10706
 
  mv conftest.$ac_objext cfortran_test.$ac_objext
10707
 
    ga_save_LIBS=$LIBS
10708
 
    LIBS="cfortran_test.$ac_objext $LIBS $CLIBS"
10709
 
    ac_ext=f
10710
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10711
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10712
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10713
 
 
10714
 
    if test "$cross_compiling" = yes; then :
10715
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10716
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10717
 
as_fn_error $? "cannot run test program while cross compiling
10718
 
See \`config.log' for more details" "$LINENO" 5; }
10719
 
else
10720
 
  cat > conftest.$ac_ext <<_ACEOF
10721
 
      program main
10722
 
      character(LEN=10) :: first_name
10723
 
      character(LEN=15) :: last_name
10724
 
      first_name = "John"
10725
 
      last_name = "Doe"
10726
 
      call sub(first_name, last_name)
10727
 
      end
10728
 
_ACEOF
10729
 
if ac_fn_f77_try_run "$LINENO"; then :
10730
 
  ga_cv_f2c_string_after_args="no"
10731
 
else
10732
 
  :
10733
 
fi
10734
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10735
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
10736
 
fi
10737
 
 
10738
 
    ac_ext=c
10739
 
ac_cpp='$CPP $CPPFLAGS'
10740
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10741
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10742
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10743
 
 
10744
 
    LIBS=$ga_save_LIBS
10745
 
    rm -f cfortran_test*
10746
 
else
10747
 
  :
10748
 
fi
10749
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10750
 
ac_ext=f
10751
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10752
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10753
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10754
 
 
10755
 
rm -rf conftest*
10756
 
 
10757
 
fi
10758
 
fi
10759
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_f2c_string_after_args" >&5
10760
 
$as_echo "$ga_cv_f2c_string_after_args" >&6; }
10761
 
if test x$cross_compiling = xyes; then :
10762
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: cannot determine f2c string convention" >&5
10763
 
$as_echo "$as_me: WARNING: cross compiling: cannot determine f2c string convention" >&2;}
10764
 
   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: default is after args (=yes) but can be changed using" >&5
10765
 
$as_echo "$as_me: WARNING: default is after args (=yes) but can be changed using" >&2;}
10766
 
   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: F2C_HIDDEN_STRING_LENGTH_AFTER_ARGS=no" >&5
10767
 
$as_echo "$as_me: WARNING: F2C_HIDDEN_STRING_LENGTH_AFTER_ARGS=no" >&2;}
10768
 
fi
10769
 
if test "x$ga_cv_f2c_string_after_args" = "xyes"; then :
10770
 
 
10771
 
$as_echo "#define F2C_HIDDEN_STRING_LENGTH_AFTER_ARGS 1" >>confdefs.h
10772
 
 
10773
 
fi
10774
 
if test "x$ga_cv_f2c_string_after_args" != x; then :
10775
 
  :
10776
 
else
10777
 
  as_fn_error $? "f2c string convention is neither after args nor after string" "$LINENO" 5
10778
 
fi
10779
 
 
10780
 
 
10781
 
 
10782
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to INTEGER" >&5
10783
 
$as_echo_n "checking for C type corresponding to INTEGER... " >&6; }
10784
 
if ${ga_cv_f2c_INTEGER+:} false; then :
10785
 
  $as_echo_n "(cached) " >&6
10786
 
else
10787
 
 
10788
 
         if test -z "$ga_cv_f2c_INTEGER"; then :
10789
 
  if test "$ac_cv_sizeof_short" = "$ga_cv_f77_sizeof_INTEGER"; then :
10790
 
  ga_cv_f2c_INTEGER="short"
10791
 
fi
10792
 
fi
10793
 
 
10794
 
         if test -z "$ga_cv_f2c_INTEGER"; then :
10795
 
  if test "$ac_cv_sizeof_int" = "$ga_cv_f77_sizeof_INTEGER"; then :
10796
 
  ga_cv_f2c_INTEGER="int"
10797
 
fi
10798
 
fi
10799
 
 
10800
 
         if test -z "$ga_cv_f2c_INTEGER"; then :
10801
 
  if test "$ac_cv_sizeof_long" = "$ga_cv_f77_sizeof_INTEGER"; then :
10802
 
  ga_cv_f2c_INTEGER="long"
10803
 
fi
10804
 
fi
10805
 
 
10806
 
         if test -z "$ga_cv_f2c_INTEGER"; then :
10807
 
  if test "$ac_cv_sizeof_long_long" = "$ga_cv_f77_sizeof_INTEGER"; then :
10808
 
  ga_cv_f2c_INTEGER="long long"
10809
 
fi
10810
 
fi
10811
 
 
10812
 
fi
10813
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_f2c_INTEGER" >&5
10814
 
$as_echo "$ga_cv_f2c_INTEGER" >&6; }
10815
 
if test "x$ga_cv_f2c_INTEGER" = x; then :
10816
 
  as_fn_error $? "Could not determine C type matching Fortran INTEGER" "$LINENO" 5
10817
 
fi
10818
 
F2C_INTEGER_C_TYPE=$ga_cv_f2c_INTEGER
10819
 
 
10820
 
 
10821
 
 
10822
 
 
10823
 
 
10824
 
 
10825
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to REAL" >&5
10826
 
$as_echo_n "checking for C type corresponding to REAL... " >&6; }
10827
 
if ${ga_cv_f2c_REAL+:} false; then :
10828
 
  $as_echo_n "(cached) " >&6
10829
 
else
10830
 
 
10831
 
         if test -z "$ga_cv_f2c_REAL"; then :
10832
 
  if test "$ac_cv_sizeof_float" = "$ga_cv_f77_sizeof_REAL"; then :
10833
 
  ga_cv_f2c_REAL="float"
10834
 
fi
10835
 
fi
10836
 
 
10837
 
         if test -z "$ga_cv_f2c_REAL"; then :
10838
 
  if test "$ac_cv_sizeof_double" = "$ga_cv_f77_sizeof_REAL"; then :
10839
 
  ga_cv_f2c_REAL="double"
10840
 
fi
10841
 
fi
10842
 
 
10843
 
         if test -z "$ga_cv_f2c_REAL"; then :
10844
 
  if test "$ac_cv_sizeof_long_double" = "$ga_cv_f77_sizeof_REAL"; then :
10845
 
  ga_cv_f2c_REAL="long double"
10846
 
fi
10847
 
fi
10848
 
 
10849
 
fi
10850
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_f2c_REAL" >&5
10851
 
$as_echo "$ga_cv_f2c_REAL" >&6; }
10852
 
if test "x$ga_cv_f2c_REAL" = x; then :
10853
 
  as_fn_error $? "Could not determine C type matching Fortran REAL" "$LINENO" 5
10854
 
fi
10855
 
F2C_REAL_C_TYPE=$ga_cv_f2c_REAL
10856
 
 
10857
 
 
10858
 
 
10859
 
 
10860
 
 
10861
 
 
10862
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to DOUBLE PRECISION" >&5
10863
 
$as_echo_n "checking for C type corresponding to DOUBLE PRECISION... " >&6; }
10864
 
if ${ga_cv_f2c_DOUBLE_PRECISION+:} false; then :
10865
 
  $as_echo_n "(cached) " >&6
10866
 
else
10867
 
 
10868
 
         if test -z "$ga_cv_f2c_DOUBLE_PRECISION"; then :
10869
 
  if test "$ac_cv_sizeof_float" = "$ga_cv_f77_sizeof_DOUBLE_PRECISION"; then :
10870
 
  ga_cv_f2c_DOUBLE_PRECISION="float"
10871
 
fi
10872
 
fi
10873
 
 
10874
 
         if test -z "$ga_cv_f2c_DOUBLE_PRECISION"; then :
10875
 
  if test "$ac_cv_sizeof_double" = "$ga_cv_f77_sizeof_DOUBLE_PRECISION"; then :
10876
 
  ga_cv_f2c_DOUBLE_PRECISION="double"
10877
 
fi
10878
 
fi
10879
 
 
10880
 
         if test -z "$ga_cv_f2c_DOUBLE_PRECISION"; then :
10881
 
  if test "$ac_cv_sizeof_long_double" = "$ga_cv_f77_sizeof_DOUBLE_PRECISION"; then :
10882
 
  ga_cv_f2c_DOUBLE_PRECISION="long double"
10883
 
fi
10884
 
fi
10885
 
 
10886
 
fi
10887
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_f2c_DOUBLE_PRECISION" >&5
10888
 
$as_echo "$ga_cv_f2c_DOUBLE_PRECISION" >&6; }
10889
 
if test "x$ga_cv_f2c_DOUBLE_PRECISION" = x; then :
10890
 
  as_fn_error $? "Could not determine C type matching Fortran DOUBLE PRECISION" "$LINENO" 5
10891
 
fi
10892
 
F2C_DOUBLE_PRECISION_C_TYPE=$ga_cv_f2c_DOUBLE_PRECISION
10893
 
 
10894
 
 
10895
 
 
10896
 
 
10897
 
 
10898
 
else
10899
 
 
10900
 
# enable_f77=no version of AC_F77_WRAPPERS
10901
 
 
10902
 
$as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h
10903
 
 
10904
 
 
10905
 
$as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h
10906
 
 
10907
 
# enable_f77=no version of GA_F77_CHECK_SIZEOF
10908
 
 
10909
 
cat >>confdefs.h <<_ACEOF
10910
 
#define SIZEOF_F77_INTEGER $ac_cv_sizeof_voidp
10911
 
_ACEOF
10912
 
 
10913
 
 
10914
 
cat >>confdefs.h <<_ACEOF
10915
 
#define SIZEOF_F77_REAL 4
10916
 
_ACEOF
10917
 
 
10918
 
 
10919
 
cat >>confdefs.h <<_ACEOF
10920
 
#define SIZEOF_F77_DOUBLE_PRECISION 8
10921
 
_ACEOF
10922
 
 
10923
 
# enable_f77=no version of GA_F2C_NOMAIN
10924
 
 
10925
 
# enable_f77=no version of GA_F2C_CMDARGS
10926
 
F2C_GETARG="F2C_GETARG"
10927
 
F2C_IARGC="F2C_IARGC"
10928
 
 
10929
 
 
10930
 
# enable_f77=no version of GA_F2C_HIDDEN_STRING_LENGTH_CONVENTION
10931
 
 
10932
 
$as_echo "#define F2C_HIDDEN_STRING_LENGTH_AFTER_ARGS 1" >>confdefs.h
10933
 
 
10934
 
# enable_f77=no version of GA_F2C_MATCH_TYPES
10935
 
F2C_INTEGER_C_TYPE=long
10936
 
 
10937
 
F2C_REAL_C_TYPE=float
10938
 
 
10939
 
F2C_DOUBLE_PRECISION_C_TYPE=double
10940
 
 
10941
 
 
10942
 
fi
10943
 
 
10944
 
ac_ext=c
10945
 
ac_cpp='$CPP $CPPFLAGS'
10946
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10947
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10948
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10949
 
 
10950
 
 
10951
 
###############################################################################
10952
 
# Look for Global Arrays
10953
 
###############################################################################
10954
 
ac_ext=c
10955
 
ac_cpp='$CPP $CPPFLAGS'
10956
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10957
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10958
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10959
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
10960
 
$as_echo_n "checking how to run the C preprocessor... " >&6; }
10961
 
# On Suns, sometimes $CPP names a directory.
10962
 
if test -n "$CPP" && test -d "$CPP"; then
10963
 
  CPP=
10964
 
fi
10965
 
if test -z "$CPP"; then
10966
 
  if ${ac_cv_prog_CPP+:} false; then :
10967
 
  $as_echo_n "(cached) " >&6
10968
 
else
10969
 
      # Double quotes because CPP needs to be expanded
10970
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10971
 
    do
10972
 
      ac_preproc_ok=false
10973
 
for ac_c_preproc_warn_flag in '' yes
10974
 
do
10975
 
  # Use a header file that comes with gcc, so configuring glibc
10976
 
  # with a fresh cross-compiler works.
10977
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10978
 
  # <limits.h> exists even on freestanding compilers.
10979
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
10980
 
  # not just through cpp. "Syntax error" is here to catch this case.
10981
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10982
 
/* end confdefs.h.  */
10983
 
#ifdef __STDC__
10984
 
# include <limits.h>
10985
 
#else
10986
 
# include <assert.h>
10987
 
#endif
10988
 
                     Syntax error
10989
 
_ACEOF
10990
 
if ac_fn_c_try_cpp "$LINENO"; then :
10991
 
 
10992
 
else
10993
 
  # Broken: fails on valid input.
10994
 
continue
10995
 
fi
10996
 
rm -f conftest.err conftest.i conftest.$ac_ext
10997
 
 
10998
 
  # OK, works on sane cases.  Now check whether nonexistent headers
10999
 
  # can be detected and how.
11000
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11001
 
/* end confdefs.h.  */
11002
 
#include <ac_nonexistent.h>
11003
 
_ACEOF
11004
 
if ac_fn_c_try_cpp "$LINENO"; then :
11005
 
  # Broken: success on invalid input.
11006
 
continue
11007
 
else
11008
 
  # Passes both tests.
11009
 
ac_preproc_ok=:
11010
 
break
11011
 
fi
11012
 
rm -f conftest.err conftest.i conftest.$ac_ext
11013
 
 
11014
 
done
11015
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11016
 
rm -f conftest.i conftest.err conftest.$ac_ext
11017
 
if $ac_preproc_ok; then :
11018
 
  break
11019
 
fi
11020
 
 
11021
 
    done
11022
 
    ac_cv_prog_CPP=$CPP
11023
 
 
11024
 
fi
11025
 
  CPP=$ac_cv_prog_CPP
11026
 
else
11027
 
  ac_cv_prog_CPP=$CPP
11028
 
fi
11029
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
11030
 
$as_echo "$CPP" >&6; }
11031
 
ac_preproc_ok=false
11032
 
for ac_c_preproc_warn_flag in '' yes
11033
 
do
11034
 
  # Use a header file that comes with gcc, so configuring glibc
11035
 
  # with a fresh cross-compiler works.
11036
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11037
 
  # <limits.h> exists even on freestanding compilers.
11038
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
11039
 
  # not just through cpp. "Syntax error" is here to catch this case.
11040
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11041
 
/* end confdefs.h.  */
11042
 
#ifdef __STDC__
11043
 
# include <limits.h>
11044
 
#else
11045
 
# include <assert.h>
11046
 
#endif
11047
 
                     Syntax error
11048
 
_ACEOF
11049
 
if ac_fn_c_try_cpp "$LINENO"; then :
11050
 
 
11051
 
else
11052
 
  # Broken: fails on valid input.
11053
 
continue
11054
 
fi
11055
 
rm -f conftest.err conftest.i conftest.$ac_ext
11056
 
 
11057
 
  # OK, works on sane cases.  Now check whether nonexistent headers
11058
 
  # can be detected and how.
11059
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11060
 
/* end confdefs.h.  */
11061
 
#include <ac_nonexistent.h>
11062
 
_ACEOF
11063
 
if ac_fn_c_try_cpp "$LINENO"; then :
11064
 
  # Broken: success on invalid input.
11065
 
continue
11066
 
else
11067
 
  # Passes both tests.
11068
 
ac_preproc_ok=:
11069
 
break
11070
 
fi
11071
 
rm -f conftest.err conftest.i conftest.$ac_ext
11072
 
 
11073
 
done
11074
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11075
 
rm -f conftest.i conftest.err conftest.$ac_ext
11076
 
if $ac_preproc_ok; then :
11077
 
 
11078
 
else
11079
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11080
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11081
 
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
11082
 
See \`config.log' for more details" "$LINENO" 5; }
11083
 
fi
11084
 
 
11085
 
ac_ext=c
11086
 
ac_cpp='$CPP $CPPFLAGS'
11087
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11088
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11089
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11090
 
 
11091
 
 
11092
 
if test "x$tascel_cv_standalone" = xno; then :
11093
 
  GA_LIBS="../libga.la"
11094
 
     GA_CPPFLAGS="-I$srcdir/../global/src -I../global/src -I$srcdir/../ma -I../ma -I../gaf2c -I$srcdir/../armci/src/include"
11095
 
else
11096
 
 
11097
 
 
11098
 
 
11099
 
 
11100
 
 
11101
 
GA_LIBS=
11102
 
GA_LDFLAGS=
11103
 
GA_CPPFLAGS=
11104
 
 
11105
 
# Check whether --with-ga was given.
11106
 
if test "${with_ga+set}" = set; then :
11107
 
  withval=$with_ga;
11108
 
else
11109
 
  with_ga=yes
11110
 
fi
11111
 
 
11112
 
case $with_ga in #(
11113
 
  yes) :
11114
 
     ;; #(
11115
 
  no) :
11116
 
     ;; #(
11117
 
  *) :
11118
 
    if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ga_arg_parse_sizeof_voidp"        ""; then :
11119
 
 
11120
 
fi
11121
 
 
11122
 
for arg in $with_ga ; do
11123
 
    case $arg in #(
11124
 
  yes) :
11125
 
     ;; #(
11126
 
  no) :
11127
 
     ;; #(
11128
 
  -l*) :
11129
 
    GA_LIBS="$GA_LIBS $arg" ;; #(
11130
 
  -L*) :
11131
 
    GA_LDFLAGS="$GA_LDFLAGS $arg" ;; #(
11132
 
  -WL*) :
11133
 
    GA_LDFLAGS="$GA_LDFLAGS $arg" ;; #(
11134
 
  -Wl*) :
11135
 
    GA_LDFLAGS="$GA_LDFLAGS $arg" ;; #(
11136
 
  -I*) :
11137
 
    GA_CPPFLAGS="$GA_CPPFLAGS $arg" ;; #(
11138
 
  *.a) :
11139
 
    GA_LIBS="$GA_LIBS $arg" ;; #(
11140
 
  *.so) :
11141
 
    GA_LIBS="$GA_LIBS $arg" ;; #(
11142
 
  *lib) :
11143
 
    if test -d $arg; then :
11144
 
  GA_LDFLAGS="$GA_LDFLAGS -L$arg"
11145
 
else
11146
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_ga not parsed" >&5
11147
 
$as_echo "$as_me: WARNING: $arg of with_ga not parsed" >&2;}
11148
 
fi ;; #(
11149
 
  *lib64) :
11150
 
    if test -d $arg; then :
11151
 
  GA_LDFLAGS="$GA_LDFLAGS -L$arg"
11152
 
else
11153
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_ga not parsed" >&5
11154
 
$as_echo "$as_me: WARNING: $arg of with_ga not parsed" >&2;}
11155
 
fi ;; #(
11156
 
  *include) :
11157
 
    if test -d $arg; then :
11158
 
  GA_CPPFLAGS="$GA_CPPFLAGS -I$arg"
11159
 
else
11160
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_ga not parsed" >&5
11161
 
$as_echo "$as_me: WARNING: $arg of with_ga not parsed" >&2;}
11162
 
fi ;; #(
11163
 
  *include64) :
11164
 
    if test -d $arg; then :
11165
 
  GA_CPPFLAGS="$GA_CPPFLAGS -I$arg"
11166
 
else
11167
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_ga not parsed" >&5
11168
 
$as_echo "$as_me: WARNING: $arg of with_ga not parsed" >&2;}
11169
 
fi ;; #(
11170
 
  *) :
11171
 
    ga_arg_parse_ok=no ;;
11172
 
esac
11173
 
# $arg didn't fit the most common cases
11174
 
# check for subdirectories e.g. lib,include
11175
 
    if test "x$ga_arg_parse_ok" = xno; then :
11176
 
  if test "x$ga_arg_parse_sizeof_voidp" = x8; then :
11177
 
  if test -d $arg/lib64; then :
11178
 
  GA_LDFLAGS="$GA_LDFLAGS -L$arg/lib64"; ga_arg_parse_ok=yes
11179
 
elif test -d $arg/lib; then :
11180
 
  GA_LDFLAGS="$GA_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
11181
 
fi
11182
 
             if test -d $arg/include64; then :
11183
 
  GA_CPPFLAGS="$GA_CPPFLAGS -I$arg/include64"; ga_arg_parse_ok=yes
11184
 
elif test -d $arg/include; then :
11185
 
  GA_CPPFLAGS="$GA_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
11186
 
fi
11187
 
else
11188
 
  if test -d $arg/lib; then :
11189
 
  GA_LDFLAGS="$GA_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
11190
 
fi
11191
 
             if test -d $arg/include; then :
11192
 
  GA_CPPFLAGS="$GA_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
11193
 
fi
11194
 
fi
11195
 
fi
11196
 
# $arg still unknown, look for "lib" and "include" anywhere...
11197
 
    if test "x$ga_arg_parse_ok" = xno; then :
11198
 
  case $arg in #(
11199
 
  *lib*) :
11200
 
    if test -d $arg; then :
11201
 
  GA_LDFLAGS="$GA_LDFLAGS -L$arg"; ga_arg_parse_ok=yes
11202
 
fi ;; #(
11203
 
  *include*) :
11204
 
    if test -d $arg; then :
11205
 
  GA_CPPFLAGS="$GA_CPPFLAGS -I$arg"; ga_arg_parse_ok=yes
11206
 
fi ;; #(
11207
 
  *) :
11208
 
     ;;
11209
 
esac
11210
 
fi
11211
 
# warn user that $arg fell through
11212
 
     if test "x$ga_arg_parse_ok" = xno; then :
11213
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_ga not parsed" >&5
11214
 
$as_echo "$as_me: WARNING: $arg of with_ga not parsed" >&2;}
11215
 
fi
11216
 
done ;;
11217
 
esac
11218
 
# Check for header.
11219
 
ga_save_CPPFLAGS="$CPPFLAGS"; CPPFLAGS="$CPPFLAGS $GA_CPPFLAGS"
11220
 
ac_fn_c_check_header_mongrel "$LINENO" "ga.h" "ac_cv_header_ga_h" "$ac_includes_default"
11221
 
if test "x$ac_cv_header_ga_h" = xyes; then :
11222
 
 
11223
 
else
11224
 
  { ac_cv_search_GA_Initialize=; unset ac_cv_search_GA_Initialize;}
11225
 
 
11226
 
 
11227
 
 
11228
 
 
11229
 
 
11230
 
GA_LIBS=
11231
 
GA_LDFLAGS=
11232
 
GA_CPPFLAGS=
11233
 
 
11234
 
# Check whether --with-ga was given.
11235
 
if test "${with_ga+set}" = set; then :
11236
 
  withval=$with_ga;
11237
 
else
11238
 
  with_ga=yes
11239
 
fi
11240
 
 
11241
 
case $with_ga in #(
11242
 
  yes) :
11243
 
     ;; #(
11244
 
  no) :
11245
 
     ;; #(
11246
 
  *) :
11247
 
    if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ga_arg_parse_sizeof_voidp"        ""; then :
11248
 
 
11249
 
fi
11250
 
 
11251
 
for arg in $with_ga ; do
11252
 
    case $arg in #(
11253
 
  yes) :
11254
 
     ;; #(
11255
 
  no) :
11256
 
     ;; #(
11257
 
  -l*) :
11258
 
    GA_LIBS="$GA_LIBS $arg" ;; #(
11259
 
  -L*) :
11260
 
    GA_LDFLAGS="$GA_LDFLAGS $arg" ;; #(
11261
 
  -WL*) :
11262
 
    GA_LDFLAGS="$GA_LDFLAGS $arg" ;; #(
11263
 
  -Wl*) :
11264
 
    GA_LDFLAGS="$GA_LDFLAGS $arg" ;; #(
11265
 
  -I*) :
11266
 
    GA_CPPFLAGS="$GA_CPPFLAGS $arg" ;; #(
11267
 
  *.a) :
11268
 
    GA_LIBS="$GA_LIBS $arg" ;; #(
11269
 
  *.so) :
11270
 
    GA_LIBS="$GA_LIBS $arg" ;; #(
11271
 
  *lib) :
11272
 
    if test -d $arg; then :
11273
 
  GA_LDFLAGS="$GA_LDFLAGS -L$arg"
11274
 
else
11275
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_ga not parsed" >&5
11276
 
$as_echo "$as_me: WARNING: $arg of with_ga not parsed" >&2;}
11277
 
fi ;; #(
11278
 
  *lib64) :
11279
 
    if test -d $arg; then :
11280
 
  GA_LDFLAGS="$GA_LDFLAGS -L$arg"
11281
 
else
11282
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_ga not parsed" >&5
11283
 
$as_echo "$as_me: WARNING: $arg of with_ga not parsed" >&2;}
11284
 
fi ;; #(
11285
 
  *include) :
11286
 
    if test -d $arg; then :
11287
 
  GA_CPPFLAGS="$GA_CPPFLAGS -I$arg"
11288
 
else
11289
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_ga not parsed" >&5
11290
 
$as_echo "$as_me: WARNING: $arg of with_ga not parsed" >&2;}
11291
 
fi ;; #(
11292
 
  *include64) :
11293
 
    if test -d $arg; then :
11294
 
  GA_CPPFLAGS="$GA_CPPFLAGS -I$arg"
11295
 
else
11296
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_ga not parsed" >&5
11297
 
$as_echo "$as_me: WARNING: $arg of with_ga not parsed" >&2;}
11298
 
fi ;; #(
11299
 
  *) :
11300
 
    ga_arg_parse_ok=no ;;
11301
 
esac
11302
 
# $arg didn't fit the most common cases
11303
 
# check for subdirectories e.g. lib,include
11304
 
    if test "x$ga_arg_parse_ok" = xno; then :
11305
 
  if test "x$ga_arg_parse_sizeof_voidp" = x8; then :
11306
 
  if test -d $arg/lib64; then :
11307
 
  GA_LDFLAGS="$GA_LDFLAGS -L$arg/lib64"; ga_arg_parse_ok=yes
11308
 
elif test -d $arg/lib; then :
11309
 
  GA_LDFLAGS="$GA_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
11310
 
fi
11311
 
             if test -d $arg/include64; then :
11312
 
  GA_CPPFLAGS="$GA_CPPFLAGS -I$arg/include64"; ga_arg_parse_ok=yes
11313
 
elif test -d $arg/include; then :
11314
 
  GA_CPPFLAGS="$GA_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
11315
 
fi
11316
 
else
11317
 
  if test -d $arg/lib; then :
11318
 
  GA_LDFLAGS="$GA_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
11319
 
fi
11320
 
             if test -d $arg/include; then :
11321
 
  GA_CPPFLAGS="$GA_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
11322
 
fi
11323
 
fi
11324
 
fi
11325
 
# $arg still unknown, look for "lib" and "include" anywhere...
11326
 
    if test "x$ga_arg_parse_ok" = xno; then :
11327
 
  case $arg in #(
11328
 
  *lib*) :
11329
 
    if test -d $arg; then :
11330
 
  GA_LDFLAGS="$GA_LDFLAGS -L$arg"; ga_arg_parse_ok=yes
11331
 
fi ;; #(
11332
 
  *include*) :
11333
 
    if test -d $arg; then :
11334
 
  GA_CPPFLAGS="$GA_CPPFLAGS -I$arg"; ga_arg_parse_ok=yes
11335
 
fi ;; #(
11336
 
  *) :
11337
 
     ;;
11338
 
esac
11339
 
fi
11340
 
# warn user that $arg fell through
11341
 
     if test "x$ga_arg_parse_ok" = xno; then :
11342
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_ga not parsed" >&5
11343
 
$as_echo "$as_me: WARNING: $arg of with_ga not parsed" >&2;}
11344
 
fi
11345
 
done ;;
11346
 
esac
11347
 
# Check for header.
11348
 
ga_save_CPPFLAGS="$CPPFLAGS"; CPPFLAGS="$CPPFLAGS $GA_CPPFLAGS"
11349
 
ac_fn_c_check_header_mongrel "$LINENO" "ga.h" "ac_cv_header_ga_h" "$ac_includes_default"
11350
 
if test "x$ac_cv_header_ga_h" = xyes; then :
11351
 
 
11352
 
else
11353
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11354
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11355
 
as_fn_error $? "Could not locate Global Arrays 5.x nor 4.x
11356
 
See \`config.log' for more details" "$LINENO" 5; }
11357
 
fi
11358
 
 
11359
 
 
11360
 
CPPFLAGS="$ga_save_CPPFLAGS"
11361
 
# Check for library.
11362
 
ga_save_LIBS="$LIBS"; LIBS="$GA_LIBS $LIBS"
11363
 
ga_save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LDFLAGS $GA_LDFLAGS"
11364
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GA_Initialize" >&5
11365
 
$as_echo_n "checking for library containing GA_Initialize... " >&6; }
11366
 
if ${ac_cv_search_GA_Initialize+:} false; then :
11367
 
  $as_echo_n "(cached) " >&6
11368
 
else
11369
 
  ac_func_search_save_LIBS=$LIBS
11370
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11371
 
/* end confdefs.h.  */
11372
 
 
11373
 
/* Override any GCC internal prototype to avoid an error.
11374
 
   Use char because int might match the return type of a GCC
11375
 
   builtin and then its argument prototype would still apply.  */
11376
 
#ifdef __cplusplus
11377
 
extern "C"
11378
 
#endif
11379
 
char GA_Initialize ();
11380
 
#ifdef F77_DUMMY_MAIN
11381
 
 
11382
 
#  ifdef __cplusplus
11383
 
     extern "C"
11384
 
#  endif
11385
 
   int F77_DUMMY_MAIN() { return 1; }
11386
 
 
11387
 
#endif
11388
 
int
11389
 
main ()
11390
 
{
11391
 
return GA_Initialize ();
11392
 
  ;
11393
 
  return 0;
11394
 
}
11395
 
_ACEOF
11396
 
for ac_lib in '' global; do
11397
 
  if test -z "$ac_lib"; then
11398
 
    ac_res="none required"
11399
 
  else
11400
 
    ac_res=-l$ac_lib
11401
 
    LIBS="-l$ac_lib -lma -larmci -llinalg $FLIBS $ac_func_search_save_LIBS"
11402
 
  fi
11403
 
  if ac_fn_c_try_link "$LINENO"; then :
11404
 
  ac_cv_search_GA_Initialize=$ac_res
11405
 
fi
11406
 
rm -f core conftest.err conftest.$ac_objext \
11407
 
    conftest$ac_exeext
11408
 
  if ${ac_cv_search_GA_Initialize+:} false; then :
11409
 
  break
11410
 
fi
11411
 
done
11412
 
if ${ac_cv_search_GA_Initialize+:} false; then :
11413
 
 
11414
 
else
11415
 
  ac_cv_search_GA_Initialize=no
11416
 
fi
11417
 
rm conftest.$ac_ext
11418
 
LIBS=$ac_func_search_save_LIBS
11419
 
fi
11420
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GA_Initialize" >&5
11421
 
$as_echo "$ac_cv_search_GA_Initialize" >&6; }
11422
 
ac_res=$ac_cv_search_GA_Initialize
11423
 
if test "$ac_res" != no; then :
11424
 
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11425
 
 
11426
 
fi
11427
 
 
11428
 
LIBS="$ga_save_LIBS"
11429
 
LDFLAGS="$ga_save_LDFLAGS"
11430
 
if test "x$ac_cv_search_GA_Initialize" != xno; then :
11431
 
  GA_LIBS="-lglobal -lma -larmci -llinalg"
11432
 
 
11433
 
$as_echo "#define HAVE_GA 1" >>confdefs.h
11434
 
 
11435
 
else
11436
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11437
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11438
 
as_fn_error $? "Could not locate Global Arrays 5.x nor 4.x
11439
 
See \`config.log' for more details" "$LINENO" 5; }
11440
 
fi
11441
 
 
11442
 
 
11443
 
 
11444
 
 
11445
 
 
11446
 
fi
11447
 
 
11448
 
 
11449
 
CPPFLAGS="$ga_save_CPPFLAGS"
11450
 
# Check for library.
11451
 
ga_save_LIBS="$LIBS"; LIBS="$GA_LIBS $LIBS"
11452
 
ga_save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LDFLAGS $GA_LDFLAGS"
11453
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GA_Initialize" >&5
11454
 
$as_echo_n "checking for library containing GA_Initialize... " >&6; }
11455
 
if ${ac_cv_search_GA_Initialize+:} false; then :
11456
 
  $as_echo_n "(cached) " >&6
11457
 
else
11458
 
  ac_func_search_save_LIBS=$LIBS
11459
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11460
 
/* end confdefs.h.  */
11461
 
 
11462
 
/* Override any GCC internal prototype to avoid an error.
11463
 
   Use char because int might match the return type of a GCC
11464
 
   builtin and then its argument prototype would still apply.  */
11465
 
#ifdef __cplusplus
11466
 
extern "C"
11467
 
#endif
11468
 
char GA_Initialize ();
11469
 
#ifdef F77_DUMMY_MAIN
11470
 
 
11471
 
#  ifdef __cplusplus
11472
 
     extern "C"
11473
 
#  endif
11474
 
   int F77_DUMMY_MAIN() { return 1; }
11475
 
 
11476
 
#endif
11477
 
int
11478
 
main ()
11479
 
{
11480
 
return GA_Initialize ();
11481
 
  ;
11482
 
  return 0;
11483
 
}
11484
 
_ACEOF
11485
 
for ac_lib in '' ga; do
11486
 
  if test -z "$ac_lib"; then
11487
 
    ac_res="none required"
11488
 
  else
11489
 
    ac_res=-l$ac_lib
11490
 
    LIBS="-l$ac_lib $FLIBS $ac_func_search_save_LIBS"
11491
 
  fi
11492
 
  if ac_fn_c_try_link "$LINENO"; then :
11493
 
  ac_cv_search_GA_Initialize=$ac_res
11494
 
fi
11495
 
rm -f core conftest.err conftest.$ac_objext \
11496
 
    conftest$ac_exeext
11497
 
  if ${ac_cv_search_GA_Initialize+:} false; then :
11498
 
  break
11499
 
fi
11500
 
done
11501
 
if ${ac_cv_search_GA_Initialize+:} false; then :
11502
 
 
11503
 
else
11504
 
  ac_cv_search_GA_Initialize=no
11505
 
fi
11506
 
rm conftest.$ac_ext
11507
 
LIBS=$ac_func_search_save_LIBS
11508
 
fi
11509
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GA_Initialize" >&5
11510
 
$as_echo "$ac_cv_search_GA_Initialize" >&6; }
11511
 
ac_res=$ac_cv_search_GA_Initialize
11512
 
if test "$ac_res" != no; then :
11513
 
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11514
 
 
11515
 
fi
11516
 
 
11517
 
LIBS="$ga_save_LIBS"
11518
 
LDFLAGS="$ga_save_LDFLAGS"
11519
 
if test "x$ac_cv_search_GA_Initialize" != xno; then :
11520
 
  GA_LIBS="-lga"
11521
 
 
11522
 
$as_echo "#define HAVE_GA 1" >>confdefs.h
11523
 
 
11524
 
else
11525
 
  { ac_cv_search_GA_Initialize=; unset ac_cv_search_GA_Initialize;}
11526
 
 
11527
 
 
11528
 
 
11529
 
 
11530
 
 
11531
 
GA_LIBS=
11532
 
GA_LDFLAGS=
11533
 
GA_CPPFLAGS=
11534
 
 
11535
 
# Check whether --with-ga was given.
11536
 
if test "${with_ga+set}" = set; then :
11537
 
  withval=$with_ga;
11538
 
else
11539
 
  with_ga=yes
11540
 
fi
11541
 
 
11542
 
case $with_ga in #(
11543
 
  yes) :
11544
 
     ;; #(
11545
 
  no) :
11546
 
     ;; #(
11547
 
  *) :
11548
 
    if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ga_arg_parse_sizeof_voidp"        ""; then :
11549
 
 
11550
 
fi
11551
 
 
11552
 
for arg in $with_ga ; do
11553
 
    case $arg in #(
11554
 
  yes) :
11555
 
     ;; #(
11556
 
  no) :
11557
 
     ;; #(
11558
 
  -l*) :
11559
 
    GA_LIBS="$GA_LIBS $arg" ;; #(
11560
 
  -L*) :
11561
 
    GA_LDFLAGS="$GA_LDFLAGS $arg" ;; #(
11562
 
  -WL*) :
11563
 
    GA_LDFLAGS="$GA_LDFLAGS $arg" ;; #(
11564
 
  -Wl*) :
11565
 
    GA_LDFLAGS="$GA_LDFLAGS $arg" ;; #(
11566
 
  -I*) :
11567
 
    GA_CPPFLAGS="$GA_CPPFLAGS $arg" ;; #(
11568
 
  *.a) :
11569
 
    GA_LIBS="$GA_LIBS $arg" ;; #(
11570
 
  *.so) :
11571
 
    GA_LIBS="$GA_LIBS $arg" ;; #(
11572
 
  *lib) :
11573
 
    if test -d $arg; then :
11574
 
  GA_LDFLAGS="$GA_LDFLAGS -L$arg"
11575
 
else
11576
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_ga not parsed" >&5
11577
 
$as_echo "$as_me: WARNING: $arg of with_ga not parsed" >&2;}
11578
 
fi ;; #(
11579
 
  *lib64) :
11580
 
    if test -d $arg; then :
11581
 
  GA_LDFLAGS="$GA_LDFLAGS -L$arg"
11582
 
else
11583
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_ga not parsed" >&5
11584
 
$as_echo "$as_me: WARNING: $arg of with_ga not parsed" >&2;}
11585
 
fi ;; #(
11586
 
  *include) :
11587
 
    if test -d $arg; then :
11588
 
  GA_CPPFLAGS="$GA_CPPFLAGS -I$arg"
11589
 
else
11590
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_ga not parsed" >&5
11591
 
$as_echo "$as_me: WARNING: $arg of with_ga not parsed" >&2;}
11592
 
fi ;; #(
11593
 
  *include64) :
11594
 
    if test -d $arg; then :
11595
 
  GA_CPPFLAGS="$GA_CPPFLAGS -I$arg"
11596
 
else
11597
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_ga not parsed" >&5
11598
 
$as_echo "$as_me: WARNING: $arg of with_ga not parsed" >&2;}
11599
 
fi ;; #(
11600
 
  *) :
11601
 
    ga_arg_parse_ok=no ;;
11602
 
esac
11603
 
# $arg didn't fit the most common cases
11604
 
# check for subdirectories e.g. lib,include
11605
 
    if test "x$ga_arg_parse_ok" = xno; then :
11606
 
  if test "x$ga_arg_parse_sizeof_voidp" = x8; then :
11607
 
  if test -d $arg/lib64; then :
11608
 
  GA_LDFLAGS="$GA_LDFLAGS -L$arg/lib64"; ga_arg_parse_ok=yes
11609
 
elif test -d $arg/lib; then :
11610
 
  GA_LDFLAGS="$GA_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
11611
 
fi
11612
 
             if test -d $arg/include64; then :
11613
 
  GA_CPPFLAGS="$GA_CPPFLAGS -I$arg/include64"; ga_arg_parse_ok=yes
11614
 
elif test -d $arg/include; then :
11615
 
  GA_CPPFLAGS="$GA_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
11616
 
fi
11617
 
else
11618
 
  if test -d $arg/lib; then :
11619
 
  GA_LDFLAGS="$GA_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
11620
 
fi
11621
 
             if test -d $arg/include; then :
11622
 
  GA_CPPFLAGS="$GA_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
11623
 
fi
11624
 
fi
11625
 
fi
11626
 
# $arg still unknown, look for "lib" and "include" anywhere...
11627
 
    if test "x$ga_arg_parse_ok" = xno; then :
11628
 
  case $arg in #(
11629
 
  *lib*) :
11630
 
    if test -d $arg; then :
11631
 
  GA_LDFLAGS="$GA_LDFLAGS -L$arg"; ga_arg_parse_ok=yes
11632
 
fi ;; #(
11633
 
  *include*) :
11634
 
    if test -d $arg; then :
11635
 
  GA_CPPFLAGS="$GA_CPPFLAGS -I$arg"; ga_arg_parse_ok=yes
11636
 
fi ;; #(
11637
 
  *) :
11638
 
     ;;
11639
 
esac
11640
 
fi
11641
 
# warn user that $arg fell through
11642
 
     if test "x$ga_arg_parse_ok" = xno; then :
11643
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_ga not parsed" >&5
11644
 
$as_echo "$as_me: WARNING: $arg of with_ga not parsed" >&2;}
11645
 
fi
11646
 
done ;;
11647
 
esac
11648
 
# Check for header.
11649
 
ga_save_CPPFLAGS="$CPPFLAGS"; CPPFLAGS="$CPPFLAGS $GA_CPPFLAGS"
11650
 
ac_fn_c_check_header_mongrel "$LINENO" "ga.h" "ac_cv_header_ga_h" "$ac_includes_default"
11651
 
if test "x$ac_cv_header_ga_h" = xyes; then :
11652
 
 
11653
 
else
11654
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11655
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11656
 
as_fn_error $? "Could not locate Global Arrays 5.x nor 4.x
11657
 
See \`config.log' for more details" "$LINENO" 5; }
11658
 
fi
11659
 
 
11660
 
 
11661
 
CPPFLAGS="$ga_save_CPPFLAGS"
11662
 
# Check for library.
11663
 
ga_save_LIBS="$LIBS"; LIBS="$GA_LIBS $LIBS"
11664
 
ga_save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LDFLAGS $GA_LDFLAGS"
11665
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GA_Initialize" >&5
11666
 
$as_echo_n "checking for library containing GA_Initialize... " >&6; }
11667
 
if ${ac_cv_search_GA_Initialize+:} false; then :
11668
 
  $as_echo_n "(cached) " >&6
11669
 
else
11670
 
  ac_func_search_save_LIBS=$LIBS
11671
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11672
 
/* end confdefs.h.  */
11673
 
 
11674
 
/* Override any GCC internal prototype to avoid an error.
11675
 
   Use char because int might match the return type of a GCC
11676
 
   builtin and then its argument prototype would still apply.  */
11677
 
#ifdef __cplusplus
11678
 
extern "C"
11679
 
#endif
11680
 
char GA_Initialize ();
11681
 
#ifdef F77_DUMMY_MAIN
11682
 
 
11683
 
#  ifdef __cplusplus
11684
 
     extern "C"
11685
 
#  endif
11686
 
   int F77_DUMMY_MAIN() { return 1; }
11687
 
 
11688
 
#endif
11689
 
int
11690
 
main ()
11691
 
{
11692
 
return GA_Initialize ();
11693
 
  ;
11694
 
  return 0;
11695
 
}
11696
 
_ACEOF
11697
 
for ac_lib in '' global; do
11698
 
  if test -z "$ac_lib"; then
11699
 
    ac_res="none required"
11700
 
  else
11701
 
    ac_res=-l$ac_lib
11702
 
    LIBS="-l$ac_lib -lma -larmci -llinalg $FLIBS $ac_func_search_save_LIBS"
11703
 
  fi
11704
 
  if ac_fn_c_try_link "$LINENO"; then :
11705
 
  ac_cv_search_GA_Initialize=$ac_res
11706
 
fi
11707
 
rm -f core conftest.err conftest.$ac_objext \
11708
 
    conftest$ac_exeext
11709
 
  if ${ac_cv_search_GA_Initialize+:} false; then :
11710
 
  break
11711
 
fi
11712
 
done
11713
 
if ${ac_cv_search_GA_Initialize+:} false; then :
11714
 
 
11715
 
else
11716
 
  ac_cv_search_GA_Initialize=no
11717
 
fi
11718
 
rm conftest.$ac_ext
11719
 
LIBS=$ac_func_search_save_LIBS
11720
 
fi
11721
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GA_Initialize" >&5
11722
 
$as_echo "$ac_cv_search_GA_Initialize" >&6; }
11723
 
ac_res=$ac_cv_search_GA_Initialize
11724
 
if test "$ac_res" != no; then :
11725
 
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11726
 
 
11727
 
fi
11728
 
 
11729
 
LIBS="$ga_save_LIBS"
11730
 
LDFLAGS="$ga_save_LDFLAGS"
11731
 
if test "x$ac_cv_search_GA_Initialize" != xno; then :
11732
 
  GA_LIBS="-lglobal -lma -larmci -llinalg"
11733
 
 
11734
 
$as_echo "#define HAVE_GA 1" >>confdefs.h
11735
 
 
11736
 
else
11737
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11738
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11739
 
as_fn_error $? "Could not locate Global Arrays 5.x nor 4.x
11740
 
See \`config.log' for more details" "$LINENO" 5; }
11741
 
fi
11742
 
 
11743
 
 
11744
 
 
11745
 
 
11746
 
 
11747
 
fi
11748
 
 
11749
 
 
11750
 
 
11751
 
 
11752
 
 
11753
 
fi
11754
 
 
11755
 
 
11756
 
 
11757
 
 
11758
 
###############################################################################
11759
 
# Checks for BLAS/LAPACK/SCALAPACK require both C and Fortran features to
11760
 
# have been detected. Further, they assume the current AC_LANG is C.
11761
 
# NOTE: We only look for BLAS and LAPACK because GA does.  We will get linker
11762
 
# errors if GA was built with an external BLAS and LAPACK.
11763
 
###############################################################################
11764
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
11765
 
$as_echo "$as_me: " >&6;}
11766
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: Checks for BLAS,LAPACK,ScaLAPACK" >&5
11767
 
$as_echo "$as_me: Checks for BLAS,LAPACK,ScaLAPACK" >&6;}
11768
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
11769
 
$as_echo "$as_me: " >&6;}
11770
 
 
11771
 
 
11772
 
blas_size=4
11773
 
blas_size_hack=no
11774
 
 
11775
 
# Check whether --with-blas was given.
11776
 
if test "${with_blas+set}" = set; then :
11777
 
  withval=$with_blas; blas_size_hack=yes
11778
 
fi
11779
 
 
11780
 
 
11781
 
# Check whether --with-blas4 was given.
11782
 
if test "${with_blas4+set}" = set; then :
11783
 
  withval=$with_blas4; blas_size=4; with_blas="$with_blas4"
11784
 
fi
11785
 
 
11786
 
 
11787
 
# Check whether --with-blas8 was given.
11788
 
if test "${with_blas8+set}" = set; then :
11789
 
  withval=$with_blas8; blas_size=8; with_blas="$with_blas8"
11790
 
fi
11791
 
 
11792
 
 
11793
 
ga_blas_ok=no
11794
 
if test "x$with_blas" = xno; then :
11795
 
  ga_blas_ok=skip
11796
 
fi
11797
 
 
11798
 
# Parse --with-blas argument. Clear previous values first.
11799
 
BLAS_LIBS=
11800
 
BLAS_LDFLAGS=
11801
 
BLAS_CPPFLAGS=
11802
 
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ga_arg_parse_sizeof_voidp"        ""; then :
11803
 
 
11804
 
fi
11805
 
 
11806
 
for arg in $with_blas ; do
11807
 
    case $arg in #(
11808
 
  yes) :
11809
 
     ;; #(
11810
 
  no) :
11811
 
     ;; #(
11812
 
  -l*) :
11813
 
    BLAS_LIBS="$BLAS_LIBS $arg" ;; #(
11814
 
  -L*) :
11815
 
    BLAS_LDFLAGS="$BLAS_LDFLAGS $arg" ;; #(
11816
 
  -WL*) :
11817
 
    BLAS_LDFLAGS="$BLAS_LDFLAGS $arg" ;; #(
11818
 
  -Wl*) :
11819
 
    BLAS_LDFLAGS="$BLAS_LDFLAGS $arg" ;; #(
11820
 
  -I*) :
11821
 
    BLAS_CPPFLAGS="$BLAS_CPPFLAGS $arg" ;; #(
11822
 
  *.a) :
11823
 
    BLAS_LIBS="$BLAS_LIBS $arg" ;; #(
11824
 
  *.so) :
11825
 
    BLAS_LIBS="$BLAS_LIBS $arg" ;; #(
11826
 
  *lib) :
11827
 
    if test -d $arg; then :
11828
 
  BLAS_LDFLAGS="$BLAS_LDFLAGS -L$arg"
11829
 
else
11830
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_blas not parsed" >&5
11831
 
$as_echo "$as_me: WARNING: $arg of with_blas not parsed" >&2;}
11832
 
fi ;; #(
11833
 
  *lib64) :
11834
 
    if test -d $arg; then :
11835
 
  BLAS_LDFLAGS="$BLAS_LDFLAGS -L$arg"
11836
 
else
11837
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_blas not parsed" >&5
11838
 
$as_echo "$as_me: WARNING: $arg of with_blas not parsed" >&2;}
11839
 
fi ;; #(
11840
 
  *include) :
11841
 
    if test -d $arg; then :
11842
 
  BLAS_CPPFLAGS="$BLAS_CPPFLAGS -I$arg"
11843
 
else
11844
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_blas not parsed" >&5
11845
 
$as_echo "$as_me: WARNING: $arg of with_blas not parsed" >&2;}
11846
 
fi ;; #(
11847
 
  *include64) :
11848
 
    if test -d $arg; then :
11849
 
  BLAS_CPPFLAGS="$BLAS_CPPFLAGS -I$arg"
11850
 
else
11851
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_blas not parsed" >&5
11852
 
$as_echo "$as_me: WARNING: $arg of with_blas not parsed" >&2;}
11853
 
fi ;; #(
11854
 
  *) :
11855
 
    ga_arg_parse_ok=no ;;
11856
 
esac
11857
 
# $arg didn't fit the most common cases
11858
 
# check for subdirectories e.g. lib,include
11859
 
    if test "x$ga_arg_parse_ok" = xno; then :
11860
 
  if test "x$ga_arg_parse_sizeof_voidp" = x8; then :
11861
 
  if test -d $arg/lib64; then :
11862
 
  BLAS_LDFLAGS="$BLAS_LDFLAGS -L$arg/lib64"; ga_arg_parse_ok=yes
11863
 
elif test -d $arg/lib; then :
11864
 
  BLAS_LDFLAGS="$BLAS_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
11865
 
fi
11866
 
             if test -d $arg/include64; then :
11867
 
  BLAS_CPPFLAGS="$BLAS_CPPFLAGS -I$arg/include64"; ga_arg_parse_ok=yes
11868
 
elif test -d $arg/include; then :
11869
 
  BLAS_CPPFLAGS="$BLAS_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
11870
 
fi
11871
 
else
11872
 
  if test -d $arg/lib; then :
11873
 
  BLAS_LDFLAGS="$BLAS_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
11874
 
fi
11875
 
             if test -d $arg/include; then :
11876
 
  BLAS_CPPFLAGS="$BLAS_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
11877
 
fi
11878
 
fi
11879
 
fi
11880
 
# $arg still unknown, look for "lib" and "include" anywhere...
11881
 
    if test "x$ga_arg_parse_ok" = xno; then :
11882
 
  case $arg in #(
11883
 
  *lib*) :
11884
 
    if test -d $arg; then :
11885
 
  BLAS_LDFLAGS="$BLAS_LDFLAGS -L$arg"; ga_arg_parse_ok=yes
11886
 
fi ;; #(
11887
 
  *include*) :
11888
 
    if test -d $arg; then :
11889
 
  BLAS_CPPFLAGS="$BLAS_CPPFLAGS -I$arg"; ga_arg_parse_ok=yes
11890
 
fi ;; #(
11891
 
  *) :
11892
 
     ;;
11893
 
esac
11894
 
fi
11895
 
# warn user that $arg fell through
11896
 
     if test "x$ga_arg_parse_ok" = xno; then :
11897
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_blas not parsed" >&5
11898
 
$as_echo "$as_me: WARNING: $arg of with_blas not parsed" >&2;}
11899
 
fi
11900
 
done
11901
 
 
11902
 
# Get fortran linker names of BLAS functions to check for.
11903
 
ac_ext=f
11904
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
11905
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11906
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
11907
 
case $ac_cv_f77_mangling in
11908
 
  upper*) ac_val="CGEMM" ;;
11909
 
  lower*) ac_val="cgemm" ;;
11910
 
  *)      ac_val="unknown" ;;
11911
 
esac
11912
 
case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
11913
 
 
11914
 
cgemm="$ac_val"
11915
 
 
11916
 
ac_ext=c
11917
 
ac_cpp='$CPP $CPPFLAGS'
11918
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11919
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11920
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11921
 
 
11922
 
ac_ext=f
11923
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
11924
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11925
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
11926
 
case $ac_cv_f77_mangling in
11927
 
  upper*) ac_val="DGEMM" ;;
11928
 
  lower*) ac_val="dgemm" ;;
11929
 
  *)      ac_val="unknown" ;;
11930
 
esac
11931
 
case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
11932
 
 
11933
 
dgemm="$ac_val"
11934
 
 
11935
 
ac_ext=c
11936
 
ac_cpp='$CPP $CPPFLAGS'
11937
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11938
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11939
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11940
 
 
11941
 
ac_ext=f
11942
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
11943
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11944
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
11945
 
case $ac_cv_f77_mangling in
11946
 
  upper*) ac_val="SGEMM" ;;
11947
 
  lower*) ac_val="sgemm" ;;
11948
 
  *)      ac_val="unknown" ;;
11949
 
esac
11950
 
case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
11951
 
 
11952
 
sgemm="$ac_val"
11953
 
 
11954
 
ac_ext=c
11955
 
ac_cpp='$CPP $CPPFLAGS'
11956
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11957
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11958
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11959
 
 
11960
 
ac_ext=f
11961
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
11962
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11963
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
11964
 
case $ac_cv_f77_mangling in
11965
 
  upper*) ac_val="ZGEMM" ;;
11966
 
  lower*) ac_val="zgemm" ;;
11967
 
  *)      ac_val="unknown" ;;
11968
 
esac
11969
 
case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
11970
 
 
11971
 
zgemm="$ac_val"
11972
 
 
11973
 
ac_ext=c
11974
 
ac_cpp='$CPP $CPPFLAGS'
11975
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11976
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11977
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11978
 
 
11979
 
 
11980
 
ga_save_LIBS="$LIBS"
11981
 
ga_save_LDFLAGS="$LDFLAGS";     LDFLAGS="$BLAS_LDFLAGS $LDFLAGS"
11982
 
ga_save_CPPFLAGS="$CPPFLAGS";   CPPFLAGS="$BLAS_CPPFLAGS $CPPFLAGS"
11983
 
 
11984
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: Attempting to locate BLAS library" >&5
11985
 
$as_echo "$as_me: Attempting to locate BLAS library" >&6;}
11986
 
 
11987
 
# First, check environment/command-line variables.
11988
 
# If failed, erase BLAS_LIBS but maintain BLAS_LDFLAGS and BLAS_CPPFLAGS.
11989
 
if test $ga_blas_ok = no; then :
11990
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BLAS with user-supplied flags" >&5
11991
 
$as_echo_n "checking for BLAS with user-supplied flags... " >&6; }
11992
 
     LIBS="$BLAS_LIBS $LIBS"
11993
 
 
11994
 
if test "x$enable_f77" = xno; then :
11995
 
  ac_ext=c
11996
 
ac_cpp='$CPP $CPPFLAGS'
11997
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11998
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11999
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12000
 
 
12001
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12002
 
/* end confdefs.h.  */
12003
 
#ifdef __cplusplus
12004
 
extern "C" {
12005
 
#endif
12006
 
char cgemm ();
12007
 
char dgemm ();
12008
 
char sgemm ();
12009
 
char zgemm ();
12010
 
#ifdef __cplusplus
12011
 
}
12012
 
#endif
12013
 
 
12014
 
#ifdef F77_DUMMY_MAIN
12015
 
 
12016
 
#  ifdef __cplusplus
12017
 
     extern "C"
12018
 
#  endif
12019
 
   int F77_DUMMY_MAIN() { return 1; }
12020
 
 
12021
 
#endif
12022
 
int
12023
 
main ()
12024
 
{
12025
 
char cresult =  cgemm ();
12026
 
char dresult =  dgemm ();
12027
 
char sresult =  sgemm ();
12028
 
char zresult =  zgemm ();
12029
 
 
12030
 
  ;
12031
 
  return 0;
12032
 
}
12033
 
_ACEOF
12034
 
 
12035
 
    if ac_fn_c_try_link "$LINENO"; then :
12036
 
  ga_blas_ok=yes
12037
 
else
12038
 
  BLAS_LIBS=
12039
 
fi
12040
 
rm -f core conftest.err conftest.$ac_objext \
12041
 
    conftest$ac_exeext
12042
 
    ac_ext=c
12043
 
ac_cpp='$CPP $CPPFLAGS'
12044
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12045
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12046
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12047
 
 
12048
 
else
12049
 
  ac_ext=f
12050
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12051
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12052
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12053
 
 
12054
 
    cat > conftest.$ac_ext <<_ACEOF
12055
 
      program main
12056
 
      implicit none
12057
 
      INTEGER M, N, K, LDA, LDB, LDC
12058
 
      COMPLEX CA(20,40), CB(20,30), CC(40,30), Calpha, Cbeta
12059
 
      DOUBLE COMPLEX ZA(20,40), ZB(20,30), ZC(40,30), Zalpha, Zbeta
12060
 
      REAL SA(20,40), SB(20,30), SC(40,30), Salpha, Sbeta
12061
 
      DOUBLE PRECISION DA(20,40), DB(20,30), DC(40,30), Dalpha, Dbeta
12062
 
      external CGEMM
12063
 
      external ZGEMM
12064
 
      external SGEMM
12065
 
      external DGEMM
12066
 
      M = 10
12067
 
      N = 20
12068
 
      K = 15
12069
 
      LDA = 20
12070
 
      LDB = 20
12071
 
      LDC = 40
12072
 
      Calpha = 2.0
12073
 
      Cbeta = 2.0
12074
 
      Zalpha = 2.0
12075
 
      Zbeta = 2.0
12076
 
      Salpha = 2.0
12077
 
      Sbeta = 2.0
12078
 
      Dalpha = 2.0
12079
 
      Dbeta = 2.0
12080
 
      CALL CGEMM ('T','N',M,N,K,Calpha,CA,LDA,CB,LDB,Cbeta,CC,LDC)
12081
 
      CALL ZGEMM ('T','N',M,N,K,Zalpha,ZA,LDA,ZB,LDB,Zbeta,ZC,LDC)
12082
 
      CALL SGEMM ('T','N',M,N,K,Salpha,SA,LDA,SB,LDB,Sbeta,SC,LDC)
12083
 
      CALL DGEMM ('T','N',M,N,K,Dalpha,DA,LDA,DB,LDB,Dbeta,DC,LDC)
12084
 
      end
12085
 
_ACEOF
12086
 
 
12087
 
    if ac_fn_f77_try_link "$LINENO"; then :
12088
 
  ga_blas_ok=yes
12089
 
else
12090
 
  BLAS_LIBS=
12091
 
fi
12092
 
rm -f core conftest.err conftest.$ac_objext \
12093
 
    conftest$ac_exeext
12094
 
    ac_ext=c
12095
 
ac_cpp='$CPP $CPPFLAGS'
12096
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12097
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12098
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12099
 
 
12100
 
fi
12101
 
 
12102
 
     LIBS="$ga_save_LIBS"
12103
 
     if test $ga_blas_ok = yes; then :
12104
 
  if test $blas_size_hack = yes; then :
12105
 
  case "$BLAS_LIBS $LIBS $LDFLAGS $CPPFLAGS" in #(
12106
 
  *ilp64*) :
12107
 
    blas_size=8 ;; #(
12108
 
  # Intel MKL
12109
 
                *_int64*) :
12110
 
    blas_size=8 ;; #(
12111
 
  *) :
12112
 
     ;;
12113
 
esac
12114
 
fi
12115
 
fi # AMD ACML
12116
 
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_blas_ok" >&5
12117
 
$as_echo "$ga_blas_ok" >&6; }
12118
 
fi
12119
 
 
12120
 
# AMD Core Math Library (ACML)
12121
 
if test $ga_blas_ok = no; then :
12122
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BLAS in AMD Core Math Library" >&5
12123
 
$as_echo_n "checking for BLAS in AMD Core Math Library... " >&6; }
12124
 
     # add -lacml to BLAS_LIBS if missing from LIBS
12125
 
     case $LIBS in #(
12126
 
  *acml*) :
12127
 
     ;; #(
12128
 
  *) :
12129
 
    BLAS_LIBS="-lacml" ;;
12130
 
esac
12131
 
     LIBS="$BLAS_LIBS $LIBS"
12132
 
 
12133
 
if test "x$enable_f77" = xno; then :
12134
 
  ac_ext=c
12135
 
ac_cpp='$CPP $CPPFLAGS'
12136
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12137
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12138
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12139
 
 
12140
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12141
 
/* end confdefs.h.  */
12142
 
#ifdef __cplusplus
12143
 
extern "C" {
12144
 
#endif
12145
 
char cgemm ();
12146
 
char dgemm ();
12147
 
char sgemm ();
12148
 
char zgemm ();
12149
 
#ifdef __cplusplus
12150
 
}
12151
 
#endif
12152
 
 
12153
 
#ifdef F77_DUMMY_MAIN
12154
 
 
12155
 
#  ifdef __cplusplus
12156
 
     extern "C"
12157
 
#  endif
12158
 
   int F77_DUMMY_MAIN() { return 1; }
12159
 
 
12160
 
#endif
12161
 
int
12162
 
main ()
12163
 
{
12164
 
char cresult =  cgemm ();
12165
 
char dresult =  dgemm ();
12166
 
char sresult =  sgemm ();
12167
 
char zresult =  zgemm ();
12168
 
 
12169
 
  ;
12170
 
  return 0;
12171
 
}
12172
 
_ACEOF
12173
 
 
12174
 
    if ac_fn_c_try_link "$LINENO"; then :
12175
 
  ga_blas_ok=yes
12176
 
else
12177
 
  BLAS_LIBS=
12178
 
fi
12179
 
rm -f core conftest.err conftest.$ac_objext \
12180
 
    conftest$ac_exeext
12181
 
    ac_ext=c
12182
 
ac_cpp='$CPP $CPPFLAGS'
12183
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12184
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12185
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12186
 
 
12187
 
else
12188
 
  ac_ext=f
12189
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12190
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12191
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12192
 
 
12193
 
    cat > conftest.$ac_ext <<_ACEOF
12194
 
      program main
12195
 
      implicit none
12196
 
      INTEGER M, N, K, LDA, LDB, LDC
12197
 
      COMPLEX CA(20,40), CB(20,30), CC(40,30), Calpha, Cbeta
12198
 
      DOUBLE COMPLEX ZA(20,40), ZB(20,30), ZC(40,30), Zalpha, Zbeta
12199
 
      REAL SA(20,40), SB(20,30), SC(40,30), Salpha, Sbeta
12200
 
      DOUBLE PRECISION DA(20,40), DB(20,30), DC(40,30), Dalpha, Dbeta
12201
 
      external CGEMM
12202
 
      external ZGEMM
12203
 
      external SGEMM
12204
 
      external DGEMM
12205
 
      M = 10
12206
 
      N = 20
12207
 
      K = 15
12208
 
      LDA = 20
12209
 
      LDB = 20
12210
 
      LDC = 40
12211
 
      Calpha = 2.0
12212
 
      Cbeta = 2.0
12213
 
      Zalpha = 2.0
12214
 
      Zbeta = 2.0
12215
 
      Salpha = 2.0
12216
 
      Sbeta = 2.0
12217
 
      Dalpha = 2.0
12218
 
      Dbeta = 2.0
12219
 
      CALL CGEMM ('T','N',M,N,K,Calpha,CA,LDA,CB,LDB,Cbeta,CC,LDC)
12220
 
      CALL ZGEMM ('T','N',M,N,K,Zalpha,ZA,LDA,ZB,LDB,Zbeta,ZC,LDC)
12221
 
      CALL SGEMM ('T','N',M,N,K,Salpha,SA,LDA,SB,LDB,Sbeta,SC,LDC)
12222
 
      CALL DGEMM ('T','N',M,N,K,Dalpha,DA,LDA,DB,LDB,Dbeta,DC,LDC)
12223
 
      end
12224
 
_ACEOF
12225
 
 
12226
 
    if ac_fn_f77_try_link "$LINENO"; then :
12227
 
  ga_blas_ok=yes
12228
 
else
12229
 
  BLAS_LIBS=
12230
 
fi
12231
 
rm -f core conftest.err conftest.$ac_objext \
12232
 
    conftest$ac_exeext
12233
 
    ac_ext=c
12234
 
ac_cpp='$CPP $CPPFLAGS'
12235
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12236
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12237
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12238
 
 
12239
 
fi
12240
 
 
12241
 
     LIBS="$ga_save_LIBS"
12242
 
     if test "x$ga_blas_ok" = xyes; then :
12243
 
  if test $blas_size_hack = yes; then :
12244
 
  case "$BLAS_LIBS $LIBS $LDFLAGS $CPPFLAGS" in #(
12245
 
  *_int64*) :
12246
 
    blas_size=8 ;; #(
12247
 
  *) :
12248
 
     ;;
12249
 
esac
12250
 
fi
12251
 
fi
12252
 
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_blas_ok" >&5
12253
 
$as_echo "$ga_blas_ok" >&6; }
12254
 
fi
12255
 
 
12256
 
# Intel MKL library
12257
 
if test $ga_blas_ok = no; then :
12258
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BLAS in Intel Math Kernel Library" >&5
12259
 
$as_echo_n "checking for BLAS in Intel Math Kernel Library... " >&6; }
12260
 
     # add -lmkl to BLAS_LIBS if missing from LIBS
12261
 
     case $LIBS in #(
12262
 
  *mkl*) :
12263
 
     ;; #(
12264
 
  *) :
12265
 
    BLAS_LIBS="-lmkl" ;;
12266
 
esac
12267
 
     LIBS="$BLAS_LIBS $LIBS"
12268
 
 
12269
 
if test "x$enable_f77" = xno; then :
12270
 
  ac_ext=c
12271
 
ac_cpp='$CPP $CPPFLAGS'
12272
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12273
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12274
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12275
 
 
12276
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12277
 
/* end confdefs.h.  */
12278
 
#ifdef __cplusplus
12279
 
extern "C" {
12280
 
#endif
12281
 
char cgemm ();
12282
 
char dgemm ();
12283
 
char sgemm ();
12284
 
char zgemm ();
12285
 
#ifdef __cplusplus
12286
 
}
12287
 
#endif
12288
 
 
12289
 
#ifdef F77_DUMMY_MAIN
12290
 
 
12291
 
#  ifdef __cplusplus
12292
 
     extern "C"
12293
 
#  endif
12294
 
   int F77_DUMMY_MAIN() { return 1; }
12295
 
 
12296
 
#endif
12297
 
int
12298
 
main ()
12299
 
{
12300
 
char cresult =  cgemm ();
12301
 
char dresult =  dgemm ();
12302
 
char sresult =  sgemm ();
12303
 
char zresult =  zgemm ();
12304
 
 
12305
 
  ;
12306
 
  return 0;
12307
 
}
12308
 
_ACEOF
12309
 
 
12310
 
    if ac_fn_c_try_link "$LINENO"; then :
12311
 
  ga_blas_ok=yes
12312
 
else
12313
 
  BLAS_LIBS=
12314
 
fi
12315
 
rm -f core conftest.err conftest.$ac_objext \
12316
 
    conftest$ac_exeext
12317
 
    ac_ext=c
12318
 
ac_cpp='$CPP $CPPFLAGS'
12319
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12320
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12321
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12322
 
 
12323
 
else
12324
 
  ac_ext=f
12325
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12326
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12327
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12328
 
 
12329
 
    cat > conftest.$ac_ext <<_ACEOF
12330
 
      program main
12331
 
      implicit none
12332
 
      INTEGER M, N, K, LDA, LDB, LDC
12333
 
      COMPLEX CA(20,40), CB(20,30), CC(40,30), Calpha, Cbeta
12334
 
      DOUBLE COMPLEX ZA(20,40), ZB(20,30), ZC(40,30), Zalpha, Zbeta
12335
 
      REAL SA(20,40), SB(20,30), SC(40,30), Salpha, Sbeta
12336
 
      DOUBLE PRECISION DA(20,40), DB(20,30), DC(40,30), Dalpha, Dbeta
12337
 
      external CGEMM
12338
 
      external ZGEMM
12339
 
      external SGEMM
12340
 
      external DGEMM
12341
 
      M = 10
12342
 
      N = 20
12343
 
      K = 15
12344
 
      LDA = 20
12345
 
      LDB = 20
12346
 
      LDC = 40
12347
 
      Calpha = 2.0
12348
 
      Cbeta = 2.0
12349
 
      Zalpha = 2.0
12350
 
      Zbeta = 2.0
12351
 
      Salpha = 2.0
12352
 
      Sbeta = 2.0
12353
 
      Dalpha = 2.0
12354
 
      Dbeta = 2.0
12355
 
      CALL CGEMM ('T','N',M,N,K,Calpha,CA,LDA,CB,LDB,Cbeta,CC,LDC)
12356
 
      CALL ZGEMM ('T','N',M,N,K,Zalpha,ZA,LDA,ZB,LDB,Zbeta,ZC,LDC)
12357
 
      CALL SGEMM ('T','N',M,N,K,Salpha,SA,LDA,SB,LDB,Sbeta,SC,LDC)
12358
 
      CALL DGEMM ('T','N',M,N,K,Dalpha,DA,LDA,DB,LDB,Dbeta,DC,LDC)
12359
 
      end
12360
 
_ACEOF
12361
 
 
12362
 
    if ac_fn_f77_try_link "$LINENO"; then :
12363
 
  ga_blas_ok=yes
12364
 
else
12365
 
  BLAS_LIBS=
12366
 
fi
12367
 
rm -f core conftest.err conftest.$ac_objext \
12368
 
    conftest$ac_exeext
12369
 
    ac_ext=c
12370
 
ac_cpp='$CPP $CPPFLAGS'
12371
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12372
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12373
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12374
 
 
12375
 
fi
12376
 
 
12377
 
     LIBS="$ga_save_LIBS"
12378
 
     if test "x$ga_blas_ok" = xyes; then :
12379
 
  if test $blas_size_hack = yes; then :
12380
 
  case "$BLAS_LIBS $LIBS $LDFLAGS $CPPFLAGS" in #(
12381
 
  *ilp64*) :
12382
 
    blas_size=8 ;; #(
12383
 
  *) :
12384
 
     ;;
12385
 
esac
12386
 
fi
12387
 
fi
12388
 
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_blas_ok" >&5
12389
 
$as_echo "$ga_blas_ok" >&6; }
12390
 
fi
12391
 
 
12392
 
# ATLAS library (http://math-atlas.sourceforge.net/)
12393
 
if test $ga_blas_ok = no; then :
12394
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BLAS in ATLAS" >&5
12395
 
$as_echo_n "checking for BLAS in ATLAS... " >&6; }
12396
 
     if test "x$enable_f77" = xno; then :
12397
 
  # add -lcblas if needed but missing from LIBS
12398
 
         case $LIBS in #(
12399
 
  *cblas*) :
12400
 
     ;; #(
12401
 
  *) :
12402
 
    BLAS_LIBS="-lcblas" ;;
12403
 
esac
12404
 
else
12405
 
  # add -lf77blas if needed but missing from LIBS
12406
 
         case $LIBS in #(
12407
 
  *f77blas*) :
12408
 
     ;; #(
12409
 
  *) :
12410
 
    BLAS_LIBS="-lf77blas" ;;
12411
 
esac
12412
 
fi
12413
 
     # add -latlas if needed but missing from LIBS
12414
 
     case $LIBS in #(
12415
 
  *atlas*) :
12416
 
     ;; #(
12417
 
  *) :
12418
 
    BLAS_LIBS="$BLAS_LIBS -latlas" ;;
12419
 
esac
12420
 
     LIBS="$BLAS_LIBS $LIBS"
12421
 
 
12422
 
if test "x$enable_f77" = xno; then :
12423
 
  ac_ext=c
12424
 
ac_cpp='$CPP $CPPFLAGS'
12425
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12426
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12427
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12428
 
 
12429
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12430
 
/* end confdefs.h.  */
12431
 
#ifdef __cplusplus
12432
 
extern "C" {
12433
 
#endif
12434
 
char cgemm ();
12435
 
char dgemm ();
12436
 
char sgemm ();
12437
 
char zgemm ();
12438
 
#ifdef __cplusplus
12439
 
}
12440
 
#endif
12441
 
 
12442
 
#ifdef F77_DUMMY_MAIN
12443
 
 
12444
 
#  ifdef __cplusplus
12445
 
     extern "C"
12446
 
#  endif
12447
 
   int F77_DUMMY_MAIN() { return 1; }
12448
 
 
12449
 
#endif
12450
 
int
12451
 
main ()
12452
 
{
12453
 
char cresult =  cgemm ();
12454
 
char dresult =  dgemm ();
12455
 
char sresult =  sgemm ();
12456
 
char zresult =  zgemm ();
12457
 
 
12458
 
  ;
12459
 
  return 0;
12460
 
}
12461
 
_ACEOF
12462
 
 
12463
 
    if ac_fn_c_try_link "$LINENO"; then :
12464
 
  ga_blas_ok=yes
12465
 
else
12466
 
  BLAS_LIBS=
12467
 
fi
12468
 
rm -f core conftest.err conftest.$ac_objext \
12469
 
    conftest$ac_exeext
12470
 
    ac_ext=c
12471
 
ac_cpp='$CPP $CPPFLAGS'
12472
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12473
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12474
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12475
 
 
12476
 
else
12477
 
  ac_ext=f
12478
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12479
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12480
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12481
 
 
12482
 
    cat > conftest.$ac_ext <<_ACEOF
12483
 
      program main
12484
 
      implicit none
12485
 
      INTEGER M, N, K, LDA, LDB, LDC
12486
 
      COMPLEX CA(20,40), CB(20,30), CC(40,30), Calpha, Cbeta
12487
 
      DOUBLE COMPLEX ZA(20,40), ZB(20,30), ZC(40,30), Zalpha, Zbeta
12488
 
      REAL SA(20,40), SB(20,30), SC(40,30), Salpha, Sbeta
12489
 
      DOUBLE PRECISION DA(20,40), DB(20,30), DC(40,30), Dalpha, Dbeta
12490
 
      external CGEMM
12491
 
      external ZGEMM
12492
 
      external SGEMM
12493
 
      external DGEMM
12494
 
      M = 10
12495
 
      N = 20
12496
 
      K = 15
12497
 
      LDA = 20
12498
 
      LDB = 20
12499
 
      LDC = 40
12500
 
      Calpha = 2.0
12501
 
      Cbeta = 2.0
12502
 
      Zalpha = 2.0
12503
 
      Zbeta = 2.0
12504
 
      Salpha = 2.0
12505
 
      Sbeta = 2.0
12506
 
      Dalpha = 2.0
12507
 
      Dbeta = 2.0
12508
 
      CALL CGEMM ('T','N',M,N,K,Calpha,CA,LDA,CB,LDB,Cbeta,CC,LDC)
12509
 
      CALL ZGEMM ('T','N',M,N,K,Zalpha,ZA,LDA,ZB,LDB,Zbeta,ZC,LDC)
12510
 
      CALL SGEMM ('T','N',M,N,K,Salpha,SA,LDA,SB,LDB,Sbeta,SC,LDC)
12511
 
      CALL DGEMM ('T','N',M,N,K,Dalpha,DA,LDA,DB,LDB,Dbeta,DC,LDC)
12512
 
      end
12513
 
_ACEOF
12514
 
 
12515
 
    if ac_fn_f77_try_link "$LINENO"; then :
12516
 
  ga_blas_ok=yes
12517
 
else
12518
 
  BLAS_LIBS=
12519
 
fi
12520
 
rm -f core conftest.err conftest.$ac_objext \
12521
 
    conftest$ac_exeext
12522
 
    ac_ext=c
12523
 
ac_cpp='$CPP $CPPFLAGS'
12524
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12525
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12526
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12527
 
 
12528
 
fi
12529
 
 
12530
 
     LIBS="$ga_save_LIBS"
12531
 
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_blas_ok" >&5
12532
 
$as_echo "$ga_blas_ok" >&6; }
12533
 
fi
12534
 
 
12535
 
# PhiPACK libraries (requires generic BLAS lib, too)
12536
 
if test $ga_blas_ok = no; then :
12537
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BLAS in PhiPACK libraries" >&5
12538
 
$as_echo_n "checking for BLAS in PhiPACK libraries... " >&6; }
12539
 
     # add -lblas to BLAS_LIBS if missing from LIBS
12540
 
     case $LIBS in #(
12541
 
  *blas*) :
12542
 
     ;; #(
12543
 
  *) :
12544
 
    BLAS_LIBS="-lblas" ;;
12545
 
esac
12546
 
     # add -ldgemm to BLAS_LIBS if missing from LIBS
12547
 
     case $LIBS in #(
12548
 
  *dgemm*) :
12549
 
     ;; #(
12550
 
  *) :
12551
 
    BLAS_LIBS="-ldgemm $BLAS_LIBS" ;;
12552
 
esac
12553
 
     # add -lsgemm to BLAS_LIBS if missing from LIBS
12554
 
     case $LIBS in #(
12555
 
  *sgemm*) :
12556
 
     ;; #(
12557
 
  *) :
12558
 
    BLAS_LIBS="-lsgemm $BLAS_LIBS" ;;
12559
 
esac
12560
 
     LIBS="$BLAS_LIBS $LIBS"
12561
 
 
12562
 
if test "x$enable_f77" = xno; then :
12563
 
  ac_ext=c
12564
 
ac_cpp='$CPP $CPPFLAGS'
12565
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12566
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12567
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12568
 
 
12569
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12570
 
/* end confdefs.h.  */
12571
 
#ifdef __cplusplus
12572
 
extern "C" {
12573
 
#endif
12574
 
char cgemm ();
12575
 
char dgemm ();
12576
 
char sgemm ();
12577
 
char zgemm ();
12578
 
#ifdef __cplusplus
12579
 
}
12580
 
#endif
12581
 
 
12582
 
#ifdef F77_DUMMY_MAIN
12583
 
 
12584
 
#  ifdef __cplusplus
12585
 
     extern "C"
12586
 
#  endif
12587
 
   int F77_DUMMY_MAIN() { return 1; }
12588
 
 
12589
 
#endif
12590
 
int
12591
 
main ()
12592
 
{
12593
 
char cresult =  cgemm ();
12594
 
char dresult =  dgemm ();
12595
 
char sresult =  sgemm ();
12596
 
char zresult =  zgemm ();
12597
 
 
12598
 
  ;
12599
 
  return 0;
12600
 
}
12601
 
_ACEOF
12602
 
 
12603
 
    if ac_fn_c_try_link "$LINENO"; then :
12604
 
  ga_blas_ok=yes
12605
 
else
12606
 
  BLAS_LIBS=
12607
 
fi
12608
 
rm -f core conftest.err conftest.$ac_objext \
12609
 
    conftest$ac_exeext
12610
 
    ac_ext=c
12611
 
ac_cpp='$CPP $CPPFLAGS'
12612
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12613
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12614
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12615
 
 
12616
 
else
12617
 
  ac_ext=f
12618
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12619
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12620
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12621
 
 
12622
 
    cat > conftest.$ac_ext <<_ACEOF
12623
 
      program main
12624
 
      implicit none
12625
 
      INTEGER M, N, K, LDA, LDB, LDC
12626
 
      COMPLEX CA(20,40), CB(20,30), CC(40,30), Calpha, Cbeta
12627
 
      DOUBLE COMPLEX ZA(20,40), ZB(20,30), ZC(40,30), Zalpha, Zbeta
12628
 
      REAL SA(20,40), SB(20,30), SC(40,30), Salpha, Sbeta
12629
 
      DOUBLE PRECISION DA(20,40), DB(20,30), DC(40,30), Dalpha, Dbeta
12630
 
      external CGEMM
12631
 
      external ZGEMM
12632
 
      external SGEMM
12633
 
      external DGEMM
12634
 
      M = 10
12635
 
      N = 20
12636
 
      K = 15
12637
 
      LDA = 20
12638
 
      LDB = 20
12639
 
      LDC = 40
12640
 
      Calpha = 2.0
12641
 
      Cbeta = 2.0
12642
 
      Zalpha = 2.0
12643
 
      Zbeta = 2.0
12644
 
      Salpha = 2.0
12645
 
      Sbeta = 2.0
12646
 
      Dalpha = 2.0
12647
 
      Dbeta = 2.0
12648
 
      CALL CGEMM ('T','N',M,N,K,Calpha,CA,LDA,CB,LDB,Cbeta,CC,LDC)
12649
 
      CALL ZGEMM ('T','N',M,N,K,Zalpha,ZA,LDA,ZB,LDB,Zbeta,ZC,LDC)
12650
 
      CALL SGEMM ('T','N',M,N,K,Salpha,SA,LDA,SB,LDB,Sbeta,SC,LDC)
12651
 
      CALL DGEMM ('T','N',M,N,K,Dalpha,DA,LDA,DB,LDB,Dbeta,DC,LDC)
12652
 
      end
12653
 
_ACEOF
12654
 
 
12655
 
    if ac_fn_f77_try_link "$LINENO"; then :
12656
 
  ga_blas_ok=yes
12657
 
else
12658
 
  BLAS_LIBS=
12659
 
fi
12660
 
rm -f core conftest.err conftest.$ac_objext \
12661
 
    conftest$ac_exeext
12662
 
    ac_ext=c
12663
 
ac_cpp='$CPP $CPPFLAGS'
12664
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12665
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12666
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12667
 
 
12668
 
fi
12669
 
 
12670
 
     LIBS="$ga_save_LIBS"
12671
 
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_blas_ok" >&5
12672
 
$as_echo "$ga_blas_ok" >&6; }
12673
 
fi
12674
 
 
12675
 
# Apple Accelerate.framework
12676
 
if test $ga_blas_ok = no; then :
12677
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BLAS in Apple Accelerate.framework" >&5
12678
 
$as_echo_n "checking for BLAS in Apple Accelerate.framework... " >&6; }
12679
 
     # add -framework Accelerate to BLAS_LIBS if missing from LIBS
12680
 
     case $LIBS in #(
12681
 
  *Accelerate*) :
12682
 
     ;; #(
12683
 
  *) :
12684
 
    BLAS_LIBS="-framework Accelerate" ;;
12685
 
esac
12686
 
     LIBS="$BLAS_LIBS $LIBS"
12687
 
 
12688
 
if test "x$enable_f77" = xno; then :
12689
 
  ac_ext=c
12690
 
ac_cpp='$CPP $CPPFLAGS'
12691
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12692
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12693
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12694
 
 
12695
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12696
 
/* end confdefs.h.  */
12697
 
#ifdef __cplusplus
12698
 
extern "C" {
12699
 
#endif
12700
 
char cgemm ();
12701
 
char dgemm ();
12702
 
char sgemm ();
12703
 
char zgemm ();
12704
 
#ifdef __cplusplus
12705
 
}
12706
 
#endif
12707
 
 
12708
 
#ifdef F77_DUMMY_MAIN
12709
 
 
12710
 
#  ifdef __cplusplus
12711
 
     extern "C"
12712
 
#  endif
12713
 
   int F77_DUMMY_MAIN() { return 1; }
12714
 
 
12715
 
#endif
12716
 
int
12717
 
main ()
12718
 
{
12719
 
char cresult =  cgemm ();
12720
 
char dresult =  dgemm ();
12721
 
char sresult =  sgemm ();
12722
 
char zresult =  zgemm ();
12723
 
 
12724
 
  ;
12725
 
  return 0;
12726
 
}
12727
 
_ACEOF
12728
 
 
12729
 
    if ac_fn_c_try_link "$LINENO"; then :
12730
 
  ga_blas_ok=yes
12731
 
else
12732
 
  BLAS_LIBS=
12733
 
fi
12734
 
rm -f core conftest.err conftest.$ac_objext \
12735
 
    conftest$ac_exeext
12736
 
    ac_ext=c
12737
 
ac_cpp='$CPP $CPPFLAGS'
12738
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12739
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12740
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12741
 
 
12742
 
else
12743
 
  ac_ext=f
12744
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12745
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12746
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12747
 
 
12748
 
    cat > conftest.$ac_ext <<_ACEOF
12749
 
      program main
12750
 
      implicit none
12751
 
      INTEGER M, N, K, LDA, LDB, LDC
12752
 
      COMPLEX CA(20,40), CB(20,30), CC(40,30), Calpha, Cbeta
12753
 
      DOUBLE COMPLEX ZA(20,40), ZB(20,30), ZC(40,30), Zalpha, Zbeta
12754
 
      REAL SA(20,40), SB(20,30), SC(40,30), Salpha, Sbeta
12755
 
      DOUBLE PRECISION DA(20,40), DB(20,30), DC(40,30), Dalpha, Dbeta
12756
 
      external CGEMM
12757
 
      external ZGEMM
12758
 
      external SGEMM
12759
 
      external DGEMM
12760
 
      M = 10
12761
 
      N = 20
12762
 
      K = 15
12763
 
      LDA = 20
12764
 
      LDB = 20
12765
 
      LDC = 40
12766
 
      Calpha = 2.0
12767
 
      Cbeta = 2.0
12768
 
      Zalpha = 2.0
12769
 
      Zbeta = 2.0
12770
 
      Salpha = 2.0
12771
 
      Sbeta = 2.0
12772
 
      Dalpha = 2.0
12773
 
      Dbeta = 2.0
12774
 
      CALL CGEMM ('T','N',M,N,K,Calpha,CA,LDA,CB,LDB,Cbeta,CC,LDC)
12775
 
      CALL ZGEMM ('T','N',M,N,K,Zalpha,ZA,LDA,ZB,LDB,Zbeta,ZC,LDC)
12776
 
      CALL SGEMM ('T','N',M,N,K,Salpha,SA,LDA,SB,LDB,Sbeta,SC,LDC)
12777
 
      CALL DGEMM ('T','N',M,N,K,Dalpha,DA,LDA,DB,LDB,Dbeta,DC,LDC)
12778
 
      end
12779
 
_ACEOF
12780
 
 
12781
 
    if ac_fn_f77_try_link "$LINENO"; then :
12782
 
  ga_blas_ok=yes
12783
 
else
12784
 
  BLAS_LIBS=
12785
 
fi
12786
 
rm -f core conftest.err conftest.$ac_objext \
12787
 
    conftest$ac_exeext
12788
 
    ac_ext=c
12789
 
ac_cpp='$CPP $CPPFLAGS'
12790
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12791
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12792
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12793
 
 
12794
 
fi
12795
 
 
12796
 
     LIBS="$ga_save_LIBS"
12797
 
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_blas_ok" >&5
12798
 
$as_echo "$ga_blas_ok" >&6; }
12799
 
fi
12800
 
 
12801
 
# Apple vecLib.framework
12802
 
if test $ga_blas_ok = no; then :
12803
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BLAS in Apple vecLib.framework" >&5
12804
 
$as_echo_n "checking for BLAS in Apple vecLib.framework... " >&6; }
12805
 
     # add -framework vecLib to BLAS_LIBS if missing from LIBS
12806
 
     case $LIBS in #(
12807
 
  *vecLib*) :
12808
 
     ;; #(
12809
 
  *) :
12810
 
    BLAS_LIBS="-framework vecLib" ;;
12811
 
esac
12812
 
     LIBS="$BLAS_LIBS $LIBS"
12813
 
 
12814
 
if test "x$enable_f77" = xno; then :
12815
 
  ac_ext=c
12816
 
ac_cpp='$CPP $CPPFLAGS'
12817
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12818
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12819
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12820
 
 
12821
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12822
 
/* end confdefs.h.  */
12823
 
#ifdef __cplusplus
12824
 
extern "C" {
12825
 
#endif
12826
 
char cgemm ();
12827
 
char dgemm ();
12828
 
char sgemm ();
12829
 
char zgemm ();
12830
 
#ifdef __cplusplus
12831
 
}
12832
 
#endif
12833
 
 
12834
 
#ifdef F77_DUMMY_MAIN
12835
 
 
12836
 
#  ifdef __cplusplus
12837
 
     extern "C"
12838
 
#  endif
12839
 
   int F77_DUMMY_MAIN() { return 1; }
12840
 
 
12841
 
#endif
12842
 
int
12843
 
main ()
12844
 
{
12845
 
char cresult =  cgemm ();
12846
 
char dresult =  dgemm ();
12847
 
char sresult =  sgemm ();
12848
 
char zresult =  zgemm ();
12849
 
 
12850
 
  ;
12851
 
  return 0;
12852
 
}
12853
 
_ACEOF
12854
 
 
12855
 
    if ac_fn_c_try_link "$LINENO"; then :
12856
 
  ga_blas_ok=yes
12857
 
else
12858
 
  BLAS_LIBS=
12859
 
fi
12860
 
rm -f core conftest.err conftest.$ac_objext \
12861
 
    conftest$ac_exeext
12862
 
    ac_ext=c
12863
 
ac_cpp='$CPP $CPPFLAGS'
12864
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12865
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12866
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12867
 
 
12868
 
else
12869
 
  ac_ext=f
12870
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12871
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12872
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12873
 
 
12874
 
    cat > conftest.$ac_ext <<_ACEOF
12875
 
      program main
12876
 
      implicit none
12877
 
      INTEGER M, N, K, LDA, LDB, LDC
12878
 
      COMPLEX CA(20,40), CB(20,30), CC(40,30), Calpha, Cbeta
12879
 
      DOUBLE COMPLEX ZA(20,40), ZB(20,30), ZC(40,30), Zalpha, Zbeta
12880
 
      REAL SA(20,40), SB(20,30), SC(40,30), Salpha, Sbeta
12881
 
      DOUBLE PRECISION DA(20,40), DB(20,30), DC(40,30), Dalpha, Dbeta
12882
 
      external CGEMM
12883
 
      external ZGEMM
12884
 
      external SGEMM
12885
 
      external DGEMM
12886
 
      M = 10
12887
 
      N = 20
12888
 
      K = 15
12889
 
      LDA = 20
12890
 
      LDB = 20
12891
 
      LDC = 40
12892
 
      Calpha = 2.0
12893
 
      Cbeta = 2.0
12894
 
      Zalpha = 2.0
12895
 
      Zbeta = 2.0
12896
 
      Salpha = 2.0
12897
 
      Sbeta = 2.0
12898
 
      Dalpha = 2.0
12899
 
      Dbeta = 2.0
12900
 
      CALL CGEMM ('T','N',M,N,K,Calpha,CA,LDA,CB,LDB,Cbeta,CC,LDC)
12901
 
      CALL ZGEMM ('T','N',M,N,K,Zalpha,ZA,LDA,ZB,LDB,Zbeta,ZC,LDC)
12902
 
      CALL SGEMM ('T','N',M,N,K,Salpha,SA,LDA,SB,LDB,Sbeta,SC,LDC)
12903
 
      CALL DGEMM ('T','N',M,N,K,Dalpha,DA,LDA,DB,LDB,Dbeta,DC,LDC)
12904
 
      end
12905
 
_ACEOF
12906
 
 
12907
 
    if ac_fn_f77_try_link "$LINENO"; then :
12908
 
  ga_blas_ok=yes
12909
 
else
12910
 
  BLAS_LIBS=
12911
 
fi
12912
 
rm -f core conftest.err conftest.$ac_objext \
12913
 
    conftest$ac_exeext
12914
 
    ac_ext=c
12915
 
ac_cpp='$CPP $CPPFLAGS'
12916
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12917
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12918
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12919
 
 
12920
 
fi
12921
 
 
12922
 
     LIBS="$ga_save_LIBS"
12923
 
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_blas_ok" >&5
12924
 
$as_echo "$ga_blas_ok" >&6; }
12925
 
fi
12926
 
 
12927
 
# Alpha CXML library (CXML stands for Compaq Extended Math Library)
12928
 
if test $ga_blas_ok = no; then :
12929
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BLAS in Alpha CXML library" >&5
12930
 
$as_echo_n "checking for BLAS in Alpha CXML library... " >&6; }
12931
 
     # add -lcxml to BLAS_LIBS if missing from LIBS
12932
 
     case $LIBS in #(
12933
 
  *cxml*) :
12934
 
     ;; #(
12935
 
  *) :
12936
 
    BLAS_LIBS="-lcxml" ;;
12937
 
esac
12938
 
     LIBS="$BLAS_LIBS $LIBS"
12939
 
 
12940
 
if test "x$enable_f77" = xno; then :
12941
 
  ac_ext=c
12942
 
ac_cpp='$CPP $CPPFLAGS'
12943
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12944
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12945
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12946
 
 
12947
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12948
 
/* end confdefs.h.  */
12949
 
#ifdef __cplusplus
12950
 
extern "C" {
12951
 
#endif
12952
 
char cgemm ();
12953
 
char dgemm ();
12954
 
char sgemm ();
12955
 
char zgemm ();
12956
 
#ifdef __cplusplus
12957
 
}
12958
 
#endif
12959
 
 
12960
 
#ifdef F77_DUMMY_MAIN
12961
 
 
12962
 
#  ifdef __cplusplus
12963
 
     extern "C"
12964
 
#  endif
12965
 
   int F77_DUMMY_MAIN() { return 1; }
12966
 
 
12967
 
#endif
12968
 
int
12969
 
main ()
12970
 
{
12971
 
char cresult =  cgemm ();
12972
 
char dresult =  dgemm ();
12973
 
char sresult =  sgemm ();
12974
 
char zresult =  zgemm ();
12975
 
 
12976
 
  ;
12977
 
  return 0;
12978
 
}
12979
 
_ACEOF
12980
 
 
12981
 
    if ac_fn_c_try_link "$LINENO"; then :
12982
 
  ga_blas_ok=yes
12983
 
else
12984
 
  BLAS_LIBS=
12985
 
fi
12986
 
rm -f core conftest.err conftest.$ac_objext \
12987
 
    conftest$ac_exeext
12988
 
    ac_ext=c
12989
 
ac_cpp='$CPP $CPPFLAGS'
12990
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12991
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12992
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12993
 
 
12994
 
else
12995
 
  ac_ext=f
12996
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12997
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12998
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12999
 
 
13000
 
    cat > conftest.$ac_ext <<_ACEOF
13001
 
      program main
13002
 
      implicit none
13003
 
      INTEGER M, N, K, LDA, LDB, LDC
13004
 
      COMPLEX CA(20,40), CB(20,30), CC(40,30), Calpha, Cbeta
13005
 
      DOUBLE COMPLEX ZA(20,40), ZB(20,30), ZC(40,30), Zalpha, Zbeta
13006
 
      REAL SA(20,40), SB(20,30), SC(40,30), Salpha, Sbeta
13007
 
      DOUBLE PRECISION DA(20,40), DB(20,30), DC(40,30), Dalpha, Dbeta
13008
 
      external CGEMM
13009
 
      external ZGEMM
13010
 
      external SGEMM
13011
 
      external DGEMM
13012
 
      M = 10
13013
 
      N = 20
13014
 
      K = 15
13015
 
      LDA = 20
13016
 
      LDB = 20
13017
 
      LDC = 40
13018
 
      Calpha = 2.0
13019
 
      Cbeta = 2.0
13020
 
      Zalpha = 2.0
13021
 
      Zbeta = 2.0
13022
 
      Salpha = 2.0
13023
 
      Sbeta = 2.0
13024
 
      Dalpha = 2.0
13025
 
      Dbeta = 2.0
13026
 
      CALL CGEMM ('T','N',M,N,K,Calpha,CA,LDA,CB,LDB,Cbeta,CC,LDC)
13027
 
      CALL ZGEMM ('T','N',M,N,K,Zalpha,ZA,LDA,ZB,LDB,Zbeta,ZC,LDC)
13028
 
      CALL SGEMM ('T','N',M,N,K,Salpha,SA,LDA,SB,LDB,Sbeta,SC,LDC)
13029
 
      CALL DGEMM ('T','N',M,N,K,Dalpha,DA,LDA,DB,LDB,Dbeta,DC,LDC)
13030
 
      end
13031
 
_ACEOF
13032
 
 
13033
 
    if ac_fn_f77_try_link "$LINENO"; then :
13034
 
  ga_blas_ok=yes
13035
 
else
13036
 
  BLAS_LIBS=
13037
 
fi
13038
 
rm -f core conftest.err conftest.$ac_objext \
13039
 
    conftest$ac_exeext
13040
 
    ac_ext=c
13041
 
ac_cpp='$CPP $CPPFLAGS'
13042
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13043
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13044
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13045
 
 
13046
 
fi
13047
 
 
13048
 
     LIBS="$ga_save_LIBS"
13049
 
     if test $ga_blas_ok = no; then :
13050
 
  # add -lcxml to BLAS_LIBS if missing from LIBS
13051
 
         case $LIBS in #(
13052
 
  *cxml*) :
13053
 
     ;; #(
13054
 
  *) :
13055
 
    BLAS_LIBS="-lcxml" ;;
13056
 
esac
13057
 
         # add -lcpml to BLAS_LIBS if missing from LIBS
13058
 
         case $LIBS in #(
13059
 
  *cpml*) :
13060
 
     ;; #(
13061
 
  *) :
13062
 
    BLAS_LIBS="$BLAS_LIBS -lcpml" ;;
13063
 
esac
13064
 
         LIBS="$BLAS_LIBS $LIBS"
13065
 
 
13066
 
if test "x$enable_f77" = xno; then :
13067
 
  ac_ext=c
13068
 
ac_cpp='$CPP $CPPFLAGS'
13069
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13070
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13071
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13072
 
 
13073
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13074
 
/* end confdefs.h.  */
13075
 
#ifdef __cplusplus
13076
 
extern "C" {
13077
 
#endif
13078
 
char cgemm ();
13079
 
char dgemm ();
13080
 
char sgemm ();
13081
 
char zgemm ();
13082
 
#ifdef __cplusplus
13083
 
}
13084
 
#endif
13085
 
 
13086
 
#ifdef F77_DUMMY_MAIN
13087
 
 
13088
 
#  ifdef __cplusplus
13089
 
     extern "C"
13090
 
#  endif
13091
 
   int F77_DUMMY_MAIN() { return 1; }
13092
 
 
13093
 
#endif
13094
 
int
13095
 
main ()
13096
 
{
13097
 
char cresult =  cgemm ();
13098
 
char dresult =  dgemm ();
13099
 
char sresult =  sgemm ();
13100
 
char zresult =  zgemm ();
13101
 
 
13102
 
  ;
13103
 
  return 0;
13104
 
}
13105
 
_ACEOF
13106
 
 
13107
 
    if ac_fn_c_try_link "$LINENO"; then :
13108
 
  ga_blas_ok=yes
13109
 
else
13110
 
  BLAS_LIBS=
13111
 
fi
13112
 
rm -f core conftest.err conftest.$ac_objext \
13113
 
    conftest$ac_exeext
13114
 
    ac_ext=c
13115
 
ac_cpp='$CPP $CPPFLAGS'
13116
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13117
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13118
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13119
 
 
13120
 
else
13121
 
  ac_ext=f
13122
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13123
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13124
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13125
 
 
13126
 
    cat > conftest.$ac_ext <<_ACEOF
13127
 
      program main
13128
 
      implicit none
13129
 
      INTEGER M, N, K, LDA, LDB, LDC
13130
 
      COMPLEX CA(20,40), CB(20,30), CC(40,30), Calpha, Cbeta
13131
 
      DOUBLE COMPLEX ZA(20,40), ZB(20,30), ZC(40,30), Zalpha, Zbeta
13132
 
      REAL SA(20,40), SB(20,30), SC(40,30), Salpha, Sbeta
13133
 
      DOUBLE PRECISION DA(20,40), DB(20,30), DC(40,30), Dalpha, Dbeta
13134
 
      external CGEMM
13135
 
      external ZGEMM
13136
 
      external SGEMM
13137
 
      external DGEMM
13138
 
      M = 10
13139
 
      N = 20
13140
 
      K = 15
13141
 
      LDA = 20
13142
 
      LDB = 20
13143
 
      LDC = 40
13144
 
      Calpha = 2.0
13145
 
      Cbeta = 2.0
13146
 
      Zalpha = 2.0
13147
 
      Zbeta = 2.0
13148
 
      Salpha = 2.0
13149
 
      Sbeta = 2.0
13150
 
      Dalpha = 2.0
13151
 
      Dbeta = 2.0
13152
 
      CALL CGEMM ('T','N',M,N,K,Calpha,CA,LDA,CB,LDB,Cbeta,CC,LDC)
13153
 
      CALL ZGEMM ('T','N',M,N,K,Zalpha,ZA,LDA,ZB,LDB,Zbeta,ZC,LDC)
13154
 
      CALL SGEMM ('T','N',M,N,K,Salpha,SA,LDA,SB,LDB,Sbeta,SC,LDC)
13155
 
      CALL DGEMM ('T','N',M,N,K,Dalpha,DA,LDA,DB,LDB,Dbeta,DC,LDC)
13156
 
      end
13157
 
_ACEOF
13158
 
 
13159
 
    if ac_fn_f77_try_link "$LINENO"; then :
13160
 
  ga_blas_ok=yes
13161
 
else
13162
 
  BLAS_LIBS=
13163
 
fi
13164
 
rm -f core conftest.err conftest.$ac_objext \
13165
 
    conftest$ac_exeext
13166
 
    ac_ext=c
13167
 
ac_cpp='$CPP $CPPFLAGS'
13168
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13169
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13170
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13171
 
 
13172
 
fi
13173
 
 
13174
 
         LIBS="$ga_save_LIBS"
13175
 
fi
13176
 
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_blas_ok" >&5
13177
 
$as_echo "$ga_blas_ok" >&6; }
13178
 
fi
13179
 
 
13180
 
# Alpha DXML library (now called CXML, see above)
13181
 
 
13182
 
# Sun Performance library
13183
 
if test $ga_blas_ok = no; then :
13184
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BLAS in Sun Performance Library" >&5
13185
 
$as_echo_n "checking for BLAS in Sun Performance Library... " >&6; }
13186
 
     # add -xlic_lib=sunperf to BLAS_LIBS if missing from LIBS
13187
 
     case $LIBS in #(
13188
 
  *sunperf*) :
13189
 
     ;; #(
13190
 
  *) :
13191
 
    BLAS_LIBS="-xlic_lib=sunperf" ;;
13192
 
esac
13193
 
     LIBS="$BLAS_LIBS $LIBS"
13194
 
 
13195
 
if test "x$enable_f77" = xno; then :
13196
 
  ac_ext=c
13197
 
ac_cpp='$CPP $CPPFLAGS'
13198
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13199
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13200
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13201
 
 
13202
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13203
 
/* end confdefs.h.  */
13204
 
#ifdef __cplusplus
13205
 
extern "C" {
13206
 
#endif
13207
 
char cgemm ();
13208
 
char dgemm ();
13209
 
char sgemm ();
13210
 
char zgemm ();
13211
 
#ifdef __cplusplus
13212
 
}
13213
 
#endif
13214
 
 
13215
 
#ifdef F77_DUMMY_MAIN
13216
 
 
13217
 
#  ifdef __cplusplus
13218
 
     extern "C"
13219
 
#  endif
13220
 
   int F77_DUMMY_MAIN() { return 1; }
13221
 
 
13222
 
#endif
13223
 
int
13224
 
main ()
13225
 
{
13226
 
char cresult =  cgemm ();
13227
 
char dresult =  dgemm ();
13228
 
char sresult =  sgemm ();
13229
 
char zresult =  zgemm ();
13230
 
 
13231
 
  ;
13232
 
  return 0;
13233
 
}
13234
 
_ACEOF
13235
 
 
13236
 
    if ac_fn_c_try_link "$LINENO"; then :
13237
 
  ga_blas_ok=yes
13238
 
else
13239
 
  BLAS_LIBS=
13240
 
fi
13241
 
rm -f core conftest.err conftest.$ac_objext \
13242
 
    conftest$ac_exeext
13243
 
    ac_ext=c
13244
 
ac_cpp='$CPP $CPPFLAGS'
13245
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13246
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13247
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13248
 
 
13249
 
else
13250
 
  ac_ext=f
13251
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13252
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13253
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13254
 
 
13255
 
    cat > conftest.$ac_ext <<_ACEOF
13256
 
      program main
13257
 
      implicit none
13258
 
      INTEGER M, N, K, LDA, LDB, LDC
13259
 
      COMPLEX CA(20,40), CB(20,30), CC(40,30), Calpha, Cbeta
13260
 
      DOUBLE COMPLEX ZA(20,40), ZB(20,30), ZC(40,30), Zalpha, Zbeta
13261
 
      REAL SA(20,40), SB(20,30), SC(40,30), Salpha, Sbeta
13262
 
      DOUBLE PRECISION DA(20,40), DB(20,30), DC(40,30), Dalpha, Dbeta
13263
 
      external CGEMM
13264
 
      external ZGEMM
13265
 
      external SGEMM
13266
 
      external DGEMM
13267
 
      M = 10
13268
 
      N = 20
13269
 
      K = 15
13270
 
      LDA = 20
13271
 
      LDB = 20
13272
 
      LDC = 40
13273
 
      Calpha = 2.0
13274
 
      Cbeta = 2.0
13275
 
      Zalpha = 2.0
13276
 
      Zbeta = 2.0
13277
 
      Salpha = 2.0
13278
 
      Sbeta = 2.0
13279
 
      Dalpha = 2.0
13280
 
      Dbeta = 2.0
13281
 
      CALL CGEMM ('T','N',M,N,K,Calpha,CA,LDA,CB,LDB,Cbeta,CC,LDC)
13282
 
      CALL ZGEMM ('T','N',M,N,K,Zalpha,ZA,LDA,ZB,LDB,Zbeta,ZC,LDC)
13283
 
      CALL SGEMM ('T','N',M,N,K,Salpha,SA,LDA,SB,LDB,Sbeta,SC,LDC)
13284
 
      CALL DGEMM ('T','N',M,N,K,Dalpha,DA,LDA,DB,LDB,Dbeta,DC,LDC)
13285
 
      end
13286
 
_ACEOF
13287
 
 
13288
 
    if ac_fn_f77_try_link "$LINENO"; then :
13289
 
  ga_blas_ok=yes
13290
 
else
13291
 
  BLAS_LIBS=
13292
 
fi
13293
 
rm -f core conftest.err conftest.$ac_objext \
13294
 
    conftest$ac_exeext
13295
 
    ac_ext=c
13296
 
ac_cpp='$CPP $CPPFLAGS'
13297
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13298
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13299
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13300
 
 
13301
 
fi
13302
 
 
13303
 
     LIBS="$ga_save_LIBS"
13304
 
     if test $ga_blas_ok = no; then :
13305
 
  # add -xlic_lib=sunperf to BLAS_LIBS if missing from LIBS
13306
 
         case $LIBS in #(
13307
 
  *sunperf*) :
13308
 
     ;; #(
13309
 
  *) :
13310
 
    BLAS_LIBS="-xlic_lib=sunperf" ;;
13311
 
esac
13312
 
         # add -lsunmath to BLAS_LIBS if missing from LIBS
13313
 
         case $LIBS in #(
13314
 
  *sunmath*) :
13315
 
     ;; #(
13316
 
  *) :
13317
 
    BLAS_LIBS="$BLAS_LIBS -lsunmath" ;;
13318
 
esac
13319
 
         LIBS="$BLAS_LIBS $LIBS"
13320
 
 
13321
 
if test "x$enable_f77" = xno; then :
13322
 
  ac_ext=c
13323
 
ac_cpp='$CPP $CPPFLAGS'
13324
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13325
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13326
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13327
 
 
13328
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13329
 
/* end confdefs.h.  */
13330
 
#ifdef __cplusplus
13331
 
extern "C" {
13332
 
#endif
13333
 
char cgemm ();
13334
 
char dgemm ();
13335
 
char sgemm ();
13336
 
char zgemm ();
13337
 
#ifdef __cplusplus
13338
 
}
13339
 
#endif
13340
 
 
13341
 
#ifdef F77_DUMMY_MAIN
13342
 
 
13343
 
#  ifdef __cplusplus
13344
 
     extern "C"
13345
 
#  endif
13346
 
   int F77_DUMMY_MAIN() { return 1; }
13347
 
 
13348
 
#endif
13349
 
int
13350
 
main ()
13351
 
{
13352
 
char cresult =  cgemm ();
13353
 
char dresult =  dgemm ();
13354
 
char sresult =  sgemm ();
13355
 
char zresult =  zgemm ();
13356
 
 
13357
 
  ;
13358
 
  return 0;
13359
 
}
13360
 
_ACEOF
13361
 
 
13362
 
    if ac_fn_c_try_link "$LINENO"; then :
13363
 
  ga_blas_ok=yes
13364
 
else
13365
 
  BLAS_LIBS=
13366
 
fi
13367
 
rm -f core conftest.err conftest.$ac_objext \
13368
 
    conftest$ac_exeext
13369
 
    ac_ext=c
13370
 
ac_cpp='$CPP $CPPFLAGS'
13371
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13372
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13373
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13374
 
 
13375
 
else
13376
 
  ac_ext=f
13377
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13378
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13379
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13380
 
 
13381
 
    cat > conftest.$ac_ext <<_ACEOF
13382
 
      program main
13383
 
      implicit none
13384
 
      INTEGER M, N, K, LDA, LDB, LDC
13385
 
      COMPLEX CA(20,40), CB(20,30), CC(40,30), Calpha, Cbeta
13386
 
      DOUBLE COMPLEX ZA(20,40), ZB(20,30), ZC(40,30), Zalpha, Zbeta
13387
 
      REAL SA(20,40), SB(20,30), SC(40,30), Salpha, Sbeta
13388
 
      DOUBLE PRECISION DA(20,40), DB(20,30), DC(40,30), Dalpha, Dbeta
13389
 
      external CGEMM
13390
 
      external ZGEMM
13391
 
      external SGEMM
13392
 
      external DGEMM
13393
 
      M = 10
13394
 
      N = 20
13395
 
      K = 15
13396
 
      LDA = 20
13397
 
      LDB = 20
13398
 
      LDC = 40
13399
 
      Calpha = 2.0
13400
 
      Cbeta = 2.0
13401
 
      Zalpha = 2.0
13402
 
      Zbeta = 2.0
13403
 
      Salpha = 2.0
13404
 
      Sbeta = 2.0
13405
 
      Dalpha = 2.0
13406
 
      Dbeta = 2.0
13407
 
      CALL CGEMM ('T','N',M,N,K,Calpha,CA,LDA,CB,LDB,Cbeta,CC,LDC)
13408
 
      CALL ZGEMM ('T','N',M,N,K,Zalpha,ZA,LDA,ZB,LDB,Zbeta,ZC,LDC)
13409
 
      CALL SGEMM ('T','N',M,N,K,Salpha,SA,LDA,SB,LDB,Sbeta,SC,LDC)
13410
 
      CALL DGEMM ('T','N',M,N,K,Dalpha,DA,LDA,DB,LDB,Dbeta,DC,LDC)
13411
 
      end
13412
 
_ACEOF
13413
 
 
13414
 
    if ac_fn_f77_try_link "$LINENO"; then :
13415
 
  ga_blas_ok=yes
13416
 
else
13417
 
  BLAS_LIBS=
13418
 
fi
13419
 
rm -f core conftest.err conftest.$ac_objext \
13420
 
    conftest$ac_exeext
13421
 
    ac_ext=c
13422
 
ac_cpp='$CPP $CPPFLAGS'
13423
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13424
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13425
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13426
 
 
13427
 
fi
13428
 
 
13429
 
         LIBS="$ga_save_LIBS"
13430
 
fi
13431
 
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_blas_ok" >&5
13432
 
$as_echo "$ga_blas_ok" >&6; }
13433
 
fi
13434
 
 
13435
 
# SCSL library (SCSL stands for SGI/Cray Scientific Library)
13436
 
if test $ga_blas_ok = no; then :
13437
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BLAS in SGI/Cray Scientific Library" >&5
13438
 
$as_echo_n "checking for BLAS in SGI/Cray Scientific Library... " >&6; }
13439
 
     # add -lscs to BLAS_LIBS if missing from LIBS
13440
 
     case $LIBS in #(
13441
 
  *scs*) :
13442
 
     ;; #(
13443
 
  *) :
13444
 
    BLAS_LIBS="-lscs" ;;
13445
 
esac
13446
 
     LIBS="$BLAS_LIBS $LIBS"
13447
 
 
13448
 
if test "x$enable_f77" = xno; then :
13449
 
  ac_ext=c
13450
 
ac_cpp='$CPP $CPPFLAGS'
13451
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13452
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13453
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13454
 
 
13455
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13456
 
/* end confdefs.h.  */
13457
 
#ifdef __cplusplus
13458
 
extern "C" {
13459
 
#endif
13460
 
char cgemm ();
13461
 
char dgemm ();
13462
 
char sgemm ();
13463
 
char zgemm ();
13464
 
#ifdef __cplusplus
13465
 
}
13466
 
#endif
13467
 
 
13468
 
#ifdef F77_DUMMY_MAIN
13469
 
 
13470
 
#  ifdef __cplusplus
13471
 
     extern "C"
13472
 
#  endif
13473
 
   int F77_DUMMY_MAIN() { return 1; }
13474
 
 
13475
 
#endif
13476
 
int
13477
 
main ()
13478
 
{
13479
 
char cresult =  cgemm ();
13480
 
char dresult =  dgemm ();
13481
 
char sresult =  sgemm ();
13482
 
char zresult =  zgemm ();
13483
 
 
13484
 
  ;
13485
 
  return 0;
13486
 
}
13487
 
_ACEOF
13488
 
 
13489
 
    if ac_fn_c_try_link "$LINENO"; then :
13490
 
  ga_blas_ok=yes
13491
 
else
13492
 
  BLAS_LIBS=
13493
 
fi
13494
 
rm -f core conftest.err conftest.$ac_objext \
13495
 
    conftest$ac_exeext
13496
 
    ac_ext=c
13497
 
ac_cpp='$CPP $CPPFLAGS'
13498
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13499
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13500
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13501
 
 
13502
 
else
13503
 
  ac_ext=f
13504
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13505
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13506
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13507
 
 
13508
 
    cat > conftest.$ac_ext <<_ACEOF
13509
 
      program main
13510
 
      implicit none
13511
 
      INTEGER M, N, K, LDA, LDB, LDC
13512
 
      COMPLEX CA(20,40), CB(20,30), CC(40,30), Calpha, Cbeta
13513
 
      DOUBLE COMPLEX ZA(20,40), ZB(20,30), ZC(40,30), Zalpha, Zbeta
13514
 
      REAL SA(20,40), SB(20,30), SC(40,30), Salpha, Sbeta
13515
 
      DOUBLE PRECISION DA(20,40), DB(20,30), DC(40,30), Dalpha, Dbeta
13516
 
      external CGEMM
13517
 
      external ZGEMM
13518
 
      external SGEMM
13519
 
      external DGEMM
13520
 
      M = 10
13521
 
      N = 20
13522
 
      K = 15
13523
 
      LDA = 20
13524
 
      LDB = 20
13525
 
      LDC = 40
13526
 
      Calpha = 2.0
13527
 
      Cbeta = 2.0
13528
 
      Zalpha = 2.0
13529
 
      Zbeta = 2.0
13530
 
      Salpha = 2.0
13531
 
      Sbeta = 2.0
13532
 
      Dalpha = 2.0
13533
 
      Dbeta = 2.0
13534
 
      CALL CGEMM ('T','N',M,N,K,Calpha,CA,LDA,CB,LDB,Cbeta,CC,LDC)
13535
 
      CALL ZGEMM ('T','N',M,N,K,Zalpha,ZA,LDA,ZB,LDB,Zbeta,ZC,LDC)
13536
 
      CALL SGEMM ('T','N',M,N,K,Salpha,SA,LDA,SB,LDB,Sbeta,SC,LDC)
13537
 
      CALL DGEMM ('T','N',M,N,K,Dalpha,DA,LDA,DB,LDB,Dbeta,DC,LDC)
13538
 
      end
13539
 
_ACEOF
13540
 
 
13541
 
    if ac_fn_f77_try_link "$LINENO"; then :
13542
 
  ga_blas_ok=yes
13543
 
else
13544
 
  BLAS_LIBS=
13545
 
fi
13546
 
rm -f core conftest.err conftest.$ac_objext \
13547
 
    conftest$ac_exeext
13548
 
    ac_ext=c
13549
 
ac_cpp='$CPP $CPPFLAGS'
13550
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13551
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13552
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13553
 
 
13554
 
fi
13555
 
 
13556
 
     LIBS="$ga_save_LIBS"
13557
 
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_blas_ok" >&5
13558
 
$as_echo "$ga_blas_ok" >&6; }
13559
 
fi
13560
 
 
13561
 
# SGIMATH library
13562
 
if test $ga_blas_ok = no; then :
13563
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BLAS in SGIMATH library" >&5
13564
 
$as_echo_n "checking for BLAS in SGIMATH library... " >&6; }
13565
 
     # add -lcomplib.sgimath to BLAS_LIBS if missing from LIBS
13566
 
     case $LIBS in #(
13567
 
  *complib.sgimath*) :
13568
 
     ;; #(
13569
 
  *) :
13570
 
    BLAS_LIBS="-lcomplib.sgimath" ;;
13571
 
esac
13572
 
     LIBS="$BLAS_LIBS $LIBS"
13573
 
 
13574
 
if test "x$enable_f77" = xno; then :
13575
 
  ac_ext=c
13576
 
ac_cpp='$CPP $CPPFLAGS'
13577
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13578
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13579
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13580
 
 
13581
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13582
 
/* end confdefs.h.  */
13583
 
#ifdef __cplusplus
13584
 
extern "C" {
13585
 
#endif
13586
 
char cgemm ();
13587
 
char dgemm ();
13588
 
char sgemm ();
13589
 
char zgemm ();
13590
 
#ifdef __cplusplus
13591
 
}
13592
 
#endif
13593
 
 
13594
 
#ifdef F77_DUMMY_MAIN
13595
 
 
13596
 
#  ifdef __cplusplus
13597
 
     extern "C"
13598
 
#  endif
13599
 
   int F77_DUMMY_MAIN() { return 1; }
13600
 
 
13601
 
#endif
13602
 
int
13603
 
main ()
13604
 
{
13605
 
char cresult =  cgemm ();
13606
 
char dresult =  dgemm ();
13607
 
char sresult =  sgemm ();
13608
 
char zresult =  zgemm ();
13609
 
 
13610
 
  ;
13611
 
  return 0;
13612
 
}
13613
 
_ACEOF
13614
 
 
13615
 
    if ac_fn_c_try_link "$LINENO"; then :
13616
 
  ga_blas_ok=yes
13617
 
else
13618
 
  BLAS_LIBS=
13619
 
fi
13620
 
rm -f core conftest.err conftest.$ac_objext \
13621
 
    conftest$ac_exeext
13622
 
    ac_ext=c
13623
 
ac_cpp='$CPP $CPPFLAGS'
13624
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13625
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13626
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13627
 
 
13628
 
else
13629
 
  ac_ext=f
13630
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13631
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13632
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13633
 
 
13634
 
    cat > conftest.$ac_ext <<_ACEOF
13635
 
      program main
13636
 
      implicit none
13637
 
      INTEGER M, N, K, LDA, LDB, LDC
13638
 
      COMPLEX CA(20,40), CB(20,30), CC(40,30), Calpha, Cbeta
13639
 
      DOUBLE COMPLEX ZA(20,40), ZB(20,30), ZC(40,30), Zalpha, Zbeta
13640
 
      REAL SA(20,40), SB(20,30), SC(40,30), Salpha, Sbeta
13641
 
      DOUBLE PRECISION DA(20,40), DB(20,30), DC(40,30), Dalpha, Dbeta
13642
 
      external CGEMM
13643
 
      external ZGEMM
13644
 
      external SGEMM
13645
 
      external DGEMM
13646
 
      M = 10
13647
 
      N = 20
13648
 
      K = 15
13649
 
      LDA = 20
13650
 
      LDB = 20
13651
 
      LDC = 40
13652
 
      Calpha = 2.0
13653
 
      Cbeta = 2.0
13654
 
      Zalpha = 2.0
13655
 
      Zbeta = 2.0
13656
 
      Salpha = 2.0
13657
 
      Sbeta = 2.0
13658
 
      Dalpha = 2.0
13659
 
      Dbeta = 2.0
13660
 
      CALL CGEMM ('T','N',M,N,K,Calpha,CA,LDA,CB,LDB,Cbeta,CC,LDC)
13661
 
      CALL ZGEMM ('T','N',M,N,K,Zalpha,ZA,LDA,ZB,LDB,Zbeta,ZC,LDC)
13662
 
      CALL SGEMM ('T','N',M,N,K,Salpha,SA,LDA,SB,LDB,Sbeta,SC,LDC)
13663
 
      CALL DGEMM ('T','N',M,N,K,Dalpha,DA,LDA,DB,LDB,Dbeta,DC,LDC)
13664
 
      end
13665
 
_ACEOF
13666
 
 
13667
 
    if ac_fn_f77_try_link "$LINENO"; then :
13668
 
  ga_blas_ok=yes
13669
 
else
13670
 
  BLAS_LIBS=
13671
 
fi
13672
 
rm -f core conftest.err conftest.$ac_objext \
13673
 
    conftest$ac_exeext
13674
 
    ac_ext=c
13675
 
ac_cpp='$CPP $CPPFLAGS'
13676
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13677
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13678
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13679
 
 
13680
 
fi
13681
 
 
13682
 
     LIBS="$ga_save_LIBS"
13683
 
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_blas_ok" >&5
13684
 
$as_echo "$ga_blas_ok" >&6; }
13685
 
fi
13686
 
 
13687
 
# IBM ESSL library (requires generic BLAS lib, too)
13688
 
if test $ga_blas_ok = no; then :
13689
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BLAS in IBM ESSL library" >&5
13690
 
$as_echo_n "checking for BLAS in IBM ESSL library... " >&6; }
13691
 
     # add -lessl to BLAS_LIBS if missing from LIBS
13692
 
     case $LIBS in #(
13693
 
  *essl*) :
13694
 
     ;; #(
13695
 
  *) :
13696
 
    BLAS_LIBS="-lessl" ;;
13697
 
esac
13698
 
     # add -lblas to BLAS_LIBS if missing from LIBS
13699
 
     case $LIBS in #(
13700
 
  *blas*) :
13701
 
     ;; #(
13702
 
  *) :
13703
 
    BLAS_LIBS="$BLAS_LIBS -lblas" ;;
13704
 
esac
13705
 
     LIBS="$BLAS_LIBS $LIBS"
13706
 
 
13707
 
if test "x$enable_f77" = xno; then :
13708
 
  ac_ext=c
13709
 
ac_cpp='$CPP $CPPFLAGS'
13710
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13711
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13712
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13713
 
 
13714
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13715
 
/* end confdefs.h.  */
13716
 
#ifdef __cplusplus
13717
 
extern "C" {
13718
 
#endif
13719
 
char cgemm ();
13720
 
char dgemm ();
13721
 
char sgemm ();
13722
 
char zgemm ();
13723
 
#ifdef __cplusplus
13724
 
}
13725
 
#endif
13726
 
 
13727
 
#ifdef F77_DUMMY_MAIN
13728
 
 
13729
 
#  ifdef __cplusplus
13730
 
     extern "C"
13731
 
#  endif
13732
 
   int F77_DUMMY_MAIN() { return 1; }
13733
 
 
13734
 
#endif
13735
 
int
13736
 
main ()
13737
 
{
13738
 
char cresult =  cgemm ();
13739
 
char dresult =  dgemm ();
13740
 
char sresult =  sgemm ();
13741
 
char zresult =  zgemm ();
13742
 
 
13743
 
  ;
13744
 
  return 0;
13745
 
}
13746
 
_ACEOF
13747
 
 
13748
 
    if ac_fn_c_try_link "$LINENO"; then :
13749
 
  ga_blas_ok=yes
13750
 
else
13751
 
  BLAS_LIBS=
13752
 
fi
13753
 
rm -f core conftest.err conftest.$ac_objext \
13754
 
    conftest$ac_exeext
13755
 
    ac_ext=c
13756
 
ac_cpp='$CPP $CPPFLAGS'
13757
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13758
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13759
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13760
 
 
13761
 
else
13762
 
  ac_ext=f
13763
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13764
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13765
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13766
 
 
13767
 
    cat > conftest.$ac_ext <<_ACEOF
13768
 
      program main
13769
 
      implicit none
13770
 
      INTEGER M, N, K, LDA, LDB, LDC
13771
 
      COMPLEX CA(20,40), CB(20,30), CC(40,30), Calpha, Cbeta
13772
 
      DOUBLE COMPLEX ZA(20,40), ZB(20,30), ZC(40,30), Zalpha, Zbeta
13773
 
      REAL SA(20,40), SB(20,30), SC(40,30), Salpha, Sbeta
13774
 
      DOUBLE PRECISION DA(20,40), DB(20,30), DC(40,30), Dalpha, Dbeta
13775
 
      external CGEMM
13776
 
      external ZGEMM
13777
 
      external SGEMM
13778
 
      external DGEMM
13779
 
      M = 10
13780
 
      N = 20
13781
 
      K = 15
13782
 
      LDA = 20
13783
 
      LDB = 20
13784
 
      LDC = 40
13785
 
      Calpha = 2.0
13786
 
      Cbeta = 2.0
13787
 
      Zalpha = 2.0
13788
 
      Zbeta = 2.0
13789
 
      Salpha = 2.0
13790
 
      Sbeta = 2.0
13791
 
      Dalpha = 2.0
13792
 
      Dbeta = 2.0
13793
 
      CALL CGEMM ('T','N',M,N,K,Calpha,CA,LDA,CB,LDB,Cbeta,CC,LDC)
13794
 
      CALL ZGEMM ('T','N',M,N,K,Zalpha,ZA,LDA,ZB,LDB,Zbeta,ZC,LDC)
13795
 
      CALL SGEMM ('T','N',M,N,K,Salpha,SA,LDA,SB,LDB,Sbeta,SC,LDC)
13796
 
      CALL DGEMM ('T','N',M,N,K,Dalpha,DA,LDA,DB,LDB,Dbeta,DC,LDC)
13797
 
      end
13798
 
_ACEOF
13799
 
 
13800
 
    if ac_fn_f77_try_link "$LINENO"; then :
13801
 
  ga_blas_ok=yes
13802
 
else
13803
 
  BLAS_LIBS=
13804
 
fi
13805
 
rm -f core conftest.err conftest.$ac_objext \
13806
 
    conftest$ac_exeext
13807
 
    ac_ext=c
13808
 
ac_cpp='$CPP $CPPFLAGS'
13809
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13810
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13811
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13812
 
 
13813
 
fi
13814
 
 
13815
 
     LIBS="$ga_save_LIBS"
13816
 
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_blas_ok" >&5
13817
 
$as_echo "$ga_blas_ok" >&6; }
13818
 
fi
13819
 
 
13820
 
# Generic BLAS library
13821
 
if test $ga_blas_ok = no; then :
13822
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BLAS in generic library" >&5
13823
 
$as_echo_n "checking for BLAS in generic library... " >&6; }
13824
 
     BLAS_LIBS="-lblas"
13825
 
     LIBS="$BLAS_LIBS $LIBS"
13826
 
 
13827
 
if test "x$enable_f77" = xno; then :
13828
 
  ac_ext=c
13829
 
ac_cpp='$CPP $CPPFLAGS'
13830
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13831
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13832
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13833
 
 
13834
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13835
 
/* end confdefs.h.  */
13836
 
#ifdef __cplusplus
13837
 
extern "C" {
13838
 
#endif
13839
 
char cgemm ();
13840
 
char dgemm ();
13841
 
char sgemm ();
13842
 
char zgemm ();
13843
 
#ifdef __cplusplus
13844
 
}
13845
 
#endif
13846
 
 
13847
 
#ifdef F77_DUMMY_MAIN
13848
 
 
13849
 
#  ifdef __cplusplus
13850
 
     extern "C"
13851
 
#  endif
13852
 
   int F77_DUMMY_MAIN() { return 1; }
13853
 
 
13854
 
#endif
13855
 
int
13856
 
main ()
13857
 
{
13858
 
char cresult =  cgemm ();
13859
 
char dresult =  dgemm ();
13860
 
char sresult =  sgemm ();
13861
 
char zresult =  zgemm ();
13862
 
 
13863
 
  ;
13864
 
  return 0;
13865
 
}
13866
 
_ACEOF
13867
 
 
13868
 
    if ac_fn_c_try_link "$LINENO"; then :
13869
 
  ga_blas_ok=yes
13870
 
else
13871
 
  BLAS_LIBS=
13872
 
fi
13873
 
rm -f core conftest.err conftest.$ac_objext \
13874
 
    conftest$ac_exeext
13875
 
    ac_ext=c
13876
 
ac_cpp='$CPP $CPPFLAGS'
13877
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13878
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13879
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13880
 
 
13881
 
else
13882
 
  ac_ext=f
13883
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13884
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13885
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13886
 
 
13887
 
    cat > conftest.$ac_ext <<_ACEOF
13888
 
      program main
13889
 
      implicit none
13890
 
      INTEGER M, N, K, LDA, LDB, LDC
13891
 
      COMPLEX CA(20,40), CB(20,30), CC(40,30), Calpha, Cbeta
13892
 
      DOUBLE COMPLEX ZA(20,40), ZB(20,30), ZC(40,30), Zalpha, Zbeta
13893
 
      REAL SA(20,40), SB(20,30), SC(40,30), Salpha, Sbeta
13894
 
      DOUBLE PRECISION DA(20,40), DB(20,30), DC(40,30), Dalpha, Dbeta
13895
 
      external CGEMM
13896
 
      external ZGEMM
13897
 
      external SGEMM
13898
 
      external DGEMM
13899
 
      M = 10
13900
 
      N = 20
13901
 
      K = 15
13902
 
      LDA = 20
13903
 
      LDB = 20
13904
 
      LDC = 40
13905
 
      Calpha = 2.0
13906
 
      Cbeta = 2.0
13907
 
      Zalpha = 2.0
13908
 
      Zbeta = 2.0
13909
 
      Salpha = 2.0
13910
 
      Sbeta = 2.0
13911
 
      Dalpha = 2.0
13912
 
      Dbeta = 2.0
13913
 
      CALL CGEMM ('T','N',M,N,K,Calpha,CA,LDA,CB,LDB,Cbeta,CC,LDC)
13914
 
      CALL ZGEMM ('T','N',M,N,K,Zalpha,ZA,LDA,ZB,LDB,Zbeta,ZC,LDC)
13915
 
      CALL SGEMM ('T','N',M,N,K,Salpha,SA,LDA,SB,LDB,Sbeta,SC,LDC)
13916
 
      CALL DGEMM ('T','N',M,N,K,Dalpha,DA,LDA,DB,LDB,Dbeta,DC,LDC)
13917
 
      end
13918
 
_ACEOF
13919
 
 
13920
 
    if ac_fn_f77_try_link "$LINENO"; then :
13921
 
  ga_blas_ok=yes
13922
 
else
13923
 
  BLAS_LIBS=
13924
 
fi
13925
 
rm -f core conftest.err conftest.$ac_objext \
13926
 
    conftest$ac_exeext
13927
 
    ac_ext=c
13928
 
ac_cpp='$CPP $CPPFLAGS'
13929
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13930
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13931
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13932
 
 
13933
 
fi
13934
 
 
13935
 
     LIBS="$ga_save_LIBS"
13936
 
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_blas_ok" >&5
13937
 
$as_echo "$ga_blas_ok" >&6; }
13938
 
fi
13939
 
 
13940
 
CPPFLAGS="$ga_save_CPPFLAGS"
13941
 
LDFLAGS="$ga_save_LDFLAGS"
13942
 
 
13943
 
 
13944
 
 
13945
 
 
13946
 
 
13947
 
# Tests are complete. Execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
13948
 
if test $ga_blas_ok = yes; then :
13949
 
  have_blas=1
13950
 
 
13951
 
else
13952
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: BLAS library not found, using internal BLAS" >&5
13953
 
$as_echo "$as_me: WARNING: BLAS library not found, using internal BLAS" >&2;}
13954
 
     blas_size=$ga_cv_f77_integer_size # reset blas integer size to desired
13955
 
     have_blas=0
13956
 
 
13957
 
fi
13958
 
 
13959
 
cat >>confdefs.h <<_ACEOF
13960
 
#define HAVE_BLAS $have_blas
13961
 
_ACEOF
13962
 
 
13963
 
 
13964
 
cat >>confdefs.h <<_ACEOF
13965
 
#define BLAS_SIZE $blas_size
13966
 
_ACEOF
13967
 
 
13968
 
 if test $ga_blas_ok = yes; then
13969
 
  HAVE_BLAS_TRUE=
13970
 
  HAVE_BLAS_FALSE='#'
13971
 
else
13972
 
  HAVE_BLAS_TRUE='#'
13973
 
  HAVE_BLAS_FALSE=
13974
 
fi
13975
 
 
13976
 
 
13977
 
 
13978
 
 
13979
 
# Check whether --with-lapack was given.
13980
 
if test "${with_lapack+set}" = set; then :
13981
 
  withval=$with_lapack;
13982
 
fi
13983
 
 
13984
 
 
13985
 
ga_lapack_ok=no
13986
 
if test "x$with_lapack" = xno; then :
13987
 
  ga_lapack_ok=skip
13988
 
fi
13989
 
 
13990
 
# Parse --with-lapack argument. Clear previous values first.
13991
 
LAPACK_LIBS=
13992
 
LAPACK_LDFLAGS=
13993
 
LAPACK_CPPFLAGS=
13994
 
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ga_arg_parse_sizeof_voidp"        ""; then :
13995
 
 
13996
 
fi
13997
 
 
13998
 
for arg in $with_lapack ; do
13999
 
    case $arg in #(
14000
 
  yes) :
14001
 
     ;; #(
14002
 
  no) :
14003
 
     ;; #(
14004
 
  -l*) :
14005
 
    LAPACK_LIBS="$LAPACK_LIBS $arg" ;; #(
14006
 
  -L*) :
14007
 
    LAPACK_LDFLAGS="$LAPACK_LDFLAGS $arg" ;; #(
14008
 
  -WL*) :
14009
 
    LAPACK_LDFLAGS="$LAPACK_LDFLAGS $arg" ;; #(
14010
 
  -Wl*) :
14011
 
    LAPACK_LDFLAGS="$LAPACK_LDFLAGS $arg" ;; #(
14012
 
  -I*) :
14013
 
    LAPACK_CPPFLAGS="$LAPACK_CPPFLAGS $arg" ;; #(
14014
 
  *.a) :
14015
 
    LAPACK_LIBS="$LAPACK_LIBS $arg" ;; #(
14016
 
  *.so) :
14017
 
    LAPACK_LIBS="$LAPACK_LIBS $arg" ;; #(
14018
 
  *lib) :
14019
 
    if test -d $arg; then :
14020
 
  LAPACK_LDFLAGS="$LAPACK_LDFLAGS -L$arg"
14021
 
else
14022
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_lapack not parsed" >&5
14023
 
$as_echo "$as_me: WARNING: $arg of with_lapack not parsed" >&2;}
14024
 
fi ;; #(
14025
 
  *lib64) :
14026
 
    if test -d $arg; then :
14027
 
  LAPACK_LDFLAGS="$LAPACK_LDFLAGS -L$arg"
14028
 
else
14029
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_lapack not parsed" >&5
14030
 
$as_echo "$as_me: WARNING: $arg of with_lapack not parsed" >&2;}
14031
 
fi ;; #(
14032
 
  *include) :
14033
 
    if test -d $arg; then :
14034
 
  LAPACK_CPPFLAGS="$LAPACK_CPPFLAGS -I$arg"
14035
 
else
14036
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_lapack not parsed" >&5
14037
 
$as_echo "$as_me: WARNING: $arg of with_lapack not parsed" >&2;}
14038
 
fi ;; #(
14039
 
  *include64) :
14040
 
    if test -d $arg; then :
14041
 
  LAPACK_CPPFLAGS="$LAPACK_CPPFLAGS -I$arg"
14042
 
else
14043
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_lapack not parsed" >&5
14044
 
$as_echo "$as_me: WARNING: $arg of with_lapack not parsed" >&2;}
14045
 
fi ;; #(
14046
 
  *) :
14047
 
    ga_arg_parse_ok=no ;;
14048
 
esac
14049
 
# $arg didn't fit the most common cases
14050
 
# check for subdirectories e.g. lib,include
14051
 
    if test "x$ga_arg_parse_ok" = xno; then :
14052
 
  if test "x$ga_arg_parse_sizeof_voidp" = x8; then :
14053
 
  if test -d $arg/lib64; then :
14054
 
  LAPACK_LDFLAGS="$LAPACK_LDFLAGS -L$arg/lib64"; ga_arg_parse_ok=yes
14055
 
elif test -d $arg/lib; then :
14056
 
  LAPACK_LDFLAGS="$LAPACK_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
14057
 
fi
14058
 
             if test -d $arg/include64; then :
14059
 
  LAPACK_CPPFLAGS="$LAPACK_CPPFLAGS -I$arg/include64"; ga_arg_parse_ok=yes
14060
 
elif test -d $arg/include; then :
14061
 
  LAPACK_CPPFLAGS="$LAPACK_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
14062
 
fi
14063
 
else
14064
 
  if test -d $arg/lib; then :
14065
 
  LAPACK_LDFLAGS="$LAPACK_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
14066
 
fi
14067
 
             if test -d $arg/include; then :
14068
 
  LAPACK_CPPFLAGS="$LAPACK_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
14069
 
fi
14070
 
fi
14071
 
fi
14072
 
# $arg still unknown, look for "lib" and "include" anywhere...
14073
 
    if test "x$ga_arg_parse_ok" = xno; then :
14074
 
  case $arg in #(
14075
 
  *lib*) :
14076
 
    if test -d $arg; then :
14077
 
  LAPACK_LDFLAGS="$LAPACK_LDFLAGS -L$arg"; ga_arg_parse_ok=yes
14078
 
fi ;; #(
14079
 
  *include*) :
14080
 
    if test -d $arg; then :
14081
 
  LAPACK_CPPFLAGS="$LAPACK_CPPFLAGS -I$arg"; ga_arg_parse_ok=yes
14082
 
fi ;; #(
14083
 
  *) :
14084
 
     ;;
14085
 
esac
14086
 
fi
14087
 
# warn user that $arg fell through
14088
 
     if test "x$ga_arg_parse_ok" = xno; then :
14089
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_lapack not parsed" >&5
14090
 
$as_echo "$as_me: WARNING: $arg of with_lapack not parsed" >&2;}
14091
 
fi
14092
 
done
14093
 
 
14094
 
# Get fortran linker name of LAPACK function to check for.
14095
 
ac_ext=f
14096
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14097
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14098
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14099
 
case $ac_cv_f77_mangling in
14100
 
  upper*) ac_val="DGETRS" ;;
14101
 
  lower*) ac_val="dgetrs" ;;
14102
 
  *)      ac_val="unknown" ;;
14103
 
esac
14104
 
case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
14105
 
 
14106
 
dgetrs="$ac_val"
14107
 
 
14108
 
ac_ext=c
14109
 
ac_cpp='$CPP $CPPFLAGS'
14110
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14111
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14112
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14113
 
 
14114
 
 
14115
 
ga_save_LIBS="$LIBS"
14116
 
ga_save_LDFLAGS="$LDFLAGS"
14117
 
ga_save_CPPFLAGS="$CPPFLAGS"
14118
 
 
14119
 
LDFLAGS="$LAPACK_LDFLAGS $BLAS_LDFLAGS $LDFLAGS"
14120
 
CPPFLAGS="$LAPACK_CPPFLAGS $BLAS_CPPFLAGS $CPPFLAGS"
14121
 
 
14122
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: Attempting to locate LAPACK library" >&5
14123
 
$as_echo "$as_me: Attempting to locate LAPACK library" >&6;}
14124
 
 
14125
 
# We cannot use LAPACK if BLAS is not found
14126
 
if test $ga_blas_ok != yes; then :
14127
 
  ga_lapack_ok=noblas
14128
 
fi
14129
 
 
14130
 
# First, check environment/command-line variables.
14131
 
# If failed, erase LAPACK_LIBS but maintain LAPACK_LDFLAGS and LAPACK_CPPFLAGS.
14132
 
if test $ga_lapack_ok = no; then :
14133
 
  LIBS="$LAPACK_LIBS $BLAS_LIBS $LIBS"
14134
 
     if test "x$enable_f77" = xno; then :
14135
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C LAPACK with user-supplied flags" >&5
14136
 
$as_echo_n "checking for C LAPACK with user-supplied flags... " >&6; }
14137
 
         ac_ext=c
14138
 
ac_cpp='$CPP $CPPFLAGS'
14139
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14140
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14141
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14142
 
 
14143
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14144
 
/* end confdefs.h.  */
14145
 
#ifdef __cplusplus
14146
 
extern "C" {
14147
 
#endif
14148
 
char dgetrs ();
14149
 
#ifdef __cplusplus
14150
 
}
14151
 
#endif
14152
 
 
14153
 
#ifdef F77_DUMMY_MAIN
14154
 
 
14155
 
#  ifdef __cplusplus
14156
 
     extern "C"
14157
 
#  endif
14158
 
   int F77_DUMMY_MAIN() { return 1; }
14159
 
 
14160
 
#endif
14161
 
int
14162
 
main ()
14163
 
{
14164
 
char result = dgetrs ();
14165
 
 
14166
 
  ;
14167
 
  return 0;
14168
 
}
14169
 
_ACEOF
14170
 
 
14171
 
         if ac_fn_c_try_link "$LINENO"; then :
14172
 
  ga_lapack_ok=yes
14173
 
else
14174
 
  LAPACK_LIBS=
14175
 
fi
14176
 
rm -f core conftest.err conftest.$ac_objext \
14177
 
    conftest$ac_exeext
14178
 
         ac_ext=c
14179
 
ac_cpp='$CPP $CPPFLAGS'
14180
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14181
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14182
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14183
 
 
14184
 
else
14185
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 LAPACK with user-supplied flags" >&5
14186
 
$as_echo_n "checking for Fortran 77 LAPACK with user-supplied flags... " >&6; }
14187
 
         ac_ext=f
14188
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14189
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14190
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14191
 
 
14192
 
         cat > conftest.$ac_ext <<_ACEOF
14193
 
      program main
14194
 
      implicit none
14195
 
      external DGETRS
14196
 
      CALL DGETRS ()
14197
 
      end
14198
 
_ACEOF
14199
 
 
14200
 
         if ac_fn_f77_try_link "$LINENO"; then :
14201
 
  ga_lapack_ok=yes
14202
 
else
14203
 
  LAPACK_LIBS=
14204
 
fi
14205
 
rm -f core conftest.err conftest.$ac_objext \
14206
 
    conftest$ac_exeext
14207
 
         ac_ext=c
14208
 
ac_cpp='$CPP $CPPFLAGS'
14209
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14210
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14211
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14212
 
 
14213
 
fi
14214
 
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_lapack_ok" >&5
14215
 
$as_echo "$ga_lapack_ok" >&6; }
14216
 
     LIBS="$ga_save_LIBS"
14217
 
fi
14218
 
 
14219
 
# Generic LAPACK library?
14220
 
for lib in lapack lapack_rs6k; do
14221
 
if test $ga_lapack_ok = no; then :
14222
 
  ga_save_LIBS="$LIBS"; LIBS="$BLAS_LIBS $LIBS"
14223
 
     as_ac_Lib=`$as_echo "ac_cv_lib_$lib''_$dgetrs" | $as_tr_sh`
14224
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dgetrs in -l$lib" >&5
14225
 
$as_echo_n "checking for $dgetrs in -l$lib... " >&6; }
14226
 
if eval \${$as_ac_Lib+:} false; then :
14227
 
  $as_echo_n "(cached) " >&6
14228
 
else
14229
 
  ac_check_lib_save_LIBS=$LIBS
14230
 
LIBS="-l$lib $FLIBS $LIBS"
14231
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14232
 
/* end confdefs.h.  */
14233
 
 
14234
 
/* Override any GCC internal prototype to avoid an error.
14235
 
   Use char because int might match the return type of a GCC
14236
 
   builtin and then its argument prototype would still apply.  */
14237
 
#ifdef __cplusplus
14238
 
extern "C"
14239
 
#endif
14240
 
char $dgetrs ();
14241
 
#ifdef F77_DUMMY_MAIN
14242
 
 
14243
 
#  ifdef __cplusplus
14244
 
     extern "C"
14245
 
#  endif
14246
 
   int F77_DUMMY_MAIN() { return 1; }
14247
 
 
14248
 
#endif
14249
 
int
14250
 
main ()
14251
 
{
14252
 
return $dgetrs ();
14253
 
  ;
14254
 
  return 0;
14255
 
}
14256
 
_ACEOF
14257
 
if ac_fn_c_try_link "$LINENO"; then :
14258
 
  eval "$as_ac_Lib=yes"
14259
 
else
14260
 
  eval "$as_ac_Lib=no"
14261
 
fi
14262
 
rm -f core conftest.err conftest.$ac_objext \
14263
 
    conftest$ac_exeext conftest.$ac_ext
14264
 
LIBS=$ac_check_lib_save_LIBS
14265
 
fi
14266
 
eval ac_res=\$$as_ac_Lib
14267
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14268
 
$as_echo "$ac_res" >&6; }
14269
 
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
14270
 
  ga_lapack_ok=yes; LAPACK_LIBS="-l$lib"
14271
 
fi
14272
 
 
14273
 
     LIBS="$ga_save_LIBS"
14274
 
fi
14275
 
done
14276
 
 
14277
 
CPPFLAGS="$ga_save_CPPFLAGS"
14278
 
LDFLAGS="$ga_save_LDFLAGS"
14279
 
 
14280
 
 
14281
 
 
14282
 
 
14283
 
 
14284
 
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14285
 
if test $ga_lapack_ok = yes; then :
14286
 
  have_lapack=1
14287
 
 
14288
 
else
14289
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LAPACK library not found, using internal LAPACK" >&5
14290
 
$as_echo "$as_me: WARNING: LAPACK library not found, using internal LAPACK" >&2;}
14291
 
     have_lapack=0
14292
 
 
14293
 
fi
14294
 
 
14295
 
cat >>confdefs.h <<_ACEOF
14296
 
#define HAVE_LAPACK $have_lapack
14297
 
_ACEOF
14298
 
 
14299
 
 if test $ga_lapack_ok = yes; then
14300
 
  HAVE_LAPACK_TRUE=
14301
 
  HAVE_LAPACK_FALSE='#'
14302
 
else
14303
 
  HAVE_LAPACK_TRUE='#'
14304
 
  HAVE_LAPACK_FALSE=
14305
 
fi
14306
 
 
14307
 
 
14308
 
 
14309
 
scalapack_size=4
14310
 
 
14311
 
# Check whether --with-scalapack was given.
14312
 
if test "${with_scalapack+set}" = set; then :
14313
 
  withval=$with_scalapack; scalapack_size=4
14314
 
fi
14315
 
 
14316
 
 
14317
 
# Check whether --with-scalapack8 was given.
14318
 
if test "${with_scalapack8+set}" = set; then :
14319
 
  withval=$with_scalapack8; scalapack_size=8; with_scalapack="$with_scalapack8"
14320
 
fi
14321
 
 
14322
 
 
14323
 
ga_scalapack_ok=no
14324
 
if test "x$with_scalapack" = xno; then :
14325
 
  ga_scalapack_ok=skip
14326
 
fi
14327
 
 
14328
 
# Parse --with-scalapack argument. Clear previous values first.
14329
 
SCALAPACK_LIBS=
14330
 
SCALAPACK_LDFLAGS=
14331
 
SCALAPACK_CPPFLAGS=
14332
 
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ga_arg_parse_sizeof_voidp"        ""; then :
14333
 
 
14334
 
fi
14335
 
 
14336
 
for arg in $with_scalapack ; do
14337
 
    case $arg in #(
14338
 
  yes) :
14339
 
     ;; #(
14340
 
  no) :
14341
 
     ;; #(
14342
 
  -l*) :
14343
 
    SCALAPACK_LIBS="$SCALAPACK_LIBS $arg" ;; #(
14344
 
  -L*) :
14345
 
    SCALAPACK_LDFLAGS="$SCALAPACK_LDFLAGS $arg" ;; #(
14346
 
  -WL*) :
14347
 
    SCALAPACK_LDFLAGS="$SCALAPACK_LDFLAGS $arg" ;; #(
14348
 
  -Wl*) :
14349
 
    SCALAPACK_LDFLAGS="$SCALAPACK_LDFLAGS $arg" ;; #(
14350
 
  -I*) :
14351
 
    SCALAPACK_CPPFLAGS="$SCALAPACK_CPPFLAGS $arg" ;; #(
14352
 
  *.a) :
14353
 
    SCALAPACK_LIBS="$SCALAPACK_LIBS $arg" ;; #(
14354
 
  *.so) :
14355
 
    SCALAPACK_LIBS="$SCALAPACK_LIBS $arg" ;; #(
14356
 
  *lib) :
14357
 
    if test -d $arg; then :
14358
 
  SCALAPACK_LDFLAGS="$SCALAPACK_LDFLAGS -L$arg"
14359
 
else
14360
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_scalapack not parsed" >&5
14361
 
$as_echo "$as_me: WARNING: $arg of with_scalapack not parsed" >&2;}
14362
 
fi ;; #(
14363
 
  *lib64) :
14364
 
    if test -d $arg; then :
14365
 
  SCALAPACK_LDFLAGS="$SCALAPACK_LDFLAGS -L$arg"
14366
 
else
14367
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_scalapack not parsed" >&5
14368
 
$as_echo "$as_me: WARNING: $arg of with_scalapack not parsed" >&2;}
14369
 
fi ;; #(
14370
 
  *include) :
14371
 
    if test -d $arg; then :
14372
 
  SCALAPACK_CPPFLAGS="$SCALAPACK_CPPFLAGS -I$arg"
14373
 
else
14374
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_scalapack not parsed" >&5
14375
 
$as_echo "$as_me: WARNING: $arg of with_scalapack not parsed" >&2;}
14376
 
fi ;; #(
14377
 
  *include64) :
14378
 
    if test -d $arg; then :
14379
 
  SCALAPACK_CPPFLAGS="$SCALAPACK_CPPFLAGS -I$arg"
14380
 
else
14381
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_scalapack not parsed" >&5
14382
 
$as_echo "$as_me: WARNING: $arg of with_scalapack not parsed" >&2;}
14383
 
fi ;; #(
14384
 
  *) :
14385
 
    ga_arg_parse_ok=no ;;
14386
 
esac
14387
 
# $arg didn't fit the most common cases
14388
 
# check for subdirectories e.g. lib,include
14389
 
    if test "x$ga_arg_parse_ok" = xno; then :
14390
 
  if test "x$ga_arg_parse_sizeof_voidp" = x8; then :
14391
 
  if test -d $arg/lib64; then :
14392
 
  SCALAPACK_LDFLAGS="$SCALAPACK_LDFLAGS -L$arg/lib64"; ga_arg_parse_ok=yes
14393
 
elif test -d $arg/lib; then :
14394
 
  SCALAPACK_LDFLAGS="$SCALAPACK_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
14395
 
fi
14396
 
             if test -d $arg/include64; then :
14397
 
  SCALAPACK_CPPFLAGS="$SCALAPACK_CPPFLAGS -I$arg/include64"; ga_arg_parse_ok=yes
14398
 
elif test -d $arg/include; then :
14399
 
  SCALAPACK_CPPFLAGS="$SCALAPACK_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
14400
 
fi
14401
 
else
14402
 
  if test -d $arg/lib; then :
14403
 
  SCALAPACK_LDFLAGS="$SCALAPACK_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
14404
 
fi
14405
 
             if test -d $arg/include; then :
14406
 
  SCALAPACK_CPPFLAGS="$SCALAPACK_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
14407
 
fi
14408
 
fi
14409
 
fi
14410
 
# $arg still unknown, look for "lib" and "include" anywhere...
14411
 
    if test "x$ga_arg_parse_ok" = xno; then :
14412
 
  case $arg in #(
14413
 
  *lib*) :
14414
 
    if test -d $arg; then :
14415
 
  SCALAPACK_LDFLAGS="$SCALAPACK_LDFLAGS -L$arg"; ga_arg_parse_ok=yes
14416
 
fi ;; #(
14417
 
  *include*) :
14418
 
    if test -d $arg; then :
14419
 
  SCALAPACK_CPPFLAGS="$SCALAPACK_CPPFLAGS -I$arg"; ga_arg_parse_ok=yes
14420
 
fi ;; #(
14421
 
  *) :
14422
 
     ;;
14423
 
esac
14424
 
fi
14425
 
# warn user that $arg fell through
14426
 
     if test "x$ga_arg_parse_ok" = xno; then :
14427
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_scalapack not parsed" >&5
14428
 
$as_echo "$as_me: WARNING: $arg of with_scalapack not parsed" >&2;}
14429
 
fi
14430
 
done
14431
 
 
14432
 
# Get fortran linker name of ScaLAPACK function to check for.
14433
 
ac_ext=f
14434
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14435
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14436
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14437
 
case $ac_cv_f77_mangling in
14438
 
  upper*) ac_val="PDGETRS" ;;
14439
 
  lower*) ac_val="pdgetrs" ;;
14440
 
  *)      ac_val="unknown" ;;
14441
 
esac
14442
 
case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
14443
 
 
14444
 
pdgetrs="$ac_val"
14445
 
 
14446
 
ac_ext=c
14447
 
ac_cpp='$CPP $CPPFLAGS'
14448
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14449
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14450
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14451
 
 
14452
 
 
14453
 
ga_save_LIBS="$LIBS"
14454
 
ga_save_LDFLAGS="$LDFLAGS"
14455
 
ga_save_CPPFLAGS="$CPPFLAGS"
14456
 
 
14457
 
LDFLAGS="$LAPACK_LDFLAGS $BLAS_LDFLAGS $LDFLAGS"
14458
 
CPPFLAGS="$LAPACK_CPPFLAGS $BLAS_CPPFLAGS $CPPFLAGS"
14459
 
 
14460
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: Attempting to locate SCALAPACK library" >&5
14461
 
$as_echo "$as_me: Attempting to locate SCALAPACK library" >&6;}
14462
 
 
14463
 
# First, check environment/command-line variables.
14464
 
# If failed, erase SCALAPACK_LIBS but maintain SCALAPACK_LDFLAGS and
14465
 
# SCALAPACK_CPPFLAGS.
14466
 
if test $ga_scalapack_ok = no; then :
14467
 
  LIBS="$SCALAPACK_LIBS $LAPACK_LIBS $BLAS_LIBS $LIBS"
14468
 
     if test "x$enable_f77" = xno; then :
14469
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C SCALAPACK with user-supplied flags" >&5
14470
 
$as_echo_n "checking for C SCALAPACK with user-supplied flags... " >&6; }
14471
 
         ac_ext=c
14472
 
ac_cpp='$CPP $CPPFLAGS'
14473
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14474
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14475
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14476
 
 
14477
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14478
 
/* end confdefs.h.  */
14479
 
#ifdef __cplusplus
14480
 
extern "C" {
14481
 
#endif
14482
 
char pdgetrs ();
14483
 
#ifdef __cplusplus
14484
 
}
14485
 
#endif
14486
 
 
14487
 
#ifdef F77_DUMMY_MAIN
14488
 
 
14489
 
#  ifdef __cplusplus
14490
 
     extern "C"
14491
 
#  endif
14492
 
   int F77_DUMMY_MAIN() { return 1; }
14493
 
 
14494
 
#endif
14495
 
int
14496
 
main ()
14497
 
{
14498
 
char result = pdgetrs ();
14499
 
 
14500
 
  ;
14501
 
  return 0;
14502
 
}
14503
 
_ACEOF
14504
 
 
14505
 
         if ac_fn_c_try_link "$LINENO"; then :
14506
 
  ga_scalapack_ok=yes
14507
 
else
14508
 
  SCALAPACK_LIBS=
14509
 
fi
14510
 
rm -f core conftest.err conftest.$ac_objext \
14511
 
    conftest$ac_exeext
14512
 
         ac_ext=c
14513
 
ac_cpp='$CPP $CPPFLAGS'
14514
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14515
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14516
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14517
 
 
14518
 
else
14519
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 SCALAPACK with user-supplied flags" >&5
14520
 
$as_echo_n "checking for Fortran 77 SCALAPACK with user-supplied flags... " >&6; }
14521
 
         ac_ext=f
14522
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14523
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14524
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14525
 
 
14526
 
         cat > conftest.$ac_ext <<_ACEOF
14527
 
      program main
14528
 
      implicit none
14529
 
      external PDGETRS
14530
 
      CALL PDGETRS ()
14531
 
      end
14532
 
_ACEOF
14533
 
 
14534
 
         if ac_fn_f77_try_link "$LINENO"; then :
14535
 
  ga_scalapack_ok=yes
14536
 
else
14537
 
  SCALAPACK_LIBS=
14538
 
fi
14539
 
rm -f core conftest.err conftest.$ac_objext \
14540
 
    conftest$ac_exeext
14541
 
         ac_ext=c
14542
 
ac_cpp='$CPP $CPPFLAGS'
14543
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14544
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14545
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14546
 
 
14547
 
fi
14548
 
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_scalapack_ok" >&5
14549
 
$as_echo "$ga_scalapack_ok" >&6; }
14550
 
     LIBS="$ga_save_LIBS"
14551
 
fi
14552
 
 
14553
 
# Generic ScaLAPACK library?
14554
 
if test $ga_scalapack_ok = no; then :
14555
 
  as_ac_Lib=`$as_echo "ac_cv_lib_scalapack_$pdgetrs" | $as_tr_sh`
14556
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pdgetrs in -lscalapack" >&5
14557
 
$as_echo_n "checking for $pdgetrs in -lscalapack... " >&6; }
14558
 
if eval \${$as_ac_Lib+:} false; then :
14559
 
  $as_echo_n "(cached) " >&6
14560
 
else
14561
 
  ac_check_lib_save_LIBS=$LIBS
14562
 
LIBS="-lscalapack $FLIBS $LIBS"
14563
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14564
 
/* end confdefs.h.  */
14565
 
 
14566
 
/* Override any GCC internal prototype to avoid an error.
14567
 
   Use char because int might match the return type of a GCC
14568
 
   builtin and then its argument prototype would still apply.  */
14569
 
#ifdef __cplusplus
14570
 
extern "C"
14571
 
#endif
14572
 
char $pdgetrs ();
14573
 
#ifdef F77_DUMMY_MAIN
14574
 
 
14575
 
#  ifdef __cplusplus
14576
 
     extern "C"
14577
 
#  endif
14578
 
   int F77_DUMMY_MAIN() { return 1; }
14579
 
 
14580
 
#endif
14581
 
int
14582
 
main ()
14583
 
{
14584
 
return $pdgetrs ();
14585
 
  ;
14586
 
  return 0;
14587
 
}
14588
 
_ACEOF
14589
 
if ac_fn_c_try_link "$LINENO"; then :
14590
 
  eval "$as_ac_Lib=yes"
14591
 
else
14592
 
  eval "$as_ac_Lib=no"
14593
 
fi
14594
 
rm -f core conftest.err conftest.$ac_objext \
14595
 
    conftest$ac_exeext conftest.$ac_ext
14596
 
LIBS=$ac_check_lib_save_LIBS
14597
 
fi
14598
 
eval ac_res=\$$as_ac_Lib
14599
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14600
 
$as_echo "$ac_res" >&6; }
14601
 
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
14602
 
  ga_scalapack_ok=yes; SCALAPACK_LIBS="-lscalapack"
14603
 
fi
14604
 
 
14605
 
     LIBS="$ga_save_LIBS"
14606
 
fi
14607
 
 
14608
 
# TODO tests for PBLAS and BLACS to enable ScaLAPACK just in case all
14609
 
# packages are separate...
14610
 
 
14611
 
CPPFLAGS="$ga_save_CPPFLAGS"
14612
 
LDFLAGS="$ga_save_LDFLAGS"
14613
 
 
14614
 
 
14615
 
 
14616
 
 
14617
 
if test "x$scalapack_size" = x8; then :
14618
 
 
14619
 
$as_echo "#define SCALAPACK_I8 1" >>confdefs.h
14620
 
 
14621
 
fi
14622
 
 
14623
 
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14624
 
if test $ga_scalapack_ok = yes; then :
14625
 
  have_scalapack=1
14626
 
 
14627
 
else
14628
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ScaLAPACK library not found, interfaces won't be defined" >&5
14629
 
$as_echo "$as_me: WARNING: ScaLAPACK library not found, interfaces won't be defined" >&2;}
14630
 
     have_scalapack=0
14631
 
 
14632
 
fi
14633
 
 
14634
 
cat >>confdefs.h <<_ACEOF
14635
 
#define HAVE_SCALAPACK $have_scalapack
14636
 
_ACEOF
14637
 
 
14638
 
 if test $ga_scalapack_ok = yes; then
14639
 
  HAVE_SCALAPACK_TRUE=
14640
 
  HAVE_SCALAPACK_FALSE='#'
14641
 
else
14642
 
  HAVE_SCALAPACK_TRUE='#'
14643
 
  HAVE_SCALAPACK_FALSE=
14644
 
fi
14645
 
 
14646
 
 
14647
 
 
14648
 
###############################################################################
14649
 
# Libtool setup -- no compiler/linker tests after this
14650
 
###############################################################################
14651
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
14652
 
$as_echo "$as_me: " >&6;}
14653
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: Libtool setup" >&5
14654
 
$as_echo "$as_me: Libtool setup" >&6;}
14655
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
14656
 
$as_echo "$as_me: " >&6;}
14657
 
# temporarily restore unwrapped compilers
14658
 
# this works around a bug where libtool sadly relies on matching compiler
14659
 
# names in order to determine features (Fortran only, I think)
14660
 
# libtool doesn't recognize MPI compiler names, nor should it
14661
 
if test x$with_mpi_wrappers = xyes; then :
14662
 
 
14663
 
ga_mpi_unwrap_push_save_CC="$CC"
14664
 
ga_mpi_unwrap_push_save_CXX="$CXX"
14665
 
ga_mpi_unwrap_push_save_F77="$F77"
14666
 
ga_mpi_unwrap_push_save_FC="$FC"
14667
 
if test "x$ga_cv_mpic_naked"   != x; then :
14668
 
   CC="$ga_cv_mpic_naked"
14669
 
fi
14670
 
if test "x$ga_cv_mpicxx_naked" != x; then :
14671
 
  CXX="$ga_cv_mpicxx_naked"
14672
 
fi
14673
 
if test "x$ga_cv_mpif77_naked" != x; then :
14674
 
  F77="$ga_cv_mpif77_naked"
14675
 
fi
14676
 
if test "x$ga_cv_mpifc_naked"  != x; then :
14677
 
   FC="$ga_cv_mpifc_naked"
14678
 
fi
14679
 
 
14680
 
fi
14681
 
 
14682
 
 
14683
 
 
14684
 
 
14685
 
if test "x$AR" = x; then :
14686
 
  case $ga_cv_target in #(
14687
 
  NEC|NEC64) :
14688
 
    AR=sxar ;; #(
14689
 
  *) :
14690
 
     ;;
14691
 
esac
14692
 
fi
14693
 
if test "x$RANLIB" = x; then :
14694
 
  case $ga_cv_target in #(
14695
 
  NEC|NEC64) :
14696
 
    RANLIB=true ;; #(
14697
 
  *) :
14698
 
     ;;
14699
 
esac
14700
 
fi
14701
 
 
14702
 
case `pwd` in
14703
 
  *\ * | *\     *)
14704
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
14705
 
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
14706
 
esac
14707
 
 
14708
 
 
14709
 
 
14710
 
macro_version='2.4.2'
14711
 
macro_revision='1.3337'
14712
 
 
14713
 
 
14714
 
 
14715
 
 
14716
 
 
14717
 
 
14718
 
 
14719
 
 
14720
 
 
14721
 
 
14722
 
 
14723
 
 
14724
 
 
14725
 
ltmain="$ac_aux_dir/ltmain.sh"
14726
 
 
14727
 
# Backslashify metacharacters that are still active within
14728
 
# double-quoted strings.
14729
 
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
14730
 
 
14731
 
# Same as above, but do not quote variable references.
14732
 
double_quote_subst='s/\(["`\\]\)/\\\1/g'
14733
 
 
14734
 
# Sed substitution to delay expansion of an escaped shell variable in a
14735
 
# double_quote_subst'ed string.
14736
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14737
 
 
14738
 
# Sed substitution to delay expansion of an escaped single quote.
14739
 
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
14740
 
 
14741
 
# Sed substitution to avoid accidental globbing in evaled expressions
14742
 
no_glob_subst='s/\*/\\\*/g'
14743
 
 
14744
 
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14745
 
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
14746
 
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
14747
 
 
14748
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
14749
 
$as_echo_n "checking how to print strings... " >&6; }
14750
 
# Test print first, because it will be a builtin if present.
14751
 
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
14752
 
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
14753
 
  ECHO='print -r --'
14754
 
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
14755
 
  ECHO='printf %s\n'
14756
 
else
14757
 
  # Use this function as a fallback that always works.
14758
 
  func_fallback_echo ()
14759
 
  {
14760
 
    eval 'cat <<_LTECHO_EOF
14761
 
$1
14762
 
_LTECHO_EOF'
14763
 
  }
14764
 
  ECHO='func_fallback_echo'
14765
 
fi
14766
 
 
14767
 
# func_echo_all arg...
14768
 
# Invoke $ECHO with all args, space-separated.
14769
 
func_echo_all ()
14770
 
{
14771
 
    $ECHO ""
14772
 
}
14773
 
 
14774
 
case "$ECHO" in
14775
 
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
14776
 
$as_echo "printf" >&6; } ;;
14777
 
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
14778
 
$as_echo "print -r" >&6; } ;;
14779
 
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
14780
 
$as_echo "cat" >&6; } ;;
14781
 
esac
14782
 
 
14783
 
 
14784
 
 
14785
 
 
14786
 
 
14787
 
 
14788
 
 
14789
 
 
14790
 
 
14791
 
 
14792
 
 
14793
 
 
14794
 
 
14795
 
 
14796
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
14797
 
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
14798
 
if ${ac_cv_path_SED+:} false; then :
14799
 
  $as_echo_n "(cached) " >&6
14800
 
else
14801
 
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
14802
 
     for ac_i in 1 2 3 4 5 6 7; do
14803
 
       ac_script="$ac_script$as_nl$ac_script"
14804
 
     done
14805
 
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
14806
 
     { ac_script=; unset ac_script;}
14807
 
     if test -z "$SED"; then
14808
 
  ac_path_SED_found=false
14809
 
  # Loop through the user's path and test for each of PROGNAME-LIST
14810
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14811
 
for as_dir in $PATH
14812
 
do
14813
 
  IFS=$as_save_IFS
14814
 
  test -z "$as_dir" && as_dir=.
14815
 
    for ac_prog in sed gsed; do
14816
 
    for ac_exec_ext in '' $ac_executable_extensions; do
14817
 
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
14818
 
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
14819
 
# Check for GNU ac_path_SED and select it if it is found.
14820
 
  # Check for GNU $ac_path_SED
14821
 
case `"$ac_path_SED" --version 2>&1` in
14822
 
*GNU*)
14823
 
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
14824
 
*)
14825
 
  ac_count=0
14826
 
  $as_echo_n 0123456789 >"conftest.in"
14827
 
  while :
14828
 
  do
14829
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
14830
 
    mv "conftest.tmp" "conftest.in"
14831
 
    cp "conftest.in" "conftest.nl"
14832
 
    $as_echo '' >> "conftest.nl"
14833
 
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
14834
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14835
 
    as_fn_arith $ac_count + 1 && ac_count=$as_val
14836
 
    if test $ac_count -gt ${ac_path_SED_max-0}; then
14837
 
      # Best one so far, save it but keep looking for a better one
14838
 
      ac_cv_path_SED="$ac_path_SED"
14839
 
      ac_path_SED_max=$ac_count
14840
 
    fi
14841
 
    # 10*(2^10) chars as input seems more than enough
14842
 
    test $ac_count -gt 10 && break
14843
 
  done
14844
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14845
 
esac
14846
 
 
14847
 
      $ac_path_SED_found && break 3
14848
 
    done
14849
 
  done
14850
 
  done
14851
 
IFS=$as_save_IFS
14852
 
  if test -z "$ac_cv_path_SED"; then
14853
 
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
14854
 
  fi
14855
 
else
14856
 
  ac_cv_path_SED=$SED
14857
 
fi
14858
 
 
14859
 
fi
14860
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
14861
 
$as_echo "$ac_cv_path_SED" >&6; }
14862
 
 SED="$ac_cv_path_SED"
14863
 
  rm -f conftest.sed
14864
 
 
14865
 
test -z "$SED" && SED=sed
14866
 
Xsed="$SED -e 1s/^X//"
14867
 
 
14868
 
 
14869
 
 
14870
 
 
14871
 
 
14872
 
 
14873
 
 
14874
 
 
14875
 
 
14876
 
 
14877
 
 
14878
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
14879
 
$as_echo_n "checking for fgrep... " >&6; }
14880
 
if ${ac_cv_path_FGREP+:} false; then :
14881
 
  $as_echo_n "(cached) " >&6
14882
 
else
14883
 
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
14884
 
   then ac_cv_path_FGREP="$GREP -F"
14885
 
   else
14886
 
     if test -z "$FGREP"; then
14887
 
  ac_path_FGREP_found=false
14888
 
  # Loop through the user's path and test for each of PROGNAME-LIST
14889
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14890
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
14891
 
do
14892
 
  IFS=$as_save_IFS
14893
 
  test -z "$as_dir" && as_dir=.
14894
 
    for ac_prog in fgrep; do
14895
 
    for ac_exec_ext in '' $ac_executable_extensions; do
14896
 
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
14897
 
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
14898
 
# Check for GNU ac_path_FGREP and select it if it is found.
14899
 
  # Check for GNU $ac_path_FGREP
14900
 
case `"$ac_path_FGREP" --version 2>&1` in
14901
 
*GNU*)
14902
 
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
14903
 
*)
14904
 
  ac_count=0
14905
 
  $as_echo_n 0123456789 >"conftest.in"
14906
 
  while :
14907
 
  do
14908
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
14909
 
    mv "conftest.tmp" "conftest.in"
14910
 
    cp "conftest.in" "conftest.nl"
14911
 
    $as_echo 'FGREP' >> "conftest.nl"
14912
 
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
14913
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14914
 
    as_fn_arith $ac_count + 1 && ac_count=$as_val
14915
 
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
14916
 
      # Best one so far, save it but keep looking for a better one
14917
 
      ac_cv_path_FGREP="$ac_path_FGREP"
14918
 
      ac_path_FGREP_max=$ac_count
14919
 
    fi
14920
 
    # 10*(2^10) chars as input seems more than enough
14921
 
    test $ac_count -gt 10 && break
14922
 
  done
14923
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14924
 
esac
14925
 
 
14926
 
      $ac_path_FGREP_found && break 3
14927
 
    done
14928
 
  done
14929
 
  done
14930
 
IFS=$as_save_IFS
14931
 
  if test -z "$ac_cv_path_FGREP"; then
14932
 
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
14933
 
  fi
14934
 
else
14935
 
  ac_cv_path_FGREP=$FGREP
14936
 
fi
14937
 
 
14938
 
   fi
14939
 
fi
14940
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
14941
 
$as_echo "$ac_cv_path_FGREP" >&6; }
14942
 
 FGREP="$ac_cv_path_FGREP"
14943
 
 
14944
 
 
14945
 
test -z "$GREP" && GREP=grep
14946
 
 
14947
 
 
14948
 
 
14949
 
 
14950
 
 
14951
 
 
14952
 
 
14953
 
 
14954
 
 
14955
 
 
14956
 
 
14957
 
 
14958
 
 
14959
 
 
14960
 
 
14961
 
 
14962
 
 
14963
 
 
14964
 
 
14965
 
# Check whether --with-gnu-ld was given.
14966
 
if test "${with_gnu_ld+set}" = set; then :
14967
 
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14968
 
else
14969
 
  with_gnu_ld=no
14970
 
fi
14971
 
 
14972
 
ac_prog=ld
14973
 
if test "$GCC" = yes; then
14974
 
  # Check if gcc -print-prog-name=ld gives a path.
14975
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14976
 
$as_echo_n "checking for ld used by $CC... " >&6; }
14977
 
  case $host in
14978
 
  *-*-mingw*)
14979
 
    # gcc leaves a trailing carriage return which upsets mingw
14980
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14981
 
  *)
14982
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14983
 
  esac
14984
 
  case $ac_prog in
14985
 
    # Accept absolute paths.
14986
 
    [\\/]* | ?:[\\/]*)
14987
 
      re_direlt='/[^/][^/]*/\.\./'
14988
 
      # Canonicalize the pathname of ld
14989
 
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14990
 
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14991
 
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14992
 
      done
14993
 
      test -z "$LD" && LD="$ac_prog"
14994
 
      ;;
14995
 
  "")
14996
 
    # If it fails, then pretend we aren't using GCC.
14997
 
    ac_prog=ld
14998
 
    ;;
14999
 
  *)
15000
 
    # If it is relative, then search for the first ld in PATH.
15001
 
    with_gnu_ld=unknown
15002
 
    ;;
15003
 
  esac
15004
 
elif test "$with_gnu_ld" = yes; then
15005
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15006
 
$as_echo_n "checking for GNU ld... " >&6; }
15007
 
else
15008
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15009
 
$as_echo_n "checking for non-GNU ld... " >&6; }
15010
 
fi
15011
 
if ${lt_cv_path_LD+:} false; then :
15012
 
  $as_echo_n "(cached) " >&6
15013
 
else
15014
 
  if test -z "$LD"; then
15015
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15016
 
  for ac_dir in $PATH; do
15017
 
    IFS="$lt_save_ifs"
15018
 
    test -z "$ac_dir" && ac_dir=.
15019
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15020
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
15021
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
15022
 
      # but apparently some variants of GNU ld only accept -v.
15023
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
15024
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15025
 
      *GNU* | *'with BFD'*)
15026
 
        test "$with_gnu_ld" != no && break
15027
 
        ;;
15028
 
      *)
15029
 
        test "$with_gnu_ld" != yes && break
15030
 
        ;;
15031
 
      esac
15032
 
    fi
15033
 
  done
15034
 
  IFS="$lt_save_ifs"
15035
 
else
15036
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
15037
 
fi
15038
 
fi
15039
 
 
15040
 
LD="$lt_cv_path_LD"
15041
 
if test -n "$LD"; then
15042
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15043
 
$as_echo "$LD" >&6; }
15044
 
else
15045
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15046
 
$as_echo "no" >&6; }
15047
 
fi
15048
 
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15049
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15050
 
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15051
 
if ${lt_cv_prog_gnu_ld+:} false; then :
15052
 
  $as_echo_n "(cached) " >&6
15053
 
else
15054
 
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
15055
 
case `$LD -v 2>&1 </dev/null` in
15056
 
*GNU* | *'with BFD'*)
15057
 
  lt_cv_prog_gnu_ld=yes
15058
 
  ;;
15059
 
*)
15060
 
  lt_cv_prog_gnu_ld=no
15061
 
  ;;
15062
 
esac
15063
 
fi
15064
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15065
 
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
15066
 
with_gnu_ld=$lt_cv_prog_gnu_ld
15067
 
 
15068
 
 
15069
 
 
15070
 
 
15071
 
 
15072
 
 
15073
 
 
15074
 
 
15075
 
 
15076
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
15077
 
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
15078
 
if ${lt_cv_path_NM+:} false; then :
15079
 
  $as_echo_n "(cached) " >&6
15080
 
else
15081
 
  if test -n "$NM"; then
15082
 
  # Let the user override the test.
15083
 
  lt_cv_path_NM="$NM"
15084
 
else
15085
 
  lt_nm_to_check="${ac_tool_prefix}nm"
15086
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
15087
 
    lt_nm_to_check="$lt_nm_to_check nm"
15088
 
  fi
15089
 
  for lt_tmp_nm in $lt_nm_to_check; do
15090
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15091
 
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
15092
 
      IFS="$lt_save_ifs"
15093
 
      test -z "$ac_dir" && ac_dir=.
15094
 
      tmp_nm="$ac_dir/$lt_tmp_nm"
15095
 
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
15096
 
        # Check to see if the nm accepts a BSD-compat flag.
15097
 
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
15098
 
        #   nm: unknown option "B" ignored
15099
 
        # Tru64's nm complains that /dev/null is an invalid object file
15100
 
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
15101
 
        */dev/null* | *'Invalid file or object type'*)
15102
 
          lt_cv_path_NM="$tmp_nm -B"
15103
 
          break
15104
 
          ;;
15105
 
        *)
15106
 
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
15107
 
          */dev/null*)
15108
 
            lt_cv_path_NM="$tmp_nm -p"
15109
 
            break
15110
 
            ;;
15111
 
          *)
15112
 
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
15113
 
            continue # so that we can try to find one that supports BSD flags
15114
 
            ;;
15115
 
          esac
15116
 
          ;;
15117
 
        esac
15118
 
      fi
15119
 
    done
15120
 
    IFS="$lt_save_ifs"
15121
 
  done
15122
 
  : ${lt_cv_path_NM=no}
15123
 
fi
15124
 
fi
15125
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
15126
 
$as_echo "$lt_cv_path_NM" >&6; }
15127
 
if test "$lt_cv_path_NM" != "no"; then
15128
 
  NM="$lt_cv_path_NM"
15129
 
else
15130
 
  # Didn't find any BSD compatible name lister, look for dumpbin.
15131
 
  if test -n "$DUMPBIN"; then :
15132
 
    # Let the user override the test.
15133
 
  else
15134
 
    if test -n "$ac_tool_prefix"; then
15135
 
  for ac_prog in dumpbin "link -dump"
15136
 
  do
15137
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15138
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15139
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15140
 
$as_echo_n "checking for $ac_word... " >&6; }
15141
 
if ${ac_cv_prog_DUMPBIN+:} false; then :
15142
 
  $as_echo_n "(cached) " >&6
15143
 
else
15144
 
  if test -n "$DUMPBIN"; then
15145
 
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
15146
 
else
15147
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15148
 
for as_dir in $PATH
15149
 
do
15150
 
  IFS=$as_save_IFS
15151
 
  test -z "$as_dir" && as_dir=.
15152
 
    for ac_exec_ext in '' $ac_executable_extensions; do
15153
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15154
 
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
15155
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15156
 
    break 2
15157
 
  fi
15158
 
done
15159
 
  done
15160
 
IFS=$as_save_IFS
15161
 
 
15162
 
fi
15163
 
fi
15164
 
DUMPBIN=$ac_cv_prog_DUMPBIN
15165
 
if test -n "$DUMPBIN"; then
15166
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
15167
 
$as_echo "$DUMPBIN" >&6; }
15168
 
else
15169
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15170
 
$as_echo "no" >&6; }
15171
 
fi
15172
 
 
15173
 
 
15174
 
    test -n "$DUMPBIN" && break
15175
 
  done
15176
 
fi
15177
 
if test -z "$DUMPBIN"; then
15178
 
  ac_ct_DUMPBIN=$DUMPBIN
15179
 
  for ac_prog in dumpbin "link -dump"
15180
 
do
15181
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
15182
 
set dummy $ac_prog; ac_word=$2
15183
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15184
 
$as_echo_n "checking for $ac_word... " >&6; }
15185
 
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
15186
 
  $as_echo_n "(cached) " >&6
15187
 
else
15188
 
  if test -n "$ac_ct_DUMPBIN"; then
15189
 
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
15190
 
else
15191
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15192
 
for as_dir in $PATH
15193
 
do
15194
 
  IFS=$as_save_IFS
15195
 
  test -z "$as_dir" && as_dir=.
15196
 
    for ac_exec_ext in '' $ac_executable_extensions; do
15197
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15198
 
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
15199
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15200
 
    break 2
15201
 
  fi
15202
 
done
15203
 
  done
15204
 
IFS=$as_save_IFS
15205
 
 
15206
 
fi
15207
 
fi
15208
 
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
15209
 
if test -n "$ac_ct_DUMPBIN"; then
15210
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
15211
 
$as_echo "$ac_ct_DUMPBIN" >&6; }
15212
 
else
15213
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15214
 
$as_echo "no" >&6; }
15215
 
fi
15216
 
 
15217
 
 
15218
 
  test -n "$ac_ct_DUMPBIN" && break
15219
 
done
15220
 
 
15221
 
  if test "x$ac_ct_DUMPBIN" = x; then
15222
 
    DUMPBIN=":"
15223
 
  else
15224
 
    case $cross_compiling:$ac_tool_warned in
15225
 
yes:)
15226
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15227
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15228
 
ac_tool_warned=yes ;;
15229
 
esac
15230
 
    DUMPBIN=$ac_ct_DUMPBIN
15231
 
  fi
15232
 
fi
15233
 
 
15234
 
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
15235
 
    *COFF*)
15236
 
      DUMPBIN="$DUMPBIN -symbols"
15237
 
      ;;
15238
 
    *)
15239
 
      DUMPBIN=:
15240
 
      ;;
15241
 
    esac
15242
 
  fi
15243
 
 
15244
 
  if test "$DUMPBIN" != ":"; then
15245
 
    NM="$DUMPBIN"
15246
 
  fi
15247
 
fi
15248
 
test -z "$NM" && NM=nm
15249
 
 
15250
 
 
15251
 
 
15252
 
 
15253
 
 
15254
 
 
15255
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
15256
 
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
15257
 
if ${lt_cv_nm_interface+:} false; then :
15258
 
  $as_echo_n "(cached) " >&6
15259
 
else
15260
 
  lt_cv_nm_interface="BSD nm"
15261
 
  echo "int some_variable = 0;" > conftest.$ac_ext
15262
 
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
15263
 
  (eval "$ac_compile" 2>conftest.err)
15264
 
  cat conftest.err >&5
15265
 
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
15266
 
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
15267
 
  cat conftest.err >&5
15268
 
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
15269
 
  cat conftest.out >&5
15270
 
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
15271
 
    lt_cv_nm_interface="MS dumpbin"
15272
 
  fi
15273
 
  rm -f conftest*
15274
 
fi
15275
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
15276
 
$as_echo "$lt_cv_nm_interface" >&6; }
15277
 
 
15278
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15279
 
$as_echo_n "checking whether ln -s works... " >&6; }
15280
 
LN_S=$as_ln_s
15281
 
if test "$LN_S" = "ln -s"; then
15282
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15283
 
$as_echo "yes" >&6; }
15284
 
else
15285
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15286
 
$as_echo "no, using $LN_S" >&6; }
15287
 
fi
15288
 
 
15289
 
# find the maximum length of command line arguments
15290
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
15291
 
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
15292
 
if ${lt_cv_sys_max_cmd_len+:} false; then :
15293
 
  $as_echo_n "(cached) " >&6
15294
 
else
15295
 
    i=0
15296
 
  teststring="ABCD"
15297
 
 
15298
 
  case $build_os in
15299
 
  msdosdjgpp*)
15300
 
    # On DJGPP, this test can blow up pretty badly due to problems in libc
15301
 
    # (any single argument exceeding 2000 bytes causes a buffer overrun
15302
 
    # during glob expansion).  Even if it were fixed, the result of this
15303
 
    # check would be larger than it should be.
15304
 
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
15305
 
    ;;
15306
 
 
15307
 
  gnu*)
15308
 
    # Under GNU Hurd, this test is not required because there is
15309
 
    # no limit to the length of command line arguments.
15310
 
    # Libtool will interpret -1 as no limit whatsoever
15311
 
    lt_cv_sys_max_cmd_len=-1;
15312
 
    ;;
15313
 
 
15314
 
  cygwin* | mingw* | cegcc*)
15315
 
    # On Win9x/ME, this test blows up -- it succeeds, but takes
15316
 
    # about 5 minutes as the teststring grows exponentially.
15317
 
    # Worse, since 9x/ME are not pre-emptively multitasking,
15318
 
    # you end up with a "frozen" computer, even though with patience
15319
 
    # the test eventually succeeds (with a max line length of 256k).
15320
 
    # Instead, let's just punt: use the minimum linelength reported by
15321
 
    # all of the supported platforms: 8192 (on NT/2K/XP).
15322
 
    lt_cv_sys_max_cmd_len=8192;
15323
 
    ;;
15324
 
 
15325
 
  mint*)
15326
 
    # On MiNT this can take a long time and run out of memory.
15327
 
    lt_cv_sys_max_cmd_len=8192;
15328
 
    ;;
15329
 
 
15330
 
  amigaos*)
15331
 
    # On AmigaOS with pdksh, this test takes hours, literally.
15332
 
    # So we just punt and use a minimum line length of 8192.
15333
 
    lt_cv_sys_max_cmd_len=8192;
15334
 
    ;;
15335
 
 
15336
 
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
15337
 
    # This has been around since 386BSD, at least.  Likely further.
15338
 
    if test -x /sbin/sysctl; then
15339
 
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
15340
 
    elif test -x /usr/sbin/sysctl; then
15341
 
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
15342
 
    else
15343
 
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
15344
 
    fi
15345
 
    # And add a safety zone
15346
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
15347
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
15348
 
    ;;
15349
 
 
15350
 
  interix*)
15351
 
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
15352
 
    lt_cv_sys_max_cmd_len=196608
15353
 
    ;;
15354
 
 
15355
 
  os2*)
15356
 
    # The test takes a long time on OS/2.
15357
 
    lt_cv_sys_max_cmd_len=8192
15358
 
    ;;
15359
 
 
15360
 
  osf*)
15361
 
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
15362
 
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
15363
 
    # nice to cause kernel panics so lets avoid the loop below.
15364
 
    # First set a reasonable default.
15365
 
    lt_cv_sys_max_cmd_len=16384
15366
 
    #
15367
 
    if test -x /sbin/sysconfig; then
15368
 
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
15369
 
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
15370
 
      esac
15371
 
    fi
15372
 
    ;;
15373
 
  sco3.2v5*)
15374
 
    lt_cv_sys_max_cmd_len=102400
15375
 
    ;;
15376
 
  sysv5* | sco5v6* | sysv4.2uw2*)
15377
 
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
15378
 
    if test -n "$kargmax"; then
15379
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
15380
 
    else
15381
 
      lt_cv_sys_max_cmd_len=32768
15382
 
    fi
15383
 
    ;;
15384
 
  *)
15385
 
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
15386
 
    if test -n "$lt_cv_sys_max_cmd_len"; then
15387
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
15388
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
15389
 
    else
15390
 
      # Make teststring a little bigger before we do anything with it.
15391
 
      # a 1K string should be a reasonable start.
15392
 
      for i in 1 2 3 4 5 6 7 8 ; do
15393
 
        teststring=$teststring$teststring
15394
 
      done
15395
 
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
15396
 
      # If test is not a shell built-in, we'll probably end up computing a
15397
 
      # maximum length that is only half of the actual maximum length, but
15398
 
      # we can't tell.
15399
 
      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
15400
 
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
15401
 
              test $i != 17 # 1/2 MB should be enough
15402
 
      do
15403
 
        i=`expr $i + 1`
15404
 
        teststring=$teststring$teststring
15405
 
      done
15406
 
      # Only check the string length outside the loop.
15407
 
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
15408
 
      teststring=
15409
 
      # Add a significant safety factor because C++ compilers can tack on
15410
 
      # massive amounts of additional arguments before passing them to the
15411
 
      # linker.  It appears as though 1/2 is a usable value.
15412
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
15413
 
    fi
15414
 
    ;;
15415
 
  esac
15416
 
 
15417
 
fi
15418
 
 
15419
 
if test -n $lt_cv_sys_max_cmd_len ; then
15420
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
15421
 
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
15422
 
else
15423
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
15424
 
$as_echo "none" >&6; }
15425
 
fi
15426
 
max_cmd_len=$lt_cv_sys_max_cmd_len
15427
 
 
15428
 
 
15429
 
 
15430
 
 
15431
 
 
15432
 
 
15433
 
: ${CP="cp -f"}
15434
 
: ${MV="mv -f"}
15435
 
: ${RM="rm -f"}
15436
 
 
15437
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
15438
 
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
15439
 
# Try some XSI features
15440
 
xsi_shell=no
15441
 
( _lt_dummy="a/b/c"
15442
 
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
15443
 
      = c,a/b,b/c, \
15444
 
    && eval 'test $(( 1 + 1 )) -eq 2 \
15445
 
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
15446
 
  && xsi_shell=yes
15447
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
15448
 
$as_echo "$xsi_shell" >&6; }
15449
 
 
15450
 
 
15451
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
15452
 
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
15453
 
lt_shell_append=no
15454
 
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
15455
 
    >/dev/null 2>&1 \
15456
 
  && lt_shell_append=yes
15457
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
15458
 
$as_echo "$lt_shell_append" >&6; }
15459
 
 
15460
 
 
15461
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15462
 
  lt_unset=unset
15463
 
else
15464
 
  lt_unset=false
15465
 
fi
15466
 
 
15467
 
 
15468
 
 
15469
 
 
15470
 
 
15471
 
# test EBCDIC or ASCII
15472
 
case `echo X|tr X '\101'` in
15473
 
 A) # ASCII based system
15474
 
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
15475
 
  lt_SP2NL='tr \040 \012'
15476
 
  lt_NL2SP='tr \015\012 \040\040'
15477
 
  ;;
15478
 
 *) # EBCDIC based system
15479
 
  lt_SP2NL='tr \100 \n'
15480
 
  lt_NL2SP='tr \r\n \100\100'
15481
 
  ;;
15482
 
esac
15483
 
 
15484
 
 
15485
 
 
15486
 
 
15487
 
 
15488
 
 
15489
 
 
15490
 
 
15491
 
 
15492
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
15493
 
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
15494
 
if ${lt_cv_to_host_file_cmd+:} false; then :
15495
 
  $as_echo_n "(cached) " >&6
15496
 
else
15497
 
  case $host in
15498
 
  *-*-mingw* )
15499
 
    case $build in
15500
 
      *-*-mingw* ) # actually msys
15501
 
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
15502
 
        ;;
15503
 
      *-*-cygwin* )
15504
 
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
15505
 
        ;;
15506
 
      * ) # otherwise, assume *nix
15507
 
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
15508
 
        ;;
15509
 
    esac
15510
 
    ;;
15511
 
  *-*-cygwin* )
15512
 
    case $build in
15513
 
      *-*-mingw* ) # actually msys
15514
 
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
15515
 
        ;;
15516
 
      *-*-cygwin* )
15517
 
        lt_cv_to_host_file_cmd=func_convert_file_noop
15518
 
        ;;
15519
 
      * ) # otherwise, assume *nix
15520
 
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
15521
 
        ;;
15522
 
    esac
15523
 
    ;;
15524
 
  * ) # unhandled hosts (and "normal" native builds)
15525
 
    lt_cv_to_host_file_cmd=func_convert_file_noop
15526
 
    ;;
15527
 
esac
15528
 
 
15529
 
fi
15530
 
 
15531
 
to_host_file_cmd=$lt_cv_to_host_file_cmd
15532
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
15533
 
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
15534
 
 
15535
 
 
15536
 
 
15537
 
 
15538
 
 
15539
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
15540
 
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
15541
 
if ${lt_cv_to_tool_file_cmd+:} false; then :
15542
 
  $as_echo_n "(cached) " >&6
15543
 
else
15544
 
  #assume ordinary cross tools, or native build.
15545
 
lt_cv_to_tool_file_cmd=func_convert_file_noop
15546
 
case $host in
15547
 
  *-*-mingw* )
15548
 
    case $build in
15549
 
      *-*-mingw* ) # actually msys
15550
 
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
15551
 
        ;;
15552
 
    esac
15553
 
    ;;
15554
 
esac
15555
 
 
15556
 
fi
15557
 
 
15558
 
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15559
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
15560
 
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
15561
 
 
15562
 
 
15563
 
 
15564
 
 
15565
 
 
15566
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
15567
 
$as_echo_n "checking for $LD option to reload object files... " >&6; }
15568
 
if ${lt_cv_ld_reload_flag+:} false; then :
15569
 
  $as_echo_n "(cached) " >&6
15570
 
else
15571
 
  lt_cv_ld_reload_flag='-r'
15572
 
fi
15573
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
15574
 
$as_echo "$lt_cv_ld_reload_flag" >&6; }
15575
 
reload_flag=$lt_cv_ld_reload_flag
15576
 
case $reload_flag in
15577
 
"" | " "*) ;;
15578
 
*) reload_flag=" $reload_flag" ;;
15579
 
esac
15580
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
15581
 
case $host_os in
15582
 
  cygwin* | mingw* | pw32* | cegcc*)
15583
 
    if test "$GCC" != yes; then
15584
 
      reload_cmds=false
15585
 
    fi
15586
 
    ;;
15587
 
  darwin*)
15588
 
    if test "$GCC" = yes; then
15589
 
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
15590
 
    else
15591
 
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
15592
 
    fi
15593
 
    ;;
15594
 
esac
15595
 
 
15596
 
 
15597
 
 
15598
 
 
15599
 
 
15600
 
 
15601
 
 
15602
 
 
15603
 
 
15604
 
if test -n "$ac_tool_prefix"; then
15605
 
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
15606
 
set dummy ${ac_tool_prefix}objdump; ac_word=$2
15607
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15608
 
$as_echo_n "checking for $ac_word... " >&6; }
15609
 
if ${ac_cv_prog_OBJDUMP+:} false; then :
15610
 
  $as_echo_n "(cached) " >&6
15611
 
else
15612
 
  if test -n "$OBJDUMP"; then
15613
 
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
15614
 
else
15615
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15616
 
for as_dir in $PATH
15617
 
do
15618
 
  IFS=$as_save_IFS
15619
 
  test -z "$as_dir" && as_dir=.
15620
 
    for ac_exec_ext in '' $ac_executable_extensions; do
15621
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15622
 
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
15623
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15624
 
    break 2
15625
 
  fi
15626
 
done
15627
 
  done
15628
 
IFS=$as_save_IFS
15629
 
 
15630
 
fi
15631
 
fi
15632
 
OBJDUMP=$ac_cv_prog_OBJDUMP
15633
 
if test -n "$OBJDUMP"; then
15634
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
15635
 
$as_echo "$OBJDUMP" >&6; }
15636
 
else
15637
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15638
 
$as_echo "no" >&6; }
15639
 
fi
15640
 
 
15641
 
 
15642
 
fi
15643
 
if test -z "$ac_cv_prog_OBJDUMP"; then
15644
 
  ac_ct_OBJDUMP=$OBJDUMP
15645
 
  # Extract the first word of "objdump", so it can be a program name with args.
15646
 
set dummy objdump; ac_word=$2
15647
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15648
 
$as_echo_n "checking for $ac_word... " >&6; }
15649
 
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
15650
 
  $as_echo_n "(cached) " >&6
15651
 
else
15652
 
  if test -n "$ac_ct_OBJDUMP"; then
15653
 
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
15654
 
else
15655
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15656
 
for as_dir in $PATH
15657
 
do
15658
 
  IFS=$as_save_IFS
15659
 
  test -z "$as_dir" && as_dir=.
15660
 
    for ac_exec_ext in '' $ac_executable_extensions; do
15661
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15662
 
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
15663
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15664
 
    break 2
15665
 
  fi
15666
 
done
15667
 
  done
15668
 
IFS=$as_save_IFS
15669
 
 
15670
 
fi
15671
 
fi
15672
 
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
15673
 
if test -n "$ac_ct_OBJDUMP"; then
15674
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
15675
 
$as_echo "$ac_ct_OBJDUMP" >&6; }
15676
 
else
15677
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15678
 
$as_echo "no" >&6; }
15679
 
fi
15680
 
 
15681
 
  if test "x$ac_ct_OBJDUMP" = x; then
15682
 
    OBJDUMP="false"
15683
 
  else
15684
 
    case $cross_compiling:$ac_tool_warned in
15685
 
yes:)
15686
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15687
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15688
 
ac_tool_warned=yes ;;
15689
 
esac
15690
 
    OBJDUMP=$ac_ct_OBJDUMP
15691
 
  fi
15692
 
else
15693
 
  OBJDUMP="$ac_cv_prog_OBJDUMP"
15694
 
fi
15695
 
 
15696
 
test -z "$OBJDUMP" && OBJDUMP=objdump
15697
 
 
15698
 
 
15699
 
 
15700
 
 
15701
 
 
15702
 
 
15703
 
 
15704
 
 
15705
 
 
15706
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
15707
 
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
15708
 
if ${lt_cv_deplibs_check_method+:} false; then :
15709
 
  $as_echo_n "(cached) " >&6
15710
 
else
15711
 
  lt_cv_file_magic_cmd='$MAGIC_CMD'
15712
 
lt_cv_file_magic_test_file=
15713
 
lt_cv_deplibs_check_method='unknown'
15714
 
# Need to set the preceding variable on all platforms that support
15715
 
# interlibrary dependencies.
15716
 
# 'none' -- dependencies not supported.
15717
 
# `unknown' -- same as none, but documents that we really don't know.
15718
 
# 'pass_all' -- all dependencies passed with no checks.
15719
 
# 'test_compile' -- check by making test program.
15720
 
# 'file_magic [[regex]]' -- check by looking for files in library path
15721
 
# which responds to the $file_magic_cmd with a given extended regex.
15722
 
# If you have `file' or equivalent on your system and you're not sure
15723
 
# whether `pass_all' will *always* work, you probably want this one.
15724
 
 
15725
 
case $host_os in
15726
 
aix[4-9]*)
15727
 
  lt_cv_deplibs_check_method=pass_all
15728
 
  ;;
15729
 
 
15730
 
beos*)
15731
 
  lt_cv_deplibs_check_method=pass_all
15732
 
  ;;
15733
 
 
15734
 
bsdi[45]*)
15735
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
15736
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
15737
 
  lt_cv_file_magic_test_file=/shlib/libc.so
15738
 
  ;;
15739
 
 
15740
 
cygwin*)
15741
 
  # func_win32_libid is a shell function defined in ltmain.sh
15742
 
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
15743
 
  lt_cv_file_magic_cmd='func_win32_libid'
15744
 
  ;;
15745
 
 
15746
 
mingw* | pw32*)
15747
 
  # Base MSYS/MinGW do not provide the 'file' command needed by
15748
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
15749
 
  # unless we find 'file', for example because we are cross-compiling.
15750
 
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
15751
 
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
15752
 
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
15753
 
    lt_cv_file_magic_cmd='func_win32_libid'
15754
 
  else
15755
 
    # Keep this pattern in sync with the one in func_win32_libid.
15756
 
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
15757
 
    lt_cv_file_magic_cmd='$OBJDUMP -f'
15758
 
  fi
15759
 
  ;;
15760
 
 
15761
 
cegcc*)
15762
 
  # use the weaker test based on 'objdump'. See mingw*.
15763
 
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
15764
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
15765
 
  ;;
15766
 
 
15767
 
darwin* | rhapsody*)
15768
 
  lt_cv_deplibs_check_method=pass_all
15769
 
  ;;
15770
 
 
15771
 
freebsd* | dragonfly*)
15772
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
15773
 
    case $host_cpu in
15774
 
    i*86 )
15775
 
      # Not sure whether the presence of OpenBSD here was a mistake.
15776
 
      # Let's accept both of them until this is cleared up.
15777
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
15778
 
      lt_cv_file_magic_cmd=/usr/bin/file
15779
 
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
15780
 
      ;;
15781
 
    esac
15782
 
  else
15783
 
    lt_cv_deplibs_check_method=pass_all
15784
 
  fi
15785
 
  ;;
15786
 
 
15787
 
gnu*)
15788
 
  lt_cv_deplibs_check_method=pass_all
15789
 
  ;;
15790
 
 
15791
 
haiku*)
15792
 
  lt_cv_deplibs_check_method=pass_all
15793
 
  ;;
15794
 
 
15795
 
hpux10.20* | hpux11*)
15796
 
  lt_cv_file_magic_cmd=/usr/bin/file
15797
 
  case $host_cpu in
15798
 
  ia64*)
15799
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
15800
 
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
15801
 
    ;;
15802
 
  hppa*64*)
15803
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
15804
 
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
15805
 
    ;;
15806
 
  *)
15807
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
15808
 
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
15809
 
    ;;
15810
 
  esac
15811
 
  ;;
15812
 
 
15813
 
interix[3-9]*)
15814
 
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
15815
 
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
15816
 
  ;;
15817
 
 
15818
 
irix5* | irix6* | nonstopux*)
15819
 
  case $LD in
15820
 
  *-32|*"-32 ") libmagic=32-bit;;
15821
 
  *-n32|*"-n32 ") libmagic=N32;;
15822
 
  *-64|*"-64 ") libmagic=64-bit;;
15823
 
  *) libmagic=never-match;;
15824
 
  esac
15825
 
  lt_cv_deplibs_check_method=pass_all
15826
 
  ;;
15827
 
 
15828
 
# This must be glibc/ELF.
15829
 
linux* | k*bsd*-gnu | kopensolaris*-gnu)
15830
 
  lt_cv_deplibs_check_method=pass_all
15831
 
  ;;
15832
 
 
15833
 
netbsd*)
15834
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
15835
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
15836
 
  else
15837
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
15838
 
  fi
15839
 
  ;;
15840
 
 
15841
 
newos6*)
15842
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
15843
 
  lt_cv_file_magic_cmd=/usr/bin/file
15844
 
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
15845
 
  ;;
15846
 
 
15847
 
*nto* | *qnx*)
15848
 
  lt_cv_deplibs_check_method=pass_all
15849
 
  ;;
15850
 
 
15851
 
openbsd*)
15852
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15853
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
15854
 
  else
15855
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
15856
 
  fi
15857
 
  ;;
15858
 
 
15859
 
osf3* | osf4* | osf5*)
15860
 
  lt_cv_deplibs_check_method=pass_all
15861
 
  ;;
15862
 
 
15863
 
rdos*)
15864
 
  lt_cv_deplibs_check_method=pass_all
15865
 
  ;;
15866
 
 
15867
 
solaris*)
15868
 
  lt_cv_deplibs_check_method=pass_all
15869
 
  ;;
15870
 
 
15871
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15872
 
  lt_cv_deplibs_check_method=pass_all
15873
 
  ;;
15874
 
 
15875
 
sysv4 | sysv4.3*)
15876
 
  case $host_vendor in
15877
 
  motorola)
15878
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
15879
 
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
15880
 
    ;;
15881
 
  ncr)
15882
 
    lt_cv_deplibs_check_method=pass_all
15883
 
    ;;
15884
 
  sequent)
15885
 
    lt_cv_file_magic_cmd='/bin/file'
15886
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
15887
 
    ;;
15888
 
  sni)
15889
 
    lt_cv_file_magic_cmd='/bin/file'
15890
 
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
15891
 
    lt_cv_file_magic_test_file=/lib/libc.so
15892
 
    ;;
15893
 
  siemens)
15894
 
    lt_cv_deplibs_check_method=pass_all
15895
 
    ;;
15896
 
  pc)
15897
 
    lt_cv_deplibs_check_method=pass_all
15898
 
    ;;
15899
 
  esac
15900
 
  ;;
15901
 
 
15902
 
tpf*)
15903
 
  lt_cv_deplibs_check_method=pass_all
15904
 
  ;;
15905
 
esac
15906
 
 
15907
 
fi
15908
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
15909
 
$as_echo "$lt_cv_deplibs_check_method" >&6; }
15910
 
 
15911
 
file_magic_glob=
15912
 
want_nocaseglob=no
15913
 
if test "$build" = "$host"; then
15914
 
  case $host_os in
15915
 
  mingw* | pw32*)
15916
 
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
15917
 
      want_nocaseglob=yes
15918
 
    else
15919
 
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
15920
 
    fi
15921
 
    ;;
15922
 
  esac
15923
 
fi
15924
 
 
15925
 
file_magic_cmd=$lt_cv_file_magic_cmd
15926
 
deplibs_check_method=$lt_cv_deplibs_check_method
15927
 
test -z "$deplibs_check_method" && deplibs_check_method=unknown
15928
 
 
15929
 
 
15930
 
 
15931
 
 
15932
 
 
15933
 
 
15934
 
 
15935
 
 
15936
 
 
15937
 
 
15938
 
 
15939
 
 
15940
 
 
15941
 
 
15942
 
 
15943
 
 
15944
 
 
15945
 
 
15946
 
 
15947
 
 
15948
 
 
15949
 
 
15950
 
if test -n "$ac_tool_prefix"; then
15951
 
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15952
 
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15953
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15954
 
$as_echo_n "checking for $ac_word... " >&6; }
15955
 
if ${ac_cv_prog_DLLTOOL+:} false; then :
15956
 
  $as_echo_n "(cached) " >&6
15957
 
else
15958
 
  if test -n "$DLLTOOL"; then
15959
 
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15960
 
else
15961
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15962
 
for as_dir in $PATH
15963
 
do
15964
 
  IFS=$as_save_IFS
15965
 
  test -z "$as_dir" && as_dir=.
15966
 
    for ac_exec_ext in '' $ac_executable_extensions; do
15967
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15968
 
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15969
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15970
 
    break 2
15971
 
  fi
15972
 
done
15973
 
  done
15974
 
IFS=$as_save_IFS
15975
 
 
15976
 
fi
15977
 
fi
15978
 
DLLTOOL=$ac_cv_prog_DLLTOOL
15979
 
if test -n "$DLLTOOL"; then
15980
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
15981
 
$as_echo "$DLLTOOL" >&6; }
15982
 
else
15983
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15984
 
$as_echo "no" >&6; }
15985
 
fi
15986
 
 
15987
 
 
15988
 
fi
15989
 
if test -z "$ac_cv_prog_DLLTOOL"; then
15990
 
  ac_ct_DLLTOOL=$DLLTOOL
15991
 
  # Extract the first word of "dlltool", so it can be a program name with args.
15992
 
set dummy dlltool; ac_word=$2
15993
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15994
 
$as_echo_n "checking for $ac_word... " >&6; }
15995
 
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
15996
 
  $as_echo_n "(cached) " >&6
15997
 
else
15998
 
  if test -n "$ac_ct_DLLTOOL"; then
15999
 
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
16000
 
else
16001
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16002
 
for as_dir in $PATH
16003
 
do
16004
 
  IFS=$as_save_IFS
16005
 
  test -z "$as_dir" && as_dir=.
16006
 
    for ac_exec_ext in '' $ac_executable_extensions; do
16007
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16008
 
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
16009
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16010
 
    break 2
16011
 
  fi
16012
 
done
16013
 
  done
16014
 
IFS=$as_save_IFS
16015
 
 
16016
 
fi
16017
 
fi
16018
 
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
16019
 
if test -n "$ac_ct_DLLTOOL"; then
16020
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
16021
 
$as_echo "$ac_ct_DLLTOOL" >&6; }
16022
 
else
16023
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16024
 
$as_echo "no" >&6; }
16025
 
fi
16026
 
 
16027
 
  if test "x$ac_ct_DLLTOOL" = x; then
16028
 
    DLLTOOL="false"
16029
 
  else
16030
 
    case $cross_compiling:$ac_tool_warned in
16031
 
yes:)
16032
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16033
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16034
 
ac_tool_warned=yes ;;
16035
 
esac
16036
 
    DLLTOOL=$ac_ct_DLLTOOL
16037
 
  fi
16038
 
else
16039
 
  DLLTOOL="$ac_cv_prog_DLLTOOL"
16040
 
fi
16041
 
 
16042
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
16043
 
 
16044
 
 
16045
 
 
16046
 
 
16047
 
 
16048
 
 
16049
 
 
16050
 
 
16051
 
 
16052
 
 
16053
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
16054
 
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
16055
 
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
16056
 
  $as_echo_n "(cached) " >&6
16057
 
else
16058
 
  lt_cv_sharedlib_from_linklib_cmd='unknown'
16059
 
 
16060
 
case $host_os in
16061
 
cygwin* | mingw* | pw32* | cegcc*)
16062
 
  # two different shell functions defined in ltmain.sh
16063
 
  # decide which to use based on capabilities of $DLLTOOL
16064
 
  case `$DLLTOOL --help 2>&1` in
16065
 
  *--identify-strict*)
16066
 
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
16067
 
    ;;
16068
 
  *)
16069
 
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
16070
 
    ;;
16071
 
  esac
16072
 
  ;;
16073
 
*)
16074
 
  # fallback: assume linklib IS sharedlib
16075
 
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
16076
 
  ;;
16077
 
esac
16078
 
 
16079
 
fi
16080
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
16081
 
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
16082
 
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
16083
 
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
16084
 
 
16085
 
 
16086
 
 
16087
 
 
16088
 
 
16089
 
 
16090
 
 
16091
 
if test -n "$ac_tool_prefix"; then
16092
 
  for ac_prog in ar
16093
 
  do
16094
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16095
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16096
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16097
 
$as_echo_n "checking for $ac_word... " >&6; }
16098
 
if ${ac_cv_prog_AR+:} false; then :
16099
 
  $as_echo_n "(cached) " >&6
16100
 
else
16101
 
  if test -n "$AR"; then
16102
 
  ac_cv_prog_AR="$AR" # Let the user override the test.
16103
 
else
16104
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16105
 
for as_dir in $PATH
16106
 
do
16107
 
  IFS=$as_save_IFS
16108
 
  test -z "$as_dir" && as_dir=.
16109
 
    for ac_exec_ext in '' $ac_executable_extensions; do
16110
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16111
 
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
16112
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16113
 
    break 2
16114
 
  fi
16115
 
done
16116
 
  done
16117
 
IFS=$as_save_IFS
16118
 
 
16119
 
fi
16120
 
fi
16121
 
AR=$ac_cv_prog_AR
16122
 
if test -n "$AR"; then
16123
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
16124
 
$as_echo "$AR" >&6; }
16125
 
else
16126
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16127
 
$as_echo "no" >&6; }
16128
 
fi
16129
 
 
16130
 
 
16131
 
    test -n "$AR" && break
16132
 
  done
16133
 
fi
16134
 
if test -z "$AR"; then
16135
 
  ac_ct_AR=$AR
16136
 
  for ac_prog in ar
16137
 
do
16138
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
16139
 
set dummy $ac_prog; ac_word=$2
16140
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16141
 
$as_echo_n "checking for $ac_word... " >&6; }
16142
 
if ${ac_cv_prog_ac_ct_AR+:} false; then :
16143
 
  $as_echo_n "(cached) " >&6
16144
 
else
16145
 
  if test -n "$ac_ct_AR"; then
16146
 
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16147
 
else
16148
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16149
 
for as_dir in $PATH
16150
 
do
16151
 
  IFS=$as_save_IFS
16152
 
  test -z "$as_dir" && as_dir=.
16153
 
    for ac_exec_ext in '' $ac_executable_extensions; do
16154
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16155
 
    ac_cv_prog_ac_ct_AR="$ac_prog"
16156
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16157
 
    break 2
16158
 
  fi
16159
 
done
16160
 
  done
16161
 
IFS=$as_save_IFS
16162
 
 
16163
 
fi
16164
 
fi
16165
 
ac_ct_AR=$ac_cv_prog_ac_ct_AR
16166
 
if test -n "$ac_ct_AR"; then
16167
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
16168
 
$as_echo "$ac_ct_AR" >&6; }
16169
 
else
16170
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16171
 
$as_echo "no" >&6; }
16172
 
fi
16173
 
 
16174
 
 
16175
 
  test -n "$ac_ct_AR" && break
16176
 
done
16177
 
 
16178
 
  if test "x$ac_ct_AR" = x; then
16179
 
    AR="false"
16180
 
  else
16181
 
    case $cross_compiling:$ac_tool_warned in
16182
 
yes:)
16183
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16184
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16185
 
ac_tool_warned=yes ;;
16186
 
esac
16187
 
    AR=$ac_ct_AR
16188
 
  fi
16189
 
fi
16190
 
 
16191
 
: ${AR=ar}
16192
 
: ${AR_FLAGS=cru}
16193
 
 
16194
 
 
16195
 
 
16196
 
 
16197
 
 
16198
 
 
16199
 
 
16200
 
 
16201
 
 
16202
 
 
16203
 
 
16204
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
16205
 
$as_echo_n "checking for archiver @FILE support... " >&6; }
16206
 
if ${lt_cv_ar_at_file+:} false; then :
16207
 
  $as_echo_n "(cached) " >&6
16208
 
else
16209
 
  lt_cv_ar_at_file=no
16210
 
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16211
 
/* end confdefs.h.  */
16212
 
 
16213
 
#ifdef F77_DUMMY_MAIN
16214
 
 
16215
 
#  ifdef __cplusplus
16216
 
     extern "C"
16217
 
#  endif
16218
 
   int F77_DUMMY_MAIN() { return 1; }
16219
 
 
16220
 
#endif
16221
 
int
16222
 
main ()
16223
 
{
16224
 
 
16225
 
  ;
16226
 
  return 0;
16227
 
}
16228
 
_ACEOF
16229
 
if ac_fn_c_try_compile "$LINENO"; then :
16230
 
  echo conftest.$ac_objext > conftest.lst
16231
 
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
16232
 
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
16233
 
  (eval $lt_ar_try) 2>&5
16234
 
  ac_status=$?
16235
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16236
 
  test $ac_status = 0; }
16237
 
      if test "$ac_status" -eq 0; then
16238
 
        # Ensure the archiver fails upon bogus file names.
16239
 
        rm -f conftest.$ac_objext libconftest.a
16240
 
        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
16241
 
  (eval $lt_ar_try) 2>&5
16242
 
  ac_status=$?
16243
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16244
 
  test $ac_status = 0; }
16245
 
        if test "$ac_status" -ne 0; then
16246
 
          lt_cv_ar_at_file=@
16247
 
        fi
16248
 
      fi
16249
 
      rm -f conftest.* libconftest.a
16250
 
 
16251
 
fi
16252
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16253
 
 
16254
 
fi
16255
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
16256
 
$as_echo "$lt_cv_ar_at_file" >&6; }
16257
 
 
16258
 
if test "x$lt_cv_ar_at_file" = xno; then
16259
 
  archiver_list_spec=
16260
 
else
16261
 
  archiver_list_spec=$lt_cv_ar_at_file
16262
 
fi
16263
 
 
16264
 
 
16265
 
 
16266
 
 
16267
 
 
16268
 
 
16269
 
 
16270
 
if test -n "$ac_tool_prefix"; then
16271
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
16272
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
16273
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16274
 
$as_echo_n "checking for $ac_word... " >&6; }
16275
 
if ${ac_cv_prog_STRIP+:} false; then :
16276
 
  $as_echo_n "(cached) " >&6
16277
 
else
16278
 
  if test -n "$STRIP"; then
16279
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
16280
 
else
16281
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16282
 
for as_dir in $PATH
16283
 
do
16284
 
  IFS=$as_save_IFS
16285
 
  test -z "$as_dir" && as_dir=.
16286
 
    for ac_exec_ext in '' $ac_executable_extensions; do
16287
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16288
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
16289
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16290
 
    break 2
16291
 
  fi
16292
 
done
16293
 
  done
16294
 
IFS=$as_save_IFS
16295
 
 
16296
 
fi
16297
 
fi
16298
 
STRIP=$ac_cv_prog_STRIP
16299
 
if test -n "$STRIP"; then
16300
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
16301
 
$as_echo "$STRIP" >&6; }
16302
 
else
16303
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16304
 
$as_echo "no" >&6; }
16305
 
fi
16306
 
 
16307
 
 
16308
 
fi
16309
 
if test -z "$ac_cv_prog_STRIP"; then
16310
 
  ac_ct_STRIP=$STRIP
16311
 
  # Extract the first word of "strip", so it can be a program name with args.
16312
 
set dummy strip; ac_word=$2
16313
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16314
 
$as_echo_n "checking for $ac_word... " >&6; }
16315
 
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
16316
 
  $as_echo_n "(cached) " >&6
16317
 
else
16318
 
  if test -n "$ac_ct_STRIP"; then
16319
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
16320
 
else
16321
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16322
 
for as_dir in $PATH
16323
 
do
16324
 
  IFS=$as_save_IFS
16325
 
  test -z "$as_dir" && as_dir=.
16326
 
    for ac_exec_ext in '' $ac_executable_extensions; do
16327
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16328
 
    ac_cv_prog_ac_ct_STRIP="strip"
16329
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16330
 
    break 2
16331
 
  fi
16332
 
done
16333
 
  done
16334
 
IFS=$as_save_IFS
16335
 
 
16336
 
fi
16337
 
fi
16338
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
16339
 
if test -n "$ac_ct_STRIP"; then
16340
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
16341
 
$as_echo "$ac_ct_STRIP" >&6; }
16342
 
else
16343
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16344
 
$as_echo "no" >&6; }
16345
 
fi
16346
 
 
16347
 
  if test "x$ac_ct_STRIP" = x; then
16348
 
    STRIP=":"
16349
 
  else
16350
 
    case $cross_compiling:$ac_tool_warned in
16351
 
yes:)
16352
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16353
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16354
 
ac_tool_warned=yes ;;
16355
 
esac
16356
 
    STRIP=$ac_ct_STRIP
16357
 
  fi
16358
 
else
16359
 
  STRIP="$ac_cv_prog_STRIP"
16360
 
fi
16361
 
 
16362
 
test -z "$STRIP" && STRIP=:
16363
 
 
16364
 
 
16365
 
 
16366
 
 
16367
 
 
16368
 
 
16369
 
if test -n "$ac_tool_prefix"; then
16370
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
16371
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
16372
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16373
 
$as_echo_n "checking for $ac_word... " >&6; }
16374
 
if ${ac_cv_prog_RANLIB+:} false; then :
16375
 
  $as_echo_n "(cached) " >&6
16376
 
else
16377
 
  if test -n "$RANLIB"; then
16378
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
16379
 
else
16380
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16381
 
for as_dir in $PATH
16382
 
do
16383
 
  IFS=$as_save_IFS
16384
 
  test -z "$as_dir" && as_dir=.
16385
 
    for ac_exec_ext in '' $ac_executable_extensions; do
16386
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16387
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
16388
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16389
 
    break 2
16390
 
  fi
16391
 
done
16392
 
  done
16393
 
IFS=$as_save_IFS
16394
 
 
16395
 
fi
16396
 
fi
16397
 
RANLIB=$ac_cv_prog_RANLIB
16398
 
if test -n "$RANLIB"; then
16399
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
16400
 
$as_echo "$RANLIB" >&6; }
16401
 
else
16402
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16403
 
$as_echo "no" >&6; }
16404
 
fi
16405
 
 
16406
 
 
16407
 
fi
16408
 
if test -z "$ac_cv_prog_RANLIB"; then
16409
 
  ac_ct_RANLIB=$RANLIB
16410
 
  # Extract the first word of "ranlib", so it can be a program name with args.
16411
 
set dummy ranlib; ac_word=$2
16412
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16413
 
$as_echo_n "checking for $ac_word... " >&6; }
16414
 
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
16415
 
  $as_echo_n "(cached) " >&6
16416
 
else
16417
 
  if test -n "$ac_ct_RANLIB"; then
16418
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
16419
 
else
16420
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16421
 
for as_dir in $PATH
16422
 
do
16423
 
  IFS=$as_save_IFS
16424
 
  test -z "$as_dir" && as_dir=.
16425
 
    for ac_exec_ext in '' $ac_executable_extensions; do
16426
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16427
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
16428
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16429
 
    break 2
16430
 
  fi
16431
 
done
16432
 
  done
16433
 
IFS=$as_save_IFS
16434
 
 
16435
 
fi
16436
 
fi
16437
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
16438
 
if test -n "$ac_ct_RANLIB"; then
16439
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
16440
 
$as_echo "$ac_ct_RANLIB" >&6; }
16441
 
else
16442
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16443
 
$as_echo "no" >&6; }
16444
 
fi
16445
 
 
16446
 
  if test "x$ac_ct_RANLIB" = x; then
16447
 
    RANLIB=":"
16448
 
  else
16449
 
    case $cross_compiling:$ac_tool_warned in
16450
 
yes:)
16451
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16452
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16453
 
ac_tool_warned=yes ;;
16454
 
esac
16455
 
    RANLIB=$ac_ct_RANLIB
16456
 
  fi
16457
 
else
16458
 
  RANLIB="$ac_cv_prog_RANLIB"
16459
 
fi
16460
 
 
16461
 
test -z "$RANLIB" && RANLIB=:
16462
 
 
16463
 
 
16464
 
 
16465
 
 
16466
 
 
16467
 
 
16468
 
# Determine commands to create old-style static archives.
16469
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
16470
 
old_postinstall_cmds='chmod 644 $oldlib'
16471
 
old_postuninstall_cmds=
16472
 
 
16473
 
if test -n "$RANLIB"; then
16474
 
  case $host_os in
16475
 
  openbsd*)
16476
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
16477
 
    ;;
16478
 
  *)
16479
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
16480
 
    ;;
16481
 
  esac
16482
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
16483
 
fi
16484
 
 
16485
 
case $host_os in
16486
 
  darwin*)
16487
 
    lock_old_archive_extraction=yes ;;
16488
 
  *)
16489
 
    lock_old_archive_extraction=no ;;
16490
 
esac
16491
 
 
16492
 
 
16493
 
 
16494
 
 
16495
 
 
16496
 
 
16497
 
 
16498
 
 
16499
 
 
16500
 
 
16501
 
 
16502
 
 
16503
 
 
16504
 
 
16505
 
 
16506
 
 
16507
 
 
16508
 
 
16509
 
 
16510
 
 
16511
 
 
16512
 
 
16513
 
 
16514
 
 
16515
 
 
16516
 
 
16517
 
 
16518
 
 
16519
 
 
16520
 
 
16521
 
 
16522
 
 
16523
 
 
16524
 
 
16525
 
 
16526
 
 
16527
 
 
16528
 
 
16529
 
 
16530
 
# If no C compiler was specified, use CC.
16531
 
LTCC=${LTCC-"$CC"}
16532
 
 
16533
 
# If no C compiler flags were specified, use CFLAGS.
16534
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16535
 
 
16536
 
# Allow CC to be a program name with arguments.
16537
 
compiler=$CC
16538
 
 
16539
 
 
16540
 
# Check for command to grab the raw symbol name followed by C symbol from nm.
16541
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
16542
 
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
16543
 
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
16544
 
  $as_echo_n "(cached) " >&6
16545
 
else
16546
 
 
16547
 
# These are sane defaults that work on at least a few old systems.
16548
 
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
16549
 
 
16550
 
# Character class describing NM global symbol codes.
16551
 
symcode='[BCDEGRST]'
16552
 
 
16553
 
# Regexp to match symbols that can be accessed directly from C.
16554
 
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
16555
 
 
16556
 
# Define system-specific variables.
16557
 
case $host_os in
16558
 
aix*)
16559
 
  symcode='[BCDT]'
16560
 
  ;;
16561
 
cygwin* | mingw* | pw32* | cegcc*)
16562
 
  symcode='[ABCDGISTW]'
16563
 
  ;;
16564
 
hpux*)
16565
 
  if test "$host_cpu" = ia64; then
16566
 
    symcode='[ABCDEGRST]'
16567
 
  fi
16568
 
  ;;
16569
 
irix* | nonstopux*)
16570
 
  symcode='[BCDEGRST]'
16571
 
  ;;
16572
 
osf*)
16573
 
  symcode='[BCDEGQRST]'
16574
 
  ;;
16575
 
solaris*)
16576
 
  symcode='[BDRT]'
16577
 
  ;;
16578
 
sco3.2v5*)
16579
 
  symcode='[DT]'
16580
 
  ;;
16581
 
sysv4.2uw2*)
16582
 
  symcode='[DT]'
16583
 
  ;;
16584
 
sysv5* | sco5v6* | unixware* | OpenUNIX*)
16585
 
  symcode='[ABDT]'
16586
 
  ;;
16587
 
sysv4)
16588
 
  symcode='[DFNSTU]'
16589
 
  ;;
16590
 
esac
16591
 
 
16592
 
# If we're using GNU nm, then use its standard symbol codes.
16593
 
case `$NM -V 2>&1` in
16594
 
*GNU* | *'with BFD'*)
16595
 
  symcode='[ABCDGIRSTW]' ;;
16596
 
esac
16597
 
 
16598
 
# Transform an extracted symbol line into a proper C declaration.
16599
 
# Some systems (esp. on ia64) link data and code symbols differently,
16600
 
# so use this general approach.
16601
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
16602
 
 
16603
 
# Transform an extracted symbol line into symbol name and symbol address
16604
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
16605
 
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
16606
 
 
16607
 
# Handle CRLF in mingw tool chain
16608
 
opt_cr=
16609
 
case $build_os in
16610
 
mingw*)
16611
 
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
16612
 
  ;;
16613
 
esac
16614
 
 
16615
 
# Try without a prefix underscore, then with it.
16616
 
for ac_symprfx in "" "_"; do
16617
 
 
16618
 
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
16619
 
  symxfrm="\\1 $ac_symprfx\\2 \\2"
16620
 
 
16621
 
  # Write the raw and C identifiers.
16622
 
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
16623
 
    # Fake it for dumpbin and say T for any non-static function
16624
 
    # and D for any global variable.
16625
 
    # Also find C++ and __fastcall symbols from MSVC++,
16626
 
    # which start with @ or ?.
16627
 
    lt_cv_sys_global_symbol_pipe="$AWK '"\
16628
 
"     {last_section=section; section=\$ 3};"\
16629
 
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
16630
 
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
16631
 
"     \$ 0!~/External *\|/{next};"\
16632
 
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
16633
 
"     {if(hide[section]) next};"\
16634
 
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
16635
 
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
16636
 
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
16637
 
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
16638
 
"     ' prfx=^$ac_symprfx"
16639
 
  else
16640
 
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
16641
 
  fi
16642
 
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
16643
 
 
16644
 
  # Check to see that the pipe works correctly.
16645
 
  pipe_works=no
16646
 
 
16647
 
  rm -f conftest*
16648
 
  cat > conftest.$ac_ext <<_LT_EOF
16649
 
#ifdef __cplusplus
16650
 
extern "C" {
16651
 
#endif
16652
 
char nm_test_var;
16653
 
void nm_test_func(void);
16654
 
void nm_test_func(void){}
16655
 
#ifdef __cplusplus
16656
 
}
16657
 
#endif
16658
 
int main(){nm_test_var='a';nm_test_func();return(0);}
16659
 
_LT_EOF
16660
 
 
16661
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16662
 
  (eval $ac_compile) 2>&5
16663
 
  ac_status=$?
16664
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16665
 
  test $ac_status = 0; }; then
16666
 
    # Now try to grab the symbols.
16667
 
    nlist=conftest.nm
16668
 
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
16669
 
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
16670
 
  ac_status=$?
16671
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16672
 
  test $ac_status = 0; } && test -s "$nlist"; then
16673
 
      # Try sorting and uniquifying the output.
16674
 
      if sort "$nlist" | uniq > "$nlist"T; then
16675
 
        mv -f "$nlist"T "$nlist"
16676
 
      else
16677
 
        rm -f "$nlist"T
16678
 
      fi
16679
 
 
16680
 
      # Make sure that we snagged all the symbols we need.
16681
 
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
16682
 
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
16683
 
          cat <<_LT_EOF > conftest.$ac_ext
16684
 
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
16685
 
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
16686
 
/* DATA imports from DLLs on WIN32 con't be const, because runtime
16687
 
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
16688
 
# define LT_DLSYM_CONST
16689
 
#elif defined(__osf__)
16690
 
/* This system does not cope well with relocations in const data.  */
16691
 
# define LT_DLSYM_CONST
16692
 
#else
16693
 
# define LT_DLSYM_CONST const
16694
 
#endif
16695
 
 
16696
 
#ifdef __cplusplus
16697
 
extern "C" {
16698
 
#endif
16699
 
 
16700
 
_LT_EOF
16701
 
          # Now generate the symbol file.
16702
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
16703
 
 
16704
 
          cat <<_LT_EOF >> conftest.$ac_ext
16705
 
 
16706
 
/* The mapping between symbol names and symbols.  */
16707
 
LT_DLSYM_CONST struct {
16708
 
  const char *name;
16709
 
  void       *address;
16710
 
}
16711
 
lt__PROGRAM__LTX_preloaded_symbols[] =
16712
 
{
16713
 
  { "@PROGRAM@", (void *) 0 },
16714
 
_LT_EOF
16715
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
16716
 
          cat <<\_LT_EOF >> conftest.$ac_ext
16717
 
  {0, (void *) 0}
16718
 
};
16719
 
 
16720
 
/* This works around a problem in FreeBSD linker */
16721
 
#ifdef FREEBSD_WORKAROUND
16722
 
static const void *lt_preloaded_setup() {
16723
 
  return lt__PROGRAM__LTX_preloaded_symbols;
16724
 
}
16725
 
#endif
16726
 
 
16727
 
#ifdef __cplusplus
16728
 
}
16729
 
#endif
16730
 
_LT_EOF
16731
 
          # Now try linking the two files.
16732
 
          mv conftest.$ac_objext conftstm.$ac_objext
16733
 
          lt_globsym_save_LIBS=$LIBS
16734
 
          lt_globsym_save_CFLAGS=$CFLAGS
16735
 
          LIBS="conftstm.$ac_objext"
16736
 
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
16737
 
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16738
 
  (eval $ac_link) 2>&5
16739
 
  ac_status=$?
16740
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16741
 
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
16742
 
            pipe_works=yes
16743
 
          fi
16744
 
          LIBS=$lt_globsym_save_LIBS
16745
 
          CFLAGS=$lt_globsym_save_CFLAGS
16746
 
        else
16747
 
          echo "cannot find nm_test_func in $nlist" >&5
16748
 
        fi
16749
 
      else
16750
 
        echo "cannot find nm_test_var in $nlist" >&5
16751
 
      fi
16752
 
    else
16753
 
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
16754
 
    fi
16755
 
  else
16756
 
    echo "$progname: failed program was:" >&5
16757
 
    cat conftest.$ac_ext >&5
16758
 
  fi
16759
 
  rm -rf conftest* conftst*
16760
 
 
16761
 
  # Do not use the global_symbol_pipe unless it works.
16762
 
  if test "$pipe_works" = yes; then
16763
 
    break
16764
 
  else
16765
 
    lt_cv_sys_global_symbol_pipe=
16766
 
  fi
16767
 
done
16768
 
 
16769
 
fi
16770
 
 
16771
 
if test -z "$lt_cv_sys_global_symbol_pipe"; then
16772
 
  lt_cv_sys_global_symbol_to_cdecl=
16773
 
fi
16774
 
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
16775
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
16776
 
$as_echo "failed" >&6; }
16777
 
else
16778
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16779
 
$as_echo "ok" >&6; }
16780
 
fi
16781
 
 
16782
 
# Response file support.
16783
 
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
16784
 
  nm_file_list_spec='@'
16785
 
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
16786
 
  nm_file_list_spec='@'
16787
 
fi
16788
 
 
16789
 
 
16790
 
 
16791
 
 
16792
 
 
16793
 
 
16794
 
 
16795
 
 
16796
 
 
16797
 
 
16798
 
 
16799
 
 
16800
 
 
16801
 
 
16802
 
 
16803
 
 
16804
 
 
16805
 
 
16806
 
 
16807
 
 
16808
 
 
16809
 
 
16810
 
 
16811
 
 
16812
 
 
16813
 
 
16814
 
 
16815
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
16816
 
$as_echo_n "checking for sysroot... " >&6; }
16817
 
 
16818
 
# Check whether --with-sysroot was given.
16819
 
if test "${with_sysroot+set}" = set; then :
16820
 
  withval=$with_sysroot;
16821
 
else
16822
 
  with_sysroot=no
16823
 
fi
16824
 
 
16825
 
 
16826
 
lt_sysroot=
16827
 
case ${with_sysroot} in #(
16828
 
 yes)
16829
 
   if test "$GCC" = yes; then
16830
 
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
16831
 
   fi
16832
 
   ;; #(
16833
 
 /*)
16834
 
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
16835
 
   ;; #(
16836
 
 no|'')
16837
 
   ;; #(
16838
 
 *)
16839
 
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
16840
 
$as_echo "${with_sysroot}" >&6; }
16841
 
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
16842
 
   ;;
16843
 
esac
16844
 
 
16845
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
16846
 
$as_echo "${lt_sysroot:-no}" >&6; }
16847
 
 
16848
 
 
16849
 
 
16850
 
 
16851
 
 
16852
 
# Check whether --enable-libtool-lock was given.
16853
 
if test "${enable_libtool_lock+set}" = set; then :
16854
 
  enableval=$enable_libtool_lock;
16855
 
fi
16856
 
 
16857
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
16858
 
 
16859
 
# Some flags need to be propagated to the compiler or linker for good
16860
 
# libtool support.
16861
 
case $host in
16862
 
ia64-*-hpux*)
16863
 
  # Find out which ABI we are using.
16864
 
  echo 'int i;' > conftest.$ac_ext
16865
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16866
 
  (eval $ac_compile) 2>&5
16867
 
  ac_status=$?
16868
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16869
 
  test $ac_status = 0; }; then
16870
 
    case `/usr/bin/file conftest.$ac_objext` in
16871
 
      *ELF-32*)
16872
 
        HPUX_IA64_MODE="32"
16873
 
        ;;
16874
 
      *ELF-64*)
16875
 
        HPUX_IA64_MODE="64"
16876
 
        ;;
16877
 
    esac
16878
 
  fi
16879
 
  rm -rf conftest*
16880
 
  ;;
16881
 
*-*-irix6*)
16882
 
  # Find out which ABI we are using.
16883
 
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
16884
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16885
 
  (eval $ac_compile) 2>&5
16886
 
  ac_status=$?
16887
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16888
 
  test $ac_status = 0; }; then
16889
 
    if test "$lt_cv_prog_gnu_ld" = yes; then
16890
 
      case `/usr/bin/file conftest.$ac_objext` in
16891
 
        *32-bit*)
16892
 
          LD="${LD-ld} -melf32bsmip"
16893
 
          ;;
16894
 
        *N32*)
16895
 
          LD="${LD-ld} -melf32bmipn32"
16896
 
          ;;
16897
 
        *64-bit*)
16898
 
          LD="${LD-ld} -melf64bmip"
16899
 
        ;;
16900
 
      esac
16901
 
    else
16902
 
      case `/usr/bin/file conftest.$ac_objext` in
16903
 
        *32-bit*)
16904
 
          LD="${LD-ld} -32"
16905
 
          ;;
16906
 
        *N32*)
16907
 
          LD="${LD-ld} -n32"
16908
 
          ;;
16909
 
        *64-bit*)
16910
 
          LD="${LD-ld} -64"
16911
 
          ;;
16912
 
      esac
16913
 
    fi
16914
 
  fi
16915
 
  rm -rf conftest*
16916
 
  ;;
16917
 
 
16918
 
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
16919
 
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
16920
 
  # Find out which ABI we are using.
16921
 
  echo 'int i;' > conftest.$ac_ext
16922
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16923
 
  (eval $ac_compile) 2>&5
16924
 
  ac_status=$?
16925
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16926
 
  test $ac_status = 0; }; then
16927
 
    case `/usr/bin/file conftest.o` in
16928
 
      *32-bit*)
16929
 
        case $host in
16930
 
          x86_64-*kfreebsd*-gnu)
16931
 
            LD="${LD-ld} -m elf_i386_fbsd"
16932
 
            ;;
16933
 
          x86_64-*linux*)
16934
 
            LD="${LD-ld} -m elf_i386"
16935
 
            ;;
16936
 
          ppc64-*linux*|powerpc64-*linux*)
16937
 
            LD="${LD-ld} -m elf32ppclinux"
16938
 
            ;;
16939
 
          s390x-*linux*)
16940
 
            LD="${LD-ld} -m elf_s390"
16941
 
            ;;
16942
 
          sparc64-*linux*)
16943
 
            LD="${LD-ld} -m elf32_sparc"
16944
 
            ;;
16945
 
        esac
16946
 
        ;;
16947
 
      *64-bit*)
16948
 
        case $host in
16949
 
          x86_64-*kfreebsd*-gnu)
16950
 
            LD="${LD-ld} -m elf_x86_64_fbsd"
16951
 
            ;;
16952
 
          x86_64-*linux*)
16953
 
            LD="${LD-ld} -m elf_x86_64"
16954
 
            ;;
16955
 
          ppc*-*linux*|powerpc*-*linux*)
16956
 
            LD="${LD-ld} -m elf64ppc"
16957
 
            ;;
16958
 
          s390*-*linux*|s390*-*tpf*)
16959
 
            LD="${LD-ld} -m elf64_s390"
16960
 
            ;;
16961
 
          sparc*-*linux*)
16962
 
            LD="${LD-ld} -m elf64_sparc"
16963
 
            ;;
16964
 
        esac
16965
 
        ;;
16966
 
    esac
16967
 
  fi
16968
 
  rm -rf conftest*
16969
 
  ;;
16970
 
 
16971
 
*-*-sco3.2v5*)
16972
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
16973
 
  SAVE_CFLAGS="$CFLAGS"
16974
 
  CFLAGS="$CFLAGS -belf"
16975
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
16976
 
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
16977
 
if ${lt_cv_cc_needs_belf+:} false; then :
16978
 
  $as_echo_n "(cached) " >&6
16979
 
else
16980
 
  ac_ext=c
16981
 
ac_cpp='$CPP $CPPFLAGS'
16982
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16983
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16984
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16985
 
 
16986
 
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16987
 
/* end confdefs.h.  */
16988
 
 
16989
 
#ifdef F77_DUMMY_MAIN
16990
 
 
16991
 
#  ifdef __cplusplus
16992
 
     extern "C"
16993
 
#  endif
16994
 
   int F77_DUMMY_MAIN() { return 1; }
16995
 
 
16996
 
#endif
16997
 
int
16998
 
main ()
16999
 
{
17000
 
 
17001
 
  ;
17002
 
  return 0;
17003
 
}
17004
 
_ACEOF
17005
 
if ac_fn_c_try_link "$LINENO"; then :
17006
 
  lt_cv_cc_needs_belf=yes
17007
 
else
17008
 
  lt_cv_cc_needs_belf=no
17009
 
fi
17010
 
rm -f core conftest.err conftest.$ac_objext \
17011
 
    conftest$ac_exeext conftest.$ac_ext
17012
 
     ac_ext=c
17013
 
ac_cpp='$CPP $CPPFLAGS'
17014
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17015
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17016
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17017
 
 
17018
 
fi
17019
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
17020
 
$as_echo "$lt_cv_cc_needs_belf" >&6; }
17021
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
17022
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
17023
 
    CFLAGS="$SAVE_CFLAGS"
17024
 
  fi
17025
 
  ;;
17026
 
*-*solaris*)
17027
 
  # Find out which ABI we are using.
17028
 
  echo 'int i;' > conftest.$ac_ext
17029
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17030
 
  (eval $ac_compile) 2>&5
17031
 
  ac_status=$?
17032
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17033
 
  test $ac_status = 0; }; then
17034
 
    case `/usr/bin/file conftest.o` in
17035
 
    *64-bit*)
17036
 
      case $lt_cv_prog_gnu_ld in
17037
 
      yes*)
17038
 
        case $host in
17039
 
        i?86-*-solaris*)
17040
 
          LD="${LD-ld} -m elf_x86_64"
17041
 
          ;;
17042
 
        sparc*-*-solaris*)
17043
 
          LD="${LD-ld} -m elf64_sparc"
17044
 
          ;;
17045
 
        esac
17046
 
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
17047
 
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
17048
 
          LD="${LD-ld}_sol2"
17049
 
        fi
17050
 
        ;;
17051
 
      *)
17052
 
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
17053
 
          LD="${LD-ld} -64"
17054
 
        fi
17055
 
        ;;
17056
 
      esac
17057
 
      ;;
17058
 
    esac
17059
 
  fi
17060
 
  rm -rf conftest*
17061
 
  ;;
17062
 
esac
17063
 
 
17064
 
need_locks="$enable_libtool_lock"
17065
 
 
17066
 
if test -n "$ac_tool_prefix"; then
17067
 
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
17068
 
set dummy ${ac_tool_prefix}mt; ac_word=$2
17069
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17070
 
$as_echo_n "checking for $ac_word... " >&6; }
17071
 
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
17072
 
  $as_echo_n "(cached) " >&6
17073
 
else
17074
 
  if test -n "$MANIFEST_TOOL"; then
17075
 
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
17076
 
else
17077
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17078
 
for as_dir in $PATH
17079
 
do
17080
 
  IFS=$as_save_IFS
17081
 
  test -z "$as_dir" && as_dir=.
17082
 
    for ac_exec_ext in '' $ac_executable_extensions; do
17083
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17084
 
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
17085
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17086
 
    break 2
17087
 
  fi
17088
 
done
17089
 
  done
17090
 
IFS=$as_save_IFS
17091
 
 
17092
 
fi
17093
 
fi
17094
 
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
17095
 
if test -n "$MANIFEST_TOOL"; then
17096
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
17097
 
$as_echo "$MANIFEST_TOOL" >&6; }
17098
 
else
17099
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17100
 
$as_echo "no" >&6; }
17101
 
fi
17102
 
 
17103
 
 
17104
 
fi
17105
 
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
17106
 
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
17107
 
  # Extract the first word of "mt", so it can be a program name with args.
17108
 
set dummy mt; ac_word=$2
17109
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17110
 
$as_echo_n "checking for $ac_word... " >&6; }
17111
 
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
17112
 
  $as_echo_n "(cached) " >&6
17113
 
else
17114
 
  if test -n "$ac_ct_MANIFEST_TOOL"; then
17115
 
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
17116
 
else
17117
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17118
 
for as_dir in $PATH
17119
 
do
17120
 
  IFS=$as_save_IFS
17121
 
  test -z "$as_dir" && as_dir=.
17122
 
    for ac_exec_ext in '' $ac_executable_extensions; do
17123
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17124
 
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
17125
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17126
 
    break 2
17127
 
  fi
17128
 
done
17129
 
  done
17130
 
IFS=$as_save_IFS
17131
 
 
17132
 
fi
17133
 
fi
17134
 
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
17135
 
if test -n "$ac_ct_MANIFEST_TOOL"; then
17136
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
17137
 
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
17138
 
else
17139
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17140
 
$as_echo "no" >&6; }
17141
 
fi
17142
 
 
17143
 
  if test "x$ac_ct_MANIFEST_TOOL" = x; then
17144
 
    MANIFEST_TOOL=":"
17145
 
  else
17146
 
    case $cross_compiling:$ac_tool_warned in
17147
 
yes:)
17148
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17149
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17150
 
ac_tool_warned=yes ;;
17151
 
esac
17152
 
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
17153
 
  fi
17154
 
else
17155
 
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
17156
 
fi
17157
 
 
17158
 
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
17159
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
17160
 
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
17161
 
if ${lt_cv_path_mainfest_tool+:} false; then :
17162
 
  $as_echo_n "(cached) " >&6
17163
 
else
17164
 
  lt_cv_path_mainfest_tool=no
17165
 
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
17166
 
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
17167
 
  cat conftest.err >&5
17168
 
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
17169
 
    lt_cv_path_mainfest_tool=yes
17170
 
  fi
17171
 
  rm -f conftest*
17172
 
fi
17173
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
17174
 
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
17175
 
if test "x$lt_cv_path_mainfest_tool" != xyes; then
17176
 
  MANIFEST_TOOL=:
17177
 
fi
17178
 
 
17179
 
 
17180
 
 
17181
 
 
17182
 
 
17183
 
 
17184
 
  case $host_os in
17185
 
    rhapsody* | darwin*)
17186
 
    if test -n "$ac_tool_prefix"; then
17187
 
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
17188
 
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
17189
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17190
 
$as_echo_n "checking for $ac_word... " >&6; }
17191
 
if ${ac_cv_prog_DSYMUTIL+:} false; then :
17192
 
  $as_echo_n "(cached) " >&6
17193
 
else
17194
 
  if test -n "$DSYMUTIL"; then
17195
 
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
17196
 
else
17197
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17198
 
for as_dir in $PATH
17199
 
do
17200
 
  IFS=$as_save_IFS
17201
 
  test -z "$as_dir" && as_dir=.
17202
 
    for ac_exec_ext in '' $ac_executable_extensions; do
17203
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17204
 
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
17205
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17206
 
    break 2
17207
 
  fi
17208
 
done
17209
 
  done
17210
 
IFS=$as_save_IFS
17211
 
 
17212
 
fi
17213
 
fi
17214
 
DSYMUTIL=$ac_cv_prog_DSYMUTIL
17215
 
if test -n "$DSYMUTIL"; then
17216
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
17217
 
$as_echo "$DSYMUTIL" >&6; }
17218
 
else
17219
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17220
 
$as_echo "no" >&6; }
17221
 
fi
17222
 
 
17223
 
 
17224
 
fi
17225
 
if test -z "$ac_cv_prog_DSYMUTIL"; then
17226
 
  ac_ct_DSYMUTIL=$DSYMUTIL
17227
 
  # Extract the first word of "dsymutil", so it can be a program name with args.
17228
 
set dummy dsymutil; ac_word=$2
17229
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17230
 
$as_echo_n "checking for $ac_word... " >&6; }
17231
 
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
17232
 
  $as_echo_n "(cached) " >&6
17233
 
else
17234
 
  if test -n "$ac_ct_DSYMUTIL"; then
17235
 
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
17236
 
else
17237
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17238
 
for as_dir in $PATH
17239
 
do
17240
 
  IFS=$as_save_IFS
17241
 
  test -z "$as_dir" && as_dir=.
17242
 
    for ac_exec_ext in '' $ac_executable_extensions; do
17243
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17244
 
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
17245
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17246
 
    break 2
17247
 
  fi
17248
 
done
17249
 
  done
17250
 
IFS=$as_save_IFS
17251
 
 
17252
 
fi
17253
 
fi
17254
 
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
17255
 
if test -n "$ac_ct_DSYMUTIL"; then
17256
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
17257
 
$as_echo "$ac_ct_DSYMUTIL" >&6; }
17258
 
else
17259
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17260
 
$as_echo "no" >&6; }
17261
 
fi
17262
 
 
17263
 
  if test "x$ac_ct_DSYMUTIL" = x; then
17264
 
    DSYMUTIL=":"
17265
 
  else
17266
 
    case $cross_compiling:$ac_tool_warned in
17267
 
yes:)
17268
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17269
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17270
 
ac_tool_warned=yes ;;
17271
 
esac
17272
 
    DSYMUTIL=$ac_ct_DSYMUTIL
17273
 
  fi
17274
 
else
17275
 
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
17276
 
fi
17277
 
 
17278
 
    if test -n "$ac_tool_prefix"; then
17279
 
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
17280
 
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
17281
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17282
 
$as_echo_n "checking for $ac_word... " >&6; }
17283
 
if ${ac_cv_prog_NMEDIT+:} false; then :
17284
 
  $as_echo_n "(cached) " >&6
17285
 
else
17286
 
  if test -n "$NMEDIT"; then
17287
 
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
17288
 
else
17289
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17290
 
for as_dir in $PATH
17291
 
do
17292
 
  IFS=$as_save_IFS
17293
 
  test -z "$as_dir" && as_dir=.
17294
 
    for ac_exec_ext in '' $ac_executable_extensions; do
17295
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17296
 
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
17297
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17298
 
    break 2
17299
 
  fi
17300
 
done
17301
 
  done
17302
 
IFS=$as_save_IFS
17303
 
 
17304
 
fi
17305
 
fi
17306
 
NMEDIT=$ac_cv_prog_NMEDIT
17307
 
if test -n "$NMEDIT"; then
17308
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
17309
 
$as_echo "$NMEDIT" >&6; }
17310
 
else
17311
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17312
 
$as_echo "no" >&6; }
17313
 
fi
17314
 
 
17315
 
 
17316
 
fi
17317
 
if test -z "$ac_cv_prog_NMEDIT"; then
17318
 
  ac_ct_NMEDIT=$NMEDIT
17319
 
  # Extract the first word of "nmedit", so it can be a program name with args.
17320
 
set dummy nmedit; ac_word=$2
17321
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17322
 
$as_echo_n "checking for $ac_word... " >&6; }
17323
 
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
17324
 
  $as_echo_n "(cached) " >&6
17325
 
else
17326
 
  if test -n "$ac_ct_NMEDIT"; then
17327
 
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
17328
 
else
17329
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17330
 
for as_dir in $PATH
17331
 
do
17332
 
  IFS=$as_save_IFS
17333
 
  test -z "$as_dir" && as_dir=.
17334
 
    for ac_exec_ext in '' $ac_executable_extensions; do
17335
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17336
 
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
17337
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17338
 
    break 2
17339
 
  fi
17340
 
done
17341
 
  done
17342
 
IFS=$as_save_IFS
17343
 
 
17344
 
fi
17345
 
fi
17346
 
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
17347
 
if test -n "$ac_ct_NMEDIT"; then
17348
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
17349
 
$as_echo "$ac_ct_NMEDIT" >&6; }
17350
 
else
17351
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17352
 
$as_echo "no" >&6; }
17353
 
fi
17354
 
 
17355
 
  if test "x$ac_ct_NMEDIT" = x; then
17356
 
    NMEDIT=":"
17357
 
  else
17358
 
    case $cross_compiling:$ac_tool_warned in
17359
 
yes:)
17360
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17361
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17362
 
ac_tool_warned=yes ;;
17363
 
esac
17364
 
    NMEDIT=$ac_ct_NMEDIT
17365
 
  fi
17366
 
else
17367
 
  NMEDIT="$ac_cv_prog_NMEDIT"
17368
 
fi
17369
 
 
17370
 
    if test -n "$ac_tool_prefix"; then
17371
 
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
17372
 
set dummy ${ac_tool_prefix}lipo; ac_word=$2
17373
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17374
 
$as_echo_n "checking for $ac_word... " >&6; }
17375
 
if ${ac_cv_prog_LIPO+:} false; then :
17376
 
  $as_echo_n "(cached) " >&6
17377
 
else
17378
 
  if test -n "$LIPO"; then
17379
 
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
17380
 
else
17381
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17382
 
for as_dir in $PATH
17383
 
do
17384
 
  IFS=$as_save_IFS
17385
 
  test -z "$as_dir" && as_dir=.
17386
 
    for ac_exec_ext in '' $ac_executable_extensions; do
17387
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17388
 
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
17389
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17390
 
    break 2
17391
 
  fi
17392
 
done
17393
 
  done
17394
 
IFS=$as_save_IFS
17395
 
 
17396
 
fi
17397
 
fi
17398
 
LIPO=$ac_cv_prog_LIPO
17399
 
if test -n "$LIPO"; then
17400
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
17401
 
$as_echo "$LIPO" >&6; }
17402
 
else
17403
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17404
 
$as_echo "no" >&6; }
17405
 
fi
17406
 
 
17407
 
 
17408
 
fi
17409
 
if test -z "$ac_cv_prog_LIPO"; then
17410
 
  ac_ct_LIPO=$LIPO
17411
 
  # Extract the first word of "lipo", so it can be a program name with args.
17412
 
set dummy lipo; ac_word=$2
17413
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17414
 
$as_echo_n "checking for $ac_word... " >&6; }
17415
 
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
17416
 
  $as_echo_n "(cached) " >&6
17417
 
else
17418
 
  if test -n "$ac_ct_LIPO"; then
17419
 
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
17420
 
else
17421
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17422
 
for as_dir in $PATH
17423
 
do
17424
 
  IFS=$as_save_IFS
17425
 
  test -z "$as_dir" && as_dir=.
17426
 
    for ac_exec_ext in '' $ac_executable_extensions; do
17427
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17428
 
    ac_cv_prog_ac_ct_LIPO="lipo"
17429
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17430
 
    break 2
17431
 
  fi
17432
 
done
17433
 
  done
17434
 
IFS=$as_save_IFS
17435
 
 
17436
 
fi
17437
 
fi
17438
 
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
17439
 
if test -n "$ac_ct_LIPO"; then
17440
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
17441
 
$as_echo "$ac_ct_LIPO" >&6; }
17442
 
else
17443
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17444
 
$as_echo "no" >&6; }
17445
 
fi
17446
 
 
17447
 
  if test "x$ac_ct_LIPO" = x; then
17448
 
    LIPO=":"
17449
 
  else
17450
 
    case $cross_compiling:$ac_tool_warned in
17451
 
yes:)
17452
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17453
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17454
 
ac_tool_warned=yes ;;
17455
 
esac
17456
 
    LIPO=$ac_ct_LIPO
17457
 
  fi
17458
 
else
17459
 
  LIPO="$ac_cv_prog_LIPO"
17460
 
fi
17461
 
 
17462
 
    if test -n "$ac_tool_prefix"; then
17463
 
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
17464
 
set dummy ${ac_tool_prefix}otool; ac_word=$2
17465
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17466
 
$as_echo_n "checking for $ac_word... " >&6; }
17467
 
if ${ac_cv_prog_OTOOL+:} false; then :
17468
 
  $as_echo_n "(cached) " >&6
17469
 
else
17470
 
  if test -n "$OTOOL"; then
17471
 
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
17472
 
else
17473
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17474
 
for as_dir in $PATH
17475
 
do
17476
 
  IFS=$as_save_IFS
17477
 
  test -z "$as_dir" && as_dir=.
17478
 
    for ac_exec_ext in '' $ac_executable_extensions; do
17479
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17480
 
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
17481
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17482
 
    break 2
17483
 
  fi
17484
 
done
17485
 
  done
17486
 
IFS=$as_save_IFS
17487
 
 
17488
 
fi
17489
 
fi
17490
 
OTOOL=$ac_cv_prog_OTOOL
17491
 
if test -n "$OTOOL"; then
17492
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17493
 
$as_echo "$OTOOL" >&6; }
17494
 
else
17495
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17496
 
$as_echo "no" >&6; }
17497
 
fi
17498
 
 
17499
 
 
17500
 
fi
17501
 
if test -z "$ac_cv_prog_OTOOL"; then
17502
 
  ac_ct_OTOOL=$OTOOL
17503
 
  # Extract the first word of "otool", so it can be a program name with args.
17504
 
set dummy otool; ac_word=$2
17505
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17506
 
$as_echo_n "checking for $ac_word... " >&6; }
17507
 
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
17508
 
  $as_echo_n "(cached) " >&6
17509
 
else
17510
 
  if test -n "$ac_ct_OTOOL"; then
17511
 
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
17512
 
else
17513
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17514
 
for as_dir in $PATH
17515
 
do
17516
 
  IFS=$as_save_IFS
17517
 
  test -z "$as_dir" && as_dir=.
17518
 
    for ac_exec_ext in '' $ac_executable_extensions; do
17519
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17520
 
    ac_cv_prog_ac_ct_OTOOL="otool"
17521
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17522
 
    break 2
17523
 
  fi
17524
 
done
17525
 
  done
17526
 
IFS=$as_save_IFS
17527
 
 
17528
 
fi
17529
 
fi
17530
 
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
17531
 
if test -n "$ac_ct_OTOOL"; then
17532
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
17533
 
$as_echo "$ac_ct_OTOOL" >&6; }
17534
 
else
17535
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17536
 
$as_echo "no" >&6; }
17537
 
fi
17538
 
 
17539
 
  if test "x$ac_ct_OTOOL" = x; then
17540
 
    OTOOL=":"
17541
 
  else
17542
 
    case $cross_compiling:$ac_tool_warned in
17543
 
yes:)
17544
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17545
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17546
 
ac_tool_warned=yes ;;
17547
 
esac
17548
 
    OTOOL=$ac_ct_OTOOL
17549
 
  fi
17550
 
else
17551
 
  OTOOL="$ac_cv_prog_OTOOL"
17552
 
fi
17553
 
 
17554
 
    if test -n "$ac_tool_prefix"; then
17555
 
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
17556
 
set dummy ${ac_tool_prefix}otool64; ac_word=$2
17557
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17558
 
$as_echo_n "checking for $ac_word... " >&6; }
17559
 
if ${ac_cv_prog_OTOOL64+:} false; then :
17560
 
  $as_echo_n "(cached) " >&6
17561
 
else
17562
 
  if test -n "$OTOOL64"; then
17563
 
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
17564
 
else
17565
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17566
 
for as_dir in $PATH
17567
 
do
17568
 
  IFS=$as_save_IFS
17569
 
  test -z "$as_dir" && as_dir=.
17570
 
    for ac_exec_ext in '' $ac_executable_extensions; do
17571
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17572
 
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
17573
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17574
 
    break 2
17575
 
  fi
17576
 
done
17577
 
  done
17578
 
IFS=$as_save_IFS
17579
 
 
17580
 
fi
17581
 
fi
17582
 
OTOOL64=$ac_cv_prog_OTOOL64
17583
 
if test -n "$OTOOL64"; then
17584
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
17585
 
$as_echo "$OTOOL64" >&6; }
17586
 
else
17587
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17588
 
$as_echo "no" >&6; }
17589
 
fi
17590
 
 
17591
 
 
17592
 
fi
17593
 
if test -z "$ac_cv_prog_OTOOL64"; then
17594
 
  ac_ct_OTOOL64=$OTOOL64
17595
 
  # Extract the first word of "otool64", so it can be a program name with args.
17596
 
set dummy otool64; ac_word=$2
17597
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17598
 
$as_echo_n "checking for $ac_word... " >&6; }
17599
 
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
17600
 
  $as_echo_n "(cached) " >&6
17601
 
else
17602
 
  if test -n "$ac_ct_OTOOL64"; then
17603
 
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
17604
 
else
17605
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17606
 
for as_dir in $PATH
17607
 
do
17608
 
  IFS=$as_save_IFS
17609
 
  test -z "$as_dir" && as_dir=.
17610
 
    for ac_exec_ext in '' $ac_executable_extensions; do
17611
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17612
 
    ac_cv_prog_ac_ct_OTOOL64="otool64"
17613
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17614
 
    break 2
17615
 
  fi
17616
 
done
17617
 
  done
17618
 
IFS=$as_save_IFS
17619
 
 
17620
 
fi
17621
 
fi
17622
 
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
17623
 
if test -n "$ac_ct_OTOOL64"; then
17624
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
17625
 
$as_echo "$ac_ct_OTOOL64" >&6; }
17626
 
else
17627
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17628
 
$as_echo "no" >&6; }
17629
 
fi
17630
 
 
17631
 
  if test "x$ac_ct_OTOOL64" = x; then
17632
 
    OTOOL64=":"
17633
 
  else
17634
 
    case $cross_compiling:$ac_tool_warned in
17635
 
yes:)
17636
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17637
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17638
 
ac_tool_warned=yes ;;
17639
 
esac
17640
 
    OTOOL64=$ac_ct_OTOOL64
17641
 
  fi
17642
 
else
17643
 
  OTOOL64="$ac_cv_prog_OTOOL64"
17644
 
fi
17645
 
 
17646
 
 
17647
 
 
17648
 
 
17649
 
 
17650
 
 
17651
 
 
17652
 
 
17653
 
 
17654
 
 
17655
 
 
17656
 
 
17657
 
 
17658
 
 
17659
 
 
17660
 
 
17661
 
 
17662
 
 
17663
 
 
17664
 
 
17665
 
 
17666
 
 
17667
 
 
17668
 
 
17669
 
 
17670
 
 
17671
 
 
17672
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
17673
 
$as_echo_n "checking for -single_module linker flag... " >&6; }
17674
 
if ${lt_cv_apple_cc_single_mod+:} false; then :
17675
 
  $as_echo_n "(cached) " >&6
17676
 
else
17677
 
  lt_cv_apple_cc_single_mod=no
17678
 
      if test -z "${LT_MULTI_MODULE}"; then
17679
 
        # By default we will add the -single_module flag. You can override
17680
 
        # by either setting the environment variable LT_MULTI_MODULE
17681
 
        # non-empty at configure time, or by adding -multi_module to the
17682
 
        # link flags.
17683
 
        rm -rf libconftest.dylib*
17684
 
        echo "int foo(void){return 1;}" > conftest.c
17685
 
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17686
 
-dynamiclib -Wl,-single_module conftest.c" >&5
17687
 
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17688
 
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
17689
 
        _lt_result=$?
17690
 
        # If there is a non-empty error log, and "single_module"
17691
 
        # appears in it, assume the flag caused a linker warning
17692
 
        if test -s conftest.err && $GREP single_module conftest.err; then
17693
 
          cat conftest.err >&5
17694
 
        # Otherwise, if the output was created with a 0 exit code from
17695
 
        # the compiler, it worked.
17696
 
        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
17697
 
          lt_cv_apple_cc_single_mod=yes
17698
 
        else
17699
 
          cat conftest.err >&5
17700
 
        fi
17701
 
        rm -rf libconftest.dylib*
17702
 
        rm -f conftest.*
17703
 
      fi
17704
 
fi
17705
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
17706
 
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
17707
 
 
17708
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
17709
 
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
17710
 
if ${lt_cv_ld_exported_symbols_list+:} false; then :
17711
 
  $as_echo_n "(cached) " >&6
17712
 
else
17713
 
  lt_cv_ld_exported_symbols_list=no
17714
 
      save_LDFLAGS=$LDFLAGS
17715
 
      echo "_main" > conftest.sym
17716
 
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
17717
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17718
 
/* end confdefs.h.  */
17719
 
 
17720
 
#ifdef F77_DUMMY_MAIN
17721
 
 
17722
 
#  ifdef __cplusplus
17723
 
     extern "C"
17724
 
#  endif
17725
 
   int F77_DUMMY_MAIN() { return 1; }
17726
 
 
17727
 
#endif
17728
 
int
17729
 
main ()
17730
 
{
17731
 
 
17732
 
  ;
17733
 
  return 0;
17734
 
}
17735
 
_ACEOF
17736
 
if ac_fn_c_try_link "$LINENO"; then :
17737
 
  lt_cv_ld_exported_symbols_list=yes
17738
 
else
17739
 
  lt_cv_ld_exported_symbols_list=no
17740
 
fi
17741
 
rm -f core conftest.err conftest.$ac_objext \
17742
 
    conftest$ac_exeext conftest.$ac_ext
17743
 
        LDFLAGS="$save_LDFLAGS"
17744
 
 
17745
 
fi
17746
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
17747
 
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
17748
 
 
17749
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
17750
 
$as_echo_n "checking for -force_load linker flag... " >&6; }
17751
 
if ${lt_cv_ld_force_load+:} false; then :
17752
 
  $as_echo_n "(cached) " >&6
17753
 
else
17754
 
  lt_cv_ld_force_load=no
17755
 
      cat > conftest.c << _LT_EOF
17756
 
int forced_loaded() { return 2;}
17757
 
_LT_EOF
17758
 
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
17759
 
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
17760
 
      echo "$AR cru libconftest.a conftest.o" >&5
17761
 
      $AR cru libconftest.a conftest.o 2>&5
17762
 
      echo "$RANLIB libconftest.a" >&5
17763
 
      $RANLIB libconftest.a 2>&5
17764
 
      cat > conftest.c << _LT_EOF
17765
 
int main() { return 0;}
17766
 
_LT_EOF
17767
 
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
17768
 
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
17769
 
      _lt_result=$?
17770
 
      if test -s conftest.err && $GREP force_load conftest.err; then
17771
 
        cat conftest.err >&5
17772
 
      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
17773
 
        lt_cv_ld_force_load=yes
17774
 
      else
17775
 
        cat conftest.err >&5
17776
 
      fi
17777
 
        rm -f conftest.err libconftest.a conftest conftest.c
17778
 
        rm -rf conftest.dSYM
17779
 
 
17780
 
fi
17781
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
17782
 
$as_echo "$lt_cv_ld_force_load" >&6; }
17783
 
    case $host_os in
17784
 
    rhapsody* | darwin1.[012])
17785
 
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
17786
 
    darwin1.*)
17787
 
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
17788
 
    darwin*) # darwin 5.x on
17789
 
      # if running on 10.5 or later, the deployment target defaults
17790
 
      # to the OS version, if on x86, and 10.4, the deployment
17791
 
      # target defaults to 10.4. Don't you love it?
17792
 
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
17793
 
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
17794
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
17795
 
        10.[012]*)
17796
 
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
17797
 
        10.*)
17798
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
17799
 
      esac
17800
 
    ;;
17801
 
  esac
17802
 
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
17803
 
      _lt_dar_single_mod='$single_module'
17804
 
    fi
17805
 
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
17806
 
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
17807
 
    else
17808
 
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
17809
 
    fi
17810
 
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
17811
 
      _lt_dsymutil='~$DSYMUTIL $lib || :'
17812
 
    else
17813
 
      _lt_dsymutil=
17814
 
    fi
17815
 
    ;;
17816
 
  esac
17817
 
 
17818
 
for ac_header in dlfcn.h
17819
 
do :
17820
 
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
17821
 
"
17822
 
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
17823
 
  cat >>confdefs.h <<_ACEOF
17824
 
#define HAVE_DLFCN_H 1
17825
 
_ACEOF
17826
 
 
17827
 
fi
17828
 
 
17829
 
done
17830
 
 
17831
 
 
17832
 
 
17833
 
func_stripname_cnf ()
17834
 
{
17835
 
  case ${2} in
17836
 
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17837
 
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17838
 
  esac
17839
 
} # func_stripname_cnf
17840
 
 
17841
 
 
17842
 
 
17843
 
 
17844
 
 
17845
 
# Set options
17846
 
# Check whether --enable-shared was given.
17847
 
if test "${enable_shared+set}" = set; then :
17848
 
  enableval=$enable_shared; p=${PACKAGE-default}
17849
 
    case $enableval in
17850
 
    yes) enable_shared=yes ;;
17851
 
    no) enable_shared=no ;;
17852
 
    *)
17853
 
      enable_shared=no
17854
 
      # Look at the argument we got.  We use all the common list separators.
17855
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17856
 
      for pkg in $enableval; do
17857
 
        IFS="$lt_save_ifs"
17858
 
        if test "X$pkg" = "X$p"; then
17859
 
          enable_shared=yes
17860
 
        fi
17861
 
      done
17862
 
      IFS="$lt_save_ifs"
17863
 
      ;;
17864
 
    esac
17865
 
else
17866
 
  enable_shared=no
17867
 
fi
17868
 
 
17869
 
 
17870
 
 
17871
 
 
17872
 
 
17873
 
 
17874
 
 
17875
 
 
17876
 
 
17877
 
 
17878
 
        enable_dlopen=no
17879
 
 
17880
 
 
17881
 
  enable_win32_dll=no
17882
 
 
17883
 
 
17884
 
 
17885
 
  # Check whether --enable-static was given.
17886
 
if test "${enable_static+set}" = set; then :
17887
 
  enableval=$enable_static; p=${PACKAGE-default}
17888
 
    case $enableval in
17889
 
    yes) enable_static=yes ;;
17890
 
    no) enable_static=no ;;
17891
 
    *)
17892
 
     enable_static=no
17893
 
      # Look at the argument we got.  We use all the common list separators.
17894
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17895
 
      for pkg in $enableval; do
17896
 
        IFS="$lt_save_ifs"
17897
 
        if test "X$pkg" = "X$p"; then
17898
 
          enable_static=yes
17899
 
        fi
17900
 
      done
17901
 
      IFS="$lt_save_ifs"
17902
 
      ;;
17903
 
    esac
17904
 
else
17905
 
  enable_static=yes
17906
 
fi
17907
 
 
17908
 
 
17909
 
 
17910
 
 
17911
 
 
17912
 
 
17913
 
 
17914
 
 
17915
 
 
17916
 
 
17917
 
# Check whether --with-pic was given.
17918
 
if test "${with_pic+set}" = set; then :
17919
 
  withval=$with_pic; lt_p=${PACKAGE-default}
17920
 
    case $withval in
17921
 
    yes|no) pic_mode=$withval ;;
17922
 
    *)
17923
 
      pic_mode=default
17924
 
      # Look at the argument we got.  We use all the common list separators.
17925
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17926
 
      for lt_pkg in $withval; do
17927
 
        IFS="$lt_save_ifs"
17928
 
        if test "X$lt_pkg" = "X$lt_p"; then
17929
 
          pic_mode=yes
17930
 
        fi
17931
 
      done
17932
 
      IFS="$lt_save_ifs"
17933
 
      ;;
17934
 
    esac
17935
 
else
17936
 
  pic_mode=default
17937
 
fi
17938
 
 
17939
 
 
17940
 
test -z "$pic_mode" && pic_mode=default
17941
 
 
17942
 
 
17943
 
 
17944
 
 
17945
 
 
17946
 
 
17947
 
 
17948
 
  # Check whether --enable-fast-install was given.
17949
 
if test "${enable_fast_install+set}" = set; then :
17950
 
  enableval=$enable_fast_install; p=${PACKAGE-default}
17951
 
    case $enableval in
17952
 
    yes) enable_fast_install=yes ;;
17953
 
    no) enable_fast_install=no ;;
17954
 
    *)
17955
 
      enable_fast_install=no
17956
 
      # Look at the argument we got.  We use all the common list separators.
17957
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17958
 
      for pkg in $enableval; do
17959
 
        IFS="$lt_save_ifs"
17960
 
        if test "X$pkg" = "X$p"; then
17961
 
          enable_fast_install=yes
17962
 
        fi
17963
 
      done
17964
 
      IFS="$lt_save_ifs"
17965
 
      ;;
17966
 
    esac
17967
 
else
17968
 
  enable_fast_install=yes
17969
 
fi
17970
 
 
17971
 
 
17972
 
 
17973
 
 
17974
 
 
17975
 
 
17976
 
 
17977
 
 
17978
 
 
17979
 
 
17980
 
 
17981
 
# This can be used to rebuild libtool when needed
17982
 
LIBTOOL_DEPS="$ltmain"
17983
 
 
17984
 
# Always use our own libtool.
17985
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
17986
 
 
17987
 
 
17988
 
 
17989
 
 
17990
 
 
17991
 
 
17992
 
 
17993
 
 
17994
 
 
17995
 
 
17996
 
 
17997
 
 
17998
 
 
17999
 
 
18000
 
 
18001
 
 
18002
 
 
18003
 
 
18004
 
 
18005
 
 
18006
 
 
18007
 
 
18008
 
 
18009
 
 
18010
 
 
18011
 
 
18012
 
 
18013
 
 
18014
 
 
18015
 
 
18016
 
test -z "$LN_S" && LN_S="ln -s"
18017
 
 
18018
 
 
18019
 
 
18020
 
 
18021
 
 
18022
 
 
18023
 
 
18024
 
 
18025
 
 
18026
 
 
18027
 
 
18028
 
 
18029
 
 
18030
 
 
18031
 
if test -n "${ZSH_VERSION+set}" ; then
18032
 
   setopt NO_GLOB_SUBST
18033
 
fi
18034
 
 
18035
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
18036
 
$as_echo_n "checking for objdir... " >&6; }
18037
 
if ${lt_cv_objdir+:} false; then :
18038
 
  $as_echo_n "(cached) " >&6
18039
 
else
18040
 
  rm -f .libs 2>/dev/null
18041
 
mkdir .libs 2>/dev/null
18042
 
if test -d .libs; then
18043
 
  lt_cv_objdir=.libs
18044
 
else
18045
 
  # MS-DOS does not allow filenames that begin with a dot.
18046
 
  lt_cv_objdir=_libs
18047
 
fi
18048
 
rmdir .libs 2>/dev/null
18049
 
fi
18050
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
18051
 
$as_echo "$lt_cv_objdir" >&6; }
18052
 
objdir=$lt_cv_objdir
18053
 
 
18054
 
 
18055
 
 
18056
 
 
18057
 
 
18058
 
cat >>confdefs.h <<_ACEOF
18059
 
#define LT_OBJDIR "$lt_cv_objdir/"
18060
 
_ACEOF
18061
 
 
18062
 
 
18063
 
 
18064
 
 
18065
 
case $host_os in
18066
 
aix3*)
18067
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
18068
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
18069
 
  # vanish in a puff of smoke.
18070
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
18071
 
    COLLECT_NAMES=
18072
 
    export COLLECT_NAMES
18073
 
  fi
18074
 
  ;;
18075
 
esac
18076
 
 
18077
 
# Global variables:
18078
 
ofile=libtool
18079
 
can_build_shared=yes
18080
 
 
18081
 
# All known linkers require a `.a' archive for static linking (except MSVC,
18082
 
# which needs '.lib').
18083
 
libext=a
18084
 
 
18085
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
18086
 
 
18087
 
old_CC="$CC"
18088
 
old_CFLAGS="$CFLAGS"
18089
 
 
18090
 
# Set sane defaults for various variables
18091
 
test -z "$CC" && CC=cc
18092
 
test -z "$LTCC" && LTCC=$CC
18093
 
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
18094
 
test -z "$LD" && LD=ld
18095
 
test -z "$ac_objext" && ac_objext=o
18096
 
 
18097
 
for cc_temp in $compiler""; do
18098
 
  case $cc_temp in
18099
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18100
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18101
 
    \-*) ;;
18102
 
    *) break;;
18103
 
  esac
18104
 
done
18105
 
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18106
 
 
18107
 
 
18108
 
# Only perform the check for file, if the check method requires it
18109
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
18110
 
case $deplibs_check_method in
18111
 
file_magic*)
18112
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
18113
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
18114
 
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
18115
 
if ${lt_cv_path_MAGIC_CMD+:} false; then :
18116
 
  $as_echo_n "(cached) " >&6
18117
 
else
18118
 
  case $MAGIC_CMD in
18119
 
[\\/*] |  ?:[\\/]*)
18120
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
18121
 
  ;;
18122
 
*)
18123
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
18124
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18125
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
18126
 
  for ac_dir in $ac_dummy; do
18127
 
    IFS="$lt_save_ifs"
18128
 
    test -z "$ac_dir" && ac_dir=.
18129
 
    if test -f $ac_dir/${ac_tool_prefix}file; then
18130
 
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
18131
 
      if test -n "$file_magic_test_file"; then
18132
 
        case $deplibs_check_method in
18133
 
        "file_magic "*)
18134
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
18135
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18136
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18137
 
            $EGREP "$file_magic_regex" > /dev/null; then
18138
 
            :
18139
 
          else
18140
 
            cat <<_LT_EOF 1>&2
18141
 
 
18142
 
*** Warning: the command libtool uses to detect shared libraries,
18143
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
18144
 
*** The result is that libtool may fail to recognize shared libraries
18145
 
*** as such.  This will affect the creation of libtool libraries that
18146
 
*** depend on shared libraries, but programs linked with such libtool
18147
 
*** libraries will work regardless of this problem.  Nevertheless, you
18148
 
*** may want to report the problem to your system manager and/or to
18149
 
*** bug-libtool@gnu.org
18150
 
 
18151
 
_LT_EOF
18152
 
          fi ;;
18153
 
        esac
18154
 
      fi
18155
 
      break
18156
 
    fi
18157
 
  done
18158
 
  IFS="$lt_save_ifs"
18159
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
18160
 
  ;;
18161
 
esac
18162
 
fi
18163
 
 
18164
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18165
 
if test -n "$MAGIC_CMD"; then
18166
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
18167
 
$as_echo "$MAGIC_CMD" >&6; }
18168
 
else
18169
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18170
 
$as_echo "no" >&6; }
18171
 
fi
18172
 
 
18173
 
 
18174
 
 
18175
 
 
18176
 
 
18177
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
18178
 
  if test -n "$ac_tool_prefix"; then
18179
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
18180
 
$as_echo_n "checking for file... " >&6; }
18181
 
if ${lt_cv_path_MAGIC_CMD+:} false; then :
18182
 
  $as_echo_n "(cached) " >&6
18183
 
else
18184
 
  case $MAGIC_CMD in
18185
 
[\\/*] |  ?:[\\/]*)
18186
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
18187
 
  ;;
18188
 
*)
18189
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
18190
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18191
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
18192
 
  for ac_dir in $ac_dummy; do
18193
 
    IFS="$lt_save_ifs"
18194
 
    test -z "$ac_dir" && ac_dir=.
18195
 
    if test -f $ac_dir/file; then
18196
 
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
18197
 
      if test -n "$file_magic_test_file"; then
18198
 
        case $deplibs_check_method in
18199
 
        "file_magic "*)
18200
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
18201
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18202
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18203
 
            $EGREP "$file_magic_regex" > /dev/null; then
18204
 
            :
18205
 
          else
18206
 
            cat <<_LT_EOF 1>&2
18207
 
 
18208
 
*** Warning: the command libtool uses to detect shared libraries,
18209
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
18210
 
*** The result is that libtool may fail to recognize shared libraries
18211
 
*** as such.  This will affect the creation of libtool libraries that
18212
 
*** depend on shared libraries, but programs linked with such libtool
18213
 
*** libraries will work regardless of this problem.  Nevertheless, you
18214
 
*** may want to report the problem to your system manager and/or to
18215
 
*** bug-libtool@gnu.org
18216
 
 
18217
 
_LT_EOF
18218
 
          fi ;;
18219
 
        esac
18220
 
      fi
18221
 
      break
18222
 
    fi
18223
 
  done
18224
 
  IFS="$lt_save_ifs"
18225
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
18226
 
  ;;
18227
 
esac
18228
 
fi
18229
 
 
18230
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18231
 
if test -n "$MAGIC_CMD"; then
18232
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
18233
 
$as_echo "$MAGIC_CMD" >&6; }
18234
 
else
18235
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18236
 
$as_echo "no" >&6; }
18237
 
fi
18238
 
 
18239
 
 
18240
 
  else
18241
 
    MAGIC_CMD=:
18242
 
  fi
18243
 
fi
18244
 
 
18245
 
  fi
18246
 
  ;;
18247
 
esac
18248
 
 
18249
 
# Use C for the default configuration in the libtool script
18250
 
 
18251
 
lt_save_CC="$CC"
18252
 
ac_ext=c
18253
 
ac_cpp='$CPP $CPPFLAGS'
18254
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18255
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18256
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18257
 
 
18258
 
 
18259
 
# Source file extension for C test sources.
18260
 
ac_ext=c
18261
 
 
18262
 
# Object file extension for compiled C test sources.
18263
 
objext=o
18264
 
objext=$objext
18265
 
 
18266
 
# Code to be used in simple compile tests
18267
 
lt_simple_compile_test_code="int some_variable = 0;"
18268
 
 
18269
 
# Code to be used in simple link tests
18270
 
lt_simple_link_test_code='int main(){return(0);}'
18271
 
 
18272
 
 
18273
 
 
18274
 
 
18275
 
 
18276
 
 
18277
 
 
18278
 
# If no C compiler was specified, use CC.
18279
 
LTCC=${LTCC-"$CC"}
18280
 
 
18281
 
# If no C compiler flags were specified, use CFLAGS.
18282
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18283
 
 
18284
 
# Allow CC to be a program name with arguments.
18285
 
compiler=$CC
18286
 
 
18287
 
# Save the default compiler, since it gets overwritten when the other
18288
 
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
18289
 
compiler_DEFAULT=$CC
18290
 
 
18291
 
# save warnings/boilerplate of simple test code
18292
 
ac_outfile=conftest.$ac_objext
18293
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18294
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18295
 
_lt_compiler_boilerplate=`cat conftest.err`
18296
 
$RM conftest*
18297
 
 
18298
 
ac_outfile=conftest.$ac_objext
18299
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
18300
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18301
 
_lt_linker_boilerplate=`cat conftest.err`
18302
 
$RM -r conftest*
18303
 
 
18304
 
 
18305
 
## CAVEAT EMPTOR:
18306
 
## There is no encapsulation within the following macros, do not change
18307
 
## the running order or otherwise move them around unless you know exactly
18308
 
## what you are doing...
18309
 
if test -n "$compiler"; then
18310
 
 
18311
 
lt_prog_compiler_no_builtin_flag=
18312
 
 
18313
 
if test "$GCC" = yes; then
18314
 
  case $cc_basename in
18315
 
  nvcc*)
18316
 
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
18317
 
  *)
18318
 
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
18319
 
  esac
18320
 
 
18321
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18322
 
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
18323
 
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
18324
 
  $as_echo_n "(cached) " >&6
18325
 
else
18326
 
  lt_cv_prog_compiler_rtti_exceptions=no
18327
 
   ac_outfile=conftest.$ac_objext
18328
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18329
 
   lt_compiler_flag="-fno-rtti -fno-exceptions"
18330
 
   # Insert the option either (1) after the last *FLAGS variable, or
18331
 
   # (2) before a word containing "conftest.", or (3) at the end.
18332
 
   # Note that $ac_compile itself does not contain backslashes and begins
18333
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
18334
 
   # The option is referenced via a variable to avoid confusing sed.
18335
 
   lt_compile=`echo "$ac_compile" | $SED \
18336
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18337
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18338
 
   -e 's:$: $lt_compiler_flag:'`
18339
 
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18340
 
   (eval "$lt_compile" 2>conftest.err)
18341
 
   ac_status=$?
18342
 
   cat conftest.err >&5
18343
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
18345
 
     # The compiler can only warn and ignore the option if not recognized
18346
 
     # So say no if there are warnings other than the usual output.
18347
 
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18348
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18349
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18350
 
       lt_cv_prog_compiler_rtti_exceptions=yes
18351
 
     fi
18352
 
   fi
18353
 
   $RM conftest*
18354
 
 
18355
 
fi
18356
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18357
 
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18358
 
 
18359
 
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18360
 
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
18361
 
else
18362
 
    :
18363
 
fi
18364
 
 
18365
 
fi
18366
 
 
18367
 
 
18368
 
 
18369
 
 
18370
 
 
18371
 
 
18372
 
  lt_prog_compiler_wl=
18373
 
lt_prog_compiler_pic=
18374
 
lt_prog_compiler_static=
18375
 
 
18376
 
 
18377
 
  if test "$GCC" = yes; then
18378
 
    lt_prog_compiler_wl='-Wl,'
18379
 
    lt_prog_compiler_static='-static'
18380
 
 
18381
 
    case $host_os in
18382
 
      aix*)
18383
 
      # All AIX code is PIC.
18384
 
      if test "$host_cpu" = ia64; then
18385
 
        # AIX 5 now supports IA64 processor
18386
 
        lt_prog_compiler_static='-Bstatic'
18387
 
      fi
18388
 
      ;;
18389
 
 
18390
 
    amigaos*)
18391
 
      case $host_cpu in
18392
 
      powerpc)
18393
 
            # see comment about AmigaOS4 .so support
18394
 
            lt_prog_compiler_pic='-fPIC'
18395
 
        ;;
18396
 
      m68k)
18397
 
            # FIXME: we need at least 68020 code to build shared libraries, but
18398
 
            # adding the `-m68020' flag to GCC prevents building anything better,
18399
 
            # like `-m68040'.
18400
 
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
18401
 
        ;;
18402
 
      esac
18403
 
      ;;
18404
 
 
18405
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18406
 
      # PIC is the default for these OSes.
18407
 
      ;;
18408
 
 
18409
 
    mingw* | cygwin* | pw32* | os2* | cegcc*)
18410
 
      # This hack is so that the source file can tell whether it is being
18411
 
      # built for inclusion in a dll (and should export symbols for example).
18412
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
18413
 
      # (--disable-auto-import) libraries
18414
 
      lt_prog_compiler_pic='-DDLL_EXPORT'
18415
 
      ;;
18416
 
 
18417
 
    darwin* | rhapsody*)
18418
 
      # PIC is the default on this platform
18419
 
      # Common symbols not allowed in MH_DYLIB files
18420
 
      lt_prog_compiler_pic='-fno-common'
18421
 
      ;;
18422
 
 
18423
 
    haiku*)
18424
 
      # PIC is the default for Haiku.
18425
 
      # The "-static" flag exists, but is broken.
18426
 
      lt_prog_compiler_static=
18427
 
      ;;
18428
 
 
18429
 
    hpux*)
18430
 
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18431
 
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
18432
 
      # sets the default TLS model and affects inlining.
18433
 
      case $host_cpu in
18434
 
      hppa*64*)
18435
 
        # +Z the default
18436
 
        ;;
18437
 
      *)
18438
 
        lt_prog_compiler_pic='-fPIC'
18439
 
        ;;
18440
 
      esac
18441
 
      ;;
18442
 
 
18443
 
    interix[3-9]*)
18444
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18445
 
      # Instead, we relocate shared libraries at runtime.
18446
 
      ;;
18447
 
 
18448
 
    msdosdjgpp*)
18449
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
18450
 
      # on systems that don't support them.
18451
 
      lt_prog_compiler_can_build_shared=no
18452
 
      enable_shared=no
18453
 
      ;;
18454
 
 
18455
 
    *nto* | *qnx*)
18456
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
18457
 
      # it will coredump.
18458
 
      lt_prog_compiler_pic='-fPIC -shared'
18459
 
      ;;
18460
 
 
18461
 
    sysv4*MP*)
18462
 
      if test -d /usr/nec; then
18463
 
        lt_prog_compiler_pic=-Kconform_pic
18464
 
      fi
18465
 
      ;;
18466
 
 
18467
 
    *)
18468
 
      lt_prog_compiler_pic='-fPIC'
18469
 
      ;;
18470
 
    esac
18471
 
 
18472
 
    case $cc_basename in
18473
 
    nvcc*) # Cuda Compiler Driver 2.2
18474
 
      lt_prog_compiler_wl='-Xlinker '
18475
 
      if test -n "$lt_prog_compiler_pic"; then
18476
 
        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
18477
 
      fi
18478
 
      ;;
18479
 
    esac
18480
 
  else
18481
 
    # PORTME Check for flag to pass linker flags through the system compiler.
18482
 
    case $host_os in
18483
 
    aix*)
18484
 
      lt_prog_compiler_wl='-Wl,'
18485
 
      if test "$host_cpu" = ia64; then
18486
 
        # AIX 5 now supports IA64 processor
18487
 
        lt_prog_compiler_static='-Bstatic'
18488
 
      else
18489
 
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
18490
 
      fi
18491
 
      ;;
18492
 
 
18493
 
    mingw* | cygwin* | pw32* | os2* | cegcc*)
18494
 
      # This hack is so that the source file can tell whether it is being
18495
 
      # built for inclusion in a dll (and should export symbols for example).
18496
 
      lt_prog_compiler_pic='-DDLL_EXPORT'
18497
 
      ;;
18498
 
 
18499
 
    hpux9* | hpux10* | hpux11*)
18500
 
      lt_prog_compiler_wl='-Wl,'
18501
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18502
 
      # not for PA HP-UX.
18503
 
      case $host_cpu in
18504
 
      hppa*64*|ia64*)
18505
 
        # +Z the default
18506
 
        ;;
18507
 
      *)
18508
 
        lt_prog_compiler_pic='+Z'
18509
 
        ;;
18510
 
      esac
18511
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
18512
 
      lt_prog_compiler_static='${wl}-a ${wl}archive'
18513
 
      ;;
18514
 
 
18515
 
    irix5* | irix6* | nonstopux*)
18516
 
      lt_prog_compiler_wl='-Wl,'
18517
 
      # PIC (with -KPIC) is the default.
18518
 
      lt_prog_compiler_static='-non_shared'
18519
 
      ;;
18520
 
 
18521
 
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
18522
 
      case $cc_basename in
18523
 
      # old Intel for x86_64 which still supported -KPIC.
18524
 
      ecc*)
18525
 
        lt_prog_compiler_wl='-Wl,'
18526
 
        lt_prog_compiler_pic='-KPIC'
18527
 
        lt_prog_compiler_static='-static'
18528
 
        ;;
18529
 
      # icc used to be incompatible with GCC.
18530
 
      # ICC 10 doesn't accept -KPIC any more.
18531
 
      icc* | ifort*)
18532
 
        lt_prog_compiler_wl='-Wl,'
18533
 
        lt_prog_compiler_pic='-fPIC'
18534
 
        lt_prog_compiler_static='-static'
18535
 
        ;;
18536
 
      # Lahey Fortran 8.1.
18537
 
      lf95*)
18538
 
        lt_prog_compiler_wl='-Wl,'
18539
 
        lt_prog_compiler_pic='--shared'
18540
 
        lt_prog_compiler_static='--static'
18541
 
        ;;
18542
 
      nagfor*)
18543
 
        # NAG Fortran compiler
18544
 
        lt_prog_compiler_wl='-Wl,-Wl,,'
18545
 
        lt_prog_compiler_pic='-PIC'
18546
 
        lt_prog_compiler_static='-Bstatic'
18547
 
        ;;
18548
 
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
18549
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
18550
 
        # which looks to be a dead project)
18551
 
        lt_prog_compiler_wl='-Wl,'
18552
 
        lt_prog_compiler_pic='-fpic'
18553
 
        lt_prog_compiler_static='-Bstatic'
18554
 
        ;;
18555
 
      ccc*)
18556
 
        lt_prog_compiler_wl='-Wl,'
18557
 
        # All Alpha code is PIC.
18558
 
        lt_prog_compiler_static='-non_shared'
18559
 
        ;;
18560
 
      xl* | bgxl* | bgf* | mpixl*)
18561
 
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
18562
 
        lt_prog_compiler_wl='-Wl,'
18563
 
        lt_prog_compiler_pic='-qpic'
18564
 
        lt_prog_compiler_static='-qstaticlink'
18565
 
        ;;
18566
 
      *)
18567
 
        case `$CC -V 2>&1 | sed 5q` in
18568
 
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
18569
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
18570
 
          lt_prog_compiler_pic='-KPIC'
18571
 
          lt_prog_compiler_static='-Bstatic'
18572
 
          lt_prog_compiler_wl=''
18573
 
          ;;
18574
 
        *Sun\ F* | *Sun*Fortran*)
18575
 
          lt_prog_compiler_pic='-KPIC'
18576
 
          lt_prog_compiler_static='-Bstatic'
18577
 
          lt_prog_compiler_wl='-Qoption ld '
18578
 
          ;;
18579
 
        *Sun\ C*)
18580
 
          # Sun C 5.9
18581
 
          lt_prog_compiler_pic='-KPIC'
18582
 
          lt_prog_compiler_static='-Bstatic'
18583
 
          lt_prog_compiler_wl='-Wl,'
18584
 
          ;;
18585
 
        *Intel*\ [CF]*Compiler*)
18586
 
          lt_prog_compiler_wl='-Wl,'
18587
 
          lt_prog_compiler_pic='-fPIC'
18588
 
          lt_prog_compiler_static='-static'
18589
 
          ;;
18590
 
        *Portland\ Group*)
18591
 
          lt_prog_compiler_wl='-Wl,'
18592
 
          lt_prog_compiler_pic='-fpic'
18593
 
          lt_prog_compiler_static='-Bstatic'
18594
 
          ;;
18595
 
        esac
18596
 
        ;;
18597
 
      esac
18598
 
      ;;
18599
 
 
18600
 
    newsos6)
18601
 
      lt_prog_compiler_pic='-KPIC'
18602
 
      lt_prog_compiler_static='-Bstatic'
18603
 
      ;;
18604
 
 
18605
 
    *nto* | *qnx*)
18606
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
18607
 
      # it will coredump.
18608
 
      lt_prog_compiler_pic='-fPIC -shared'
18609
 
      ;;
18610
 
 
18611
 
    osf3* | osf4* | osf5*)
18612
 
      lt_prog_compiler_wl='-Wl,'
18613
 
      # All OSF/1 code is PIC.
18614
 
      lt_prog_compiler_static='-non_shared'
18615
 
      ;;
18616
 
 
18617
 
    rdos*)
18618
 
      lt_prog_compiler_static='-non_shared'
18619
 
      ;;
18620
 
 
18621
 
    solaris*)
18622
 
      lt_prog_compiler_pic='-KPIC'
18623
 
      lt_prog_compiler_static='-Bstatic'
18624
 
      case $cc_basename in
18625
 
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
18626
 
        lt_prog_compiler_wl='-Qoption ld ';;
18627
 
      *)
18628
 
        lt_prog_compiler_wl='-Wl,';;
18629
 
      esac
18630
 
      ;;
18631
 
 
18632
 
    sunos4*)
18633
 
      lt_prog_compiler_wl='-Qoption ld '
18634
 
      lt_prog_compiler_pic='-PIC'
18635
 
      lt_prog_compiler_static='-Bstatic'
18636
 
      ;;
18637
 
 
18638
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
18639
 
      lt_prog_compiler_wl='-Wl,'
18640
 
      lt_prog_compiler_pic='-KPIC'
18641
 
      lt_prog_compiler_static='-Bstatic'
18642
 
      ;;
18643
 
 
18644
 
    sysv4*MP*)
18645
 
      if test -d /usr/nec ;then
18646
 
        lt_prog_compiler_pic='-Kconform_pic'
18647
 
        lt_prog_compiler_static='-Bstatic'
18648
 
      fi
18649
 
      ;;
18650
 
 
18651
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18652
 
      lt_prog_compiler_wl='-Wl,'
18653
 
      lt_prog_compiler_pic='-KPIC'
18654
 
      lt_prog_compiler_static='-Bstatic'
18655
 
      ;;
18656
 
 
18657
 
    unicos*)
18658
 
      lt_prog_compiler_wl='-Wl,'
18659
 
      lt_prog_compiler_can_build_shared=no
18660
 
      ;;
18661
 
 
18662
 
    uts4*)
18663
 
      lt_prog_compiler_pic='-pic'
18664
 
      lt_prog_compiler_static='-Bstatic'
18665
 
      ;;
18666
 
 
18667
 
    *)
18668
 
      lt_prog_compiler_can_build_shared=no
18669
 
      ;;
18670
 
    esac
18671
 
  fi
18672
 
 
18673
 
case $host_os in
18674
 
  # For platforms which do not support PIC, -DPIC is meaningless:
18675
 
  *djgpp*)
18676
 
    lt_prog_compiler_pic=
18677
 
    ;;
18678
 
  *)
18679
 
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
18680
 
    ;;
18681
 
esac
18682
 
 
18683
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18684
 
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18685
 
if ${lt_cv_prog_compiler_pic+:} false; then :
18686
 
  $as_echo_n "(cached) " >&6
18687
 
else
18688
 
  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
18689
 
fi
18690
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
18691
 
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
18692
 
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
18693
 
 
18694
 
#
18695
 
# Check to make sure the PIC flag actually works.
18696
 
#
18697
 
if test -n "$lt_prog_compiler_pic"; then
18698
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
18699
 
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
18700
 
if ${lt_cv_prog_compiler_pic_works+:} false; then :
18701
 
  $as_echo_n "(cached) " >&6
18702
 
else
18703
 
  lt_cv_prog_compiler_pic_works=no
18704
 
   ac_outfile=conftest.$ac_objext
18705
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18706
 
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
18707
 
   # Insert the option either (1) after the last *FLAGS variable, or
18708
 
   # (2) before a word containing "conftest.", or (3) at the end.
18709
 
   # Note that $ac_compile itself does not contain backslashes and begins
18710
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
18711
 
   # The option is referenced via a variable to avoid confusing sed.
18712
 
   lt_compile=`echo "$ac_compile" | $SED \
18713
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18714
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18715
 
   -e 's:$: $lt_compiler_flag:'`
18716
 
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18717
 
   (eval "$lt_compile" 2>conftest.err)
18718
 
   ac_status=$?
18719
 
   cat conftest.err >&5
18720
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
18722
 
     # The compiler can only warn and ignore the option if not recognized
18723
 
     # So say no if there are warnings other than the usual output.
18724
 
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18725
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18726
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18727
 
       lt_cv_prog_compiler_pic_works=yes
18728
 
     fi
18729
 
   fi
18730
 
   $RM conftest*
18731
 
 
18732
 
fi
18733
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
18734
 
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
18735
 
 
18736
 
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
18737
 
    case $lt_prog_compiler_pic in
18738
 
     "" | " "*) ;;
18739
 
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
18740
 
     esac
18741
 
else
18742
 
    lt_prog_compiler_pic=
18743
 
     lt_prog_compiler_can_build_shared=no
18744
 
fi
18745
 
 
18746
 
fi
18747
 
 
18748
 
 
18749
 
 
18750
 
 
18751
 
 
18752
 
 
18753
 
 
18754
 
 
18755
 
 
18756
 
 
18757
 
 
18758
 
#
18759
 
# Check to make sure the static flag actually works.
18760
 
#
18761
 
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
18762
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18763
 
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18764
 
if ${lt_cv_prog_compiler_static_works+:} false; then :
18765
 
  $as_echo_n "(cached) " >&6
18766
 
else
18767
 
  lt_cv_prog_compiler_static_works=no
18768
 
   save_LDFLAGS="$LDFLAGS"
18769
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18770
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
18771
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18772
 
     # The linker can only warn and ignore the option if not recognized
18773
 
     # So say no if there are warnings
18774
 
     if test -s conftest.err; then
18775
 
       # Append any errors to the config.log.
18776
 
       cat conftest.err 1>&5
18777
 
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18778
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18779
 
       if diff conftest.exp conftest.er2 >/dev/null; then
18780
 
         lt_cv_prog_compiler_static_works=yes
18781
 
       fi
18782
 
     else
18783
 
       lt_cv_prog_compiler_static_works=yes
18784
 
     fi
18785
 
   fi
18786
 
   $RM -r conftest*
18787
 
   LDFLAGS="$save_LDFLAGS"
18788
 
 
18789
 
fi
18790
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
18791
 
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
18792
 
 
18793
 
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
18794
 
    :
18795
 
else
18796
 
    lt_prog_compiler_static=
18797
 
fi
18798
 
 
18799
 
 
18800
 
 
18801
 
 
18802
 
 
18803
 
 
18804
 
 
18805
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18806
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18807
 
if ${lt_cv_prog_compiler_c_o+:} false; then :
18808
 
  $as_echo_n "(cached) " >&6
18809
 
else
18810
 
  lt_cv_prog_compiler_c_o=no
18811
 
   $RM -r conftest 2>/dev/null
18812
 
   mkdir conftest
18813
 
   cd conftest
18814
 
   mkdir out
18815
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18816
 
 
18817
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
18818
 
   # Insert the option either (1) after the last *FLAGS variable, or
18819
 
   # (2) before a word containing "conftest.", or (3) at the end.
18820
 
   # Note that $ac_compile itself does not contain backslashes and begins
18821
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
18822
 
   lt_compile=`echo "$ac_compile" | $SED \
18823
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18824
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18825
 
   -e 's:$: $lt_compiler_flag:'`
18826
 
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18827
 
   (eval "$lt_compile" 2>out/conftest.err)
18828
 
   ac_status=$?
18829
 
   cat out/conftest.err >&5
18830
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
18832
 
   then
18833
 
     # The compiler can only warn and ignore the option if not recognized
18834
 
     # So say no if there are warnings
18835
 
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18836
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18837
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18838
 
       lt_cv_prog_compiler_c_o=yes
18839
 
     fi
18840
 
   fi
18841
 
   chmod u+w . 2>&5
18842
 
   $RM conftest*
18843
 
   # SGI C++ compiler will create directory out/ii_files/ for
18844
 
   # template instantiation
18845
 
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18846
 
   $RM out/* && rmdir out
18847
 
   cd ..
18848
 
   $RM -r conftest
18849
 
   $RM conftest*
18850
 
 
18851
 
fi
18852
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
18853
 
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
18854
 
 
18855
 
 
18856
 
 
18857
 
 
18858
 
 
18859
 
 
18860
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18861
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18862
 
if ${lt_cv_prog_compiler_c_o+:} false; then :
18863
 
  $as_echo_n "(cached) " >&6
18864
 
else
18865
 
  lt_cv_prog_compiler_c_o=no
18866
 
   $RM -r conftest 2>/dev/null
18867
 
   mkdir conftest
18868
 
   cd conftest
18869
 
   mkdir out
18870
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18871
 
 
18872
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
18873
 
   # Insert the option either (1) after the last *FLAGS variable, or
18874
 
   # (2) before a word containing "conftest.", or (3) at the end.
18875
 
   # Note that $ac_compile itself does not contain backslashes and begins
18876
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
18877
 
   lt_compile=`echo "$ac_compile" | $SED \
18878
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18879
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18880
 
   -e 's:$: $lt_compiler_flag:'`
18881
 
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18882
 
   (eval "$lt_compile" 2>out/conftest.err)
18883
 
   ac_status=$?
18884
 
   cat out/conftest.err >&5
18885
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
18887
 
   then
18888
 
     # The compiler can only warn and ignore the option if not recognized
18889
 
     # So say no if there are warnings
18890
 
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18891
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18892
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18893
 
       lt_cv_prog_compiler_c_o=yes
18894
 
     fi
18895
 
   fi
18896
 
   chmod u+w . 2>&5
18897
 
   $RM conftest*
18898
 
   # SGI C++ compiler will create directory out/ii_files/ for
18899
 
   # template instantiation
18900
 
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18901
 
   $RM out/* && rmdir out
18902
 
   cd ..
18903
 
   $RM -r conftest
18904
 
   $RM conftest*
18905
 
 
18906
 
fi
18907
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
18908
 
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
18909
 
 
18910
 
 
18911
 
 
18912
 
 
18913
 
hard_links="nottested"
18914
 
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
18915
 
  # do not overwrite the value of need_locks provided by the user
18916
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18917
 
$as_echo_n "checking if we can lock with hard links... " >&6; }
18918
 
  hard_links=yes
18919
 
  $RM conftest*
18920
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18921
 
  touch conftest.a
18922
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
18923
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18924
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18925
 
$as_echo "$hard_links" >&6; }
18926
 
  if test "$hard_links" = no; then
18927
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18928
 
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18929
 
    need_locks=warn
18930
 
  fi
18931
 
else
18932
 
  need_locks=no
18933
 
fi
18934
 
 
18935
 
 
18936
 
 
18937
 
 
18938
 
 
18939
 
 
18940
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18941
 
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18942
 
 
18943
 
  runpath_var=
18944
 
  allow_undefined_flag=
18945
 
  always_export_symbols=no
18946
 
  archive_cmds=
18947
 
  archive_expsym_cmds=
18948
 
  compiler_needs_object=no
18949
 
  enable_shared_with_static_runtimes=no
18950
 
  export_dynamic_flag_spec=
18951
 
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18952
 
  hardcode_automatic=no
18953
 
  hardcode_direct=no
18954
 
  hardcode_direct_absolute=no
18955
 
  hardcode_libdir_flag_spec=
18956
 
  hardcode_libdir_separator=
18957
 
  hardcode_minus_L=no
18958
 
  hardcode_shlibpath_var=unsupported
18959
 
  inherit_rpath=no
18960
 
  link_all_deplibs=unknown
18961
 
  module_cmds=
18962
 
  module_expsym_cmds=
18963
 
  old_archive_from_new_cmds=
18964
 
  old_archive_from_expsyms_cmds=
18965
 
  thread_safe_flag_spec=
18966
 
  whole_archive_flag_spec=
18967
 
  # include_expsyms should be a list of space-separated symbols to be *always*
18968
 
  # included in the symbol list
18969
 
  include_expsyms=
18970
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
18971
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
18972
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18973
 
  # as well as any symbol that contains `d'.
18974
 
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18975
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18976
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
18977
 
  # the symbol is explicitly referenced.  Since portable code cannot
18978
 
  # rely on this symbol name, it's probably fine to never include it in
18979
 
  # preloaded symbol tables.
18980
 
  # Exclude shared library initialization/finalization symbols.
18981
 
  extract_expsyms_cmds=
18982
 
 
18983
 
  case $host_os in
18984
 
  cygwin* | mingw* | pw32* | cegcc*)
18985
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
18986
 
    # When not using gcc, we currently assume that we are using
18987
 
    # Microsoft Visual C++.
18988
 
    if test "$GCC" != yes; then
18989
 
      with_gnu_ld=no
18990
 
    fi
18991
 
    ;;
18992
 
  interix*)
18993
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
18994
 
    with_gnu_ld=yes
18995
 
    ;;
18996
 
  openbsd*)
18997
 
    with_gnu_ld=no
18998
 
    ;;
18999
 
  esac
19000
 
 
19001
 
  ld_shlibs=yes
19002
 
 
19003
 
  # On some targets, GNU ld is compatible enough with the native linker
19004
 
  # that we're better off using the native interface for both.
19005
 
  lt_use_gnu_ld_interface=no
19006
 
  if test "$with_gnu_ld" = yes; then
19007
 
    case $host_os in
19008
 
      aix*)
19009
 
        # The AIX port of GNU ld has always aspired to compatibility
19010
 
        # with the native linker.  However, as the warning in the GNU ld
19011
 
        # block says, versions before 2.19.5* couldn't really create working
19012
 
        # shared libraries, regardless of the interface used.
19013
 
        case `$LD -v 2>&1` in
19014
 
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
19015
 
          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
19016
 
          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
19017
 
          *)
19018
 
            lt_use_gnu_ld_interface=yes
19019
 
            ;;
19020
 
        esac
19021
 
        ;;
19022
 
      *)
19023
 
        lt_use_gnu_ld_interface=yes
19024
 
        ;;
19025
 
    esac
19026
 
  fi
19027
 
 
19028
 
  if test "$lt_use_gnu_ld_interface" = yes; then
19029
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
19030
 
    wlarc='${wl}'
19031
 
 
19032
 
    # Set some defaults for GNU ld with shared library support. These
19033
 
    # are reset later if shared libraries are not supported. Putting them
19034
 
    # here allows them to be overridden if necessary.
19035
 
    runpath_var=LD_RUN_PATH
19036
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19037
 
    export_dynamic_flag_spec='${wl}--export-dynamic'
19038
 
    # ancient GNU ld didn't support --whole-archive et. al.
19039
 
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
19040
 
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19041
 
    else
19042
 
      whole_archive_flag_spec=
19043
 
    fi
19044
 
    supports_anon_versioning=no
19045
 
    case `$LD -v 2>&1` in
19046
 
      *GNU\ gold*) supports_anon_versioning=yes ;;
19047
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19048
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19049
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19050
 
      *\ 2.11.*) ;; # other 2.11 versions
19051
 
      *) supports_anon_versioning=yes ;;
19052
 
    esac
19053
 
 
19054
 
    # See if GNU ld supports shared libraries.
19055
 
    case $host_os in
19056
 
    aix[3-9]*)
19057
 
      # On AIX/PPC, the GNU linker is very broken
19058
 
      if test "$host_cpu" != ia64; then
19059
 
        ld_shlibs=no
19060
 
        cat <<_LT_EOF 1>&2
19061
 
 
19062
 
*** Warning: the GNU linker, at least up to release 2.19, is reported
19063
 
*** to be unable to reliably create shared libraries on AIX.
19064
 
*** Therefore, libtool is disabling shared libraries support.  If you
19065
 
*** really care for shared libraries, you may want to install binutils
19066
 
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
19067
 
*** You will then need to restart the configuration process.
19068
 
 
19069
 
_LT_EOF
19070
 
      fi
19071
 
      ;;
19072
 
 
19073
 
    amigaos*)
19074
 
      case $host_cpu in
19075
 
      powerpc)
19076
 
            # see comment about AmigaOS4 .so support
19077
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19078
 
            archive_expsym_cmds=''
19079
 
        ;;
19080
 
      m68k)
19081
 
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
19082
 
            hardcode_libdir_flag_spec='-L$libdir'
19083
 
            hardcode_minus_L=yes
19084
 
        ;;
19085
 
      esac
19086
 
      ;;
19087
 
 
19088
 
    beos*)
19089
 
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19090
 
        allow_undefined_flag=unsupported
19091
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19092
 
        # support --undefined.  This deserves some investigation.  FIXME
19093
 
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19094
 
      else
19095
 
        ld_shlibs=no
19096
 
      fi
19097
 
      ;;
19098
 
 
19099
 
    cygwin* | mingw* | pw32* | cegcc*)
19100
 
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
19101
 
      # as there is no search path for DLLs.
19102
 
      hardcode_libdir_flag_spec='-L$libdir'
19103
 
      export_dynamic_flag_spec='${wl}--export-all-symbols'
19104
 
      allow_undefined_flag=unsupported
19105
 
      always_export_symbols=no
19106
 
      enable_shared_with_static_runtimes=yes
19107
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
19108
 
      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19109
 
 
19110
 
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19111
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19112
 
        # If the export-symbols file already is a .def file (1st line
19113
 
        # is EXPORTS), use it as is; otherwise, prepend...
19114
 
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19115
 
          cp $export_symbols $output_objdir/$soname.def;
19116
 
        else
19117
 
          echo EXPORTS > $output_objdir/$soname.def;
19118
 
          cat $export_symbols >> $output_objdir/$soname.def;
19119
 
        fi~
19120
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19121
 
      else
19122
 
        ld_shlibs=no
19123
 
      fi
19124
 
      ;;
19125
 
 
19126
 
    haiku*)
19127
 
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19128
 
      link_all_deplibs=yes
19129
 
      ;;
19130
 
 
19131
 
    interix[3-9]*)
19132
 
      hardcode_direct=no
19133
 
      hardcode_shlibpath_var=no
19134
 
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
19135
 
      export_dynamic_flag_spec='${wl}-E'
19136
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19137
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
19138
 
      # default) and relocated if they conflict, which is a slow very memory
19139
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
19140
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19141
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19142
 
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19143
 
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19144
 
      ;;
19145
 
 
19146
 
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
19147
 
      tmp_diet=no
19148
 
      if test "$host_os" = linux-dietlibc; then
19149
 
        case $cc_basename in
19150
 
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
19151
 
        esac
19152
 
      fi
19153
 
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
19154
 
         && test "$tmp_diet" = no
19155
 
      then
19156
 
        tmp_addflag=' $pic_flag'
19157
 
        tmp_sharedflag='-shared'
19158
 
        case $cc_basename,$host_cpu in
19159
 
        pgcc*)                          # Portland Group C compiler
19160
 
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
19161
 
          tmp_addflag=' $pic_flag'
19162
 
          ;;
19163
 
        pgf77* | pgf90* | pgf95* | pgfortran*)
19164
 
                                        # Portland Group f77 and f90 compilers
19165
 
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
19166
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
19167
 
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
19168
 
          tmp_addflag=' -i_dynamic' ;;
19169
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
19170
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
19171
 
        ifc* | ifort*)                  # Intel Fortran compiler
19172
 
          tmp_addflag=' -nofor_main' ;;
19173
 
        lf95*)                          # Lahey Fortran 8.1
19174
 
          whole_archive_flag_spec=
19175
 
          tmp_sharedflag='--shared' ;;
19176
 
        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
19177
 
          tmp_sharedflag='-qmkshrobj'
19178
 
          tmp_addflag= ;;
19179
 
        nvcc*)  # Cuda Compiler Driver 2.2
19180
 
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
19181
 
          compiler_needs_object=yes
19182
 
          ;;
19183
 
        esac
19184
 
        case `$CC -V 2>&1 | sed 5q` in
19185
 
        *Sun\ C*)                       # Sun C 5.9
19186
 
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
19187
 
          compiler_needs_object=yes
19188
 
          tmp_sharedflag='-G' ;;
19189
 
        *Sun\ F*)                       # Sun Fortran 8.3
19190
 
          tmp_sharedflag='-G' ;;
19191
 
        esac
19192
 
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19193
 
 
19194
 
        if test "x$supports_anon_versioning" = xyes; then
19195
 
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
19196
 
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19197
 
            echo "local: *; };" >> $output_objdir/$libname.ver~
19198
 
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19199
 
        fi
19200
 
 
19201
 
        case $cc_basename in
19202
 
        xlf* | bgf* | bgxlf* | mpixlf*)
19203
 
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
19204
 
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
19205
 
          hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19206
 
          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
19207
 
          if test "x$supports_anon_versioning" = xyes; then
19208
 
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
19209
 
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19210
 
              echo "local: *; };" >> $output_objdir/$libname.ver~
19211
 
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
19212
 
          fi
19213
 
          ;;
19214
 
        esac
19215
 
      else
19216
 
        ld_shlibs=no
19217
 
      fi
19218
 
      ;;
19219
 
 
19220
 
    netbsd*)
19221
 
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19222
 
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19223
 
        wlarc=
19224
 
      else
19225
 
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19226
 
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19227
 
      fi
19228
 
      ;;
19229
 
 
19230
 
    solaris*)
19231
 
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
19232
 
        ld_shlibs=no
19233
 
        cat <<_LT_EOF 1>&2
19234
 
 
19235
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19236
 
*** create shared libraries on Solaris systems.  Therefore, libtool
19237
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
19238
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
19239
 
*** your PATH or compiler configuration so that the native linker is
19240
 
*** used, and then restart.
19241
 
 
19242
 
_LT_EOF
19243
 
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19244
 
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19245
 
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19246
 
      else
19247
 
        ld_shlibs=no
19248
 
      fi
19249
 
      ;;
19250
 
 
19251
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19252
 
      case `$LD -v 2>&1` in
19253
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19254
 
        ld_shlibs=no
19255
 
        cat <<_LT_EOF 1>&2
19256
 
 
19257
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19258
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
19259
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
19260
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
19261
 
*** your PATH or compiler configuration so that the native linker is
19262
 
*** used, and then restart.
19263
 
 
19264
 
_LT_EOF
19265
 
        ;;
19266
 
        *)
19267
 
          # For security reasons, it is highly recommended that you always
19268
 
          # use absolute paths for naming shared libraries, and exclude the
19269
 
          # DT_RUNPATH tag from executables and libraries.  But doing so
19270
 
          # requires that you compile everything twice, which is a pain.
19271
 
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19272
 
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19273
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19274
 
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19275
 
          else
19276
 
            ld_shlibs=no
19277
 
          fi
19278
 
        ;;
19279
 
      esac
19280
 
      ;;
19281
 
 
19282
 
    sunos4*)
19283
 
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19284
 
      wlarc=
19285
 
      hardcode_direct=yes
19286
 
      hardcode_shlibpath_var=no
19287
 
      ;;
19288
 
 
19289
 
    *)
19290
 
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19291
 
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19292
 
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19293
 
      else
19294
 
        ld_shlibs=no
19295
 
      fi
19296
 
      ;;
19297
 
    esac
19298
 
 
19299
 
    if test "$ld_shlibs" = no; then
19300
 
      runpath_var=
19301
 
      hardcode_libdir_flag_spec=
19302
 
      export_dynamic_flag_spec=
19303
 
      whole_archive_flag_spec=
19304
 
    fi
19305
 
  else
19306
 
    # PORTME fill in a description of your system's linker (not GNU ld)
19307
 
    case $host_os in
19308
 
    aix3*)
19309
 
      allow_undefined_flag=unsupported
19310
 
      always_export_symbols=yes
19311
 
      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
19312
 
      # Note: this linker hardcodes the directories in LIBPATH if there
19313
 
      # are no directories specified by -L.
19314
 
      hardcode_minus_L=yes
19315
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19316
 
        # Neither direct hardcoding nor static linking is supported with a
19317
 
        # broken collect2.
19318
 
        hardcode_direct=unsupported
19319
 
      fi
19320
 
      ;;
19321
 
 
19322
 
    aix[4-9]*)
19323
 
      if test "$host_cpu" = ia64; then
19324
 
        # On IA64, the linker does run time linking by default, so we don't
19325
 
        # have to do anything special.
19326
 
        aix_use_runtimelinking=no
19327
 
        exp_sym_flag='-Bexport'
19328
 
        no_entry_flag=""
19329
 
      else
19330
 
        # If we're using GNU nm, then we don't want the "-C" option.
19331
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
19332
 
        # Also, AIX nm treats weak defined symbols like other global
19333
 
        # defined symbols, whereas GNU nm marks them as "W".
19334
 
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19335
 
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
19336
 
        else
19337
 
          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
19338
 
        fi
19339
 
        aix_use_runtimelinking=no
19340
 
 
19341
 
        # Test if we are trying to use run time linking or normal
19342
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19343
 
        # need to do runtime linking.
19344
 
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19345
 
          for ld_flag in $LDFLAGS; do
19346
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19347
 
            aix_use_runtimelinking=yes
19348
 
            break
19349
 
          fi
19350
 
          done
19351
 
          ;;
19352
 
        esac
19353
 
 
19354
 
        exp_sym_flag='-bexport'
19355
 
        no_entry_flag='-bnoentry'
19356
 
      fi
19357
 
 
19358
 
      # When large executables or shared objects are built, AIX ld can
19359
 
      # have problems creating the table of contents.  If linking a library
19360
 
      # or program results in "error TOC overflow" add -mminimal-toc to
19361
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19362
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19363
 
 
19364
 
      archive_cmds=''
19365
 
      hardcode_direct=yes
19366
 
      hardcode_direct_absolute=yes
19367
 
      hardcode_libdir_separator=':'
19368
 
      link_all_deplibs=yes
19369
 
      file_list_spec='${wl}-f,'
19370
 
 
19371
 
      if test "$GCC" = yes; then
19372
 
        case $host_os in aix4.[012]|aix4.[012].*)
19373
 
        # We only want to do this on AIX 4.2 and lower, the check
19374
 
        # below for broken collect2 doesn't work under 4.3+
19375
 
          collect2name=`${CC} -print-prog-name=collect2`
19376
 
          if test -f "$collect2name" &&
19377
 
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19378
 
          then
19379
 
          # We have reworked collect2
19380
 
          :
19381
 
          else
19382
 
          # We have old collect2
19383
 
          hardcode_direct=unsupported
19384
 
          # It fails to find uninstalled libraries when the uninstalled
19385
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
19386
 
          # to unsupported forces relinking
19387
 
          hardcode_minus_L=yes
19388
 
          hardcode_libdir_flag_spec='-L$libdir'
19389
 
          hardcode_libdir_separator=
19390
 
          fi
19391
 
          ;;
19392
 
        esac
19393
 
        shared_flag='-shared'
19394
 
        if test "$aix_use_runtimelinking" = yes; then
19395
 
          shared_flag="$shared_flag "'${wl}-G'
19396
 
        fi
19397
 
      else
19398
 
        # not using gcc
19399
 
        if test "$host_cpu" = ia64; then
19400
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19401
 
        # chokes on -Wl,-G. The following line is correct:
19402
 
          shared_flag='-G'
19403
 
        else
19404
 
          if test "$aix_use_runtimelinking" = yes; then
19405
 
            shared_flag='${wl}-G'
19406
 
          else
19407
 
            shared_flag='${wl}-bM:SRE'
19408
 
          fi
19409
 
        fi
19410
 
      fi
19411
 
 
19412
 
      export_dynamic_flag_spec='${wl}-bexpall'
19413
 
      # It seems that -bexpall does not export symbols beginning with
19414
 
      # underscore (_), so it is better to generate a list of symbols to export.
19415
 
      always_export_symbols=yes
19416
 
      if test "$aix_use_runtimelinking" = yes; then
19417
 
        # Warning - without using the other runtime loading flags (-brtl),
19418
 
        # -berok will link without error, but may produce a broken library.
19419
 
        allow_undefined_flag='-berok'
19420
 
        # Determine the default libpath from the value encoded in an
19421
 
        # empty executable.
19422
 
        if test "${lt_cv_aix_libpath+set}" = set; then
19423
 
  aix_libpath=$lt_cv_aix_libpath
19424
 
else
19425
 
  if ${lt_cv_aix_libpath_+:} false; then :
19426
 
  $as_echo_n "(cached) " >&6
19427
 
else
19428
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19429
 
/* end confdefs.h.  */
19430
 
 
19431
 
#ifdef F77_DUMMY_MAIN
19432
 
 
19433
 
#  ifdef __cplusplus
19434
 
     extern "C"
19435
 
#  endif
19436
 
   int F77_DUMMY_MAIN() { return 1; }
19437
 
 
19438
 
#endif
19439
 
int
19440
 
main ()
19441
 
{
19442
 
 
19443
 
  ;
19444
 
  return 0;
19445
 
}
19446
 
_ACEOF
19447
 
if ac_fn_c_try_link "$LINENO"; then :
19448
 
 
19449
 
  lt_aix_libpath_sed='
19450
 
      /Import File Strings/,/^$/ {
19451
 
          /^0/ {
19452
 
              s/^0  *\([^ ]*\) *$/\1/
19453
 
              p
19454
 
          }
19455
 
      }'
19456
 
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19457
 
  # Check for a 64-bit object if we didn't find anything.
19458
 
  if test -z "$lt_cv_aix_libpath_"; then
19459
 
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19460
 
  fi
19461
 
fi
19462
 
rm -f core conftest.err conftest.$ac_objext \
19463
 
    conftest$ac_exeext conftest.$ac_ext
19464
 
  if test -z "$lt_cv_aix_libpath_"; then
19465
 
    lt_cv_aix_libpath_="/usr/lib:/lib"
19466
 
  fi
19467
 
 
19468
 
fi
19469
 
 
19470
 
  aix_libpath=$lt_cv_aix_libpath_
19471
 
fi
19472
 
 
19473
 
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
19474
 
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
19475
 
      else
19476
 
        if test "$host_cpu" = ia64; then
19477
 
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
19478
 
          allow_undefined_flag="-z nodefs"
19479
 
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
19480
 
        else
19481
 
         # Determine the default libpath from the value encoded in an
19482
 
         # empty executable.
19483
 
         if test "${lt_cv_aix_libpath+set}" = set; then
19484
 
  aix_libpath=$lt_cv_aix_libpath
19485
 
else
19486
 
  if ${lt_cv_aix_libpath_+:} false; then :
19487
 
  $as_echo_n "(cached) " >&6
19488
 
else
19489
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19490
 
/* end confdefs.h.  */
19491
 
 
19492
 
#ifdef F77_DUMMY_MAIN
19493
 
 
19494
 
#  ifdef __cplusplus
19495
 
     extern "C"
19496
 
#  endif
19497
 
   int F77_DUMMY_MAIN() { return 1; }
19498
 
 
19499
 
#endif
19500
 
int
19501
 
main ()
19502
 
{
19503
 
 
19504
 
  ;
19505
 
  return 0;
19506
 
}
19507
 
_ACEOF
19508
 
if ac_fn_c_try_link "$LINENO"; then :
19509
 
 
19510
 
  lt_aix_libpath_sed='
19511
 
      /Import File Strings/,/^$/ {
19512
 
          /^0/ {
19513
 
              s/^0  *\([^ ]*\) *$/\1/
19514
 
              p
19515
 
          }
19516
 
      }'
19517
 
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19518
 
  # Check for a 64-bit object if we didn't find anything.
19519
 
  if test -z "$lt_cv_aix_libpath_"; then
19520
 
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19521
 
  fi
19522
 
fi
19523
 
rm -f core conftest.err conftest.$ac_objext \
19524
 
    conftest$ac_exeext conftest.$ac_ext
19525
 
  if test -z "$lt_cv_aix_libpath_"; then
19526
 
    lt_cv_aix_libpath_="/usr/lib:/lib"
19527
 
  fi
19528
 
 
19529
 
fi
19530
 
 
19531
 
  aix_libpath=$lt_cv_aix_libpath_
19532
 
fi
19533
 
 
19534
 
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
19535
 
          # Warning - without using the other run time loading flags,
19536
 
          # -berok will link without error, but may produce a broken library.
19537
 
          no_undefined_flag=' ${wl}-bernotok'
19538
 
          allow_undefined_flag=' ${wl}-berok'
19539
 
          if test "$with_gnu_ld" = yes; then
19540
 
            # We only use this code for GNU lds that support --whole-archive.
19541
 
            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19542
 
          else
19543
 
            # Exported symbols can be pulled into shared objects from archives
19544
 
            whole_archive_flag_spec='$convenience'
19545
 
          fi
19546
 
          archive_cmds_need_lc=yes
19547
 
          # This is similar to how AIX traditionally builds its shared libraries.
19548
 
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
19549
 
        fi
19550
 
      fi
19551
 
      ;;
19552
 
 
19553
 
    amigaos*)
19554
 
      case $host_cpu in
19555
 
      powerpc)
19556
 
            # see comment about AmigaOS4 .so support
19557
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19558
 
            archive_expsym_cmds=''
19559
 
        ;;
19560
 
      m68k)
19561
 
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
19562
 
            hardcode_libdir_flag_spec='-L$libdir'
19563
 
            hardcode_minus_L=yes
19564
 
        ;;
19565
 
      esac
19566
 
      ;;
19567
 
 
19568
 
    bsdi[45]*)
19569
 
      export_dynamic_flag_spec=-rdynamic
19570
 
      ;;
19571
 
 
19572
 
    cygwin* | mingw* | pw32* | cegcc*)
19573
 
      # When not using gcc, we currently assume that we are using
19574
 
      # Microsoft Visual C++.
19575
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
19576
 
      # no search path for DLLs.
19577
 
      case $cc_basename in
19578
 
      cl*)
19579
 
        # Native MSVC
19580
 
        hardcode_libdir_flag_spec=' '
19581
 
        allow_undefined_flag=unsupported
19582
 
        always_export_symbols=yes
19583
 
        file_list_spec='@'
19584
 
        # Tell ltmain to make .lib files, not .a files.
19585
 
        libext=lib
19586
 
        # Tell ltmain to make .dll files, not .so files.
19587
 
        shrext_cmds=".dll"
19588
 
        # FIXME: Setting linknames here is a bad hack.
19589
 
        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
19590
 
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19591
 
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
19592
 
          else
19593
 
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
19594
 
          fi~
19595
 
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
19596
 
          linknames='
19597
 
        # The linker will not automatically build a static lib if we build a DLL.
19598
 
        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
19599
 
        enable_shared_with_static_runtimes=yes
19600
 
        exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19601
 
        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19602
 
        # Don't use ranlib
19603
 
        old_postinstall_cmds='chmod 644 $oldlib'
19604
 
        postlink_cmds='lt_outputfile="@OUTPUT@"~
19605
 
          lt_tool_outputfile="@TOOL_OUTPUT@"~
19606
 
          case $lt_outputfile in
19607
 
            *.exe|*.EXE) ;;
19608
 
            *)
19609
 
              lt_outputfile="$lt_outputfile.exe"
19610
 
              lt_tool_outputfile="$lt_tool_outputfile.exe"
19611
 
              ;;
19612
 
          esac~
19613
 
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
19614
 
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
19615
 
            $RM "$lt_outputfile.manifest";
19616
 
          fi'
19617
 
        ;;
19618
 
      *)
19619
 
        # Assume MSVC wrapper
19620
 
        hardcode_libdir_flag_spec=' '
19621
 
        allow_undefined_flag=unsupported
19622
 
        # Tell ltmain to make .lib files, not .a files.
19623
 
        libext=lib
19624
 
        # Tell ltmain to make .dll files, not .so files.
19625
 
        shrext_cmds=".dll"
19626
 
        # FIXME: Setting linknames here is a bad hack.
19627
 
        archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
19628
 
        # The linker will automatically build a .lib file if we build a DLL.
19629
 
        old_archive_from_new_cmds='true'
19630
 
        # FIXME: Should let the user specify the lib program.
19631
 
        old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
19632
 
        enable_shared_with_static_runtimes=yes
19633
 
        ;;
19634
 
      esac
19635
 
      ;;
19636
 
 
19637
 
    darwin* | rhapsody*)
19638
 
 
19639
 
 
19640
 
  archive_cmds_need_lc=no
19641
 
  hardcode_direct=no
19642
 
  hardcode_automatic=yes
19643
 
  hardcode_shlibpath_var=unsupported
19644
 
  if test "$lt_cv_ld_force_load" = "yes"; then
19645
 
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
19646
 
 
19647
 
  else
19648
 
    whole_archive_flag_spec=''
19649
 
  fi
19650
 
  link_all_deplibs=yes
19651
 
  allow_undefined_flag="$_lt_dar_allow_undefined"
19652
 
  case $cc_basename in
19653
 
     ifort*) _lt_dar_can_shared=yes ;;
19654
 
     *) _lt_dar_can_shared=$GCC ;;
19655
 
  esac
19656
 
  if test "$_lt_dar_can_shared" = "yes"; then
19657
 
    output_verbose_link_cmd=func_echo_all
19658
 
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
19659
 
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19660
 
    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
19661
 
    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
19662
 
 
19663
 
  else
19664
 
  ld_shlibs=no
19665
 
  fi
19666
 
 
19667
 
      ;;
19668
 
 
19669
 
    dgux*)
19670
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19671
 
      hardcode_libdir_flag_spec='-L$libdir'
19672
 
      hardcode_shlibpath_var=no
19673
 
      ;;
19674
 
 
19675
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19676
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
19677
 
    # does not break anything, and helps significantly (at the cost of a little
19678
 
    # extra space).
19679
 
    freebsd2.2*)
19680
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19681
 
      hardcode_libdir_flag_spec='-R$libdir'
19682
 
      hardcode_direct=yes
19683
 
      hardcode_shlibpath_var=no
19684
 
      ;;
19685
 
 
19686
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19687
 
    freebsd2.*)
19688
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19689
 
      hardcode_direct=yes
19690
 
      hardcode_minus_L=yes
19691
 
      hardcode_shlibpath_var=no
19692
 
      ;;
19693
 
 
19694
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19695
 
    freebsd* | dragonfly*)
19696
 
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19697
 
      hardcode_libdir_flag_spec='-R$libdir'
19698
 
      hardcode_direct=yes
19699
 
      hardcode_shlibpath_var=no
19700
 
      ;;
19701
 
 
19702
 
    hpux9*)
19703
 
      if test "$GCC" = yes; then
19704
 
        archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19705
 
      else
19706
 
        archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19707
 
      fi
19708
 
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
19709
 
      hardcode_libdir_separator=:
19710
 
      hardcode_direct=yes
19711
 
 
19712
 
      # hardcode_minus_L: Not really in the search PATH,
19713
 
      # but as the default location of the library.
19714
 
      hardcode_minus_L=yes
19715
 
      export_dynamic_flag_spec='${wl}-E'
19716
 
      ;;
19717
 
 
19718
 
    hpux10*)
19719
 
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
19720
 
        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19721
 
      else
19722
 
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19723
 
      fi
19724
 
      if test "$with_gnu_ld" = no; then
19725
 
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
19726
 
        hardcode_libdir_separator=:
19727
 
        hardcode_direct=yes
19728
 
        hardcode_direct_absolute=yes
19729
 
        export_dynamic_flag_spec='${wl}-E'
19730
 
        # hardcode_minus_L: Not really in the search PATH,
19731
 
        # but as the default location of the library.
19732
 
        hardcode_minus_L=yes
19733
 
      fi
19734
 
      ;;
19735
 
 
19736
 
    hpux11*)
19737
 
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
19738
 
        case $host_cpu in
19739
 
        hppa*64*)
19740
 
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19741
 
          ;;
19742
 
        ia64*)
19743
 
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19744
 
          ;;
19745
 
        *)
19746
 
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19747
 
          ;;
19748
 
        esac
19749
 
      else
19750
 
        case $host_cpu in
19751
 
        hppa*64*)
19752
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19753
 
          ;;
19754
 
        ia64*)
19755
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19756
 
          ;;
19757
 
        *)
19758
 
 
19759
 
          # Older versions of the 11.00 compiler do not understand -b yet
19760
 
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
19761
 
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
19762
 
$as_echo_n "checking if $CC understands -b... " >&6; }
19763
 
if ${lt_cv_prog_compiler__b+:} false; then :
19764
 
  $as_echo_n "(cached) " >&6
19765
 
else
19766
 
  lt_cv_prog_compiler__b=no
19767
 
   save_LDFLAGS="$LDFLAGS"
19768
 
   LDFLAGS="$LDFLAGS -b"
19769
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
19770
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19771
 
     # The linker can only warn and ignore the option if not recognized
19772
 
     # So say no if there are warnings
19773
 
     if test -s conftest.err; then
19774
 
       # Append any errors to the config.log.
19775
 
       cat conftest.err 1>&5
19776
 
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19777
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19778
 
       if diff conftest.exp conftest.er2 >/dev/null; then
19779
 
         lt_cv_prog_compiler__b=yes
19780
 
       fi
19781
 
     else
19782
 
       lt_cv_prog_compiler__b=yes
19783
 
     fi
19784
 
   fi
19785
 
   $RM -r conftest*
19786
 
   LDFLAGS="$save_LDFLAGS"
19787
 
 
19788
 
fi
19789
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
19790
 
$as_echo "$lt_cv_prog_compiler__b" >&6; }
19791
 
 
19792
 
if test x"$lt_cv_prog_compiler__b" = xyes; then
19793
 
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19794
 
else
19795
 
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19796
 
fi
19797
 
 
19798
 
          ;;
19799
 
        esac
19800
 
      fi
19801
 
      if test "$with_gnu_ld" = no; then
19802
 
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
19803
 
        hardcode_libdir_separator=:
19804
 
 
19805
 
        case $host_cpu in
19806
 
        hppa*64*|ia64*)
19807
 
          hardcode_direct=no
19808
 
          hardcode_shlibpath_var=no
19809
 
          ;;
19810
 
        *)
19811
 
          hardcode_direct=yes
19812
 
          hardcode_direct_absolute=yes
19813
 
          export_dynamic_flag_spec='${wl}-E'
19814
 
 
19815
 
          # hardcode_minus_L: Not really in the search PATH,
19816
 
          # but as the default location of the library.
19817
 
          hardcode_minus_L=yes
19818
 
          ;;
19819
 
        esac
19820
 
      fi
19821
 
      ;;
19822
 
 
19823
 
    irix5* | irix6* | nonstopux*)
19824
 
      if test "$GCC" = yes; then
19825
 
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19826
 
        # Try to use the -exported_symbol ld option, if it does not
19827
 
        # work, assume that -exports_file does not work either and
19828
 
        # implicitly export all symbols.
19829
 
        # This should be the same for all languages, so no per-tag cache variable.
19830
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
19831
 
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
19832
 
if ${lt_cv_irix_exported_symbol+:} false; then :
19833
 
  $as_echo_n "(cached) " >&6
19834
 
else
19835
 
  save_LDFLAGS="$LDFLAGS"
19836
 
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
19837
 
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19838
 
/* end confdefs.h.  */
19839
 
int foo (void) { return 0; }
19840
 
_ACEOF
19841
 
if ac_fn_c_try_link "$LINENO"; then :
19842
 
  lt_cv_irix_exported_symbol=yes
19843
 
else
19844
 
  lt_cv_irix_exported_symbol=no
19845
 
fi
19846
 
rm -f core conftest.err conftest.$ac_objext \
19847
 
    conftest$ac_exeext conftest.$ac_ext
19848
 
           LDFLAGS="$save_LDFLAGS"
19849
 
fi
19850
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
19851
 
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
19852
 
        if test "$lt_cv_irix_exported_symbol" = yes; then
19853
 
          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
19854
 
        fi
19855
 
      else
19856
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
19857
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
19858
 
      fi
19859
 
      archive_cmds_need_lc='no'
19860
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19861
 
      hardcode_libdir_separator=:
19862
 
      inherit_rpath=yes
19863
 
      link_all_deplibs=yes
19864
 
      ;;
19865
 
 
19866
 
    netbsd*)
19867
 
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19868
 
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19869
 
      else
19870
 
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19871
 
      fi
19872
 
      hardcode_libdir_flag_spec='-R$libdir'
19873
 
      hardcode_direct=yes
19874
 
      hardcode_shlibpath_var=no
19875
 
      ;;
19876
 
 
19877
 
    newsos6)
19878
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19879
 
      hardcode_direct=yes
19880
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19881
 
      hardcode_libdir_separator=:
19882
 
      hardcode_shlibpath_var=no
19883
 
      ;;
19884
 
 
19885
 
    *nto* | *qnx*)
19886
 
      ;;
19887
 
 
19888
 
    openbsd*)
19889
 
      if test -f /usr/libexec/ld.so; then
19890
 
        hardcode_direct=yes
19891
 
        hardcode_shlibpath_var=no
19892
 
        hardcode_direct_absolute=yes
19893
 
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19894
 
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19895
 
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19896
 
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
19897
 
          export_dynamic_flag_spec='${wl}-E'
19898
 
        else
19899
 
          case $host_os in
19900
 
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19901
 
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19902
 
             hardcode_libdir_flag_spec='-R$libdir'
19903
 
             ;;
19904
 
           *)
19905
 
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19906
 
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
19907
 
             ;;
19908
 
          esac
19909
 
        fi
19910
 
      else
19911
 
        ld_shlibs=no
19912
 
      fi
19913
 
      ;;
19914
 
 
19915
 
    os2*)
19916
 
      hardcode_libdir_flag_spec='-L$libdir'
19917
 
      hardcode_minus_L=yes
19918
 
      allow_undefined_flag=unsupported
19919
 
      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
19920
 
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19921
 
      ;;
19922
 
 
19923
 
    osf3*)
19924
 
      if test "$GCC" = yes; then
19925
 
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
19926
 
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19927
 
      else
19928
 
        allow_undefined_flag=' -expect_unresolved \*'
19929
 
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
19930
 
      fi
19931
 
      archive_cmds_need_lc='no'
19932
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19933
 
      hardcode_libdir_separator=:
19934
 
      ;;
19935
 
 
19936
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
19937
 
      if test "$GCC" = yes; then
19938
 
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
19939
 
        archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19940
 
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19941
 
      else
19942
 
        allow_undefined_flag=' -expect_unresolved \*'
19943
 
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
19944
 
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
19945
 
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
19946
 
 
19947
 
        # Both c and cxx compiler support -rpath directly
19948
 
        hardcode_libdir_flag_spec='-rpath $libdir'
19949
 
      fi
19950
 
      archive_cmds_need_lc='no'
19951
 
      hardcode_libdir_separator=:
19952
 
      ;;
19953
 
 
19954
 
    solaris*)
19955
 
      no_undefined_flag=' -z defs'
19956
 
      if test "$GCC" = yes; then
19957
 
        wlarc='${wl}'
19958
 
        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19959
 
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19960
 
          $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
19961
 
      else
19962
 
        case `$CC -V 2>&1` in
19963
 
        *"Compilers 5.0"*)
19964
 
          wlarc=''
19965
 
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19966
 
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19967
 
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
19968
 
          ;;
19969
 
        *)
19970
 
          wlarc='${wl}'
19971
 
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
19972
 
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19973
 
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
19974
 
          ;;
19975
 
        esac
19976
 
      fi
19977
 
      hardcode_libdir_flag_spec='-R$libdir'
19978
 
      hardcode_shlibpath_var=no
19979
 
      case $host_os in
19980
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
19981
 
      *)
19982
 
        # The compiler driver will combine and reorder linker options,
19983
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
19984
 
        # but is careful enough not to reorder.
19985
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
19986
 
        if test "$GCC" = yes; then
19987
 
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19988
 
        else
19989
 
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
19990
 
        fi
19991
 
        ;;
19992
 
      esac
19993
 
      link_all_deplibs=yes
19994
 
      ;;
19995
 
 
19996
 
    sunos4*)
19997
 
      if test "x$host_vendor" = xsequent; then
19998
 
        # Use $CC to link under sequent, because it throws in some extra .o
19999
 
        # files that make .init and .fini sections work.
20000
 
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20001
 
      else
20002
 
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20003
 
      fi
20004
 
      hardcode_libdir_flag_spec='-L$libdir'
20005
 
      hardcode_direct=yes
20006
 
      hardcode_minus_L=yes
20007
 
      hardcode_shlibpath_var=no
20008
 
      ;;
20009
 
 
20010
 
    sysv4)
20011
 
      case $host_vendor in
20012
 
        sni)
20013
 
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20014
 
          hardcode_direct=yes # is this really true???
20015
 
        ;;
20016
 
        siemens)
20017
 
          ## LD is ld it makes a PLAMLIB
20018
 
          ## CC just makes a GrossModule.
20019
 
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20020
 
          reload_cmds='$CC -r -o $output$reload_objs'
20021
 
          hardcode_direct=no
20022
 
        ;;
20023
 
        motorola)
20024
 
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20025
 
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
20026
 
        ;;
20027
 
      esac
20028
 
      runpath_var='LD_RUN_PATH'
20029
 
      hardcode_shlibpath_var=no
20030
 
      ;;
20031
 
 
20032
 
    sysv4.3*)
20033
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20034
 
      hardcode_shlibpath_var=no
20035
 
      export_dynamic_flag_spec='-Bexport'
20036
 
      ;;
20037
 
 
20038
 
    sysv4*MP*)
20039
 
      if test -d /usr/nec; then
20040
 
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20041
 
        hardcode_shlibpath_var=no
20042
 
        runpath_var=LD_RUN_PATH
20043
 
        hardcode_runpath_var=yes
20044
 
        ld_shlibs=yes
20045
 
      fi
20046
 
      ;;
20047
 
 
20048
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20049
 
      no_undefined_flag='${wl}-z,text'
20050
 
      archive_cmds_need_lc=no
20051
 
      hardcode_shlibpath_var=no
20052
 
      runpath_var='LD_RUN_PATH'
20053
 
 
20054
 
      if test "$GCC" = yes; then
20055
 
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20056
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20057
 
      else
20058
 
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20059
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20060
 
      fi
20061
 
      ;;
20062
 
 
20063
 
    sysv5* | sco3.2v5* | sco5v6*)
20064
 
      # Note: We can NOT use -z defs as we might desire, because we do not
20065
 
      # link with -lc, and that would cause any symbols used from libc to
20066
 
      # always be unresolved, which means just about no library would
20067
 
      # ever link correctly.  If we're not using GNU ld we use -z text
20068
 
      # though, which does catch some bad symbols but isn't as heavy-handed
20069
 
      # as -z defs.
20070
 
      no_undefined_flag='${wl}-z,text'
20071
 
      allow_undefined_flag='${wl}-z,nodefs'
20072
 
      archive_cmds_need_lc=no
20073
 
      hardcode_shlibpath_var=no
20074
 
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
20075
 
      hardcode_libdir_separator=':'
20076
 
      link_all_deplibs=yes
20077
 
      export_dynamic_flag_spec='${wl}-Bexport'
20078
 
      runpath_var='LD_RUN_PATH'
20079
 
 
20080
 
      if test "$GCC" = yes; then
20081
 
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20082
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20083
 
      else
20084
 
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20085
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20086
 
      fi
20087
 
      ;;
20088
 
 
20089
 
    uts4*)
20090
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20091
 
      hardcode_libdir_flag_spec='-L$libdir'
20092
 
      hardcode_shlibpath_var=no
20093
 
      ;;
20094
 
 
20095
 
    *)
20096
 
      ld_shlibs=no
20097
 
      ;;
20098
 
    esac
20099
 
 
20100
 
    if test x$host_vendor = xsni; then
20101
 
      case $host in
20102
 
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20103
 
        export_dynamic_flag_spec='${wl}-Blargedynsym'
20104
 
        ;;
20105
 
      esac
20106
 
    fi
20107
 
  fi
20108
 
 
20109
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
20110
 
$as_echo "$ld_shlibs" >&6; }
20111
 
test "$ld_shlibs" = no && can_build_shared=no
20112
 
 
20113
 
with_gnu_ld=$with_gnu_ld
20114
 
 
20115
 
 
20116
 
 
20117
 
 
20118
 
 
20119
 
 
20120
 
 
20121
 
 
20122
 
 
20123
 
 
20124
 
 
20125
 
 
20126
 
 
20127
 
 
20128
 
 
20129
 
#
20130
 
# Do we need to explicitly link libc?
20131
 
#
20132
 
case "x$archive_cmds_need_lc" in
20133
 
x|xyes)
20134
 
  # Assume -lc should be added
20135
 
  archive_cmds_need_lc=yes
20136
 
 
20137
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
20138
 
    case $archive_cmds in
20139
 
    *'~'*)
20140
 
      # FIXME: we may have to deal with multi-command sequences.
20141
 
      ;;
20142
 
    '$CC '*)
20143
 
      # Test whether the compiler implicitly links with -lc since on some
20144
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
20145
 
      # to ld, don't add -lc before -lgcc.
20146
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20147
 
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20148
 
if ${lt_cv_archive_cmds_need_lc+:} false; then :
20149
 
  $as_echo_n "(cached) " >&6
20150
 
else
20151
 
  $RM conftest*
20152
 
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20153
 
 
20154
 
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20155
 
  (eval $ac_compile) 2>&5
20156
 
  ac_status=$?
20157
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20158
 
  test $ac_status = 0; } 2>conftest.err; then
20159
 
          soname=conftest
20160
 
          lib=conftest
20161
 
          libobjs=conftest.$ac_objext
20162
 
          deplibs=
20163
 
          wl=$lt_prog_compiler_wl
20164
 
          pic_flag=$lt_prog_compiler_pic
20165
 
          compiler_flags=-v
20166
 
          linker_flags=-v
20167
 
          verstring=
20168
 
          output_objdir=.
20169
 
          libname=conftest
20170
 
          lt_save_allow_undefined_flag=$allow_undefined_flag
20171
 
          allow_undefined_flag=
20172
 
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20173
 
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20174
 
  ac_status=$?
20175
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20176
 
  test $ac_status = 0; }
20177
 
          then
20178
 
            lt_cv_archive_cmds_need_lc=no
20179
 
          else
20180
 
            lt_cv_archive_cmds_need_lc=yes
20181
 
          fi
20182
 
          allow_undefined_flag=$lt_save_allow_undefined_flag
20183
 
        else
20184
 
          cat conftest.err 1>&5
20185
 
        fi
20186
 
        $RM conftest*
20187
 
 
20188
 
fi
20189
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
20190
 
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
20191
 
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
20192
 
      ;;
20193
 
    esac
20194
 
  fi
20195
 
  ;;
20196
 
esac
20197
 
 
20198
 
 
20199
 
 
20200
 
 
20201
 
 
20202
 
 
20203
 
 
20204
 
 
20205
 
 
20206
 
 
20207
 
 
20208
 
 
20209
 
 
20210
 
 
20211
 
 
20212
 
 
20213
 
 
20214
 
 
20215
 
 
20216
 
 
20217
 
 
20218
 
 
20219
 
 
20220
 
 
20221
 
 
20222
 
 
20223
 
 
20224
 
 
20225
 
 
20226
 
 
20227
 
 
20228
 
 
20229
 
 
20230
 
 
20231
 
 
20232
 
 
20233
 
 
20234
 
 
20235
 
 
20236
 
 
20237
 
 
20238
 
 
20239
 
 
20240
 
 
20241
 
 
20242
 
 
20243
 
 
20244
 
 
20245
 
 
20246
 
 
20247
 
 
20248
 
 
20249
 
 
20250
 
 
20251
 
 
20252
 
 
20253
 
 
20254
 
 
20255
 
 
20256
 
 
20257
 
 
20258
 
 
20259
 
 
20260
 
 
20261
 
 
20262
 
 
20263
 
 
20264
 
 
20265
 
 
20266
 
 
20267
 
 
20268
 
 
20269
 
 
20270
 
 
20271
 
 
20272
 
 
20273
 
 
20274
 
 
20275
 
 
20276
 
 
20277
 
 
20278
 
 
20279
 
 
20280
 
 
20281
 
 
20282
 
 
20283
 
 
20284
 
 
20285
 
 
20286
 
 
20287
 
 
20288
 
 
20289
 
 
20290
 
 
20291
 
 
20292
 
 
20293
 
 
20294
 
 
20295
 
 
20296
 
 
20297
 
 
20298
 
 
20299
 
 
20300
 
 
20301
 
 
20302
 
 
20303
 
 
20304
 
 
20305
 
 
20306
 
 
20307
 
 
20308
 
 
20309
 
 
20310
 
 
20311
 
 
20312
 
 
20313
 
 
20314
 
 
20315
 
 
20316
 
 
20317
 
 
20318
 
 
20319
 
 
20320
 
 
20321
 
 
20322
 
 
20323
 
 
20324
 
 
20325
 
 
20326
 
 
20327
 
 
20328
 
 
20329
 
 
20330
 
 
20331
 
 
20332
 
 
20333
 
 
20334
 
 
20335
 
 
20336
 
 
20337
 
 
20338
 
 
20339
 
 
20340
 
 
20341
 
 
20342
 
 
20343
 
 
20344
 
 
20345
 
 
20346
 
 
20347
 
 
20348
 
 
20349
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20350
 
$as_echo_n "checking dynamic linker characteristics... " >&6; }
20351
 
 
20352
 
if test "$GCC" = yes; then
20353
 
  case $host_os in
20354
 
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
20355
 
    *) lt_awk_arg="/^libraries:/" ;;
20356
 
  esac
20357
 
  case $host_os in
20358
 
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
20359
 
    *) lt_sed_strip_eq="s,=/,/,g" ;;
20360
 
  esac
20361
 
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
20362
 
  case $lt_search_path_spec in
20363
 
  *\;*)
20364
 
    # if the path contains ";" then we assume it to be the separator
20365
 
    # otherwise default to the standard path separator (i.e. ":") - it is
20366
 
    # assumed that no part of a normal pathname contains ";" but that should
20367
 
    # okay in the real world where ";" in dirpaths is itself problematic.
20368
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
20369
 
    ;;
20370
 
  *)
20371
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
20372
 
    ;;
20373
 
  esac
20374
 
  # Ok, now we have the path, separated by spaces, we can step through it
20375
 
  # and add multilib dir if necessary.
20376
 
  lt_tmp_lt_search_path_spec=
20377
 
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
20378
 
  for lt_sys_path in $lt_search_path_spec; do
20379
 
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
20380
 
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
20381
 
    else
20382
 
      test -d "$lt_sys_path" && \
20383
 
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
20384
 
    fi
20385
 
  done
20386
 
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
20387
 
BEGIN {RS=" "; FS="/|\n";} {
20388
 
  lt_foo="";
20389
 
  lt_count=0;
20390
 
  for (lt_i = NF; lt_i > 0; lt_i--) {
20391
 
    if ($lt_i != "" && $lt_i != ".") {
20392
 
      if ($lt_i == "..") {
20393
 
        lt_count++;
20394
 
      } else {
20395
 
        if (lt_count == 0) {
20396
 
          lt_foo="/" $lt_i lt_foo;
20397
 
        } else {
20398
 
          lt_count--;
20399
 
        }
20400
 
      }
20401
 
    }
20402
 
  }
20403
 
  if (lt_foo != "") { lt_freq[lt_foo]++; }
20404
 
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
20405
 
}'`
20406
 
  # AWK program above erroneously prepends '/' to C:/dos/paths
20407
 
  # for these hosts.
20408
 
  case $host_os in
20409
 
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
20410
 
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
20411
 
  esac
20412
 
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
20413
 
else
20414
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20415
 
fi
20416
 
library_names_spec=
20417
 
libname_spec='lib$name'
20418
 
soname_spec=
20419
 
shrext_cmds=".so"
20420
 
postinstall_cmds=
20421
 
postuninstall_cmds=
20422
 
finish_cmds=
20423
 
finish_eval=
20424
 
shlibpath_var=
20425
 
shlibpath_overrides_runpath=unknown
20426
 
version_type=none
20427
 
dynamic_linker="$host_os ld.so"
20428
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
20429
 
need_lib_prefix=unknown
20430
 
hardcode_into_libs=no
20431
 
 
20432
 
# when you set need_version to no, make sure it does not cause -set_version
20433
 
# flags to be left without arguments
20434
 
need_version=unknown
20435
 
 
20436
 
case $host_os in
20437
 
aix3*)
20438
 
  version_type=linux # correct to gnu/linux during the next big refactor
20439
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20440
 
  shlibpath_var=LIBPATH
20441
 
 
20442
 
  # AIX 3 has no versioning support, so we append a major version to the name.
20443
 
  soname_spec='${libname}${release}${shared_ext}$major'
20444
 
  ;;
20445
 
 
20446
 
aix[4-9]*)
20447
 
  version_type=linux # correct to gnu/linux during the next big refactor
20448
 
  need_lib_prefix=no
20449
 
  need_version=no
20450
 
  hardcode_into_libs=yes
20451
 
  if test "$host_cpu" = ia64; then
20452
 
    # AIX 5 supports IA64
20453
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20454
 
    shlibpath_var=LD_LIBRARY_PATH
20455
 
  else
20456
 
    # With GCC up to 2.95.x, collect2 would create an import file
20457
 
    # for dependence libraries.  The import file would start with
20458
 
    # the line `#! .'.  This would cause the generated library to
20459
 
    # depend on `.', always an invalid library.  This was fixed in
20460
 
    # development snapshots of GCC prior to 3.0.
20461
 
    case $host_os in
20462
 
      aix4 | aix4.[01] | aix4.[01].*)
20463
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20464
 
           echo ' yes '
20465
 
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20466
 
        :
20467
 
      else
20468
 
        can_build_shared=no
20469
 
      fi
20470
 
      ;;
20471
 
    esac
20472
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20473
 
    # soname into executable. Probably we can add versioning support to
20474
 
    # collect2, so additional links can be useful in future.
20475
 
    if test "$aix_use_runtimelinking" = yes; then
20476
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20477
 
      # instead of lib<name>.a to let people know that these are not
20478
 
      # typical AIX shared libraries.
20479
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20480
 
    else
20481
 
      # We preserve .a as extension for shared libraries through AIX4.2
20482
 
      # and later when we are not doing run time linking.
20483
 
      library_names_spec='${libname}${release}.a $libname.a'
20484
 
      soname_spec='${libname}${release}${shared_ext}$major'
20485
 
    fi
20486
 
    shlibpath_var=LIBPATH
20487
 
  fi
20488
 
  ;;
20489
 
 
20490
 
amigaos*)
20491
 
  case $host_cpu in
20492
 
  powerpc)
20493
 
    # Since July 2007 AmigaOS4 officially supports .so libraries.
20494
 
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20495
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20496
 
    ;;
20497
 
  m68k)
20498
 
    library_names_spec='$libname.ixlibrary $libname.a'
20499
 
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
20500
 
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
20501
 
    ;;
20502
 
  esac
20503
 
  ;;
20504
 
 
20505
 
beos*)
20506
 
  library_names_spec='${libname}${shared_ext}'
20507
 
  dynamic_linker="$host_os ld.so"
20508
 
  shlibpath_var=LIBRARY_PATH
20509
 
  ;;
20510
 
 
20511
 
bsdi[45]*)
20512
 
  version_type=linux # correct to gnu/linux during the next big refactor
20513
 
  need_version=no
20514
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20515
 
  soname_spec='${libname}${release}${shared_ext}$major'
20516
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20517
 
  shlibpath_var=LD_LIBRARY_PATH
20518
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20519
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20520
 
  # the default ld.so.conf also contains /usr/contrib/lib and
20521
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20522
 
  # libtool to hard-code these into programs
20523
 
  ;;
20524
 
 
20525
 
cygwin* | mingw* | pw32* | cegcc*)
20526
 
  version_type=windows
20527
 
  shrext_cmds=".dll"
20528
 
  need_version=no
20529
 
  need_lib_prefix=no
20530
 
 
20531
 
  case $GCC,$cc_basename in
20532
 
  yes,*)
20533
 
    # gcc
20534
 
    library_names_spec='$libname.dll.a'
20535
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
20536
 
    postinstall_cmds='base_file=`basename \${file}`~
20537
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20538
 
      dldir=$destdir/`dirname \$dlpath`~
20539
 
      test -d \$dldir || mkdir -p \$dldir~
20540
 
      $install_prog $dir/$dlname \$dldir/$dlname~
20541
 
      chmod a+x \$dldir/$dlname~
20542
 
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20543
 
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20544
 
      fi'
20545
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20546
 
      dlpath=$dir/\$dldll~
20547
 
       $RM \$dlpath'
20548
 
    shlibpath_overrides_runpath=yes
20549
 
 
20550
 
    case $host_os in
20551
 
    cygwin*)
20552
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20553
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20554
 
 
20555
 
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
20556
 
      ;;
20557
 
    mingw* | cegcc*)
20558
 
      # MinGW DLLs use traditional 'lib' prefix
20559
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20560
 
      ;;
20561
 
    pw32*)
20562
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
20563
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20564
 
      ;;
20565
 
    esac
20566
 
    dynamic_linker='Win32 ld.exe'
20567
 
    ;;
20568
 
 
20569
 
  *,cl*)
20570
 
    # Native MSVC
20571
 
    libname_spec='$name'
20572
 
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20573
 
    library_names_spec='${libname}.dll.lib'
20574
 
 
20575
 
    case $build_os in
20576
 
    mingw*)
20577
 
      sys_lib_search_path_spec=
20578
 
      lt_save_ifs=$IFS
20579
 
      IFS=';'
20580
 
      for lt_path in $LIB
20581
 
      do
20582
 
        IFS=$lt_save_ifs
20583
 
        # Let DOS variable expansion print the short 8.3 style file name.
20584
 
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20585
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20586
 
      done
20587
 
      IFS=$lt_save_ifs
20588
 
      # Convert to MSYS style.
20589
 
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20590
 
      ;;
20591
 
    cygwin*)
20592
 
      # Convert to unix form, then to dos form, then back to unix form
20593
 
      # but this time dos style (no spaces!) so that the unix form looks
20594
 
      # like /cygdrive/c/PROGRA~1:/cygdr...
20595
 
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20596
 
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20597
 
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20598
 
      ;;
20599
 
    *)
20600
 
      sys_lib_search_path_spec="$LIB"
20601
 
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20602
 
        # It is most probably a Windows format PATH.
20603
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20604
 
      else
20605
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20606
 
      fi
20607
 
      # FIXME: find the short name or the path components, as spaces are
20608
 
      # common. (e.g. "Program Files" -> "PROGRA~1")
20609
 
      ;;
20610
 
    esac
20611
 
 
20612
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
20613
 
    postinstall_cmds='base_file=`basename \${file}`~
20614
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20615
 
      dldir=$destdir/`dirname \$dlpath`~
20616
 
      test -d \$dldir || mkdir -p \$dldir~
20617
 
      $install_prog $dir/$dlname \$dldir/$dlname'
20618
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20619
 
      dlpath=$dir/\$dldll~
20620
 
       $RM \$dlpath'
20621
 
    shlibpath_overrides_runpath=yes
20622
 
    dynamic_linker='Win32 link.exe'
20623
 
    ;;
20624
 
 
20625
 
  *)
20626
 
    # Assume MSVC wrapper
20627
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20628
 
    dynamic_linker='Win32 ld.exe'
20629
 
    ;;
20630
 
  esac
20631
 
  # FIXME: first we should search . and the directory the executable is in
20632
 
  shlibpath_var=PATH
20633
 
  ;;
20634
 
 
20635
 
darwin* | rhapsody*)
20636
 
  dynamic_linker="$host_os dyld"
20637
 
  version_type=darwin
20638
 
  need_lib_prefix=no
20639
 
  need_version=no
20640
 
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20641
 
  soname_spec='${libname}${release}${major}$shared_ext'
20642
 
  shlibpath_overrides_runpath=yes
20643
 
  shlibpath_var=DYLD_LIBRARY_PATH
20644
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20645
 
 
20646
 
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
20647
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20648
 
  ;;
20649
 
 
20650
 
dgux*)
20651
 
  version_type=linux # correct to gnu/linux during the next big refactor
20652
 
  need_lib_prefix=no
20653
 
  need_version=no
20654
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20655
 
  soname_spec='${libname}${release}${shared_ext}$major'
20656
 
  shlibpath_var=LD_LIBRARY_PATH
20657
 
  ;;
20658
 
 
20659
 
freebsd* | dragonfly*)
20660
 
  # DragonFly does not have aout.  When/if they implement a new
20661
 
  # versioning mechanism, adjust this.
20662
 
  if test -x /usr/bin/objformat; then
20663
 
    objformat=`/usr/bin/objformat`
20664
 
  else
20665
 
    case $host_os in
20666
 
    freebsd[23].*) objformat=aout ;;
20667
 
    *) objformat=elf ;;
20668
 
    esac
20669
 
  fi
20670
 
  version_type=freebsd-$objformat
20671
 
  case $version_type in
20672
 
    freebsd-elf*)
20673
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20674
 
      need_version=no
20675
 
      need_lib_prefix=no
20676
 
      ;;
20677
 
    freebsd-*)
20678
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20679
 
      need_version=yes
20680
 
      ;;
20681
 
  esac
20682
 
  shlibpath_var=LD_LIBRARY_PATH
20683
 
  case $host_os in
20684
 
  freebsd2.*)
20685
 
    shlibpath_overrides_runpath=yes
20686
 
    ;;
20687
 
  freebsd3.[01]* | freebsdelf3.[01]*)
20688
 
    shlibpath_overrides_runpath=yes
20689
 
    hardcode_into_libs=yes
20690
 
    ;;
20691
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20692
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20693
 
    shlibpath_overrides_runpath=no
20694
 
    hardcode_into_libs=yes
20695
 
    ;;
20696
 
  *) # from 4.6 on, and DragonFly
20697
 
    shlibpath_overrides_runpath=yes
20698
 
    hardcode_into_libs=yes
20699
 
    ;;
20700
 
  esac
20701
 
  ;;
20702
 
 
20703
 
gnu*)
20704
 
  version_type=linux # correct to gnu/linux during the next big refactor
20705
 
  need_lib_prefix=no
20706
 
  need_version=no
20707
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20708
 
  soname_spec='${libname}${release}${shared_ext}$major'
20709
 
  shlibpath_var=LD_LIBRARY_PATH
20710
 
  shlibpath_overrides_runpath=no
20711
 
  hardcode_into_libs=yes
20712
 
  ;;
20713
 
 
20714
 
haiku*)
20715
 
  version_type=linux # correct to gnu/linux during the next big refactor
20716
 
  need_lib_prefix=no
20717
 
  need_version=no
20718
 
  dynamic_linker="$host_os runtime_loader"
20719
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20720
 
  soname_spec='${libname}${release}${shared_ext}$major'
20721
 
  shlibpath_var=LIBRARY_PATH
20722
 
  shlibpath_overrides_runpath=yes
20723
 
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20724
 
  hardcode_into_libs=yes
20725
 
  ;;
20726
 
 
20727
 
hpux9* | hpux10* | hpux11*)
20728
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
20729
 
  # link against other versions.
20730
 
  version_type=sunos
20731
 
  need_lib_prefix=no
20732
 
  need_version=no
20733
 
  case $host_cpu in
20734
 
  ia64*)
20735
 
    shrext_cmds='.so'
20736
 
    hardcode_into_libs=yes
20737
 
    dynamic_linker="$host_os dld.so"
20738
 
    shlibpath_var=LD_LIBRARY_PATH
20739
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20740
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20741
 
    soname_spec='${libname}${release}${shared_ext}$major'
20742
 
    if test "X$HPUX_IA64_MODE" = X32; then
20743
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20744
 
    else
20745
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20746
 
    fi
20747
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20748
 
    ;;
20749
 
  hppa*64*)
20750
 
    shrext_cmds='.sl'
20751
 
    hardcode_into_libs=yes
20752
 
    dynamic_linker="$host_os dld.sl"
20753
 
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20754
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20755
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20756
 
    soname_spec='${libname}${release}${shared_ext}$major'
20757
 
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20758
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20759
 
    ;;
20760
 
  *)
20761
 
    shrext_cmds='.sl'
20762
 
    dynamic_linker="$host_os dld.sl"
20763
 
    shlibpath_var=SHLIB_PATH
20764
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20765
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20766
 
    soname_spec='${libname}${release}${shared_ext}$major'
20767
 
    ;;
20768
 
  esac
20769
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20770
 
  postinstall_cmds='chmod 555 $lib'
20771
 
  # or fails outright, so override atomically:
20772
 
  install_override_mode=555
20773
 
  ;;
20774
 
 
20775
 
interix[3-9]*)
20776
 
  version_type=linux # correct to gnu/linux during the next big refactor
20777
 
  need_lib_prefix=no
20778
 
  need_version=no
20779
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20780
 
  soname_spec='${libname}${release}${shared_ext}$major'
20781
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20782
 
  shlibpath_var=LD_LIBRARY_PATH
20783
 
  shlibpath_overrides_runpath=no
20784
 
  hardcode_into_libs=yes
20785
 
  ;;
20786
 
 
20787
 
irix5* | irix6* | nonstopux*)
20788
 
  case $host_os in
20789
 
    nonstopux*) version_type=nonstopux ;;
20790
 
    *)
20791
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
20792
 
                version_type=linux # correct to gnu/linux during the next big refactor
20793
 
        else
20794
 
                version_type=irix
20795
 
        fi ;;
20796
 
  esac
20797
 
  need_lib_prefix=no
20798
 
  need_version=no
20799
 
  soname_spec='${libname}${release}${shared_ext}$major'
20800
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20801
 
  case $host_os in
20802
 
  irix5* | nonstopux*)
20803
 
    libsuff= shlibsuff=
20804
 
    ;;
20805
 
  *)
20806
 
    case $LD in # libtool.m4 will add one of these switches to LD
20807
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20808
 
      libsuff= shlibsuff= libmagic=32-bit;;
20809
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20810
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
20811
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20812
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
20813
 
    *) libsuff= shlibsuff= libmagic=never-match;;
20814
 
    esac
20815
 
    ;;
20816
 
  esac
20817
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20818
 
  shlibpath_overrides_runpath=no
20819
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20820
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20821
 
  hardcode_into_libs=yes
20822
 
  ;;
20823
 
 
20824
 
# No shared lib support for Linux oldld, aout, or coff.
20825
 
linux*oldld* | linux*aout* | linux*coff*)
20826
 
  dynamic_linker=no
20827
 
  ;;
20828
 
 
20829
 
# This must be glibc/ELF.
20830
 
linux* | k*bsd*-gnu | kopensolaris*-gnu)
20831
 
  version_type=linux # correct to gnu/linux during the next big refactor
20832
 
  need_lib_prefix=no
20833
 
  need_version=no
20834
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20835
 
  soname_spec='${libname}${release}${shared_ext}$major'
20836
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20837
 
  shlibpath_var=LD_LIBRARY_PATH
20838
 
  shlibpath_overrides_runpath=no
20839
 
 
20840
 
  # Some binutils ld are patched to set DT_RUNPATH
20841
 
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
20842
 
  $as_echo_n "(cached) " >&6
20843
 
else
20844
 
  lt_cv_shlibpath_overrides_runpath=no
20845
 
    save_LDFLAGS=$LDFLAGS
20846
 
    save_libdir=$libdir
20847
 
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
20848
 
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
20849
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20850
 
/* end confdefs.h.  */
20851
 
 
20852
 
#ifdef F77_DUMMY_MAIN
20853
 
 
20854
 
#  ifdef __cplusplus
20855
 
     extern "C"
20856
 
#  endif
20857
 
   int F77_DUMMY_MAIN() { return 1; }
20858
 
 
20859
 
#endif
20860
 
int
20861
 
main ()
20862
 
{
20863
 
 
20864
 
  ;
20865
 
  return 0;
20866
 
}
20867
 
_ACEOF
20868
 
if ac_fn_c_try_link "$LINENO"; then :
20869
 
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20870
 
  lt_cv_shlibpath_overrides_runpath=yes
20871
 
fi
20872
 
fi
20873
 
rm -f core conftest.err conftest.$ac_objext \
20874
 
    conftest$ac_exeext conftest.$ac_ext
20875
 
    LDFLAGS=$save_LDFLAGS
20876
 
    libdir=$save_libdir
20877
 
 
20878
 
fi
20879
 
 
20880
 
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20881
 
 
20882
 
  # This implies no fast_install, which is unacceptable.
20883
 
  # Some rework will be needed to allow for fast_install
20884
 
  # before this can be enabled.
20885
 
  hardcode_into_libs=yes
20886
 
 
20887
 
  # Append ld.so.conf contents to the search path
20888
 
  if test -f /etc/ld.so.conf; then
20889
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
20890
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20891
 
  fi
20892
 
 
20893
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
20894
 
  # powerpc, because MkLinux only supported shared libraries with the
20895
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
20896
 
  # most powerpc-linux boxes support dynamic linking these days and
20897
 
  # people can always --disable-shared, the test was removed, and we
20898
 
  # assume the GNU/Linux dynamic linker is in use.
20899
 
  dynamic_linker='GNU/Linux ld.so'
20900
 
  ;;
20901
 
 
20902
 
netbsd*)
20903
 
  version_type=sunos
20904
 
  need_lib_prefix=no
20905
 
  need_version=no
20906
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20907
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20908
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20909
 
    dynamic_linker='NetBSD (a.out) ld.so'
20910
 
  else
20911
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20912
 
    soname_spec='${libname}${release}${shared_ext}$major'
20913
 
    dynamic_linker='NetBSD ld.elf_so'
20914
 
  fi
20915
 
  shlibpath_var=LD_LIBRARY_PATH
20916
 
  shlibpath_overrides_runpath=yes
20917
 
  hardcode_into_libs=yes
20918
 
  ;;
20919
 
 
20920
 
newsos6)
20921
 
  version_type=linux # correct to gnu/linux during the next big refactor
20922
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20923
 
  shlibpath_var=LD_LIBRARY_PATH
20924
 
  shlibpath_overrides_runpath=yes
20925
 
  ;;
20926
 
 
20927
 
*nto* | *qnx*)
20928
 
  version_type=qnx
20929
 
  need_lib_prefix=no
20930
 
  need_version=no
20931
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20932
 
  soname_spec='${libname}${release}${shared_ext}$major'
20933
 
  shlibpath_var=LD_LIBRARY_PATH
20934
 
  shlibpath_overrides_runpath=no
20935
 
  hardcode_into_libs=yes
20936
 
  dynamic_linker='ldqnx.so'
20937
 
  ;;
20938
 
 
20939
 
openbsd*)
20940
 
  version_type=sunos
20941
 
  sys_lib_dlsearch_path_spec="/usr/lib"
20942
 
  need_lib_prefix=no
20943
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20944
 
  case $host_os in
20945
 
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
20946
 
    *)                          need_version=no  ;;
20947
 
  esac
20948
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20949
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20950
 
  shlibpath_var=LD_LIBRARY_PATH
20951
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20952
 
    case $host_os in
20953
 
      openbsd2.[89] | openbsd2.[89].*)
20954
 
        shlibpath_overrides_runpath=no
20955
 
        ;;
20956
 
      *)
20957
 
        shlibpath_overrides_runpath=yes
20958
 
        ;;
20959
 
      esac
20960
 
  else
20961
 
    shlibpath_overrides_runpath=yes
20962
 
  fi
20963
 
  ;;
20964
 
 
20965
 
os2*)
20966
 
  libname_spec='$name'
20967
 
  shrext_cmds=".dll"
20968
 
  need_lib_prefix=no
20969
 
  library_names_spec='$libname${shared_ext} $libname.a'
20970
 
  dynamic_linker='OS/2 ld.exe'
20971
 
  shlibpath_var=LIBPATH
20972
 
  ;;
20973
 
 
20974
 
osf3* | osf4* | osf5*)
20975
 
  version_type=osf
20976
 
  need_lib_prefix=no
20977
 
  need_version=no
20978
 
  soname_spec='${libname}${release}${shared_ext}$major'
20979
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20980
 
  shlibpath_var=LD_LIBRARY_PATH
20981
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20982
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20983
 
  ;;
20984
 
 
20985
 
rdos*)
20986
 
  dynamic_linker=no
20987
 
  ;;
20988
 
 
20989
 
solaris*)
20990
 
  version_type=linux # correct to gnu/linux during the next big refactor
20991
 
  need_lib_prefix=no
20992
 
  need_version=no
20993
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20994
 
  soname_spec='${libname}${release}${shared_ext}$major'
20995
 
  shlibpath_var=LD_LIBRARY_PATH
20996
 
  shlibpath_overrides_runpath=yes
20997
 
  hardcode_into_libs=yes
20998
 
  # ldd complains unless libraries are executable
20999
 
  postinstall_cmds='chmod +x $lib'
21000
 
  ;;
21001
 
 
21002
 
sunos4*)
21003
 
  version_type=sunos
21004
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21005
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21006
 
  shlibpath_var=LD_LIBRARY_PATH
21007
 
  shlibpath_overrides_runpath=yes
21008
 
  if test "$with_gnu_ld" = yes; then
21009
 
    need_lib_prefix=no
21010
 
  fi
21011
 
  need_version=yes
21012
 
  ;;
21013
 
 
21014
 
sysv4 | sysv4.3*)
21015
 
  version_type=linux # correct to gnu/linux during the next big refactor
21016
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21017
 
  soname_spec='${libname}${release}${shared_ext}$major'
21018
 
  shlibpath_var=LD_LIBRARY_PATH
21019
 
  case $host_vendor in
21020
 
    sni)
21021
 
      shlibpath_overrides_runpath=no
21022
 
      need_lib_prefix=no
21023
 
      runpath_var=LD_RUN_PATH
21024
 
      ;;
21025
 
    siemens)
21026
 
      need_lib_prefix=no
21027
 
      ;;
21028
 
    motorola)
21029
 
      need_lib_prefix=no
21030
 
      need_version=no
21031
 
      shlibpath_overrides_runpath=no
21032
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21033
 
      ;;
21034
 
  esac
21035
 
  ;;
21036
 
 
21037
 
sysv4*MP*)
21038
 
  if test -d /usr/nec ;then
21039
 
    version_type=linux # correct to gnu/linux during the next big refactor
21040
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21041
 
    soname_spec='$libname${shared_ext}.$major'
21042
 
    shlibpath_var=LD_LIBRARY_PATH
21043
 
  fi
21044
 
  ;;
21045
 
 
21046
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21047
 
  version_type=freebsd-elf
21048
 
  need_lib_prefix=no
21049
 
  need_version=no
21050
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21051
 
  soname_spec='${libname}${release}${shared_ext}$major'
21052
 
  shlibpath_var=LD_LIBRARY_PATH
21053
 
  shlibpath_overrides_runpath=yes
21054
 
  hardcode_into_libs=yes
21055
 
  if test "$with_gnu_ld" = yes; then
21056
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21057
 
  else
21058
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21059
 
    case $host_os in
21060
 
      sco3.2v5*)
21061
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21062
 
        ;;
21063
 
    esac
21064
 
  fi
21065
 
  sys_lib_dlsearch_path_spec='/usr/lib'
21066
 
  ;;
21067
 
 
21068
 
tpf*)
21069
 
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
21070
 
  version_type=linux # correct to gnu/linux during the next big refactor
21071
 
  need_lib_prefix=no
21072
 
  need_version=no
21073
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21074
 
  shlibpath_var=LD_LIBRARY_PATH
21075
 
  shlibpath_overrides_runpath=no
21076
 
  hardcode_into_libs=yes
21077
 
  ;;
21078
 
 
21079
 
uts4*)
21080
 
  version_type=linux # correct to gnu/linux during the next big refactor
21081
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21082
 
  soname_spec='${libname}${release}${shared_ext}$major'
21083
 
  shlibpath_var=LD_LIBRARY_PATH
21084
 
  ;;
21085
 
 
21086
 
*)
21087
 
  dynamic_linker=no
21088
 
  ;;
21089
 
esac
21090
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21091
 
$as_echo "$dynamic_linker" >&6; }
21092
 
test "$dynamic_linker" = no && can_build_shared=no
21093
 
 
21094
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21095
 
if test "$GCC" = yes; then
21096
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21097
 
fi
21098
 
 
21099
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21100
 
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21101
 
fi
21102
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21103
 
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21104
 
fi
21105
 
 
21106
 
 
21107
 
 
21108
 
 
21109
 
 
21110
 
 
21111
 
 
21112
 
 
21113
 
 
21114
 
 
21115
 
 
21116
 
 
21117
 
 
21118
 
 
21119
 
 
21120
 
 
21121
 
 
21122
 
 
21123
 
 
21124
 
 
21125
 
 
21126
 
 
21127
 
 
21128
 
 
21129
 
 
21130
 
 
21131
 
 
21132
 
 
21133
 
 
21134
 
 
21135
 
 
21136
 
 
21137
 
 
21138
 
 
21139
 
 
21140
 
 
21141
 
 
21142
 
 
21143
 
 
21144
 
 
21145
 
 
21146
 
 
21147
 
 
21148
 
 
21149
 
 
21150
 
 
21151
 
 
21152
 
 
21153
 
 
21154
 
 
21155
 
 
21156
 
 
21157
 
 
21158
 
 
21159
 
 
21160
 
 
21161
 
 
21162
 
 
21163
 
 
21164
 
 
21165
 
 
21166
 
 
21167
 
 
21168
 
 
21169
 
 
21170
 
 
21171
 
 
21172
 
 
21173
 
 
21174
 
 
21175
 
 
21176
 
 
21177
 
 
21178
 
 
21179
 
 
21180
 
 
21181
 
 
21182
 
 
21183
 
 
21184
 
 
21185
 
 
21186
 
 
21187
 
 
21188
 
 
21189
 
 
21190
 
 
21191
 
 
21192
 
 
21193
 
 
21194
 
 
21195
 
 
21196
 
 
21197
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21198
 
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21199
 
hardcode_action=
21200
 
if test -n "$hardcode_libdir_flag_spec" ||
21201
 
   test -n "$runpath_var" ||
21202
 
   test "X$hardcode_automatic" = "Xyes" ; then
21203
 
 
21204
 
  # We can hardcode non-existent directories.
21205
 
  if test "$hardcode_direct" != no &&
21206
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
21207
 
     # have to relink, otherwise we might link with an installed library
21208
 
     # when we should be linking with a yet-to-be-installed one
21209
 
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
21210
 
     test "$hardcode_minus_L" != no; then
21211
 
    # Linking always hardcodes the temporary library directory.
21212
 
    hardcode_action=relink
21213
 
  else
21214
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
21215
 
    hardcode_action=immediate
21216
 
  fi
21217
 
else
21218
 
  # We cannot hardcode anything, or else we can only hardcode existing
21219
 
  # directories.
21220
 
  hardcode_action=unsupported
21221
 
fi
21222
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
21223
 
$as_echo "$hardcode_action" >&6; }
21224
 
 
21225
 
if test "$hardcode_action" = relink ||
21226
 
   test "$inherit_rpath" = yes; then
21227
 
  # Fast installation is not supported
21228
 
  enable_fast_install=no
21229
 
elif test "$shlibpath_overrides_runpath" = yes ||
21230
 
     test "$enable_shared" = no; then
21231
 
  # Fast installation is not necessary
21232
 
  enable_fast_install=needless
21233
 
fi
21234
 
 
21235
 
 
21236
 
 
21237
 
 
21238
 
 
21239
 
 
21240
 
  if test "x$enable_dlopen" != xyes; then
21241
 
  enable_dlopen=unknown
21242
 
  enable_dlopen_self=unknown
21243
 
  enable_dlopen_self_static=unknown
21244
 
else
21245
 
  lt_cv_dlopen=no
21246
 
  lt_cv_dlopen_libs=
21247
 
 
21248
 
  case $host_os in
21249
 
  beos*)
21250
 
    lt_cv_dlopen="load_add_on"
21251
 
    lt_cv_dlopen_libs=
21252
 
    lt_cv_dlopen_self=yes
21253
 
    ;;
21254
 
 
21255
 
  mingw* | pw32* | cegcc*)
21256
 
    lt_cv_dlopen="LoadLibrary"
21257
 
    lt_cv_dlopen_libs=
21258
 
    ;;
21259
 
 
21260
 
  cygwin*)
21261
 
    lt_cv_dlopen="dlopen"
21262
 
    lt_cv_dlopen_libs=
21263
 
    ;;
21264
 
 
21265
 
  darwin*)
21266
 
  # if libdl is installed we need to link against it
21267
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
21268
 
$as_echo_n "checking for dlopen in -ldl... " >&6; }
21269
 
if ${ac_cv_lib_dl_dlopen+:} false; then :
21270
 
  $as_echo_n "(cached) " >&6
21271
 
else
21272
 
  ac_check_lib_save_LIBS=$LIBS
21273
 
LIBS="-ldl  $LIBS"
21274
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21275
 
/* end confdefs.h.  */
21276
 
 
21277
 
/* Override any GCC internal prototype to avoid an error.
21278
 
   Use char because int might match the return type of a GCC
21279
 
   builtin and then its argument prototype would still apply.  */
21280
 
#ifdef __cplusplus
21281
 
extern "C"
21282
 
#endif
21283
 
char dlopen ();
21284
 
#ifdef F77_DUMMY_MAIN
21285
 
 
21286
 
#  ifdef __cplusplus
21287
 
     extern "C"
21288
 
#  endif
21289
 
   int F77_DUMMY_MAIN() { return 1; }
21290
 
 
21291
 
#endif
21292
 
int
21293
 
main ()
21294
 
{
21295
 
return dlopen ();
21296
 
  ;
21297
 
  return 0;
21298
 
}
21299
 
_ACEOF
21300
 
if ac_fn_c_try_link "$LINENO"; then :
21301
 
  ac_cv_lib_dl_dlopen=yes
21302
 
else
21303
 
  ac_cv_lib_dl_dlopen=no
21304
 
fi
21305
 
rm -f core conftest.err conftest.$ac_objext \
21306
 
    conftest$ac_exeext conftest.$ac_ext
21307
 
LIBS=$ac_check_lib_save_LIBS
21308
 
fi
21309
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
21310
 
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
21311
 
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
21312
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21313
 
else
21314
 
 
21315
 
    lt_cv_dlopen="dyld"
21316
 
    lt_cv_dlopen_libs=
21317
 
    lt_cv_dlopen_self=yes
21318
 
 
21319
 
fi
21320
 
 
21321
 
    ;;
21322
 
 
21323
 
  *)
21324
 
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
21325
 
if test "x$ac_cv_func_shl_load" = xyes; then :
21326
 
  lt_cv_dlopen="shl_load"
21327
 
else
21328
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
21329
 
$as_echo_n "checking for shl_load in -ldld... " >&6; }
21330
 
if ${ac_cv_lib_dld_shl_load+:} false; then :
21331
 
  $as_echo_n "(cached) " >&6
21332
 
else
21333
 
  ac_check_lib_save_LIBS=$LIBS
21334
 
LIBS="-ldld  $LIBS"
21335
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21336
 
/* end confdefs.h.  */
21337
 
 
21338
 
/* Override any GCC internal prototype to avoid an error.
21339
 
   Use char because int might match the return type of a GCC
21340
 
   builtin and then its argument prototype would still apply.  */
21341
 
#ifdef __cplusplus
21342
 
extern "C"
21343
 
#endif
21344
 
char shl_load ();
21345
 
#ifdef F77_DUMMY_MAIN
21346
 
 
21347
 
#  ifdef __cplusplus
21348
 
     extern "C"
21349
 
#  endif
21350
 
   int F77_DUMMY_MAIN() { return 1; }
21351
 
 
21352
 
#endif
21353
 
int
21354
 
main ()
21355
 
{
21356
 
return shl_load ();
21357
 
  ;
21358
 
  return 0;
21359
 
}
21360
 
_ACEOF
21361
 
if ac_fn_c_try_link "$LINENO"; then :
21362
 
  ac_cv_lib_dld_shl_load=yes
21363
 
else
21364
 
  ac_cv_lib_dld_shl_load=no
21365
 
fi
21366
 
rm -f core conftest.err conftest.$ac_objext \
21367
 
    conftest$ac_exeext conftest.$ac_ext
21368
 
LIBS=$ac_check_lib_save_LIBS
21369
 
fi
21370
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
21371
 
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
21372
 
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
21373
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
21374
 
else
21375
 
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
21376
 
if test "x$ac_cv_func_dlopen" = xyes; then :
21377
 
  lt_cv_dlopen="dlopen"
21378
 
else
21379
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
21380
 
$as_echo_n "checking for dlopen in -ldl... " >&6; }
21381
 
if ${ac_cv_lib_dl_dlopen+:} false; then :
21382
 
  $as_echo_n "(cached) " >&6
21383
 
else
21384
 
  ac_check_lib_save_LIBS=$LIBS
21385
 
LIBS="-ldl  $LIBS"
21386
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21387
 
/* end confdefs.h.  */
21388
 
 
21389
 
/* Override any GCC internal prototype to avoid an error.
21390
 
   Use char because int might match the return type of a GCC
21391
 
   builtin and then its argument prototype would still apply.  */
21392
 
#ifdef __cplusplus
21393
 
extern "C"
21394
 
#endif
21395
 
char dlopen ();
21396
 
#ifdef F77_DUMMY_MAIN
21397
 
 
21398
 
#  ifdef __cplusplus
21399
 
     extern "C"
21400
 
#  endif
21401
 
   int F77_DUMMY_MAIN() { return 1; }
21402
 
 
21403
 
#endif
21404
 
int
21405
 
main ()
21406
 
{
21407
 
return dlopen ();
21408
 
  ;
21409
 
  return 0;
21410
 
}
21411
 
_ACEOF
21412
 
if ac_fn_c_try_link "$LINENO"; then :
21413
 
  ac_cv_lib_dl_dlopen=yes
21414
 
else
21415
 
  ac_cv_lib_dl_dlopen=no
21416
 
fi
21417
 
rm -f core conftest.err conftest.$ac_objext \
21418
 
    conftest$ac_exeext conftest.$ac_ext
21419
 
LIBS=$ac_check_lib_save_LIBS
21420
 
fi
21421
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
21422
 
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
21423
 
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
21424
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21425
 
else
21426
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
21427
 
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
21428
 
if ${ac_cv_lib_svld_dlopen+:} false; then :
21429
 
  $as_echo_n "(cached) " >&6
21430
 
else
21431
 
  ac_check_lib_save_LIBS=$LIBS
21432
 
LIBS="-lsvld  $LIBS"
21433
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21434
 
/* end confdefs.h.  */
21435
 
 
21436
 
/* Override any GCC internal prototype to avoid an error.
21437
 
   Use char because int might match the return type of a GCC
21438
 
   builtin and then its argument prototype would still apply.  */
21439
 
#ifdef __cplusplus
21440
 
extern "C"
21441
 
#endif
21442
 
char dlopen ();
21443
 
#ifdef F77_DUMMY_MAIN
21444
 
 
21445
 
#  ifdef __cplusplus
21446
 
     extern "C"
21447
 
#  endif
21448
 
   int F77_DUMMY_MAIN() { return 1; }
21449
 
 
21450
 
#endif
21451
 
int
21452
 
main ()
21453
 
{
21454
 
return dlopen ();
21455
 
  ;
21456
 
  return 0;
21457
 
}
21458
 
_ACEOF
21459
 
if ac_fn_c_try_link "$LINENO"; then :
21460
 
  ac_cv_lib_svld_dlopen=yes
21461
 
else
21462
 
  ac_cv_lib_svld_dlopen=no
21463
 
fi
21464
 
rm -f core conftest.err conftest.$ac_objext \
21465
 
    conftest$ac_exeext conftest.$ac_ext
21466
 
LIBS=$ac_check_lib_save_LIBS
21467
 
fi
21468
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
21469
 
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
21470
 
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
21471
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
21472
 
else
21473
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
21474
 
$as_echo_n "checking for dld_link in -ldld... " >&6; }
21475
 
if ${ac_cv_lib_dld_dld_link+:} false; then :
21476
 
  $as_echo_n "(cached) " >&6
21477
 
else
21478
 
  ac_check_lib_save_LIBS=$LIBS
21479
 
LIBS="-ldld  $LIBS"
21480
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21481
 
/* end confdefs.h.  */
21482
 
 
21483
 
/* Override any GCC internal prototype to avoid an error.
21484
 
   Use char because int might match the return type of a GCC
21485
 
   builtin and then its argument prototype would still apply.  */
21486
 
#ifdef __cplusplus
21487
 
extern "C"
21488
 
#endif
21489
 
char dld_link ();
21490
 
#ifdef F77_DUMMY_MAIN
21491
 
 
21492
 
#  ifdef __cplusplus
21493
 
     extern "C"
21494
 
#  endif
21495
 
   int F77_DUMMY_MAIN() { return 1; }
21496
 
 
21497
 
#endif
21498
 
int
21499
 
main ()
21500
 
{
21501
 
return dld_link ();
21502
 
  ;
21503
 
  return 0;
21504
 
}
21505
 
_ACEOF
21506
 
if ac_fn_c_try_link "$LINENO"; then :
21507
 
  ac_cv_lib_dld_dld_link=yes
21508
 
else
21509
 
  ac_cv_lib_dld_dld_link=no
21510
 
fi
21511
 
rm -f core conftest.err conftest.$ac_objext \
21512
 
    conftest$ac_exeext conftest.$ac_ext
21513
 
LIBS=$ac_check_lib_save_LIBS
21514
 
fi
21515
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
21516
 
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
21517
 
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
21518
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
21519
 
fi
21520
 
 
21521
 
 
21522
 
fi
21523
 
 
21524
 
 
21525
 
fi
21526
 
 
21527
 
 
21528
 
fi
21529
 
 
21530
 
 
21531
 
fi
21532
 
 
21533
 
 
21534
 
fi
21535
 
 
21536
 
    ;;
21537
 
  esac
21538
 
 
21539
 
  if test "x$lt_cv_dlopen" != xno; then
21540
 
    enable_dlopen=yes
21541
 
  else
21542
 
    enable_dlopen=no
21543
 
  fi
21544
 
 
21545
 
  case $lt_cv_dlopen in
21546
 
  dlopen)
21547
 
    save_CPPFLAGS="$CPPFLAGS"
21548
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
21549
 
 
21550
 
    save_LDFLAGS="$LDFLAGS"
21551
 
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
21552
 
 
21553
 
    save_LIBS="$LIBS"
21554
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
21555
 
 
21556
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
21557
 
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
21558
 
if ${lt_cv_dlopen_self+:} false; then :
21559
 
  $as_echo_n "(cached) " >&6
21560
 
else
21561
 
          if test "$cross_compiling" = yes; then :
21562
 
  lt_cv_dlopen_self=cross
21563
 
else
21564
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21565
 
  lt_status=$lt_dlunknown
21566
 
  cat > conftest.$ac_ext <<_LT_EOF
21567
 
#line $LINENO "configure"
21568
 
#include "confdefs.h"
21569
 
 
21570
 
#if HAVE_DLFCN_H
21571
 
#include <dlfcn.h>
21572
 
#endif
21573
 
 
21574
 
#include <stdio.h>
21575
 
 
21576
 
#ifdef RTLD_GLOBAL
21577
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
21578
 
#else
21579
 
#  ifdef DL_GLOBAL
21580
 
#    define LT_DLGLOBAL         DL_GLOBAL
21581
 
#  else
21582
 
#    define LT_DLGLOBAL         0
21583
 
#  endif
21584
 
#endif
21585
 
 
21586
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21587
 
   find out it does not work in some platform. */
21588
 
#ifndef LT_DLLAZY_OR_NOW
21589
 
#  ifdef RTLD_LAZY
21590
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
21591
 
#  else
21592
 
#    ifdef DL_LAZY
21593
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
21594
 
#    else
21595
 
#      ifdef RTLD_NOW
21596
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
21597
 
#      else
21598
 
#        ifdef DL_NOW
21599
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
21600
 
#        else
21601
 
#          define LT_DLLAZY_OR_NOW      0
21602
 
#        endif
21603
 
#      endif
21604
 
#    endif
21605
 
#  endif
21606
 
#endif
21607
 
 
21608
 
/* When -fvisbility=hidden is used, assume the code has been annotated
21609
 
   correspondingly for the symbols needed.  */
21610
 
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
21611
 
int fnord () __attribute__((visibility("default")));
21612
 
#endif
21613
 
 
21614
 
int fnord () { return 42; }
21615
 
int main ()
21616
 
{
21617
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21618
 
  int status = $lt_dlunknown;
21619
 
 
21620
 
  if (self)
21621
 
    {
21622
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
21623
 
      else
21624
 
        {
21625
 
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
21626
 
          else puts (dlerror ());
21627
 
        }
21628
 
      /* dlclose (self); */
21629
 
    }
21630
 
  else
21631
 
    puts (dlerror ());
21632
 
 
21633
 
  return status;
21634
 
}
21635
 
_LT_EOF
21636
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21637
 
  (eval $ac_link) 2>&5
21638
 
  ac_status=$?
21639
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21640
 
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
21641
 
    (./conftest; exit; ) >&5 2>/dev/null
21642
 
    lt_status=$?
21643
 
    case x$lt_status in
21644
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
21645
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
21646
 
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
21647
 
    esac
21648
 
  else :
21649
 
    # compilation failed
21650
 
    lt_cv_dlopen_self=no
21651
 
  fi
21652
 
fi
21653
 
rm -fr conftest*
21654
 
 
21655
 
 
21656
 
fi
21657
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
21658
 
$as_echo "$lt_cv_dlopen_self" >&6; }
21659
 
 
21660
 
    if test "x$lt_cv_dlopen_self" = xyes; then
21661
 
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
21662
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
21663
 
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
21664
 
if ${lt_cv_dlopen_self_static+:} false; then :
21665
 
  $as_echo_n "(cached) " >&6
21666
 
else
21667
 
          if test "$cross_compiling" = yes; then :
21668
 
  lt_cv_dlopen_self_static=cross
21669
 
else
21670
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21671
 
  lt_status=$lt_dlunknown
21672
 
  cat > conftest.$ac_ext <<_LT_EOF
21673
 
#line $LINENO "configure"
21674
 
#include "confdefs.h"
21675
 
 
21676
 
#if HAVE_DLFCN_H
21677
 
#include <dlfcn.h>
21678
 
#endif
21679
 
 
21680
 
#include <stdio.h>
21681
 
 
21682
 
#ifdef RTLD_GLOBAL
21683
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
21684
 
#else
21685
 
#  ifdef DL_GLOBAL
21686
 
#    define LT_DLGLOBAL         DL_GLOBAL
21687
 
#  else
21688
 
#    define LT_DLGLOBAL         0
21689
 
#  endif
21690
 
#endif
21691
 
 
21692
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21693
 
   find out it does not work in some platform. */
21694
 
#ifndef LT_DLLAZY_OR_NOW
21695
 
#  ifdef RTLD_LAZY
21696
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
21697
 
#  else
21698
 
#    ifdef DL_LAZY
21699
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
21700
 
#    else
21701
 
#      ifdef RTLD_NOW
21702
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
21703
 
#      else
21704
 
#        ifdef DL_NOW
21705
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
21706
 
#        else
21707
 
#          define LT_DLLAZY_OR_NOW      0
21708
 
#        endif
21709
 
#      endif
21710
 
#    endif
21711
 
#  endif
21712
 
#endif
21713
 
 
21714
 
/* When -fvisbility=hidden is used, assume the code has been annotated
21715
 
   correspondingly for the symbols needed.  */
21716
 
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
21717
 
int fnord () __attribute__((visibility("default")));
21718
 
#endif
21719
 
 
21720
 
int fnord () { return 42; }
21721
 
int main ()
21722
 
{
21723
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21724
 
  int status = $lt_dlunknown;
21725
 
 
21726
 
  if (self)
21727
 
    {
21728
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
21729
 
      else
21730
 
        {
21731
 
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
21732
 
          else puts (dlerror ());
21733
 
        }
21734
 
      /* dlclose (self); */
21735
 
    }
21736
 
  else
21737
 
    puts (dlerror ());
21738
 
 
21739
 
  return status;
21740
 
}
21741
 
_LT_EOF
21742
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21743
 
  (eval $ac_link) 2>&5
21744
 
  ac_status=$?
21745
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21746
 
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
21747
 
    (./conftest; exit; ) >&5 2>/dev/null
21748
 
    lt_status=$?
21749
 
    case x$lt_status in
21750
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
21751
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
21752
 
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
21753
 
    esac
21754
 
  else :
21755
 
    # compilation failed
21756
 
    lt_cv_dlopen_self_static=no
21757
 
  fi
21758
 
fi
21759
 
rm -fr conftest*
21760
 
 
21761
 
 
21762
 
fi
21763
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
21764
 
$as_echo "$lt_cv_dlopen_self_static" >&6; }
21765
 
    fi
21766
 
 
21767
 
    CPPFLAGS="$save_CPPFLAGS"
21768
 
    LDFLAGS="$save_LDFLAGS"
21769
 
    LIBS="$save_LIBS"
21770
 
    ;;
21771
 
  esac
21772
 
 
21773
 
  case $lt_cv_dlopen_self in
21774
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
21775
 
  *) enable_dlopen_self=unknown ;;
21776
 
  esac
21777
 
 
21778
 
  case $lt_cv_dlopen_self_static in
21779
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
21780
 
  *) enable_dlopen_self_static=unknown ;;
21781
 
  esac
21782
 
fi
21783
 
 
21784
 
 
21785
 
 
21786
 
 
21787
 
 
21788
 
 
21789
 
 
21790
 
 
21791
 
 
21792
 
 
21793
 
 
21794
 
 
21795
 
 
21796
 
 
21797
 
 
21798
 
 
21799
 
 
21800
 
striplib=
21801
 
old_striplib=
21802
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
21803
 
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
21804
 
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
21805
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21806
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
21807
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21808
 
$as_echo "yes" >&6; }
21809
 
else
21810
 
# FIXME - insert some real tests, host_os isn't really good enough
21811
 
  case $host_os in
21812
 
  darwin*)
21813
 
    if test -n "$STRIP" ; then
21814
 
      striplib="$STRIP -x"
21815
 
      old_striplib="$STRIP -S"
21816
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21817
 
$as_echo "yes" >&6; }
21818
 
    else
21819
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21820
 
$as_echo "no" >&6; }
21821
 
    fi
21822
 
    ;;
21823
 
  *)
21824
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21825
 
$as_echo "no" >&6; }
21826
 
    ;;
21827
 
  esac
21828
 
fi
21829
 
 
21830
 
 
21831
 
 
21832
 
 
21833
 
 
21834
 
 
21835
 
 
21836
 
 
21837
 
 
21838
 
 
21839
 
 
21840
 
 
21841
 
  # Report which library types will actually be built
21842
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
21843
 
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
21844
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
21845
 
$as_echo "$can_build_shared" >&6; }
21846
 
 
21847
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
21848
 
$as_echo_n "checking whether to build shared libraries... " >&6; }
21849
 
  test "$can_build_shared" = "no" && enable_shared=no
21850
 
 
21851
 
  # On AIX, shared libraries and static libraries use the same namespace, and
21852
 
  # are all built from PIC.
21853
 
  case $host_os in
21854
 
  aix3*)
21855
 
    test "$enable_shared" = yes && enable_static=no
21856
 
    if test -n "$RANLIB"; then
21857
 
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
21858
 
      postinstall_cmds='$RANLIB $lib'
21859
 
    fi
21860
 
    ;;
21861
 
 
21862
 
  aix[4-9]*)
21863
 
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21864
 
      test "$enable_shared" = yes && enable_static=no
21865
 
    fi
21866
 
    ;;
21867
 
  esac
21868
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
21869
 
$as_echo "$enable_shared" >&6; }
21870
 
 
21871
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
21872
 
$as_echo_n "checking whether to build static libraries... " >&6; }
21873
 
  # Make sure either enable_shared or enable_static is yes.
21874
 
  test "$enable_shared" = yes || enable_static=yes
21875
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
21876
 
$as_echo "$enable_static" >&6; }
21877
 
 
21878
 
 
21879
 
 
21880
 
 
21881
 
fi
21882
 
ac_ext=c
21883
 
ac_cpp='$CPP $CPPFLAGS'
21884
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21885
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21886
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21887
 
 
21888
 
CC="$lt_save_CC"
21889
 
 
21890
 
      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
21891
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
21892
 
    (test "X$CXX" != "Xg++"))) ; then
21893
 
  ac_ext=cpp
21894
 
ac_cpp='$CXXCPP $CPPFLAGS'
21895
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21896
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21897
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21898
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
21899
 
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
21900
 
if test -z "$CXXCPP"; then
21901
 
  if ${ac_cv_prog_CXXCPP+:} false; then :
21902
 
  $as_echo_n "(cached) " >&6
21903
 
else
21904
 
      # Double quotes because CXXCPP needs to be expanded
21905
 
    for CXXCPP in "$CXX -E" "/lib/cpp"
21906
 
    do
21907
 
      ac_preproc_ok=false
21908
 
for ac_cxx_preproc_warn_flag in '' yes
21909
 
do
21910
 
  # Use a header file that comes with gcc, so configuring glibc
21911
 
  # with a fresh cross-compiler works.
21912
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21913
 
  # <limits.h> exists even on freestanding compilers.
21914
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
21915
 
  # not just through cpp. "Syntax error" is here to catch this case.
21916
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21917
 
/* end confdefs.h.  */
21918
 
#ifdef __STDC__
21919
 
# include <limits.h>
21920
 
#else
21921
 
# include <assert.h>
21922
 
#endif
21923
 
                     Syntax error
21924
 
_ACEOF
21925
 
if ac_fn_cxx_try_cpp "$LINENO"; then :
21926
 
 
21927
 
else
21928
 
  # Broken: fails on valid input.
21929
 
continue
21930
 
fi
21931
 
rm -f conftest.err conftest.i conftest.$ac_ext
21932
 
 
21933
 
  # OK, works on sane cases.  Now check whether nonexistent headers
21934
 
  # can be detected and how.
21935
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21936
 
/* end confdefs.h.  */
21937
 
#include <ac_nonexistent.h>
21938
 
_ACEOF
21939
 
if ac_fn_cxx_try_cpp "$LINENO"; then :
21940
 
  # Broken: success on invalid input.
21941
 
continue
21942
 
else
21943
 
  # Passes both tests.
21944
 
ac_preproc_ok=:
21945
 
break
21946
 
fi
21947
 
rm -f conftest.err conftest.i conftest.$ac_ext
21948
 
 
21949
 
done
21950
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21951
 
rm -f conftest.i conftest.err conftest.$ac_ext
21952
 
if $ac_preproc_ok; then :
21953
 
  break
21954
 
fi
21955
 
 
21956
 
    done
21957
 
    ac_cv_prog_CXXCPP=$CXXCPP
21958
 
 
21959
 
fi
21960
 
  CXXCPP=$ac_cv_prog_CXXCPP
21961
 
else
21962
 
  ac_cv_prog_CXXCPP=$CXXCPP
21963
 
fi
21964
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
21965
 
$as_echo "$CXXCPP" >&6; }
21966
 
ac_preproc_ok=false
21967
 
for ac_cxx_preproc_warn_flag in '' yes
21968
 
do
21969
 
  # Use a header file that comes with gcc, so configuring glibc
21970
 
  # with a fresh cross-compiler works.
21971
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21972
 
  # <limits.h> exists even on freestanding compilers.
21973
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
21974
 
  # not just through cpp. "Syntax error" is here to catch this case.
21975
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21976
 
/* end confdefs.h.  */
21977
 
#ifdef __STDC__
21978
 
# include <limits.h>
21979
 
#else
21980
 
# include <assert.h>
21981
 
#endif
21982
 
                     Syntax error
21983
 
_ACEOF
21984
 
if ac_fn_cxx_try_cpp "$LINENO"; then :
21985
 
 
21986
 
else
21987
 
  # Broken: fails on valid input.
21988
 
continue
21989
 
fi
21990
 
rm -f conftest.err conftest.i conftest.$ac_ext
21991
 
 
21992
 
  # OK, works on sane cases.  Now check whether nonexistent headers
21993
 
  # can be detected and how.
21994
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21995
 
/* end confdefs.h.  */
21996
 
#include <ac_nonexistent.h>
21997
 
_ACEOF
21998
 
if ac_fn_cxx_try_cpp "$LINENO"; then :
21999
 
  # Broken: success on invalid input.
22000
 
continue
22001
 
else
22002
 
  # Passes both tests.
22003
 
ac_preproc_ok=:
22004
 
break
22005
 
fi
22006
 
rm -f conftest.err conftest.i conftest.$ac_ext
22007
 
 
22008
 
done
22009
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22010
 
rm -f conftest.i conftest.err conftest.$ac_ext
22011
 
if $ac_preproc_ok; then :
22012
 
 
22013
 
else
22014
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22015
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22016
 
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
22017
 
See \`config.log' for more details" "$LINENO" 5; }
22018
 
fi
22019
 
 
22020
 
ac_ext=c
22021
 
ac_cpp='$CPP $CPPFLAGS'
22022
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22023
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22024
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
22025
 
 
22026
 
else
22027
 
  _lt_caught_CXX_error=yes
22028
 
fi
22029
 
 
22030
 
ac_ext=cpp
22031
 
ac_cpp='$CXXCPP $CPPFLAGS'
22032
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22033
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22034
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22035
 
 
22036
 
archive_cmds_need_lc_CXX=no
22037
 
allow_undefined_flag_CXX=
22038
 
always_export_symbols_CXX=no
22039
 
archive_expsym_cmds_CXX=
22040
 
compiler_needs_object_CXX=no
22041
 
export_dynamic_flag_spec_CXX=
22042
 
hardcode_direct_CXX=no
22043
 
hardcode_direct_absolute_CXX=no
22044
 
hardcode_libdir_flag_spec_CXX=
22045
 
hardcode_libdir_separator_CXX=
22046
 
hardcode_minus_L_CXX=no
22047
 
hardcode_shlibpath_var_CXX=unsupported
22048
 
hardcode_automatic_CXX=no
22049
 
inherit_rpath_CXX=no
22050
 
module_cmds_CXX=
22051
 
module_expsym_cmds_CXX=
22052
 
link_all_deplibs_CXX=unknown
22053
 
old_archive_cmds_CXX=$old_archive_cmds
22054
 
reload_flag_CXX=$reload_flag
22055
 
reload_cmds_CXX=$reload_cmds
22056
 
no_undefined_flag_CXX=
22057
 
whole_archive_flag_spec_CXX=
22058
 
enable_shared_with_static_runtimes_CXX=no
22059
 
 
22060
 
# Source file extension for C++ test sources.
22061
 
ac_ext=cpp
22062
 
 
22063
 
# Object file extension for compiled C++ test sources.
22064
 
objext=o
22065
 
objext_CXX=$objext
22066
 
 
22067
 
# No sense in running all these tests if we already determined that
22068
 
# the CXX compiler isn't working.  Some variables (like enable_shared)
22069
 
# are currently assumed to apply to all compilers on this platform,
22070
 
# and will be corrupted by setting them based on a non-working compiler.
22071
 
if test "$_lt_caught_CXX_error" != yes; then
22072
 
  # Code to be used in simple compile tests
22073
 
  lt_simple_compile_test_code="int some_variable = 0;"
22074
 
 
22075
 
  # Code to be used in simple link tests
22076
 
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
22077
 
 
22078
 
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22079
 
 
22080
 
 
22081
 
 
22082
 
 
22083
 
 
22084
 
 
22085
 
# If no C compiler was specified, use CC.
22086
 
LTCC=${LTCC-"$CC"}
22087
 
 
22088
 
# If no C compiler flags were specified, use CFLAGS.
22089
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22090
 
 
22091
 
# Allow CC to be a program name with arguments.
22092
 
compiler=$CC
22093
 
 
22094
 
 
22095
 
  # save warnings/boilerplate of simple test code
22096
 
  ac_outfile=conftest.$ac_objext
22097
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
22098
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22099
 
_lt_compiler_boilerplate=`cat conftest.err`
22100
 
$RM conftest*
22101
 
 
22102
 
  ac_outfile=conftest.$ac_objext
22103
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
22104
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22105
 
_lt_linker_boilerplate=`cat conftest.err`
22106
 
$RM -r conftest*
22107
 
 
22108
 
 
22109
 
  # Allow CC to be a program name with arguments.
22110
 
  lt_save_CC=$CC
22111
 
  lt_save_CFLAGS=$CFLAGS
22112
 
  lt_save_LD=$LD
22113
 
  lt_save_GCC=$GCC
22114
 
  GCC=$GXX
22115
 
  lt_save_with_gnu_ld=$with_gnu_ld
22116
 
  lt_save_path_LD=$lt_cv_path_LD
22117
 
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
22118
 
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
22119
 
  else
22120
 
    $as_unset lt_cv_prog_gnu_ld
22121
 
  fi
22122
 
  if test -n "${lt_cv_path_LDCXX+set}"; then
22123
 
    lt_cv_path_LD=$lt_cv_path_LDCXX
22124
 
  else
22125
 
    $as_unset lt_cv_path_LD
22126
 
  fi
22127
 
  test -z "${LDCXX+set}" || LD=$LDCXX
22128
 
  CC=${CXX-"c++"}
22129
 
  CFLAGS=$CXXFLAGS
22130
 
  compiler=$CC
22131
 
  compiler_CXX=$CC
22132
 
  for cc_temp in $compiler""; do
22133
 
  case $cc_temp in
22134
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22135
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22136
 
    \-*) ;;
22137
 
    *) break;;
22138
 
  esac
22139
 
done
22140
 
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22141
 
 
22142
 
 
22143
 
  if test -n "$compiler"; then
22144
 
    # We don't want -fno-exception when compiling C++ code, so set the
22145
 
    # no_builtin_flag separately
22146
 
    if test "$GXX" = yes; then
22147
 
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
22148
 
    else
22149
 
      lt_prog_compiler_no_builtin_flag_CXX=
22150
 
    fi
22151
 
 
22152
 
    if test "$GXX" = yes; then
22153
 
      # Set up default GNU C++ configuration
22154
 
 
22155
 
 
22156
 
 
22157
 
# Check whether --with-gnu-ld was given.
22158
 
if test "${with_gnu_ld+set}" = set; then :
22159
 
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
22160
 
else
22161
 
  with_gnu_ld=no
22162
 
fi
22163
 
 
22164
 
ac_prog=ld
22165
 
if test "$GCC" = yes; then
22166
 
  # Check if gcc -print-prog-name=ld gives a path.
22167
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
22168
 
$as_echo_n "checking for ld used by $CC... " >&6; }
22169
 
  case $host in
22170
 
  *-*-mingw*)
22171
 
    # gcc leaves a trailing carriage return which upsets mingw
22172
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
22173
 
  *)
22174
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
22175
 
  esac
22176
 
  case $ac_prog in
22177
 
    # Accept absolute paths.
22178
 
    [\\/]* | ?:[\\/]*)
22179
 
      re_direlt='/[^/][^/]*/\.\./'
22180
 
      # Canonicalize the pathname of ld
22181
 
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
22182
 
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
22183
 
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
22184
 
      done
22185
 
      test -z "$LD" && LD="$ac_prog"
22186
 
      ;;
22187
 
  "")
22188
 
    # If it fails, then pretend we aren't using GCC.
22189
 
    ac_prog=ld
22190
 
    ;;
22191
 
  *)
22192
 
    # If it is relative, then search for the first ld in PATH.
22193
 
    with_gnu_ld=unknown
22194
 
    ;;
22195
 
  esac
22196
 
elif test "$with_gnu_ld" = yes; then
22197
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
22198
 
$as_echo_n "checking for GNU ld... " >&6; }
22199
 
else
22200
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
22201
 
$as_echo_n "checking for non-GNU ld... " >&6; }
22202
 
fi
22203
 
if ${lt_cv_path_LD+:} false; then :
22204
 
  $as_echo_n "(cached) " >&6
22205
 
else
22206
 
  if test -z "$LD"; then
22207
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
22208
 
  for ac_dir in $PATH; do
22209
 
    IFS="$lt_save_ifs"
22210
 
    test -z "$ac_dir" && ac_dir=.
22211
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
22212
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
22213
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
22214
 
      # but apparently some variants of GNU ld only accept -v.
22215
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
22216
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
22217
 
      *GNU* | *'with BFD'*)
22218
 
        test "$with_gnu_ld" != no && break
22219
 
        ;;
22220
 
      *)
22221
 
        test "$with_gnu_ld" != yes && break
22222
 
        ;;
22223
 
      esac
22224
 
    fi
22225
 
  done
22226
 
  IFS="$lt_save_ifs"
22227
 
else
22228
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
22229
 
fi
22230
 
fi
22231
 
 
22232
 
LD="$lt_cv_path_LD"
22233
 
if test -n "$LD"; then
22234
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
22235
 
$as_echo "$LD" >&6; }
22236
 
else
22237
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22238
 
$as_echo "no" >&6; }
22239
 
fi
22240
 
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
22241
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
22242
 
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22243
 
if ${lt_cv_prog_gnu_ld+:} false; then :
22244
 
  $as_echo_n "(cached) " >&6
22245
 
else
22246
 
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
22247
 
case `$LD -v 2>&1 </dev/null` in
22248
 
*GNU* | *'with BFD'*)
22249
 
  lt_cv_prog_gnu_ld=yes
22250
 
  ;;
22251
 
*)
22252
 
  lt_cv_prog_gnu_ld=no
22253
 
  ;;
22254
 
esac
22255
 
fi
22256
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
22257
 
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
22258
 
with_gnu_ld=$lt_cv_prog_gnu_ld
22259
 
 
22260
 
 
22261
 
 
22262
 
 
22263
 
 
22264
 
 
22265
 
 
22266
 
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
22267
 
      # archiving commands below assume that GNU ld is being used.
22268
 
      if test "$with_gnu_ld" = yes; then
22269
 
        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22270
 
        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22271
 
 
22272
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22273
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22274
 
 
22275
 
        # If archive_cmds runs LD, not CC, wlarc should be empty
22276
 
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
22277
 
        #     investigate it a little bit more. (MM)
22278
 
        wlarc='${wl}'
22279
 
 
22280
 
        # ancient GNU ld didn't support --whole-archive et. al.
22281
 
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
22282
 
          $GREP 'no-whole-archive' > /dev/null; then
22283
 
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22284
 
        else
22285
 
          whole_archive_flag_spec_CXX=
22286
 
        fi
22287
 
      else
22288
 
        with_gnu_ld=no
22289
 
        wlarc=
22290
 
 
22291
 
        # A generic and very simple default shared library creation
22292
 
        # command for GNU C++ for the case where it uses the native
22293
 
        # linker, instead of GNU ld.  If possible, this setting should
22294
 
        # overridden to take advantage of the native linker features on
22295
 
        # the platform it is being used on.
22296
 
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
22297
 
      fi
22298
 
 
22299
 
      # Commands to make compiler produce verbose output that lists
22300
 
      # what "hidden" libraries, object files and flags are used when
22301
 
      # linking a shared library.
22302
 
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
22303
 
 
22304
 
    else
22305
 
      GXX=no
22306
 
      with_gnu_ld=no
22307
 
      wlarc=
22308
 
    fi
22309
 
 
22310
 
    # PORTME: fill in a description of your system's C++ link characteristics
22311
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22312
 
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22313
 
    ld_shlibs_CXX=yes
22314
 
    case $host_os in
22315
 
      aix3*)
22316
 
        # FIXME: insert proper C++ library support
22317
 
        ld_shlibs_CXX=no
22318
 
        ;;
22319
 
      aix[4-9]*)
22320
 
        if test "$host_cpu" = ia64; then
22321
 
          # On IA64, the linker does run time linking by default, so we don't
22322
 
          # have to do anything special.
22323
 
          aix_use_runtimelinking=no
22324
 
          exp_sym_flag='-Bexport'
22325
 
          no_entry_flag=""
22326
 
        else
22327
 
          aix_use_runtimelinking=no
22328
 
 
22329
 
          # Test if we are trying to use run time linking or normal
22330
 
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22331
 
          # need to do runtime linking.
22332
 
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
22333
 
            for ld_flag in $LDFLAGS; do
22334
 
              case $ld_flag in
22335
 
              *-brtl*)
22336
 
                aix_use_runtimelinking=yes
22337
 
                break
22338
 
                ;;
22339
 
              esac
22340
 
            done
22341
 
            ;;
22342
 
          esac
22343
 
 
22344
 
          exp_sym_flag='-bexport'
22345
 
          no_entry_flag='-bnoentry'
22346
 
        fi
22347
 
 
22348
 
        # When large executables or shared objects are built, AIX ld can
22349
 
        # have problems creating the table of contents.  If linking a library
22350
 
        # or program results in "error TOC overflow" add -mminimal-toc to
22351
 
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
22352
 
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22353
 
 
22354
 
        archive_cmds_CXX=''
22355
 
        hardcode_direct_CXX=yes
22356
 
        hardcode_direct_absolute_CXX=yes
22357
 
        hardcode_libdir_separator_CXX=':'
22358
 
        link_all_deplibs_CXX=yes
22359
 
        file_list_spec_CXX='${wl}-f,'
22360
 
 
22361
 
        if test "$GXX" = yes; then
22362
 
          case $host_os in aix4.[012]|aix4.[012].*)
22363
 
          # We only want to do this on AIX 4.2 and lower, the check
22364
 
          # below for broken collect2 doesn't work under 4.3+
22365
 
          collect2name=`${CC} -print-prog-name=collect2`
22366
 
          if test -f "$collect2name" &&
22367
 
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
22368
 
          then
22369
 
            # We have reworked collect2
22370
 
            :
22371
 
          else
22372
 
            # We have old collect2
22373
 
            hardcode_direct_CXX=unsupported
22374
 
            # It fails to find uninstalled libraries when the uninstalled
22375
 
            # path is not listed in the libpath.  Setting hardcode_minus_L
22376
 
            # to unsupported forces relinking
22377
 
            hardcode_minus_L_CXX=yes
22378
 
            hardcode_libdir_flag_spec_CXX='-L$libdir'
22379
 
            hardcode_libdir_separator_CXX=
22380
 
          fi
22381
 
          esac
22382
 
          shared_flag='-shared'
22383
 
          if test "$aix_use_runtimelinking" = yes; then
22384
 
            shared_flag="$shared_flag "'${wl}-G'
22385
 
          fi
22386
 
        else
22387
 
          # not using gcc
22388
 
          if test "$host_cpu" = ia64; then
22389
 
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22390
 
          # chokes on -Wl,-G. The following line is correct:
22391
 
          shared_flag='-G'
22392
 
          else
22393
 
            if test "$aix_use_runtimelinking" = yes; then
22394
 
              shared_flag='${wl}-G'
22395
 
            else
22396
 
              shared_flag='${wl}-bM:SRE'
22397
 
            fi
22398
 
          fi
22399
 
        fi
22400
 
 
22401
 
        export_dynamic_flag_spec_CXX='${wl}-bexpall'
22402
 
        # It seems that -bexpall does not export symbols beginning with
22403
 
        # underscore (_), so it is better to generate a list of symbols to
22404
 
        # export.
22405
 
        always_export_symbols_CXX=yes
22406
 
        if test "$aix_use_runtimelinking" = yes; then
22407
 
          # Warning - without using the other runtime loading flags (-brtl),
22408
 
          # -berok will link without error, but may produce a broken library.
22409
 
          allow_undefined_flag_CXX='-berok'
22410
 
          # Determine the default libpath from the value encoded in an empty
22411
 
          # executable.
22412
 
          if test "${lt_cv_aix_libpath+set}" = set; then
22413
 
  aix_libpath=$lt_cv_aix_libpath
22414
 
else
22415
 
  if ${lt_cv_aix_libpath__CXX+:} false; then :
22416
 
  $as_echo_n "(cached) " >&6
22417
 
else
22418
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22419
 
/* end confdefs.h.  */
22420
 
 
22421
 
#ifdef F77_DUMMY_MAIN
22422
 
 
22423
 
#  ifdef __cplusplus
22424
 
     extern "C"
22425
 
#  endif
22426
 
   int F77_DUMMY_MAIN() { return 1; }
22427
 
 
22428
 
#endif
22429
 
int
22430
 
main ()
22431
 
{
22432
 
 
22433
 
  ;
22434
 
  return 0;
22435
 
}
22436
 
_ACEOF
22437
 
if ac_fn_cxx_try_link "$LINENO"; then :
22438
 
 
22439
 
  lt_aix_libpath_sed='
22440
 
      /Import File Strings/,/^$/ {
22441
 
          /^0/ {
22442
 
              s/^0  *\([^ ]*\) *$/\1/
22443
 
              p
22444
 
          }
22445
 
      }'
22446
 
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22447
 
  # Check for a 64-bit object if we didn't find anything.
22448
 
  if test -z "$lt_cv_aix_libpath__CXX"; then
22449
 
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22450
 
  fi
22451
 
fi
22452
 
rm -f core conftest.err conftest.$ac_objext \
22453
 
    conftest$ac_exeext conftest.$ac_ext
22454
 
  if test -z "$lt_cv_aix_libpath__CXX"; then
22455
 
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
22456
 
  fi
22457
 
 
22458
 
fi
22459
 
 
22460
 
  aix_libpath=$lt_cv_aix_libpath__CXX
22461
 
fi
22462
 
 
22463
 
          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
22464
 
 
22465
 
          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
22466
 
        else
22467
 
          if test "$host_cpu" = ia64; then
22468
 
            hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
22469
 
            allow_undefined_flag_CXX="-z nodefs"
22470
 
            archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
22471
 
          else
22472
 
            # Determine the default libpath from the value encoded in an
22473
 
            # empty executable.
22474
 
            if test "${lt_cv_aix_libpath+set}" = set; then
22475
 
  aix_libpath=$lt_cv_aix_libpath
22476
 
else
22477
 
  if ${lt_cv_aix_libpath__CXX+:} false; then :
22478
 
  $as_echo_n "(cached) " >&6
22479
 
else
22480
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22481
 
/* end confdefs.h.  */
22482
 
 
22483
 
#ifdef F77_DUMMY_MAIN
22484
 
 
22485
 
#  ifdef __cplusplus
22486
 
     extern "C"
22487
 
#  endif
22488
 
   int F77_DUMMY_MAIN() { return 1; }
22489
 
 
22490
 
#endif
22491
 
int
22492
 
main ()
22493
 
{
22494
 
 
22495
 
  ;
22496
 
  return 0;
22497
 
}
22498
 
_ACEOF
22499
 
if ac_fn_cxx_try_link "$LINENO"; then :
22500
 
 
22501
 
  lt_aix_libpath_sed='
22502
 
      /Import File Strings/,/^$/ {
22503
 
          /^0/ {
22504
 
              s/^0  *\([^ ]*\) *$/\1/
22505
 
              p
22506
 
          }
22507
 
      }'
22508
 
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22509
 
  # Check for a 64-bit object if we didn't find anything.
22510
 
  if test -z "$lt_cv_aix_libpath__CXX"; then
22511
 
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22512
 
  fi
22513
 
fi
22514
 
rm -f core conftest.err conftest.$ac_objext \
22515
 
    conftest$ac_exeext conftest.$ac_ext
22516
 
  if test -z "$lt_cv_aix_libpath__CXX"; then
22517
 
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
22518
 
  fi
22519
 
 
22520
 
fi
22521
 
 
22522
 
  aix_libpath=$lt_cv_aix_libpath__CXX
22523
 
fi
22524
 
 
22525
 
            hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
22526
 
            # Warning - without using the other run time loading flags,
22527
 
            # -berok will link without error, but may produce a broken library.
22528
 
            no_undefined_flag_CXX=' ${wl}-bernotok'
22529
 
            allow_undefined_flag_CXX=' ${wl}-berok'
22530
 
            if test "$with_gnu_ld" = yes; then
22531
 
              # We only use this code for GNU lds that support --whole-archive.
22532
 
              whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
22533
 
            else
22534
 
              # Exported symbols can be pulled into shared objects from archives
22535
 
              whole_archive_flag_spec_CXX='$convenience'
22536
 
            fi
22537
 
            archive_cmds_need_lc_CXX=yes
22538
 
            # This is similar to how AIX traditionally builds its shared
22539
 
            # libraries.
22540
 
            archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
22541
 
          fi
22542
 
        fi
22543
 
        ;;
22544
 
 
22545
 
      beos*)
22546
 
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22547
 
          allow_undefined_flag_CXX=unsupported
22548
 
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22549
 
          # support --undefined.  This deserves some investigation.  FIXME
22550
 
          archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22551
 
        else
22552
 
          ld_shlibs_CXX=no
22553
 
        fi
22554
 
        ;;
22555
 
 
22556
 
      chorus*)
22557
 
        case $cc_basename in
22558
 
          *)
22559
 
          # FIXME: insert proper C++ library support
22560
 
          ld_shlibs_CXX=no
22561
 
          ;;
22562
 
        esac
22563
 
        ;;
22564
 
 
22565
 
      cygwin* | mingw* | pw32* | cegcc*)
22566
 
        case $GXX,$cc_basename in
22567
 
        ,cl* | no,cl*)
22568
 
          # Native MSVC
22569
 
          # hardcode_libdir_flag_spec is actually meaningless, as there is
22570
 
          # no search path for DLLs.
22571
 
          hardcode_libdir_flag_spec_CXX=' '
22572
 
          allow_undefined_flag_CXX=unsupported
22573
 
          always_export_symbols_CXX=yes
22574
 
          file_list_spec_CXX='@'
22575
 
          # Tell ltmain to make .lib files, not .a files.
22576
 
          libext=lib
22577
 
          # Tell ltmain to make .dll files, not .so files.
22578
 
          shrext_cmds=".dll"
22579
 
          # FIXME: Setting linknames here is a bad hack.
22580
 
          archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
22581
 
          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22582
 
              $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
22583
 
            else
22584
 
              $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
22585
 
            fi~
22586
 
            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
22587
 
            linknames='
22588
 
          # The linker will not automatically build a static lib if we build a DLL.
22589
 
          # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
22590
 
          enable_shared_with_static_runtimes_CXX=yes
22591
 
          # Don't use ranlib
22592
 
          old_postinstall_cmds_CXX='chmod 644 $oldlib'
22593
 
          postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
22594
 
            lt_tool_outputfile="@TOOL_OUTPUT@"~
22595
 
            case $lt_outputfile in
22596
 
              *.exe|*.EXE) ;;
22597
 
              *)
22598
 
                lt_outputfile="$lt_outputfile.exe"
22599
 
                lt_tool_outputfile="$lt_tool_outputfile.exe"
22600
 
                ;;
22601
 
            esac~
22602
 
            func_to_tool_file "$lt_outputfile"~
22603
 
            if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
22604
 
              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
22605
 
              $RM "$lt_outputfile.manifest";
22606
 
            fi'
22607
 
          ;;
22608
 
        *)
22609
 
          # g++
22610
 
          # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
22611
 
          # as there is no search path for DLLs.
22612
 
          hardcode_libdir_flag_spec_CXX='-L$libdir'
22613
 
          export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
22614
 
          allow_undefined_flag_CXX=unsupported
22615
 
          always_export_symbols_CXX=no
22616
 
          enable_shared_with_static_runtimes_CXX=yes
22617
 
 
22618
 
          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
22619
 
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22620
 
            # If the export-symbols file already is a .def file (1st line
22621
 
            # is EXPORTS), use it as is; otherwise, prepend...
22622
 
            archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22623
 
              cp $export_symbols $output_objdir/$soname.def;
22624
 
            else
22625
 
              echo EXPORTS > $output_objdir/$soname.def;
22626
 
              cat $export_symbols >> $output_objdir/$soname.def;
22627
 
            fi~
22628
 
            $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22629
 
          else
22630
 
            ld_shlibs_CXX=no
22631
 
          fi
22632
 
          ;;
22633
 
        esac
22634
 
        ;;
22635
 
      darwin* | rhapsody*)
22636
 
 
22637
 
 
22638
 
  archive_cmds_need_lc_CXX=no
22639
 
  hardcode_direct_CXX=no
22640
 
  hardcode_automatic_CXX=yes
22641
 
  hardcode_shlibpath_var_CXX=unsupported
22642
 
  if test "$lt_cv_ld_force_load" = "yes"; then
22643
 
    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
22644
 
 
22645
 
  else
22646
 
    whole_archive_flag_spec_CXX=''
22647
 
  fi
22648
 
  link_all_deplibs_CXX=yes
22649
 
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
22650
 
  case $cc_basename in
22651
 
     ifort*) _lt_dar_can_shared=yes ;;
22652
 
     *) _lt_dar_can_shared=$GCC ;;
22653
 
  esac
22654
 
  if test "$_lt_dar_can_shared" = "yes"; then
22655
 
    output_verbose_link_cmd=func_echo_all
22656
 
    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
22657
 
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
22658
 
    archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
22659
 
    module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
22660
 
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
22661
 
      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
22662
 
      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
22663
 
    fi
22664
 
 
22665
 
  else
22666
 
  ld_shlibs_CXX=no
22667
 
  fi
22668
 
 
22669
 
        ;;
22670
 
 
22671
 
      dgux*)
22672
 
        case $cc_basename in
22673
 
          ec++*)
22674
 
            # FIXME: insert proper C++ library support
22675
 
            ld_shlibs_CXX=no
22676
 
            ;;
22677
 
          ghcx*)
22678
 
            # Green Hills C++ Compiler
22679
 
            # FIXME: insert proper C++ library support
22680
 
            ld_shlibs_CXX=no
22681
 
            ;;
22682
 
          *)
22683
 
            # FIXME: insert proper C++ library support
22684
 
            ld_shlibs_CXX=no
22685
 
            ;;
22686
 
        esac
22687
 
        ;;
22688
 
 
22689
 
      freebsd2.*)
22690
 
        # C++ shared libraries reported to be fairly broken before
22691
 
        # switch to ELF
22692
 
        ld_shlibs_CXX=no
22693
 
        ;;
22694
 
 
22695
 
      freebsd-elf*)
22696
 
        archive_cmds_need_lc_CXX=no
22697
 
        ;;
22698
 
 
22699
 
      freebsd* | dragonfly*)
22700
 
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
22701
 
        # conventions
22702
 
        ld_shlibs_CXX=yes
22703
 
        ;;
22704
 
 
22705
 
      gnu*)
22706
 
        ;;
22707
 
 
22708
 
      haiku*)
22709
 
        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22710
 
        link_all_deplibs_CXX=yes
22711
 
        ;;
22712
 
 
22713
 
      hpux9*)
22714
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
22715
 
        hardcode_libdir_separator_CXX=:
22716
 
        export_dynamic_flag_spec_CXX='${wl}-E'
22717
 
        hardcode_direct_CXX=yes
22718
 
        hardcode_minus_L_CXX=yes # Not in the search PATH,
22719
 
                                             # but as the default
22720
 
                                             # location of the library.
22721
 
 
22722
 
        case $cc_basename in
22723
 
          CC*)
22724
 
            # FIXME: insert proper C++ library support
22725
 
            ld_shlibs_CXX=no
22726
 
            ;;
22727
 
          aCC*)
22728
 
            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
22729
 
            # Commands to make compiler produce verbose output that lists
22730
 
            # what "hidden" libraries, object files and flags are used when
22731
 
            # linking a shared library.
22732
 
            #
22733
 
            # There doesn't appear to be a way to prevent this compiler from
22734
 
            # explicitly linking system object files so we need to strip them
22735
 
            # from the output so that they don't get included in the library
22736
 
            # dependencies.
22737
 
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
22738
 
            ;;
22739
 
          *)
22740
 
            if test "$GXX" = yes; then
22741
 
              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
22742
 
            else
22743
 
              # FIXME: insert proper C++ library support
22744
 
              ld_shlibs_CXX=no
22745
 
            fi
22746
 
            ;;
22747
 
        esac
22748
 
        ;;
22749
 
 
22750
 
      hpux10*|hpux11*)
22751
 
        if test $with_gnu_ld = no; then
22752
 
          hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
22753
 
          hardcode_libdir_separator_CXX=:
22754
 
 
22755
 
          case $host_cpu in
22756
 
            hppa*64*|ia64*)
22757
 
              ;;
22758
 
            *)
22759
 
              export_dynamic_flag_spec_CXX='${wl}-E'
22760
 
              ;;
22761
 
          esac
22762
 
        fi
22763
 
        case $host_cpu in
22764
 
          hppa*64*|ia64*)
22765
 
            hardcode_direct_CXX=no
22766
 
            hardcode_shlibpath_var_CXX=no
22767
 
            ;;
22768
 
          *)
22769
 
            hardcode_direct_CXX=yes
22770
 
            hardcode_direct_absolute_CXX=yes
22771
 
            hardcode_minus_L_CXX=yes # Not in the search PATH,
22772
 
                                                 # but as the default
22773
 
                                                 # location of the library.
22774
 
            ;;
22775
 
        esac
22776
 
 
22777
 
        case $cc_basename in
22778
 
          CC*)
22779
 
            # FIXME: insert proper C++ library support
22780
 
            ld_shlibs_CXX=no
22781
 
            ;;
22782
 
          aCC*)
22783
 
            case $host_cpu in
22784
 
              hppa*64*)
22785
 
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22786
 
                ;;
22787
 
              ia64*)
22788
 
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22789
 
                ;;
22790
 
              *)
22791
 
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22792
 
                ;;
22793
 
            esac
22794
 
            # Commands to make compiler produce verbose output that lists
22795
 
            # what "hidden" libraries, object files and flags are used when
22796
 
            # linking a shared library.
22797
 
            #
22798
 
            # There doesn't appear to be a way to prevent this compiler from
22799
 
            # explicitly linking system object files so we need to strip them
22800
 
            # from the output so that they don't get included in the library
22801
 
            # dependencies.
22802
 
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
22803
 
            ;;
22804
 
          *)
22805
 
            if test "$GXX" = yes; then
22806
 
              if test $with_gnu_ld = no; then
22807
 
                case $host_cpu in
22808
 
                  hppa*64*)
22809
 
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22810
 
                    ;;
22811
 
                  ia64*)
22812
 
                    archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22813
 
                    ;;
22814
 
                  *)
22815
 
                    archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22816
 
                    ;;
22817
 
                esac
22818
 
              fi
22819
 
            else
22820
 
              # FIXME: insert proper C++ library support
22821
 
              ld_shlibs_CXX=no
22822
 
            fi
22823
 
            ;;
22824
 
        esac
22825
 
        ;;
22826
 
 
22827
 
      interix[3-9]*)
22828
 
        hardcode_direct_CXX=no
22829
 
        hardcode_shlibpath_var_CXX=no
22830
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22831
 
        export_dynamic_flag_spec_CXX='${wl}-E'
22832
 
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22833
 
        # Instead, shared libraries are loaded at an image base (0x10000000 by
22834
 
        # default) and relocated if they conflict, which is a slow very memory
22835
 
        # consuming and fragmenting process.  To avoid this, we pick a random,
22836
 
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22837
 
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
22838
 
        archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
22839
 
        archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
22840
 
        ;;
22841
 
      irix5* | irix6*)
22842
 
        case $cc_basename in
22843
 
          CC*)
22844
 
            # SGI C++
22845
 
            archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
22846
 
 
22847
 
            # Archives containing C++ object files must be created using
22848
 
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
22849
 
            # necessary to make sure instantiated templates are included
22850
 
            # in the archive.
22851
 
            old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
22852
 
            ;;
22853
 
          *)
22854
 
            if test "$GXX" = yes; then
22855
 
              if test "$with_gnu_ld" = no; then
22856
 
                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22857
 
              else
22858
 
                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
22859
 
              fi
22860
 
            fi
22861
 
            link_all_deplibs_CXX=yes
22862
 
            ;;
22863
 
        esac
22864
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22865
 
        hardcode_libdir_separator_CXX=:
22866
 
        inherit_rpath_CXX=yes
22867
 
        ;;
22868
 
 
22869
 
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
22870
 
        case $cc_basename in
22871
 
          KCC*)
22872
 
            # Kuck and Associates, Inc. (KAI) C++ Compiler
22873
 
 
22874
 
            # KCC will only create a shared library if the output file
22875
 
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
22876
 
            # to its proper name (with version) after linking.
22877
 
            archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
22878
 
            archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
22879
 
            # Commands to make compiler produce verbose output that lists
22880
 
            # what "hidden" libraries, object files and flags are used when
22881
 
            # linking a shared library.
22882
 
            #
22883
 
            # There doesn't appear to be a way to prevent this compiler from
22884
 
            # explicitly linking system object files so we need to strip them
22885
 
            # from the output so that they don't get included in the library
22886
 
            # dependencies.
22887
 
            output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
22888
 
 
22889
 
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22890
 
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22891
 
 
22892
 
            # Archives containing C++ object files must be created using
22893
 
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
22894
 
            old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
22895
 
            ;;
22896
 
          icpc* | ecpc* )
22897
 
            # Intel C++
22898
 
            with_gnu_ld=yes
22899
 
            # version 8.0 and above of icpc choke on multiply defined symbols
22900
 
            # if we add $predep_objects and $postdep_objects, however 7.1 and
22901
 
            # earlier do not add the objects themselves.
22902
 
            case `$CC -V 2>&1` in
22903
 
              *"Version 7."*)
22904
 
                archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22905
 
                archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22906
 
                ;;
22907
 
              *)  # Version 8.0 or newer
22908
 
                tmp_idyn=
22909
 
                case $host_cpu in
22910
 
                  ia64*) tmp_idyn=' -i_dynamic';;
22911
 
                esac
22912
 
                archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22913
 
                archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22914
 
                ;;
22915
 
            esac
22916
 
            archive_cmds_need_lc_CXX=no
22917
 
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22918
 
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22919
 
            whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
22920
 
            ;;
22921
 
          pgCC* | pgcpp*)
22922
 
            # Portland Group C++ compiler
22923
 
            case `$CC -V` in
22924
 
            *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
22925
 
              prelink_cmds_CXX='tpldir=Template.dir~
22926
 
                rm -rf $tpldir~
22927
 
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
22928
 
                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
22929
 
              old_archive_cmds_CXX='tpldir=Template.dir~
22930
 
                rm -rf $tpldir~
22931
 
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
22932
 
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
22933
 
                $RANLIB $oldlib'
22934
 
              archive_cmds_CXX='tpldir=Template.dir~
22935
 
                rm -rf $tpldir~
22936
 
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22937
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
22938
 
              archive_expsym_cmds_CXX='tpldir=Template.dir~
22939
 
                rm -rf $tpldir~
22940
 
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22941
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
22942
 
              ;;
22943
 
            *) # Version 6 and above use weak symbols
22944
 
              archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
22945
 
              archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
22946
 
              ;;
22947
 
            esac
22948
 
 
22949
 
            hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
22950
 
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22951
 
            whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
22952
 
            ;;
22953
 
          cxx*)
22954
 
            # Compaq C++
22955
 
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22956
 
            archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
22957
 
 
22958
 
            runpath_var=LD_RUN_PATH
22959
 
            hardcode_libdir_flag_spec_CXX='-rpath $libdir'
22960
 
            hardcode_libdir_separator_CXX=:
22961
 
 
22962
 
            # Commands to make compiler produce verbose output that lists
22963
 
            # what "hidden" libraries, object files and flags are used when
22964
 
            # linking a shared library.
22965
 
            #
22966
 
            # There doesn't appear to be a way to prevent this compiler from
22967
 
            # explicitly linking system object files so we need to strip them
22968
 
            # from the output so that they don't get included in the library
22969
 
            # dependencies.
22970
 
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
22971
 
            ;;
22972
 
          xl* | mpixl* | bgxl*)
22973
 
            # IBM XL 8.0 on PPC, with GNU ld
22974
 
            hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22975
 
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22976
 
            archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22977
 
            if test "x$supports_anon_versioning" = xyes; then
22978
 
              archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
22979
 
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22980
 
                echo "local: *; };" >> $output_objdir/$libname.ver~
22981
 
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22982
 
            fi
22983
 
            ;;
22984
 
          *)
22985
 
            case `$CC -V 2>&1 | sed 5q` in
22986
 
            *Sun\ C*)
22987
 
              # Sun C++ 5.9
22988
 
              no_undefined_flag_CXX=' -zdefs'
22989
 
              archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22990
 
              archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
22991
 
              hardcode_libdir_flag_spec_CXX='-R$libdir'
22992
 
              whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
22993
 
              compiler_needs_object_CXX=yes
22994
 
 
22995
 
              # Not sure whether something based on
22996
 
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
22997
 
              # would be better.
22998
 
              output_verbose_link_cmd='func_echo_all'
22999
 
 
23000
 
              # Archives containing C++ object files must be created using
23001
 
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
23002
 
              # necessary to make sure instantiated templates are included
23003
 
              # in the archive.
23004
 
              old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
23005
 
              ;;
23006
 
            esac
23007
 
            ;;
23008
 
        esac
23009
 
        ;;
23010
 
 
23011
 
      lynxos*)
23012
 
        # FIXME: insert proper C++ library support
23013
 
        ld_shlibs_CXX=no
23014
 
        ;;
23015
 
 
23016
 
      m88k*)
23017
 
        # FIXME: insert proper C++ library support
23018
 
        ld_shlibs_CXX=no
23019
 
        ;;
23020
 
 
23021
 
      mvs*)
23022
 
        case $cc_basename in
23023
 
          cxx*)
23024
 
            # FIXME: insert proper C++ library support
23025
 
            ld_shlibs_CXX=no
23026
 
            ;;
23027
 
          *)
23028
 
            # FIXME: insert proper C++ library support
23029
 
            ld_shlibs_CXX=no
23030
 
            ;;
23031
 
        esac
23032
 
        ;;
23033
 
 
23034
 
      netbsd*)
23035
 
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
23036
 
          archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
23037
 
          wlarc=
23038
 
          hardcode_libdir_flag_spec_CXX='-R$libdir'
23039
 
          hardcode_direct_CXX=yes
23040
 
          hardcode_shlibpath_var_CXX=no
23041
 
        fi
23042
 
        # Workaround some broken pre-1.5 toolchains
23043
 
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
23044
 
        ;;
23045
 
 
23046
 
      *nto* | *qnx*)
23047
 
        ld_shlibs_CXX=yes
23048
 
        ;;
23049
 
 
23050
 
      openbsd2*)
23051
 
        # C++ shared libraries are fairly broken
23052
 
        ld_shlibs_CXX=no
23053
 
        ;;
23054
 
 
23055
 
      openbsd*)
23056
 
        if test -f /usr/libexec/ld.so; then
23057
 
          hardcode_direct_CXX=yes
23058
 
          hardcode_shlibpath_var_CXX=no
23059
 
          hardcode_direct_absolute_CXX=yes
23060
 
          archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
23061
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
23062
 
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23063
 
            archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
23064
 
            export_dynamic_flag_spec_CXX='${wl}-E'
23065
 
            whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23066
 
          fi
23067
 
          output_verbose_link_cmd=func_echo_all
23068
 
        else
23069
 
          ld_shlibs_CXX=no
23070
 
        fi
23071
 
        ;;
23072
 
 
23073
 
      osf3* | osf4* | osf5*)
23074
 
        case $cc_basename in
23075
 
          KCC*)
23076
 
            # Kuck and Associates, Inc. (KAI) C++ Compiler
23077
 
 
23078
 
            # KCC will only create a shared library if the output file
23079
 
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
23080
 
            # to its proper name (with version) after linking.
23081
 
            archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
23082
 
 
23083
 
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
23084
 
            hardcode_libdir_separator_CXX=:
23085
 
 
23086
 
            # Archives containing C++ object files must be created using
23087
 
            # the KAI C++ compiler.
23088
 
            case $host in
23089
 
              osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
23090
 
              *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
23091
 
            esac
23092
 
            ;;
23093
 
          RCC*)
23094
 
            # Rational C++ 2.4.1
23095
 
            # FIXME: insert proper C++ library support
23096
 
            ld_shlibs_CXX=no
23097
 
            ;;
23098
 
          cxx*)
23099
 
            case $host in
23100
 
              osf3*)
23101
 
                allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
23102
 
                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
23103
 
                hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
23104
 
                ;;
23105
 
              *)
23106
 
                allow_undefined_flag_CXX=' -expect_unresolved \*'
23107
 
                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
23108
 
                archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
23109
 
                  echo "-hidden">> $lib.exp~
23110
 
                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
23111
 
                  $RM $lib.exp'
23112
 
                hardcode_libdir_flag_spec_CXX='-rpath $libdir'
23113
 
                ;;
23114
 
            esac
23115
 
 
23116
 
            hardcode_libdir_separator_CXX=:
23117
 
 
23118
 
            # Commands to make compiler produce verbose output that lists
23119
 
            # what "hidden" libraries, object files and flags are used when
23120
 
            # linking a shared library.
23121
 
            #
23122
 
            # There doesn't appear to be a way to prevent this compiler from
23123
 
            # explicitly linking system object files so we need to strip them
23124
 
            # from the output so that they don't get included in the library
23125
 
            # dependencies.
23126
 
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
23127
 
            ;;
23128
 
          *)
23129
 
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
23130
 
              allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
23131
 
              case $host in
23132
 
                osf3*)
23133
 
                  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
23134
 
                  ;;
23135
 
                *)
23136
 
                  archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
23137
 
                  ;;
23138
 
              esac
23139
 
 
23140
 
              hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
23141
 
              hardcode_libdir_separator_CXX=:
23142
 
 
23143
 
              # Commands to make compiler produce verbose output that lists
23144
 
              # what "hidden" libraries, object files and flags are used when
23145
 
              # linking a shared library.
23146
 
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
23147
 
 
23148
 
            else
23149
 
              # FIXME: insert proper C++ library support
23150
 
              ld_shlibs_CXX=no
23151
 
            fi
23152
 
            ;;
23153
 
        esac
23154
 
        ;;
23155
 
 
23156
 
      psos*)
23157
 
        # FIXME: insert proper C++ library support
23158
 
        ld_shlibs_CXX=no
23159
 
        ;;
23160
 
 
23161
 
      sunos4*)
23162
 
        case $cc_basename in
23163
 
          CC*)
23164
 
            # Sun C++ 4.x
23165
 
            # FIXME: insert proper C++ library support
23166
 
            ld_shlibs_CXX=no
23167
 
            ;;
23168
 
          lcc*)
23169
 
            # Lucid
23170
 
            # FIXME: insert proper C++ library support
23171
 
            ld_shlibs_CXX=no
23172
 
            ;;
23173
 
          *)
23174
 
            # FIXME: insert proper C++ library support
23175
 
            ld_shlibs_CXX=no
23176
 
            ;;
23177
 
        esac
23178
 
        ;;
23179
 
 
23180
 
      solaris*)
23181
 
        case $cc_basename in
23182
 
          CC* | sunCC*)
23183
 
            # Sun C++ 4.2, 5.x and Centerline C++
23184
 
            archive_cmds_need_lc_CXX=yes
23185
 
            no_undefined_flag_CXX=' -zdefs'
23186
 
            archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
23187
 
            archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23188
 
              $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
23189
 
 
23190
 
            hardcode_libdir_flag_spec_CXX='-R$libdir'
23191
 
            hardcode_shlibpath_var_CXX=no
23192
 
            case $host_os in
23193
 
              solaris2.[0-5] | solaris2.[0-5].*) ;;
23194
 
              *)
23195
 
                # The compiler driver will combine and reorder linker options,
23196
 
                # but understands `-z linker_flag'.
23197
 
                # Supported since Solaris 2.6 (maybe 2.5.1?)
23198
 
                whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
23199
 
                ;;
23200
 
            esac
23201
 
            link_all_deplibs_CXX=yes
23202
 
 
23203
 
            output_verbose_link_cmd='func_echo_all'
23204
 
 
23205
 
            # Archives containing C++ object files must be created using
23206
 
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
23207
 
            # necessary to make sure instantiated templates are included
23208
 
            # in the archive.
23209
 
            old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
23210
 
            ;;
23211
 
          gcx*)
23212
 
            # Green Hills C++ Compiler
23213
 
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23214
 
 
23215
 
            # The C++ compiler must be used to create the archive.
23216
 
            old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
23217
 
            ;;
23218
 
          *)
23219
 
            # GNU C++ compiler with Solaris linker
23220
 
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
23221
 
              no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
23222
 
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
23223
 
                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23224
 
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23225
 
                  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
23226
 
 
23227
 
                # Commands to make compiler produce verbose output that lists
23228
 
                # what "hidden" libraries, object files and flags are used when
23229
 
                # linking a shared library.
23230
 
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
23231
 
              else
23232
 
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
23233
 
                # platform.
23234
 
                archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23235
 
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23236
 
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
23237
 
 
23238
 
                # Commands to make compiler produce verbose output that lists
23239
 
                # what "hidden" libraries, object files and flags are used when
23240
 
                # linking a shared library.
23241
 
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
23242
 
              fi
23243
 
 
23244
 
              hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
23245
 
              case $host_os in
23246
 
                solaris2.[0-5] | solaris2.[0-5].*) ;;
23247
 
                *)
23248
 
                  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
23249
 
                  ;;
23250
 
              esac
23251
 
            fi
23252
 
            ;;
23253
 
        esac
23254
 
        ;;
23255
 
 
23256
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
23257
 
      no_undefined_flag_CXX='${wl}-z,text'
23258
 
      archive_cmds_need_lc_CXX=no
23259
 
      hardcode_shlibpath_var_CXX=no
23260
 
      runpath_var='LD_RUN_PATH'
23261
 
 
23262
 
      case $cc_basename in
23263
 
        CC*)
23264
 
          archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23265
 
          archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23266
 
          ;;
23267
 
        *)
23268
 
          archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23269
 
          archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23270
 
          ;;
23271
 
      esac
23272
 
      ;;
23273
 
 
23274
 
      sysv5* | sco3.2v5* | sco5v6*)
23275
 
        # Note: We can NOT use -z defs as we might desire, because we do not
23276
 
        # link with -lc, and that would cause any symbols used from libc to
23277
 
        # always be unresolved, which means just about no library would
23278
 
        # ever link correctly.  If we're not using GNU ld we use -z text
23279
 
        # though, which does catch some bad symbols but isn't as heavy-handed
23280
 
        # as -z defs.
23281
 
        no_undefined_flag_CXX='${wl}-z,text'
23282
 
        allow_undefined_flag_CXX='${wl}-z,nodefs'
23283
 
        archive_cmds_need_lc_CXX=no
23284
 
        hardcode_shlibpath_var_CXX=no
23285
 
        hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
23286
 
        hardcode_libdir_separator_CXX=':'
23287
 
        link_all_deplibs_CXX=yes
23288
 
        export_dynamic_flag_spec_CXX='${wl}-Bexport'
23289
 
        runpath_var='LD_RUN_PATH'
23290
 
 
23291
 
        case $cc_basename in
23292
 
          CC*)
23293
 
            archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23294
 
            archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23295
 
            old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
23296
 
              '"$old_archive_cmds_CXX"
23297
 
            reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
23298
 
              '"$reload_cmds_CXX"
23299
 
            ;;
23300
 
          *)
23301
 
            archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23302
 
            archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23303
 
            ;;
23304
 
        esac
23305
 
      ;;
23306
 
 
23307
 
      tandem*)
23308
 
        case $cc_basename in
23309
 
          NCC*)
23310
 
            # NonStop-UX NCC 3.20
23311
 
            # FIXME: insert proper C++ library support
23312
 
            ld_shlibs_CXX=no
23313
 
            ;;
23314
 
          *)
23315
 
            # FIXME: insert proper C++ library support
23316
 
            ld_shlibs_CXX=no
23317
 
            ;;
23318
 
        esac
23319
 
        ;;
23320
 
 
23321
 
      vxworks*)
23322
 
        # FIXME: insert proper C++ library support
23323
 
        ld_shlibs_CXX=no
23324
 
        ;;
23325
 
 
23326
 
      *)
23327
 
        # FIXME: insert proper C++ library support
23328
 
        ld_shlibs_CXX=no
23329
 
        ;;
23330
 
    esac
23331
 
 
23332
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
23333
 
$as_echo "$ld_shlibs_CXX" >&6; }
23334
 
    test "$ld_shlibs_CXX" = no && can_build_shared=no
23335
 
 
23336
 
    GCC_CXX="$GXX"
23337
 
    LD_CXX="$LD"
23338
 
 
23339
 
    ## CAVEAT EMPTOR:
23340
 
    ## There is no encapsulation within the following macros, do not change
23341
 
    ## the running order or otherwise move them around unless you know exactly
23342
 
    ## what you are doing...
23343
 
    # Dependencies to place before and after the object being linked:
23344
 
predep_objects_CXX=
23345
 
postdep_objects_CXX=
23346
 
predeps_CXX=
23347
 
postdeps_CXX=
23348
 
compiler_lib_search_path_CXX=
23349
 
 
23350
 
cat > conftest.$ac_ext <<_LT_EOF
23351
 
class Foo
23352
 
{
23353
 
public:
23354
 
  Foo (void) { a = 0; }
23355
 
private:
23356
 
  int a;
23357
 
};
23358
 
_LT_EOF
23359
 
 
23360
 
 
23361
 
_lt_libdeps_save_CFLAGS=$CFLAGS
23362
 
case "$CC $CFLAGS " in #(
23363
 
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
23364
 
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
23365
 
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
23366
 
esac
23367
 
 
23368
 
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
23369
 
  (eval $ac_compile) 2>&5
23370
 
  ac_status=$?
23371
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23372
 
  test $ac_status = 0; }; then
23373
 
  # Parse the compiler output and extract the necessary
23374
 
  # objects, libraries and library flags.
23375
 
 
23376
 
  # Sentinel used to keep track of whether or not we are before
23377
 
  # the conftest object file.
23378
 
  pre_test_object_deps_done=no
23379
 
 
23380
 
  for p in `eval "$output_verbose_link_cmd"`; do
23381
 
    case ${prev}${p} in
23382
 
 
23383
 
    -L* | -R* | -l*)
23384
 
       # Some compilers place space between "-{L,R}" and the path.
23385
 
       # Remove the space.
23386
 
       if test $p = "-L" ||
23387
 
          test $p = "-R"; then
23388
 
         prev=$p
23389
 
         continue
23390
 
       fi
23391
 
 
23392
 
       # Expand the sysroot to ease extracting the directories later.
23393
 
       if test -z "$prev"; then
23394
 
         case $p in
23395
 
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
23396
 
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
23397
 
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
23398
 
         esac
23399
 
       fi
23400
 
       case $p in
23401
 
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
23402
 
       esac
23403
 
       if test "$pre_test_object_deps_done" = no; then
23404
 
         case ${prev} in
23405
 
         -L | -R)
23406
 
           # Internal compiler library paths should come after those
23407
 
           # provided the user.  The postdeps already come after the
23408
 
           # user supplied libs so there is no need to process them.
23409
 
           if test -z "$compiler_lib_search_path_CXX"; then
23410
 
             compiler_lib_search_path_CXX="${prev}${p}"
23411
 
           else
23412
 
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
23413
 
           fi
23414
 
           ;;
23415
 
         # The "-l" case would never come before the object being
23416
 
         # linked, so don't bother handling this case.
23417
 
         esac
23418
 
       else
23419
 
         if test -z "$postdeps_CXX"; then
23420
 
           postdeps_CXX="${prev}${p}"
23421
 
         else
23422
 
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
23423
 
         fi
23424
 
       fi
23425
 
       prev=
23426
 
       ;;
23427
 
 
23428
 
    *.lto.$objext) ;; # Ignore GCC LTO objects
23429
 
    *.$objext)
23430
 
       # This assumes that the test object file only shows up
23431
 
       # once in the compiler output.
23432
 
       if test "$p" = "conftest.$objext"; then
23433
 
         pre_test_object_deps_done=yes
23434
 
         continue
23435
 
       fi
23436
 
 
23437
 
       if test "$pre_test_object_deps_done" = no; then
23438
 
         if test -z "$predep_objects_CXX"; then
23439
 
           predep_objects_CXX="$p"
23440
 
         else
23441
 
           predep_objects_CXX="$predep_objects_CXX $p"
23442
 
         fi
23443
 
       else
23444
 
         if test -z "$postdep_objects_CXX"; then
23445
 
           postdep_objects_CXX="$p"
23446
 
         else
23447
 
           postdep_objects_CXX="$postdep_objects_CXX $p"
23448
 
         fi
23449
 
       fi
23450
 
       ;;
23451
 
 
23452
 
    *) ;; # Ignore the rest.
23453
 
 
23454
 
    esac
23455
 
  done
23456
 
 
23457
 
  # Clean up.
23458
 
  rm -f a.out a.exe
23459
 
else
23460
 
  echo "libtool.m4: error: problem compiling CXX test program"
23461
 
fi
23462
 
 
23463
 
$RM -f confest.$objext
23464
 
CFLAGS=$_lt_libdeps_save_CFLAGS
23465
 
 
23466
 
# PORTME: override above test on systems where it is broken
23467
 
case $host_os in
23468
 
interix[3-9]*)
23469
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
23470
 
  # hack all around it, let's just trust "g++" to DTRT.
23471
 
  predep_objects_CXX=
23472
 
  postdep_objects_CXX=
23473
 
  postdeps_CXX=
23474
 
  ;;
23475
 
 
23476
 
linux*)
23477
 
  case `$CC -V 2>&1 | sed 5q` in
23478
 
  *Sun\ C*)
23479
 
    # Sun C++ 5.9
23480
 
 
23481
 
    # The more standards-conforming stlport4 library is
23482
 
    # incompatible with the Cstd library. Avoid specifying
23483
 
    # it if it's in CXXFLAGS. Ignore libCrun as
23484
 
    # -library=stlport4 depends on it.
23485
 
    case " $CXX $CXXFLAGS " in
23486
 
    *" -library=stlport4 "*)
23487
 
      solaris_use_stlport4=yes
23488
 
      ;;
23489
 
    esac
23490
 
 
23491
 
    if test "$solaris_use_stlport4" != yes; then
23492
 
      postdeps_CXX='-library=Cstd -library=Crun'
23493
 
    fi
23494
 
    ;;
23495
 
  esac
23496
 
  ;;
23497
 
 
23498
 
solaris*)
23499
 
  case $cc_basename in
23500
 
  CC* | sunCC*)
23501
 
    # The more standards-conforming stlport4 library is
23502
 
    # incompatible with the Cstd library. Avoid specifying
23503
 
    # it if it's in CXXFLAGS. Ignore libCrun as
23504
 
    # -library=stlport4 depends on it.
23505
 
    case " $CXX $CXXFLAGS " in
23506
 
    *" -library=stlport4 "*)
23507
 
      solaris_use_stlport4=yes
23508
 
      ;;
23509
 
    esac
23510
 
 
23511
 
    # Adding this requires a known-good setup of shared libraries for
23512
 
    # Sun compiler versions before 5.6, else PIC objects from an old
23513
 
    # archive will be linked into the output, leading to subtle bugs.
23514
 
    if test "$solaris_use_stlport4" != yes; then
23515
 
      postdeps_CXX='-library=Cstd -library=Crun'
23516
 
    fi
23517
 
    ;;
23518
 
  esac
23519
 
  ;;
23520
 
esac
23521
 
 
23522
 
 
23523
 
case " $postdeps_CXX " in
23524
 
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
23525
 
esac
23526
 
 compiler_lib_search_dirs_CXX=
23527
 
if test -n "${compiler_lib_search_path_CXX}"; then
23528
 
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
23529
 
fi
23530
 
 
23531
 
 
23532
 
 
23533
 
 
23534
 
 
23535
 
 
23536
 
 
23537
 
 
23538
 
 
23539
 
 
23540
 
 
23541
 
 
23542
 
 
23543
 
 
23544
 
 
23545
 
 
23546
 
 
23547
 
 
23548
 
 
23549
 
 
23550
 
 
23551
 
 
23552
 
 
23553
 
 
23554
 
 
23555
 
 
23556
 
 
23557
 
 
23558
 
 
23559
 
 
23560
 
 
23561
 
    lt_prog_compiler_wl_CXX=
23562
 
lt_prog_compiler_pic_CXX=
23563
 
lt_prog_compiler_static_CXX=
23564
 
 
23565
 
 
23566
 
  # C++ specific cases for pic, static, wl, etc.
23567
 
  if test "$GXX" = yes; then
23568
 
    lt_prog_compiler_wl_CXX='-Wl,'
23569
 
    lt_prog_compiler_static_CXX='-static'
23570
 
 
23571
 
    case $host_os in
23572
 
    aix*)
23573
 
      # All AIX code is PIC.
23574
 
      if test "$host_cpu" = ia64; then
23575
 
        # AIX 5 now supports IA64 processor
23576
 
        lt_prog_compiler_static_CXX='-Bstatic'
23577
 
      fi
23578
 
      ;;
23579
 
 
23580
 
    amigaos*)
23581
 
      case $host_cpu in
23582
 
      powerpc)
23583
 
            # see comment about AmigaOS4 .so support
23584
 
            lt_prog_compiler_pic_CXX='-fPIC'
23585
 
        ;;
23586
 
      m68k)
23587
 
            # FIXME: we need at least 68020 code to build shared libraries, but
23588
 
            # adding the `-m68020' flag to GCC prevents building anything better,
23589
 
            # like `-m68040'.
23590
 
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
23591
 
        ;;
23592
 
      esac
23593
 
      ;;
23594
 
 
23595
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23596
 
      # PIC is the default for these OSes.
23597
 
      ;;
23598
 
    mingw* | cygwin* | os2* | pw32* | cegcc*)
23599
 
      # This hack is so that the source file can tell whether it is being
23600
 
      # built for inclusion in a dll (and should export symbols for example).
23601
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
23602
 
      # (--disable-auto-import) libraries
23603
 
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
23604
 
      ;;
23605
 
    darwin* | rhapsody*)
23606
 
      # PIC is the default on this platform
23607
 
      # Common symbols not allowed in MH_DYLIB files
23608
 
      lt_prog_compiler_pic_CXX='-fno-common'
23609
 
      ;;
23610
 
    *djgpp*)
23611
 
      # DJGPP does not support shared libraries at all
23612
 
      lt_prog_compiler_pic_CXX=
23613
 
      ;;
23614
 
    haiku*)
23615
 
      # PIC is the default for Haiku.
23616
 
      # The "-static" flag exists, but is broken.
23617
 
      lt_prog_compiler_static_CXX=
23618
 
      ;;
23619
 
    interix[3-9]*)
23620
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23621
 
      # Instead, we relocate shared libraries at runtime.
23622
 
      ;;
23623
 
    sysv4*MP*)
23624
 
      if test -d /usr/nec; then
23625
 
        lt_prog_compiler_pic_CXX=-Kconform_pic
23626
 
      fi
23627
 
      ;;
23628
 
    hpux*)
23629
 
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
23630
 
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
23631
 
      # sets the default TLS model and affects inlining.
23632
 
      case $host_cpu in
23633
 
      hppa*64*)
23634
 
        ;;
23635
 
      *)
23636
 
        lt_prog_compiler_pic_CXX='-fPIC'
23637
 
        ;;
23638
 
      esac
23639
 
      ;;
23640
 
    *qnx* | *nto*)
23641
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
23642
 
      # it will coredump.
23643
 
      lt_prog_compiler_pic_CXX='-fPIC -shared'
23644
 
      ;;
23645
 
    *)
23646
 
      lt_prog_compiler_pic_CXX='-fPIC'
23647
 
      ;;
23648
 
    esac
23649
 
  else
23650
 
    case $host_os in
23651
 
      aix[4-9]*)
23652
 
        # All AIX code is PIC.
23653
 
        if test "$host_cpu" = ia64; then
23654
 
          # AIX 5 now supports IA64 processor
23655
 
          lt_prog_compiler_static_CXX='-Bstatic'
23656
 
        else
23657
 
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
23658
 
        fi
23659
 
        ;;
23660
 
      chorus*)
23661
 
        case $cc_basename in
23662
 
        cxch68*)
23663
 
          # Green Hills C++ Compiler
23664
 
          # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
23665
 
          ;;
23666
 
        esac
23667
 
        ;;
23668
 
      mingw* | cygwin* | os2* | pw32* | cegcc*)
23669
 
        # This hack is so that the source file can tell whether it is being
23670
 
        # built for inclusion in a dll (and should export symbols for example).
23671
 
        lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
23672
 
        ;;
23673
 
      dgux*)
23674
 
        case $cc_basename in
23675
 
          ec++*)
23676
 
            lt_prog_compiler_pic_CXX='-KPIC'
23677
 
            ;;
23678
 
          ghcx*)
23679
 
            # Green Hills C++ Compiler
23680
 
            lt_prog_compiler_pic_CXX='-pic'
23681
 
            ;;
23682
 
          *)
23683
 
            ;;
23684
 
        esac
23685
 
        ;;
23686
 
      freebsd* | dragonfly*)
23687
 
        # FreeBSD uses GNU C++
23688
 
        ;;
23689
 
      hpux9* | hpux10* | hpux11*)
23690
 
        case $cc_basename in
23691
 
          CC*)
23692
 
            lt_prog_compiler_wl_CXX='-Wl,'
23693
 
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
23694
 
            if test "$host_cpu" != ia64; then
23695
 
              lt_prog_compiler_pic_CXX='+Z'
23696
 
            fi
23697
 
            ;;
23698
 
          aCC*)
23699
 
            lt_prog_compiler_wl_CXX='-Wl,'
23700
 
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
23701
 
            case $host_cpu in
23702
 
            hppa*64*|ia64*)
23703
 
              # +Z the default
23704
 
              ;;
23705
 
            *)
23706
 
              lt_prog_compiler_pic_CXX='+Z'
23707
 
              ;;
23708
 
            esac
23709
 
            ;;
23710
 
          *)
23711
 
            ;;
23712
 
        esac
23713
 
        ;;
23714
 
      interix*)
23715
 
        # This is c89, which is MS Visual C++ (no shared libs)
23716
 
        # Anyone wants to do a port?
23717
 
        ;;
23718
 
      irix5* | irix6* | nonstopux*)
23719
 
        case $cc_basename in
23720
 
          CC*)
23721
 
            lt_prog_compiler_wl_CXX='-Wl,'
23722
 
            lt_prog_compiler_static_CXX='-non_shared'
23723
 
            # CC pic flag -KPIC is the default.
23724
 
            ;;
23725
 
          *)
23726
 
            ;;
23727
 
        esac
23728
 
        ;;
23729
 
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
23730
 
        case $cc_basename in
23731
 
          KCC*)
23732
 
            # KAI C++ Compiler
23733
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
23734
 
            lt_prog_compiler_pic_CXX='-fPIC'
23735
 
            ;;
23736
 
          ecpc* )
23737
 
            # old Intel C++ for x86_64 which still supported -KPIC.
23738
 
            lt_prog_compiler_wl_CXX='-Wl,'
23739
 
            lt_prog_compiler_pic_CXX='-KPIC'
23740
 
            lt_prog_compiler_static_CXX='-static'
23741
 
            ;;
23742
 
          icpc* )
23743
 
            # Intel C++, used to be incompatible with GCC.
23744
 
            # ICC 10 doesn't accept -KPIC any more.
23745
 
            lt_prog_compiler_wl_CXX='-Wl,'
23746
 
            lt_prog_compiler_pic_CXX='-fPIC'
23747
 
            lt_prog_compiler_static_CXX='-static'
23748
 
            ;;
23749
 
          pgCC* | pgcpp*)
23750
 
            # Portland Group C++ compiler
23751
 
            lt_prog_compiler_wl_CXX='-Wl,'
23752
 
            lt_prog_compiler_pic_CXX='-fpic'
23753
 
            lt_prog_compiler_static_CXX='-Bstatic'
23754
 
            ;;
23755
 
          cxx*)
23756
 
            # Compaq C++
23757
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
23758
 
            # Linux and Compaq Tru64 Unix objects are PIC.
23759
 
            lt_prog_compiler_pic_CXX=
23760
 
            lt_prog_compiler_static_CXX='-non_shared'
23761
 
            ;;
23762
 
          xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
23763
 
            # IBM XL 8.0, 9.0 on PPC and BlueGene
23764
 
            lt_prog_compiler_wl_CXX='-Wl,'
23765
 
            lt_prog_compiler_pic_CXX='-qpic'
23766
 
            lt_prog_compiler_static_CXX='-qstaticlink'
23767
 
            ;;
23768
 
          *)
23769
 
            case `$CC -V 2>&1 | sed 5q` in
23770
 
            *Sun\ C*)
23771
 
              # Sun C++ 5.9
23772
 
              lt_prog_compiler_pic_CXX='-KPIC'
23773
 
              lt_prog_compiler_static_CXX='-Bstatic'
23774
 
              lt_prog_compiler_wl_CXX='-Qoption ld '
23775
 
              ;;
23776
 
            esac
23777
 
            ;;
23778
 
        esac
23779
 
        ;;
23780
 
      lynxos*)
23781
 
        ;;
23782
 
      m88k*)
23783
 
        ;;
23784
 
      mvs*)
23785
 
        case $cc_basename in
23786
 
          cxx*)
23787
 
            lt_prog_compiler_pic_CXX='-W c,exportall'
23788
 
            ;;
23789
 
          *)
23790
 
            ;;
23791
 
        esac
23792
 
        ;;
23793
 
      netbsd*)
23794
 
        ;;
23795
 
      *qnx* | *nto*)
23796
 
        # QNX uses GNU C++, but need to define -shared option too, otherwise
23797
 
        # it will coredump.
23798
 
        lt_prog_compiler_pic_CXX='-fPIC -shared'
23799
 
        ;;
23800
 
      osf3* | osf4* | osf5*)
23801
 
        case $cc_basename in
23802
 
          KCC*)
23803
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
23804
 
            ;;
23805
 
          RCC*)
23806
 
            # Rational C++ 2.4.1
23807
 
            lt_prog_compiler_pic_CXX='-pic'
23808
 
            ;;
23809
 
          cxx*)
23810
 
            # Digital/Compaq C++
23811
 
            lt_prog_compiler_wl_CXX='-Wl,'
23812
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
23813
 
            # Linux and Compaq Tru64 Unix objects are PIC.
23814
 
            lt_prog_compiler_pic_CXX=
23815
 
            lt_prog_compiler_static_CXX='-non_shared'
23816
 
            ;;
23817
 
          *)
23818
 
            ;;
23819
 
        esac
23820
 
        ;;
23821
 
      psos*)
23822
 
        ;;
23823
 
      solaris*)
23824
 
        case $cc_basename in
23825
 
          CC* | sunCC*)
23826
 
            # Sun C++ 4.2, 5.x and Centerline C++
23827
 
            lt_prog_compiler_pic_CXX='-KPIC'
23828
 
            lt_prog_compiler_static_CXX='-Bstatic'
23829
 
            lt_prog_compiler_wl_CXX='-Qoption ld '
23830
 
            ;;
23831
 
          gcx*)
23832
 
            # Green Hills C++ Compiler
23833
 
            lt_prog_compiler_pic_CXX='-PIC'
23834
 
            ;;
23835
 
          *)
23836
 
            ;;
23837
 
        esac
23838
 
        ;;
23839
 
      sunos4*)
23840
 
        case $cc_basename in
23841
 
          CC*)
23842
 
            # Sun C++ 4.x
23843
 
            lt_prog_compiler_pic_CXX='-pic'
23844
 
            lt_prog_compiler_static_CXX='-Bstatic'
23845
 
            ;;
23846
 
          lcc*)
23847
 
            # Lucid
23848
 
            lt_prog_compiler_pic_CXX='-pic'
23849
 
            ;;
23850
 
          *)
23851
 
            ;;
23852
 
        esac
23853
 
        ;;
23854
 
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23855
 
        case $cc_basename in
23856
 
          CC*)
23857
 
            lt_prog_compiler_wl_CXX='-Wl,'
23858
 
            lt_prog_compiler_pic_CXX='-KPIC'
23859
 
            lt_prog_compiler_static_CXX='-Bstatic'
23860
 
            ;;
23861
 
        esac
23862
 
        ;;
23863
 
      tandem*)
23864
 
        case $cc_basename in
23865
 
          NCC*)
23866
 
            # NonStop-UX NCC 3.20
23867
 
            lt_prog_compiler_pic_CXX='-KPIC'
23868
 
            ;;
23869
 
          *)
23870
 
            ;;
23871
 
        esac
23872
 
        ;;
23873
 
      vxworks*)
23874
 
        ;;
23875
 
      *)
23876
 
        lt_prog_compiler_can_build_shared_CXX=no
23877
 
        ;;
23878
 
    esac
23879
 
  fi
23880
 
 
23881
 
case $host_os in
23882
 
  # For platforms which do not support PIC, -DPIC is meaningless:
23883
 
  *djgpp*)
23884
 
    lt_prog_compiler_pic_CXX=
23885
 
    ;;
23886
 
  *)
23887
 
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
23888
 
    ;;
23889
 
esac
23890
 
 
23891
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
23892
 
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
23893
 
if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
23894
 
  $as_echo_n "(cached) " >&6
23895
 
else
23896
 
  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
23897
 
fi
23898
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
23899
 
$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
23900
 
lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
23901
 
 
23902
 
#
23903
 
# Check to make sure the PIC flag actually works.
23904
 
#
23905
 
if test -n "$lt_prog_compiler_pic_CXX"; then
23906
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
23907
 
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
23908
 
if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
23909
 
  $as_echo_n "(cached) " >&6
23910
 
else
23911
 
  lt_cv_prog_compiler_pic_works_CXX=no
23912
 
   ac_outfile=conftest.$ac_objext
23913
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23914
 
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
23915
 
   # Insert the option either (1) after the last *FLAGS variable, or
23916
 
   # (2) before a word containing "conftest.", or (3) at the end.
23917
 
   # Note that $ac_compile itself does not contain backslashes and begins
23918
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
23919
 
   # The option is referenced via a variable to avoid confusing sed.
23920
 
   lt_compile=`echo "$ac_compile" | $SED \
23921
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23922
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23923
 
   -e 's:$: $lt_compiler_flag:'`
23924
 
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23925
 
   (eval "$lt_compile" 2>conftest.err)
23926
 
   ac_status=$?
23927
 
   cat conftest.err >&5
23928
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23929
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
23930
 
     # The compiler can only warn and ignore the option if not recognized
23931
 
     # So say no if there are warnings other than the usual output.
23932
 
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
23933
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23934
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23935
 
       lt_cv_prog_compiler_pic_works_CXX=yes
23936
 
     fi
23937
 
   fi
23938
 
   $RM conftest*
23939
 
 
23940
 
fi
23941
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
23942
 
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
23943
 
 
23944
 
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
23945
 
    case $lt_prog_compiler_pic_CXX in
23946
 
     "" | " "*) ;;
23947
 
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
23948
 
     esac
23949
 
else
23950
 
    lt_prog_compiler_pic_CXX=
23951
 
     lt_prog_compiler_can_build_shared_CXX=no
23952
 
fi
23953
 
 
23954
 
fi
23955
 
 
23956
 
 
23957
 
 
23958
 
 
23959
 
 
23960
 
#
23961
 
# Check to make sure the static flag actually works.
23962
 
#
23963
 
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
23964
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23965
 
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
23966
 
if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
23967
 
  $as_echo_n "(cached) " >&6
23968
 
else
23969
 
  lt_cv_prog_compiler_static_works_CXX=no
23970
 
   save_LDFLAGS="$LDFLAGS"
23971
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23972
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
23973
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23974
 
     # The linker can only warn and ignore the option if not recognized
23975
 
     # So say no if there are warnings
23976
 
     if test -s conftest.err; then
23977
 
       # Append any errors to the config.log.
23978
 
       cat conftest.err 1>&5
23979
 
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
23980
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23981
 
       if diff conftest.exp conftest.er2 >/dev/null; then
23982
 
         lt_cv_prog_compiler_static_works_CXX=yes
23983
 
       fi
23984
 
     else
23985
 
       lt_cv_prog_compiler_static_works_CXX=yes
23986
 
     fi
23987
 
   fi
23988
 
   $RM -r conftest*
23989
 
   LDFLAGS="$save_LDFLAGS"
23990
 
 
23991
 
fi
23992
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
23993
 
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
23994
 
 
23995
 
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
23996
 
    :
23997
 
else
23998
 
    lt_prog_compiler_static_CXX=
23999
 
fi
24000
 
 
24001
 
 
24002
 
 
24003
 
 
24004
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
24005
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
24006
 
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
24007
 
  $as_echo_n "(cached) " >&6
24008
 
else
24009
 
  lt_cv_prog_compiler_c_o_CXX=no
24010
 
   $RM -r conftest 2>/dev/null
24011
 
   mkdir conftest
24012
 
   cd conftest
24013
 
   mkdir out
24014
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24015
 
 
24016
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
24017
 
   # Insert the option either (1) after the last *FLAGS variable, or
24018
 
   # (2) before a word containing "conftest.", or (3) at the end.
24019
 
   # Note that $ac_compile itself does not contain backslashes and begins
24020
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
24021
 
   lt_compile=`echo "$ac_compile" | $SED \
24022
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24023
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24024
 
   -e 's:$: $lt_compiler_flag:'`
24025
 
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
24026
 
   (eval "$lt_compile" 2>out/conftest.err)
24027
 
   ac_status=$?
24028
 
   cat out/conftest.err >&5
24029
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24030
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
24031
 
   then
24032
 
     # The compiler can only warn and ignore the option if not recognized
24033
 
     # So say no if there are warnings
24034
 
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
24035
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24036
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24037
 
       lt_cv_prog_compiler_c_o_CXX=yes
24038
 
     fi
24039
 
   fi
24040
 
   chmod u+w . 2>&5
24041
 
   $RM conftest*
24042
 
   # SGI C++ compiler will create directory out/ii_files/ for
24043
 
   # template instantiation
24044
 
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
24045
 
   $RM out/* && rmdir out
24046
 
   cd ..
24047
 
   $RM -r conftest
24048
 
   $RM conftest*
24049
 
 
24050
 
fi
24051
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
24052
 
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
24053
 
 
24054
 
 
24055
 
 
24056
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
24057
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
24058
 
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
24059
 
  $as_echo_n "(cached) " >&6
24060
 
else
24061
 
  lt_cv_prog_compiler_c_o_CXX=no
24062
 
   $RM -r conftest 2>/dev/null
24063
 
   mkdir conftest
24064
 
   cd conftest
24065
 
   mkdir out
24066
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24067
 
 
24068
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
24069
 
   # Insert the option either (1) after the last *FLAGS variable, or
24070
 
   # (2) before a word containing "conftest.", or (3) at the end.
24071
 
   # Note that $ac_compile itself does not contain backslashes and begins
24072
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
24073
 
   lt_compile=`echo "$ac_compile" | $SED \
24074
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24075
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24076
 
   -e 's:$: $lt_compiler_flag:'`
24077
 
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
24078
 
   (eval "$lt_compile" 2>out/conftest.err)
24079
 
   ac_status=$?
24080
 
   cat out/conftest.err >&5
24081
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24082
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
24083
 
   then
24084
 
     # The compiler can only warn and ignore the option if not recognized
24085
 
     # So say no if there are warnings
24086
 
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
24087
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24088
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24089
 
       lt_cv_prog_compiler_c_o_CXX=yes
24090
 
     fi
24091
 
   fi
24092
 
   chmod u+w . 2>&5
24093
 
   $RM conftest*
24094
 
   # SGI C++ compiler will create directory out/ii_files/ for
24095
 
   # template instantiation
24096
 
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
24097
 
   $RM out/* && rmdir out
24098
 
   cd ..
24099
 
   $RM -r conftest
24100
 
   $RM conftest*
24101
 
 
24102
 
fi
24103
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
24104
 
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
24105
 
 
24106
 
 
24107
 
 
24108
 
 
24109
 
hard_links="nottested"
24110
 
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
24111
 
  # do not overwrite the value of need_locks provided by the user
24112
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
24113
 
$as_echo_n "checking if we can lock with hard links... " >&6; }
24114
 
  hard_links=yes
24115
 
  $RM conftest*
24116
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
24117
 
  touch conftest.a
24118
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
24119
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
24120
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
24121
 
$as_echo "$hard_links" >&6; }
24122
 
  if test "$hard_links" = no; then
24123
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24124
 
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24125
 
    need_locks=warn
24126
 
  fi
24127
 
else
24128
 
  need_locks=no
24129
 
fi
24130
 
 
24131
 
 
24132
 
 
24133
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24134
 
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
24135
 
 
24136
 
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24137
 
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
24138
 
  case $host_os in
24139
 
  aix[4-9]*)
24140
 
    # If we're using GNU nm, then we don't want the "-C" option.
24141
 
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
24142
 
    # Also, AIX nm treats weak defined symbols like other global defined
24143
 
    # symbols, whereas GNU nm marks them as "W".
24144
 
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
24145
 
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
24146
 
    else
24147
 
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
24148
 
    fi
24149
 
    ;;
24150
 
  pw32*)
24151
 
    export_symbols_cmds_CXX="$ltdll_cmds"
24152
 
    ;;
24153
 
  cygwin* | mingw* | cegcc*)
24154
 
    case $cc_basename in
24155
 
    cl*)
24156
 
      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
24157
 
      ;;
24158
 
    *)
24159
 
      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
24160
 
      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
24161
 
      ;;
24162
 
    esac
24163
 
    ;;
24164
 
  *)
24165
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24166
 
    ;;
24167
 
  esac
24168
 
 
24169
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
24170
 
$as_echo "$ld_shlibs_CXX" >&6; }
24171
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
24172
 
 
24173
 
with_gnu_ld_CXX=$with_gnu_ld
24174
 
 
24175
 
 
24176
 
 
24177
 
 
24178
 
 
24179
 
 
24180
 
#
24181
 
# Do we need to explicitly link libc?
24182
 
#
24183
 
case "x$archive_cmds_need_lc_CXX" in
24184
 
x|xyes)
24185
 
  # Assume -lc should be added
24186
 
  archive_cmds_need_lc_CXX=yes
24187
 
 
24188
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
24189
 
    case $archive_cmds_CXX in
24190
 
    *'~'*)
24191
 
      # FIXME: we may have to deal with multi-command sequences.
24192
 
      ;;
24193
 
    '$CC '*)
24194
 
      # Test whether the compiler implicitly links with -lc since on some
24195
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
24196
 
      # to ld, don't add -lc before -lgcc.
24197
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
24198
 
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
24199
 
if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
24200
 
  $as_echo_n "(cached) " >&6
24201
 
else
24202
 
  $RM conftest*
24203
 
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24204
 
 
24205
 
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
24206
 
  (eval $ac_compile) 2>&5
24207
 
  ac_status=$?
24208
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24209
 
  test $ac_status = 0; } 2>conftest.err; then
24210
 
          soname=conftest
24211
 
          lib=conftest
24212
 
          libobjs=conftest.$ac_objext
24213
 
          deplibs=
24214
 
          wl=$lt_prog_compiler_wl_CXX
24215
 
          pic_flag=$lt_prog_compiler_pic_CXX
24216
 
          compiler_flags=-v
24217
 
          linker_flags=-v
24218
 
          verstring=
24219
 
          output_objdir=.
24220
 
          libname=conftest
24221
 
          lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
24222
 
          allow_undefined_flag_CXX=
24223
 
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
24224
 
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
24225
 
  ac_status=$?
24226
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24227
 
  test $ac_status = 0; }
24228
 
          then
24229
 
            lt_cv_archive_cmds_need_lc_CXX=no
24230
 
          else
24231
 
            lt_cv_archive_cmds_need_lc_CXX=yes
24232
 
          fi
24233
 
          allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
24234
 
        else
24235
 
          cat conftest.err 1>&5
24236
 
        fi
24237
 
        $RM conftest*
24238
 
 
24239
 
fi
24240
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
24241
 
$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
24242
 
      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
24243
 
      ;;
24244
 
    esac
24245
 
  fi
24246
 
  ;;
24247
 
esac
24248
 
 
24249
 
 
24250
 
 
24251
 
 
24252
 
 
24253
 
 
24254
 
 
24255
 
 
24256
 
 
24257
 
 
24258
 
 
24259
 
 
24260
 
 
24261
 
 
24262
 
 
24263
 
 
24264
 
 
24265
 
 
24266
 
 
24267
 
 
24268
 
 
24269
 
 
24270
 
 
24271
 
 
24272
 
 
24273
 
 
24274
 
 
24275
 
 
24276
 
 
24277
 
 
24278
 
 
24279
 
 
24280
 
 
24281
 
 
24282
 
 
24283
 
 
24284
 
 
24285
 
 
24286
 
 
24287
 
 
24288
 
 
24289
 
 
24290
 
 
24291
 
 
24292
 
 
24293
 
 
24294
 
 
24295
 
 
24296
 
 
24297
 
 
24298
 
 
24299
 
 
24300
 
 
24301
 
 
24302
 
 
24303
 
 
24304
 
 
24305
 
 
24306
 
 
24307
 
 
24308
 
 
24309
 
 
24310
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
24311
 
$as_echo_n "checking dynamic linker characteristics... " >&6; }
24312
 
 
24313
 
library_names_spec=
24314
 
libname_spec='lib$name'
24315
 
soname_spec=
24316
 
shrext_cmds=".so"
24317
 
postinstall_cmds=
24318
 
postuninstall_cmds=
24319
 
finish_cmds=
24320
 
finish_eval=
24321
 
shlibpath_var=
24322
 
shlibpath_overrides_runpath=unknown
24323
 
version_type=none
24324
 
dynamic_linker="$host_os ld.so"
24325
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
24326
 
need_lib_prefix=unknown
24327
 
hardcode_into_libs=no
24328
 
 
24329
 
# when you set need_version to no, make sure it does not cause -set_version
24330
 
# flags to be left without arguments
24331
 
need_version=unknown
24332
 
 
24333
 
case $host_os in
24334
 
aix3*)
24335
 
  version_type=linux # correct to gnu/linux during the next big refactor
24336
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24337
 
  shlibpath_var=LIBPATH
24338
 
 
24339
 
  # AIX 3 has no versioning support, so we append a major version to the name.
24340
 
  soname_spec='${libname}${release}${shared_ext}$major'
24341
 
  ;;
24342
 
 
24343
 
aix[4-9]*)
24344
 
  version_type=linux # correct to gnu/linux during the next big refactor
24345
 
  need_lib_prefix=no
24346
 
  need_version=no
24347
 
  hardcode_into_libs=yes
24348
 
  if test "$host_cpu" = ia64; then
24349
 
    # AIX 5 supports IA64
24350
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24351
 
    shlibpath_var=LD_LIBRARY_PATH
24352
 
  else
24353
 
    # With GCC up to 2.95.x, collect2 would create an import file
24354
 
    # for dependence libraries.  The import file would start with
24355
 
    # the line `#! .'.  This would cause the generated library to
24356
 
    # depend on `.', always an invalid library.  This was fixed in
24357
 
    # development snapshots of GCC prior to 3.0.
24358
 
    case $host_os in
24359
 
      aix4 | aix4.[01] | aix4.[01].*)
24360
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24361
 
           echo ' yes '
24362
 
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
24363
 
        :
24364
 
      else
24365
 
        can_build_shared=no
24366
 
      fi
24367
 
      ;;
24368
 
    esac
24369
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24370
 
    # soname into executable. Probably we can add versioning support to
24371
 
    # collect2, so additional links can be useful in future.
24372
 
    if test "$aix_use_runtimelinking" = yes; then
24373
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24374
 
      # instead of lib<name>.a to let people know that these are not
24375
 
      # typical AIX shared libraries.
24376
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24377
 
    else
24378
 
      # We preserve .a as extension for shared libraries through AIX4.2
24379
 
      # and later when we are not doing run time linking.
24380
 
      library_names_spec='${libname}${release}.a $libname.a'
24381
 
      soname_spec='${libname}${release}${shared_ext}$major'
24382
 
    fi
24383
 
    shlibpath_var=LIBPATH
24384
 
  fi
24385
 
  ;;
24386
 
 
24387
 
amigaos*)
24388
 
  case $host_cpu in
24389
 
  powerpc)
24390
 
    # Since July 2007 AmigaOS4 officially supports .so libraries.
24391
 
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
24392
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24393
 
    ;;
24394
 
  m68k)
24395
 
    library_names_spec='$libname.ixlibrary $libname.a'
24396
 
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
24397
 
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
24398
 
    ;;
24399
 
  esac
24400
 
  ;;
24401
 
 
24402
 
beos*)
24403
 
  library_names_spec='${libname}${shared_ext}'
24404
 
  dynamic_linker="$host_os ld.so"
24405
 
  shlibpath_var=LIBRARY_PATH
24406
 
  ;;
24407
 
 
24408
 
bsdi[45]*)
24409
 
  version_type=linux # correct to gnu/linux during the next big refactor
24410
 
  need_version=no
24411
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24412
 
  soname_spec='${libname}${release}${shared_ext}$major'
24413
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
24414
 
  shlibpath_var=LD_LIBRARY_PATH
24415
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24416
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
24417
 
  # the default ld.so.conf also contains /usr/contrib/lib and
24418
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24419
 
  # libtool to hard-code these into programs
24420
 
  ;;
24421
 
 
24422
 
cygwin* | mingw* | pw32* | cegcc*)
24423
 
  version_type=windows
24424
 
  shrext_cmds=".dll"
24425
 
  need_version=no
24426
 
  need_lib_prefix=no
24427
 
 
24428
 
  case $GCC,$cc_basename in
24429
 
  yes,*)
24430
 
    # gcc
24431
 
    library_names_spec='$libname.dll.a'
24432
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
24433
 
    postinstall_cmds='base_file=`basename \${file}`~
24434
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
24435
 
      dldir=$destdir/`dirname \$dlpath`~
24436
 
      test -d \$dldir || mkdir -p \$dldir~
24437
 
      $install_prog $dir/$dlname \$dldir/$dlname~
24438
 
      chmod a+x \$dldir/$dlname~
24439
 
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
24440
 
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
24441
 
      fi'
24442
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24443
 
      dlpath=$dir/\$dldll~
24444
 
       $RM \$dlpath'
24445
 
    shlibpath_overrides_runpath=yes
24446
 
 
24447
 
    case $host_os in
24448
 
    cygwin*)
24449
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24450
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24451
 
 
24452
 
      ;;
24453
 
    mingw* | cegcc*)
24454
 
      # MinGW DLLs use traditional 'lib' prefix
24455
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24456
 
      ;;
24457
 
    pw32*)
24458
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
24459
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24460
 
      ;;
24461
 
    esac
24462
 
    dynamic_linker='Win32 ld.exe'
24463
 
    ;;
24464
 
 
24465
 
  *,cl*)
24466
 
    # Native MSVC
24467
 
    libname_spec='$name'
24468
 
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24469
 
    library_names_spec='${libname}.dll.lib'
24470
 
 
24471
 
    case $build_os in
24472
 
    mingw*)
24473
 
      sys_lib_search_path_spec=
24474
 
      lt_save_ifs=$IFS
24475
 
      IFS=';'
24476
 
      for lt_path in $LIB
24477
 
      do
24478
 
        IFS=$lt_save_ifs
24479
 
        # Let DOS variable expansion print the short 8.3 style file name.
24480
 
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
24481
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
24482
 
      done
24483
 
      IFS=$lt_save_ifs
24484
 
      # Convert to MSYS style.
24485
 
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
24486
 
      ;;
24487
 
    cygwin*)
24488
 
      # Convert to unix form, then to dos form, then back to unix form
24489
 
      # but this time dos style (no spaces!) so that the unix form looks
24490
 
      # like /cygdrive/c/PROGRA~1:/cygdr...
24491
 
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
24492
 
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
24493
 
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24494
 
      ;;
24495
 
    *)
24496
 
      sys_lib_search_path_spec="$LIB"
24497
 
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
24498
 
        # It is most probably a Windows format PATH.
24499
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24500
 
      else
24501
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24502
 
      fi
24503
 
      # FIXME: find the short name or the path components, as spaces are
24504
 
      # common. (e.g. "Program Files" -> "PROGRA~1")
24505
 
      ;;
24506
 
    esac
24507
 
 
24508
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
24509
 
    postinstall_cmds='base_file=`basename \${file}`~
24510
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
24511
 
      dldir=$destdir/`dirname \$dlpath`~
24512
 
      test -d \$dldir || mkdir -p \$dldir~
24513
 
      $install_prog $dir/$dlname \$dldir/$dlname'
24514
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24515
 
      dlpath=$dir/\$dldll~
24516
 
       $RM \$dlpath'
24517
 
    shlibpath_overrides_runpath=yes
24518
 
    dynamic_linker='Win32 link.exe'
24519
 
    ;;
24520
 
 
24521
 
  *)
24522
 
    # Assume MSVC wrapper
24523
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24524
 
    dynamic_linker='Win32 ld.exe'
24525
 
    ;;
24526
 
  esac
24527
 
  # FIXME: first we should search . and the directory the executable is in
24528
 
  shlibpath_var=PATH
24529
 
  ;;
24530
 
 
24531
 
darwin* | rhapsody*)
24532
 
  dynamic_linker="$host_os dyld"
24533
 
  version_type=darwin
24534
 
  need_lib_prefix=no
24535
 
  need_version=no
24536
 
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
24537
 
  soname_spec='${libname}${release}${major}$shared_ext'
24538
 
  shlibpath_overrides_runpath=yes
24539
 
  shlibpath_var=DYLD_LIBRARY_PATH
24540
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
24541
 
 
24542
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24543
 
  ;;
24544
 
 
24545
 
dgux*)
24546
 
  version_type=linux # correct to gnu/linux during the next big refactor
24547
 
  need_lib_prefix=no
24548
 
  need_version=no
24549
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24550
 
  soname_spec='${libname}${release}${shared_ext}$major'
24551
 
  shlibpath_var=LD_LIBRARY_PATH
24552
 
  ;;
24553
 
 
24554
 
freebsd* | dragonfly*)
24555
 
  # DragonFly does not have aout.  When/if they implement a new
24556
 
  # versioning mechanism, adjust this.
24557
 
  if test -x /usr/bin/objformat; then
24558
 
    objformat=`/usr/bin/objformat`
24559
 
  else
24560
 
    case $host_os in
24561
 
    freebsd[23].*) objformat=aout ;;
24562
 
    *) objformat=elf ;;
24563
 
    esac
24564
 
  fi
24565
 
  version_type=freebsd-$objformat
24566
 
  case $version_type in
24567
 
    freebsd-elf*)
24568
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24569
 
      need_version=no
24570
 
      need_lib_prefix=no
24571
 
      ;;
24572
 
    freebsd-*)
24573
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24574
 
      need_version=yes
24575
 
      ;;
24576
 
  esac
24577
 
  shlibpath_var=LD_LIBRARY_PATH
24578
 
  case $host_os in
24579
 
  freebsd2.*)
24580
 
    shlibpath_overrides_runpath=yes
24581
 
    ;;
24582
 
  freebsd3.[01]* | freebsdelf3.[01]*)
24583
 
    shlibpath_overrides_runpath=yes
24584
 
    hardcode_into_libs=yes
24585
 
    ;;
24586
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24587
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
24588
 
    shlibpath_overrides_runpath=no
24589
 
    hardcode_into_libs=yes
24590
 
    ;;
24591
 
  *) # from 4.6 on, and DragonFly
24592
 
    shlibpath_overrides_runpath=yes
24593
 
    hardcode_into_libs=yes
24594
 
    ;;
24595
 
  esac
24596
 
  ;;
24597
 
 
24598
 
gnu*)
24599
 
  version_type=linux # correct to gnu/linux during the next big refactor
24600
 
  need_lib_prefix=no
24601
 
  need_version=no
24602
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24603
 
  soname_spec='${libname}${release}${shared_ext}$major'
24604
 
  shlibpath_var=LD_LIBRARY_PATH
24605
 
  shlibpath_overrides_runpath=no
24606
 
  hardcode_into_libs=yes
24607
 
  ;;
24608
 
 
24609
 
haiku*)
24610
 
  version_type=linux # correct to gnu/linux during the next big refactor
24611
 
  need_lib_prefix=no
24612
 
  need_version=no
24613
 
  dynamic_linker="$host_os runtime_loader"
24614
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24615
 
  soname_spec='${libname}${release}${shared_ext}$major'
24616
 
  shlibpath_var=LIBRARY_PATH
24617
 
  shlibpath_overrides_runpath=yes
24618
 
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
24619
 
  hardcode_into_libs=yes
24620
 
  ;;
24621
 
 
24622
 
hpux9* | hpux10* | hpux11*)
24623
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
24624
 
  # link against other versions.
24625
 
  version_type=sunos
24626
 
  need_lib_prefix=no
24627
 
  need_version=no
24628
 
  case $host_cpu in
24629
 
  ia64*)
24630
 
    shrext_cmds='.so'
24631
 
    hardcode_into_libs=yes
24632
 
    dynamic_linker="$host_os dld.so"
24633
 
    shlibpath_var=LD_LIBRARY_PATH
24634
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24635
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24636
 
    soname_spec='${libname}${release}${shared_ext}$major'
24637
 
    if test "X$HPUX_IA64_MODE" = X32; then
24638
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24639
 
    else
24640
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24641
 
    fi
24642
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24643
 
    ;;
24644
 
  hppa*64*)
24645
 
    shrext_cmds='.sl'
24646
 
    hardcode_into_libs=yes
24647
 
    dynamic_linker="$host_os dld.sl"
24648
 
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24649
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24650
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24651
 
    soname_spec='${libname}${release}${shared_ext}$major'
24652
 
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24653
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24654
 
    ;;
24655
 
  *)
24656
 
    shrext_cmds='.sl'
24657
 
    dynamic_linker="$host_os dld.sl"
24658
 
    shlibpath_var=SHLIB_PATH
24659
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24660
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24661
 
    soname_spec='${libname}${release}${shared_ext}$major'
24662
 
    ;;
24663
 
  esac
24664
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
24665
 
  postinstall_cmds='chmod 555 $lib'
24666
 
  # or fails outright, so override atomically:
24667
 
  install_override_mode=555
24668
 
  ;;
24669
 
 
24670
 
interix[3-9]*)
24671
 
  version_type=linux # correct to gnu/linux during the next big refactor
24672
 
  need_lib_prefix=no
24673
 
  need_version=no
24674
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24675
 
  soname_spec='${libname}${release}${shared_ext}$major'
24676
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24677
 
  shlibpath_var=LD_LIBRARY_PATH
24678
 
  shlibpath_overrides_runpath=no
24679
 
  hardcode_into_libs=yes
24680
 
  ;;
24681
 
 
24682
 
irix5* | irix6* | nonstopux*)
24683
 
  case $host_os in
24684
 
    nonstopux*) version_type=nonstopux ;;
24685
 
    *)
24686
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
24687
 
                version_type=linux # correct to gnu/linux during the next big refactor
24688
 
        else
24689
 
                version_type=irix
24690
 
        fi ;;
24691
 
  esac
24692
 
  need_lib_prefix=no
24693
 
  need_version=no
24694
 
  soname_spec='${libname}${release}${shared_ext}$major'
24695
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24696
 
  case $host_os in
24697
 
  irix5* | nonstopux*)
24698
 
    libsuff= shlibsuff=
24699
 
    ;;
24700
 
  *)
24701
 
    case $LD in # libtool.m4 will add one of these switches to LD
24702
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24703
 
      libsuff= shlibsuff= libmagic=32-bit;;
24704
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24705
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
24706
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24707
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
24708
 
    *) libsuff= shlibsuff= libmagic=never-match;;
24709
 
    esac
24710
 
    ;;
24711
 
  esac
24712
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24713
 
  shlibpath_overrides_runpath=no
24714
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24715
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24716
 
  hardcode_into_libs=yes
24717
 
  ;;
24718
 
 
24719
 
# No shared lib support for Linux oldld, aout, or coff.
24720
 
linux*oldld* | linux*aout* | linux*coff*)
24721
 
  dynamic_linker=no
24722
 
  ;;
24723
 
 
24724
 
# This must be glibc/ELF.
24725
 
linux* | k*bsd*-gnu | kopensolaris*-gnu)
24726
 
  version_type=linux # correct to gnu/linux during the next big refactor
24727
 
  need_lib_prefix=no
24728
 
  need_version=no
24729
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24730
 
  soname_spec='${libname}${release}${shared_ext}$major'
24731
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24732
 
  shlibpath_var=LD_LIBRARY_PATH
24733
 
  shlibpath_overrides_runpath=no
24734
 
 
24735
 
  # Some binutils ld are patched to set DT_RUNPATH
24736
 
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
24737
 
  $as_echo_n "(cached) " >&6
24738
 
else
24739
 
  lt_cv_shlibpath_overrides_runpath=no
24740
 
    save_LDFLAGS=$LDFLAGS
24741
 
    save_libdir=$libdir
24742
 
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
24743
 
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
24744
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24745
 
/* end confdefs.h.  */
24746
 
 
24747
 
#ifdef F77_DUMMY_MAIN
24748
 
 
24749
 
#  ifdef __cplusplus
24750
 
     extern "C"
24751
 
#  endif
24752
 
   int F77_DUMMY_MAIN() { return 1; }
24753
 
 
24754
 
#endif
24755
 
int
24756
 
main ()
24757
 
{
24758
 
 
24759
 
  ;
24760
 
  return 0;
24761
 
}
24762
 
_ACEOF
24763
 
if ac_fn_cxx_try_link "$LINENO"; then :
24764
 
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
24765
 
  lt_cv_shlibpath_overrides_runpath=yes
24766
 
fi
24767
 
fi
24768
 
rm -f core conftest.err conftest.$ac_objext \
24769
 
    conftest$ac_exeext conftest.$ac_ext
24770
 
    LDFLAGS=$save_LDFLAGS
24771
 
    libdir=$save_libdir
24772
 
 
24773
 
fi
24774
 
 
24775
 
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
24776
 
 
24777
 
  # This implies no fast_install, which is unacceptable.
24778
 
  # Some rework will be needed to allow for fast_install
24779
 
  # before this can be enabled.
24780
 
  hardcode_into_libs=yes
24781
 
 
24782
 
  # Append ld.so.conf contents to the search path
24783
 
  if test -f /etc/ld.so.conf; then
24784
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
24785
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24786
 
  fi
24787
 
 
24788
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
24789
 
  # powerpc, because MkLinux only supported shared libraries with the
24790
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
24791
 
  # most powerpc-linux boxes support dynamic linking these days and
24792
 
  # people can always --disable-shared, the test was removed, and we
24793
 
  # assume the GNU/Linux dynamic linker is in use.
24794
 
  dynamic_linker='GNU/Linux ld.so'
24795
 
  ;;
24796
 
 
24797
 
netbsd*)
24798
 
  version_type=sunos
24799
 
  need_lib_prefix=no
24800
 
  need_version=no
24801
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
24802
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24803
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24804
 
    dynamic_linker='NetBSD (a.out) ld.so'
24805
 
  else
24806
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24807
 
    soname_spec='${libname}${release}${shared_ext}$major'
24808
 
    dynamic_linker='NetBSD ld.elf_so'
24809
 
  fi
24810
 
  shlibpath_var=LD_LIBRARY_PATH
24811
 
  shlibpath_overrides_runpath=yes
24812
 
  hardcode_into_libs=yes
24813
 
  ;;
24814
 
 
24815
 
newsos6)
24816
 
  version_type=linux # correct to gnu/linux during the next big refactor
24817
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24818
 
  shlibpath_var=LD_LIBRARY_PATH
24819
 
  shlibpath_overrides_runpath=yes
24820
 
  ;;
24821
 
 
24822
 
*nto* | *qnx*)
24823
 
  version_type=qnx
24824
 
  need_lib_prefix=no
24825
 
  need_version=no
24826
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24827
 
  soname_spec='${libname}${release}${shared_ext}$major'
24828
 
  shlibpath_var=LD_LIBRARY_PATH
24829
 
  shlibpath_overrides_runpath=no
24830
 
  hardcode_into_libs=yes
24831
 
  dynamic_linker='ldqnx.so'
24832
 
  ;;
24833
 
 
24834
 
openbsd*)
24835
 
  version_type=sunos
24836
 
  sys_lib_dlsearch_path_spec="/usr/lib"
24837
 
  need_lib_prefix=no
24838
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24839
 
  case $host_os in
24840
 
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
24841
 
    *)                          need_version=no  ;;
24842
 
  esac
24843
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24844
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24845
 
  shlibpath_var=LD_LIBRARY_PATH
24846
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24847
 
    case $host_os in
24848
 
      openbsd2.[89] | openbsd2.[89].*)
24849
 
        shlibpath_overrides_runpath=no
24850
 
        ;;
24851
 
      *)
24852
 
        shlibpath_overrides_runpath=yes
24853
 
        ;;
24854
 
      esac
24855
 
  else
24856
 
    shlibpath_overrides_runpath=yes
24857
 
  fi
24858
 
  ;;
24859
 
 
24860
 
os2*)
24861
 
  libname_spec='$name'
24862
 
  shrext_cmds=".dll"
24863
 
  need_lib_prefix=no
24864
 
  library_names_spec='$libname${shared_ext} $libname.a'
24865
 
  dynamic_linker='OS/2 ld.exe'
24866
 
  shlibpath_var=LIBPATH
24867
 
  ;;
24868
 
 
24869
 
osf3* | osf4* | osf5*)
24870
 
  version_type=osf
24871
 
  need_lib_prefix=no
24872
 
  need_version=no
24873
 
  soname_spec='${libname}${release}${shared_ext}$major'
24874
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24875
 
  shlibpath_var=LD_LIBRARY_PATH
24876
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24877
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24878
 
  ;;
24879
 
 
24880
 
rdos*)
24881
 
  dynamic_linker=no
24882
 
  ;;
24883
 
 
24884
 
solaris*)
24885
 
  version_type=linux # correct to gnu/linux during the next big refactor
24886
 
  need_lib_prefix=no
24887
 
  need_version=no
24888
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24889
 
  soname_spec='${libname}${release}${shared_ext}$major'
24890
 
  shlibpath_var=LD_LIBRARY_PATH
24891
 
  shlibpath_overrides_runpath=yes
24892
 
  hardcode_into_libs=yes
24893
 
  # ldd complains unless libraries are executable
24894
 
  postinstall_cmds='chmod +x $lib'
24895
 
  ;;
24896
 
 
24897
 
sunos4*)
24898
 
  version_type=sunos
24899
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24900
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24901
 
  shlibpath_var=LD_LIBRARY_PATH
24902
 
  shlibpath_overrides_runpath=yes
24903
 
  if test "$with_gnu_ld" = yes; then
24904
 
    need_lib_prefix=no
24905
 
  fi
24906
 
  need_version=yes
24907
 
  ;;
24908
 
 
24909
 
sysv4 | sysv4.3*)
24910
 
  version_type=linux # correct to gnu/linux during the next big refactor
24911
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24912
 
  soname_spec='${libname}${release}${shared_ext}$major'
24913
 
  shlibpath_var=LD_LIBRARY_PATH
24914
 
  case $host_vendor in
24915
 
    sni)
24916
 
      shlibpath_overrides_runpath=no
24917
 
      need_lib_prefix=no
24918
 
      runpath_var=LD_RUN_PATH
24919
 
      ;;
24920
 
    siemens)
24921
 
      need_lib_prefix=no
24922
 
      ;;
24923
 
    motorola)
24924
 
      need_lib_prefix=no
24925
 
      need_version=no
24926
 
      shlibpath_overrides_runpath=no
24927
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24928
 
      ;;
24929
 
  esac
24930
 
  ;;
24931
 
 
24932
 
sysv4*MP*)
24933
 
  if test -d /usr/nec ;then
24934
 
    version_type=linux # correct to gnu/linux during the next big refactor
24935
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24936
 
    soname_spec='$libname${shared_ext}.$major'
24937
 
    shlibpath_var=LD_LIBRARY_PATH
24938
 
  fi
24939
 
  ;;
24940
 
 
24941
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24942
 
  version_type=freebsd-elf
24943
 
  need_lib_prefix=no
24944
 
  need_version=no
24945
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24946
 
  soname_spec='${libname}${release}${shared_ext}$major'
24947
 
  shlibpath_var=LD_LIBRARY_PATH
24948
 
  shlibpath_overrides_runpath=yes
24949
 
  hardcode_into_libs=yes
24950
 
  if test "$with_gnu_ld" = yes; then
24951
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24952
 
  else
24953
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24954
 
    case $host_os in
24955
 
      sco3.2v5*)
24956
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24957
 
        ;;
24958
 
    esac
24959
 
  fi
24960
 
  sys_lib_dlsearch_path_spec='/usr/lib'
24961
 
  ;;
24962
 
 
24963
 
tpf*)
24964
 
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
24965
 
  version_type=linux # correct to gnu/linux during the next big refactor
24966
 
  need_lib_prefix=no
24967
 
  need_version=no
24968
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24969
 
  shlibpath_var=LD_LIBRARY_PATH
24970
 
  shlibpath_overrides_runpath=no
24971
 
  hardcode_into_libs=yes
24972
 
  ;;
24973
 
 
24974
 
uts4*)
24975
 
  version_type=linux # correct to gnu/linux during the next big refactor
24976
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24977
 
  soname_spec='${libname}${release}${shared_ext}$major'
24978
 
  shlibpath_var=LD_LIBRARY_PATH
24979
 
  ;;
24980
 
 
24981
 
*)
24982
 
  dynamic_linker=no
24983
 
  ;;
24984
 
esac
24985
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
24986
 
$as_echo "$dynamic_linker" >&6; }
24987
 
test "$dynamic_linker" = no && can_build_shared=no
24988
 
 
24989
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24990
 
if test "$GCC" = yes; then
24991
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24992
 
fi
24993
 
 
24994
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
24995
 
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
24996
 
fi
24997
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
24998
 
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
24999
 
fi
25000
 
 
25001
 
 
25002
 
 
25003
 
 
25004
 
 
25005
 
 
25006
 
 
25007
 
 
25008
 
 
25009
 
 
25010
 
 
25011
 
 
25012
 
 
25013
 
 
25014
 
 
25015
 
 
25016
 
 
25017
 
 
25018
 
 
25019
 
 
25020
 
 
25021
 
 
25022
 
 
25023
 
 
25024
 
 
25025
 
 
25026
 
 
25027
 
 
25028
 
 
25029
 
 
25030
 
 
25031
 
 
25032
 
 
25033
 
 
25034
 
 
25035
 
 
25036
 
 
25037
 
 
25038
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
25039
 
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
25040
 
hardcode_action_CXX=
25041
 
if test -n "$hardcode_libdir_flag_spec_CXX" ||
25042
 
   test -n "$runpath_var_CXX" ||
25043
 
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
25044
 
 
25045
 
  # We can hardcode non-existent directories.
25046
 
  if test "$hardcode_direct_CXX" != no &&
25047
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
25048
 
     # have to relink, otherwise we might link with an installed library
25049
 
     # when we should be linking with a yet-to-be-installed one
25050
 
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
25051
 
     test "$hardcode_minus_L_CXX" != no; then
25052
 
    # Linking always hardcodes the temporary library directory.
25053
 
    hardcode_action_CXX=relink
25054
 
  else
25055
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
25056
 
    hardcode_action_CXX=immediate
25057
 
  fi
25058
 
else
25059
 
  # We cannot hardcode anything, or else we can only hardcode existing
25060
 
  # directories.
25061
 
  hardcode_action_CXX=unsupported
25062
 
fi
25063
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
25064
 
$as_echo "$hardcode_action_CXX" >&6; }
25065
 
 
25066
 
if test "$hardcode_action_CXX" = relink ||
25067
 
   test "$inherit_rpath_CXX" = yes; then
25068
 
  # Fast installation is not supported
25069
 
  enable_fast_install=no
25070
 
elif test "$shlibpath_overrides_runpath" = yes ||
25071
 
     test "$enable_shared" = no; then
25072
 
  # Fast installation is not necessary
25073
 
  enable_fast_install=needless
25074
 
fi
25075
 
 
25076
 
 
25077
 
 
25078
 
 
25079
 
 
25080
 
 
25081
 
 
25082
 
  fi # test -n "$compiler"
25083
 
 
25084
 
  CC=$lt_save_CC
25085
 
  CFLAGS=$lt_save_CFLAGS
25086
 
  LDCXX=$LD
25087
 
  LD=$lt_save_LD
25088
 
  GCC=$lt_save_GCC
25089
 
  with_gnu_ld=$lt_save_with_gnu_ld
25090
 
  lt_cv_path_LDCXX=$lt_cv_path_LD
25091
 
  lt_cv_path_LD=$lt_save_path_LD
25092
 
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
25093
 
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
25094
 
fi # test "$_lt_caught_CXX_error" != yes
25095
 
 
25096
 
ac_ext=c
25097
 
ac_cpp='$CPP $CPPFLAGS'
25098
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25099
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25100
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
25101
 
 
25102
 
 
25103
 
 
25104
 
      ac_ext=f
25105
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
25106
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25107
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
25108
 
 
25109
 
if test -z "$F77" || test "X$F77" = "Xno"; then
25110
 
  _lt_disable_F77=yes
25111
 
fi
25112
 
 
25113
 
archive_cmds_need_lc_F77=no
25114
 
allow_undefined_flag_F77=
25115
 
always_export_symbols_F77=no
25116
 
archive_expsym_cmds_F77=
25117
 
export_dynamic_flag_spec_F77=
25118
 
hardcode_direct_F77=no
25119
 
hardcode_direct_absolute_F77=no
25120
 
hardcode_libdir_flag_spec_F77=
25121
 
hardcode_libdir_separator_F77=
25122
 
hardcode_minus_L_F77=no
25123
 
hardcode_automatic_F77=no
25124
 
inherit_rpath_F77=no
25125
 
module_cmds_F77=
25126
 
module_expsym_cmds_F77=
25127
 
link_all_deplibs_F77=unknown
25128
 
old_archive_cmds_F77=$old_archive_cmds
25129
 
reload_flag_F77=$reload_flag
25130
 
reload_cmds_F77=$reload_cmds
25131
 
no_undefined_flag_F77=
25132
 
whole_archive_flag_spec_F77=
25133
 
enable_shared_with_static_runtimes_F77=no
25134
 
 
25135
 
# Source file extension for f77 test sources.
25136
 
ac_ext=f
25137
 
 
25138
 
# Object file extension for compiled f77 test sources.
25139
 
objext=o
25140
 
objext_F77=$objext
25141
 
 
25142
 
# No sense in running all these tests if we already determined that
25143
 
# the F77 compiler isn't working.  Some variables (like enable_shared)
25144
 
# are currently assumed to apply to all compilers on this platform,
25145
 
# and will be corrupted by setting them based on a non-working compiler.
25146
 
if test "$_lt_disable_F77" != yes; then
25147
 
  # Code to be used in simple compile tests
25148
 
  lt_simple_compile_test_code="\
25149
 
      subroutine t
25150
 
      return
25151
 
      end
25152
 
"
25153
 
 
25154
 
  # Code to be used in simple link tests
25155
 
  lt_simple_link_test_code="\
25156
 
      program t
25157
 
      end
25158
 
"
25159
 
 
25160
 
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
25161
 
 
25162
 
 
25163
 
 
25164
 
 
25165
 
 
25166
 
 
25167
 
# If no C compiler was specified, use CC.
25168
 
LTCC=${LTCC-"$CC"}
25169
 
 
25170
 
# If no C compiler flags were specified, use CFLAGS.
25171
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
25172
 
 
25173
 
# Allow CC to be a program name with arguments.
25174
 
compiler=$CC
25175
 
 
25176
 
 
25177
 
  # save warnings/boilerplate of simple test code
25178
 
  ac_outfile=conftest.$ac_objext
25179
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
25180
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25181
 
_lt_compiler_boilerplate=`cat conftest.err`
25182
 
$RM conftest*
25183
 
 
25184
 
  ac_outfile=conftest.$ac_objext
25185
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
25186
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25187
 
_lt_linker_boilerplate=`cat conftest.err`
25188
 
$RM -r conftest*
25189
 
 
25190
 
 
25191
 
  # Allow CC to be a program name with arguments.
25192
 
  lt_save_CC="$CC"
25193
 
  lt_save_GCC=$GCC
25194
 
  lt_save_CFLAGS=$CFLAGS
25195
 
  CC=${F77-"f77"}
25196
 
  CFLAGS=$FFLAGS
25197
 
  compiler=$CC
25198
 
  compiler_F77=$CC
25199
 
  for cc_temp in $compiler""; do
25200
 
  case $cc_temp in
25201
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25202
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25203
 
    \-*) ;;
25204
 
    *) break;;
25205
 
  esac
25206
 
done
25207
 
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
25208
 
 
25209
 
  GCC=$G77
25210
 
  if test -n "$compiler"; then
25211
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
25212
 
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
25213
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
25214
 
$as_echo "$can_build_shared" >&6; }
25215
 
 
25216
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
25217
 
$as_echo_n "checking whether to build shared libraries... " >&6; }
25218
 
    test "$can_build_shared" = "no" && enable_shared=no
25219
 
 
25220
 
    # On AIX, shared libraries and static libraries use the same namespace, and
25221
 
    # are all built from PIC.
25222
 
    case $host_os in
25223
 
      aix3*)
25224
 
        test "$enable_shared" = yes && enable_static=no
25225
 
        if test -n "$RANLIB"; then
25226
 
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
25227
 
          postinstall_cmds='$RANLIB $lib'
25228
 
        fi
25229
 
        ;;
25230
 
      aix[4-9]*)
25231
 
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
25232
 
          test "$enable_shared" = yes && enable_static=no
25233
 
        fi
25234
 
        ;;
25235
 
    esac
25236
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
25237
 
$as_echo "$enable_shared" >&6; }
25238
 
 
25239
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
25240
 
$as_echo_n "checking whether to build static libraries... " >&6; }
25241
 
    # Make sure either enable_shared or enable_static is yes.
25242
 
    test "$enable_shared" = yes || enable_static=yes
25243
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
25244
 
$as_echo "$enable_static" >&6; }
25245
 
 
25246
 
    GCC_F77="$G77"
25247
 
    LD_F77="$LD"
25248
 
 
25249
 
    ## CAVEAT EMPTOR:
25250
 
    ## There is no encapsulation within the following macros, do not change
25251
 
    ## the running order or otherwise move them around unless you know exactly
25252
 
    ## what you are doing...
25253
 
    lt_prog_compiler_wl_F77=
25254
 
lt_prog_compiler_pic_F77=
25255
 
lt_prog_compiler_static_F77=
25256
 
 
25257
 
 
25258
 
  if test "$GCC" = yes; then
25259
 
    lt_prog_compiler_wl_F77='-Wl,'
25260
 
    lt_prog_compiler_static_F77='-static'
25261
 
 
25262
 
    case $host_os in
25263
 
      aix*)
25264
 
      # All AIX code is PIC.
25265
 
      if test "$host_cpu" = ia64; then
25266
 
        # AIX 5 now supports IA64 processor
25267
 
        lt_prog_compiler_static_F77='-Bstatic'
25268
 
      fi
25269
 
      ;;
25270
 
 
25271
 
    amigaos*)
25272
 
      case $host_cpu in
25273
 
      powerpc)
25274
 
            # see comment about AmigaOS4 .so support
25275
 
            lt_prog_compiler_pic_F77='-fPIC'
25276
 
        ;;
25277
 
      m68k)
25278
 
            # FIXME: we need at least 68020 code to build shared libraries, but
25279
 
            # adding the `-m68020' flag to GCC prevents building anything better,
25280
 
            # like `-m68040'.
25281
 
            lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
25282
 
        ;;
25283
 
      esac
25284
 
      ;;
25285
 
 
25286
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
25287
 
      # PIC is the default for these OSes.
25288
 
      ;;
25289
 
 
25290
 
    mingw* | cygwin* | pw32* | os2* | cegcc*)
25291
 
      # This hack is so that the source file can tell whether it is being
25292
 
      # built for inclusion in a dll (and should export symbols for example).
25293
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
25294
 
      # (--disable-auto-import) libraries
25295
 
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
25296
 
      ;;
25297
 
 
25298
 
    darwin* | rhapsody*)
25299
 
      # PIC is the default on this platform
25300
 
      # Common symbols not allowed in MH_DYLIB files
25301
 
      lt_prog_compiler_pic_F77='-fno-common'
25302
 
      ;;
25303
 
 
25304
 
    haiku*)
25305
 
      # PIC is the default for Haiku.
25306
 
      # The "-static" flag exists, but is broken.
25307
 
      lt_prog_compiler_static_F77=
25308
 
      ;;
25309
 
 
25310
 
    hpux*)
25311
 
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
25312
 
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
25313
 
      # sets the default TLS model and affects inlining.
25314
 
      case $host_cpu in
25315
 
      hppa*64*)
25316
 
        # +Z the default
25317
 
        ;;
25318
 
      *)
25319
 
        lt_prog_compiler_pic_F77='-fPIC'
25320
 
        ;;
25321
 
      esac
25322
 
      ;;
25323
 
 
25324
 
    interix[3-9]*)
25325
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
25326
 
      # Instead, we relocate shared libraries at runtime.
25327
 
      ;;
25328
 
 
25329
 
    msdosdjgpp*)
25330
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
25331
 
      # on systems that don't support them.
25332
 
      lt_prog_compiler_can_build_shared_F77=no
25333
 
      enable_shared=no
25334
 
      ;;
25335
 
 
25336
 
    *nto* | *qnx*)
25337
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
25338
 
      # it will coredump.
25339
 
      lt_prog_compiler_pic_F77='-fPIC -shared'
25340
 
      ;;
25341
 
 
25342
 
    sysv4*MP*)
25343
 
      if test -d /usr/nec; then
25344
 
        lt_prog_compiler_pic_F77=-Kconform_pic
25345
 
      fi
25346
 
      ;;
25347
 
 
25348
 
    *)
25349
 
      lt_prog_compiler_pic_F77='-fPIC'
25350
 
      ;;
25351
 
    esac
25352
 
 
25353
 
    case $cc_basename in
25354
 
    nvcc*) # Cuda Compiler Driver 2.2
25355
 
      lt_prog_compiler_wl_F77='-Xlinker '
25356
 
      if test -n "$lt_prog_compiler_pic_F77"; then
25357
 
        lt_prog_compiler_pic_F77="-Xcompiler $lt_prog_compiler_pic_F77"
25358
 
      fi
25359
 
      ;;
25360
 
    esac
25361
 
  else
25362
 
    # PORTME Check for flag to pass linker flags through the system compiler.
25363
 
    case $host_os in
25364
 
    aix*)
25365
 
      lt_prog_compiler_wl_F77='-Wl,'
25366
 
      if test "$host_cpu" = ia64; then
25367
 
        # AIX 5 now supports IA64 processor
25368
 
        lt_prog_compiler_static_F77='-Bstatic'
25369
 
      else
25370
 
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
25371
 
      fi
25372
 
      ;;
25373
 
 
25374
 
    mingw* | cygwin* | pw32* | os2* | cegcc*)
25375
 
      # This hack is so that the source file can tell whether it is being
25376
 
      # built for inclusion in a dll (and should export symbols for example).
25377
 
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
25378
 
      ;;
25379
 
 
25380
 
    hpux9* | hpux10* | hpux11*)
25381
 
      lt_prog_compiler_wl_F77='-Wl,'
25382
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
25383
 
      # not for PA HP-UX.
25384
 
      case $host_cpu in
25385
 
      hppa*64*|ia64*)
25386
 
        # +Z the default
25387
 
        ;;
25388
 
      *)
25389
 
        lt_prog_compiler_pic_F77='+Z'
25390
 
        ;;
25391
 
      esac
25392
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
25393
 
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
25394
 
      ;;
25395
 
 
25396
 
    irix5* | irix6* | nonstopux*)
25397
 
      lt_prog_compiler_wl_F77='-Wl,'
25398
 
      # PIC (with -KPIC) is the default.
25399
 
      lt_prog_compiler_static_F77='-non_shared'
25400
 
      ;;
25401
 
 
25402
 
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
25403
 
      case $cc_basename in
25404
 
      # old Intel for x86_64 which still supported -KPIC.
25405
 
      ecc*)
25406
 
        lt_prog_compiler_wl_F77='-Wl,'
25407
 
        lt_prog_compiler_pic_F77='-KPIC'
25408
 
        lt_prog_compiler_static_F77='-static'
25409
 
        ;;
25410
 
      # icc used to be incompatible with GCC.
25411
 
      # ICC 10 doesn't accept -KPIC any more.
25412
 
      icc* | ifort*)
25413
 
        lt_prog_compiler_wl_F77='-Wl,'
25414
 
        lt_prog_compiler_pic_F77='-fPIC'
25415
 
        lt_prog_compiler_static_F77='-static'
25416
 
        ;;
25417
 
      # Lahey Fortran 8.1.
25418
 
      lf95*)
25419
 
        lt_prog_compiler_wl_F77='-Wl,'
25420
 
        lt_prog_compiler_pic_F77='--shared'
25421
 
        lt_prog_compiler_static_F77='--static'
25422
 
        ;;
25423
 
      nagfor*)
25424
 
        # NAG Fortran compiler
25425
 
        lt_prog_compiler_wl_F77='-Wl,-Wl,,'
25426
 
        lt_prog_compiler_pic_F77='-PIC'
25427
 
        lt_prog_compiler_static_F77='-Bstatic'
25428
 
        ;;
25429
 
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
25430
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
25431
 
        # which looks to be a dead project)
25432
 
        lt_prog_compiler_wl_F77='-Wl,'
25433
 
        lt_prog_compiler_pic_F77='-fpic'
25434
 
        lt_prog_compiler_static_F77='-Bstatic'
25435
 
        ;;
25436
 
      ccc*)
25437
 
        lt_prog_compiler_wl_F77='-Wl,'
25438
 
        # All Alpha code is PIC.
25439
 
        lt_prog_compiler_static_F77='-non_shared'
25440
 
        ;;
25441
 
      xl* | bgxl* | bgf* | mpixl*)
25442
 
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
25443
 
        lt_prog_compiler_wl_F77='-Wl,'
25444
 
        lt_prog_compiler_pic_F77='-qpic'
25445
 
        lt_prog_compiler_static_F77='-qstaticlink'
25446
 
        ;;
25447
 
      *)
25448
 
        case `$CC -V 2>&1 | sed 5q` in
25449
 
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
25450
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
25451
 
          lt_prog_compiler_pic_F77='-KPIC'
25452
 
          lt_prog_compiler_static_F77='-Bstatic'
25453
 
          lt_prog_compiler_wl_F77=''
25454
 
          ;;
25455
 
        *Sun\ F* | *Sun*Fortran*)
25456
 
          lt_prog_compiler_pic_F77='-KPIC'
25457
 
          lt_prog_compiler_static_F77='-Bstatic'
25458
 
          lt_prog_compiler_wl_F77='-Qoption ld '
25459
 
          ;;
25460
 
        *Sun\ C*)
25461
 
          # Sun C 5.9
25462
 
          lt_prog_compiler_pic_F77='-KPIC'
25463
 
          lt_prog_compiler_static_F77='-Bstatic'
25464
 
          lt_prog_compiler_wl_F77='-Wl,'
25465
 
          ;;
25466
 
        *Intel*\ [CF]*Compiler*)
25467
 
          lt_prog_compiler_wl_F77='-Wl,'
25468
 
          lt_prog_compiler_pic_F77='-fPIC'
25469
 
          lt_prog_compiler_static_F77='-static'
25470
 
          ;;
25471
 
        *Portland\ Group*)
25472
 
          lt_prog_compiler_wl_F77='-Wl,'
25473
 
          lt_prog_compiler_pic_F77='-fpic'
25474
 
          lt_prog_compiler_static_F77='-Bstatic'
25475
 
          ;;
25476
 
        esac
25477
 
        ;;
25478
 
      esac
25479
 
      ;;
25480
 
 
25481
 
    newsos6)
25482
 
      lt_prog_compiler_pic_F77='-KPIC'
25483
 
      lt_prog_compiler_static_F77='-Bstatic'
25484
 
      ;;
25485
 
 
25486
 
    *nto* | *qnx*)
25487
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
25488
 
      # it will coredump.
25489
 
      lt_prog_compiler_pic_F77='-fPIC -shared'
25490
 
      ;;
25491
 
 
25492
 
    osf3* | osf4* | osf5*)
25493
 
      lt_prog_compiler_wl_F77='-Wl,'
25494
 
      # All OSF/1 code is PIC.
25495
 
      lt_prog_compiler_static_F77='-non_shared'
25496
 
      ;;
25497
 
 
25498
 
    rdos*)
25499
 
      lt_prog_compiler_static_F77='-non_shared'
25500
 
      ;;
25501
 
 
25502
 
    solaris*)
25503
 
      lt_prog_compiler_pic_F77='-KPIC'
25504
 
      lt_prog_compiler_static_F77='-Bstatic'
25505
 
      case $cc_basename in
25506
 
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
25507
 
        lt_prog_compiler_wl_F77='-Qoption ld ';;
25508
 
      *)
25509
 
        lt_prog_compiler_wl_F77='-Wl,';;
25510
 
      esac
25511
 
      ;;
25512
 
 
25513
 
    sunos4*)
25514
 
      lt_prog_compiler_wl_F77='-Qoption ld '
25515
 
      lt_prog_compiler_pic_F77='-PIC'
25516
 
      lt_prog_compiler_static_F77='-Bstatic'
25517
 
      ;;
25518
 
 
25519
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
25520
 
      lt_prog_compiler_wl_F77='-Wl,'
25521
 
      lt_prog_compiler_pic_F77='-KPIC'
25522
 
      lt_prog_compiler_static_F77='-Bstatic'
25523
 
      ;;
25524
 
 
25525
 
    sysv4*MP*)
25526
 
      if test -d /usr/nec ;then
25527
 
        lt_prog_compiler_pic_F77='-Kconform_pic'
25528
 
        lt_prog_compiler_static_F77='-Bstatic'
25529
 
      fi
25530
 
      ;;
25531
 
 
25532
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
25533
 
      lt_prog_compiler_wl_F77='-Wl,'
25534
 
      lt_prog_compiler_pic_F77='-KPIC'
25535
 
      lt_prog_compiler_static_F77='-Bstatic'
25536
 
      ;;
25537
 
 
25538
 
    unicos*)
25539
 
      lt_prog_compiler_wl_F77='-Wl,'
25540
 
      lt_prog_compiler_can_build_shared_F77=no
25541
 
      ;;
25542
 
 
25543
 
    uts4*)
25544
 
      lt_prog_compiler_pic_F77='-pic'
25545
 
      lt_prog_compiler_static_F77='-Bstatic'
25546
 
      ;;
25547
 
 
25548
 
    *)
25549
 
      lt_prog_compiler_can_build_shared_F77=no
25550
 
      ;;
25551
 
    esac
25552
 
  fi
25553
 
 
25554
 
case $host_os in
25555
 
  # For platforms which do not support PIC, -DPIC is meaningless:
25556
 
  *djgpp*)
25557
 
    lt_prog_compiler_pic_F77=
25558
 
    ;;
25559
 
  *)
25560
 
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
25561
 
    ;;
25562
 
esac
25563
 
 
25564
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
25565
 
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
25566
 
if ${lt_cv_prog_compiler_pic_F77+:} false; then :
25567
 
  $as_echo_n "(cached) " >&6
25568
 
else
25569
 
  lt_cv_prog_compiler_pic_F77=$lt_prog_compiler_pic_F77
25570
 
fi
25571
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_F77" >&5
25572
 
$as_echo "$lt_cv_prog_compiler_pic_F77" >&6; }
25573
 
lt_prog_compiler_pic_F77=$lt_cv_prog_compiler_pic_F77
25574
 
 
25575
 
#
25576
 
# Check to make sure the PIC flag actually works.
25577
 
#
25578
 
if test -n "$lt_prog_compiler_pic_F77"; then
25579
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
25580
 
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
25581
 
if ${lt_cv_prog_compiler_pic_works_F77+:} false; then :
25582
 
  $as_echo_n "(cached) " >&6
25583
 
else
25584
 
  lt_cv_prog_compiler_pic_works_F77=no
25585
 
   ac_outfile=conftest.$ac_objext
25586
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
25587
 
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
25588
 
   # Insert the option either (1) after the last *FLAGS variable, or
25589
 
   # (2) before a word containing "conftest.", or (3) at the end.
25590
 
   # Note that $ac_compile itself does not contain backslashes and begins
25591
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
25592
 
   # The option is referenced via a variable to avoid confusing sed.
25593
 
   lt_compile=`echo "$ac_compile" | $SED \
25594
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
25595
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25596
 
   -e 's:$: $lt_compiler_flag:'`
25597
 
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
25598
 
   (eval "$lt_compile" 2>conftest.err)
25599
 
   ac_status=$?
25600
 
   cat conftest.err >&5
25601
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25602
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
25603
 
     # The compiler can only warn and ignore the option if not recognized
25604
 
     # So say no if there are warnings other than the usual output.
25605
 
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
25606
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
25607
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
25608
 
       lt_cv_prog_compiler_pic_works_F77=yes
25609
 
     fi
25610
 
   fi
25611
 
   $RM conftest*
25612
 
 
25613
 
fi
25614
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
25615
 
$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
25616
 
 
25617
 
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
25618
 
    case $lt_prog_compiler_pic_F77 in
25619
 
     "" | " "*) ;;
25620
 
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
25621
 
     esac
25622
 
else
25623
 
    lt_prog_compiler_pic_F77=
25624
 
     lt_prog_compiler_can_build_shared_F77=no
25625
 
fi
25626
 
 
25627
 
fi
25628
 
 
25629
 
 
25630
 
 
25631
 
 
25632
 
 
25633
 
#
25634
 
# Check to make sure the static flag actually works.
25635
 
#
25636
 
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
25637
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
25638
 
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
25639
 
if ${lt_cv_prog_compiler_static_works_F77+:} false; then :
25640
 
  $as_echo_n "(cached) " >&6
25641
 
else
25642
 
  lt_cv_prog_compiler_static_works_F77=no
25643
 
   save_LDFLAGS="$LDFLAGS"
25644
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
25645
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
25646
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
25647
 
     # The linker can only warn and ignore the option if not recognized
25648
 
     # So say no if there are warnings
25649
 
     if test -s conftest.err; then
25650
 
       # Append any errors to the config.log.
25651
 
       cat conftest.err 1>&5
25652
 
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
25653
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
25654
 
       if diff conftest.exp conftest.er2 >/dev/null; then
25655
 
         lt_cv_prog_compiler_static_works_F77=yes
25656
 
       fi
25657
 
     else
25658
 
       lt_cv_prog_compiler_static_works_F77=yes
25659
 
     fi
25660
 
   fi
25661
 
   $RM -r conftest*
25662
 
   LDFLAGS="$save_LDFLAGS"
25663
 
 
25664
 
fi
25665
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
25666
 
$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
25667
 
 
25668
 
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
25669
 
    :
25670
 
else
25671
 
    lt_prog_compiler_static_F77=
25672
 
fi
25673
 
 
25674
 
 
25675
 
 
25676
 
 
25677
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
25678
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
25679
 
if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
25680
 
  $as_echo_n "(cached) " >&6
25681
 
else
25682
 
  lt_cv_prog_compiler_c_o_F77=no
25683
 
   $RM -r conftest 2>/dev/null
25684
 
   mkdir conftest
25685
 
   cd conftest
25686
 
   mkdir out
25687
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
25688
 
 
25689
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
25690
 
   # Insert the option either (1) after the last *FLAGS variable, or
25691
 
   # (2) before a word containing "conftest.", or (3) at the end.
25692
 
   # Note that $ac_compile itself does not contain backslashes and begins
25693
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
25694
 
   lt_compile=`echo "$ac_compile" | $SED \
25695
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
25696
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25697
 
   -e 's:$: $lt_compiler_flag:'`
25698
 
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
25699
 
   (eval "$lt_compile" 2>out/conftest.err)
25700
 
   ac_status=$?
25701
 
   cat out/conftest.err >&5
25702
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25703
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
25704
 
   then
25705
 
     # The compiler can only warn and ignore the option if not recognized
25706
 
     # So say no if there are warnings
25707
 
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
25708
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
25709
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
25710
 
       lt_cv_prog_compiler_c_o_F77=yes
25711
 
     fi
25712
 
   fi
25713
 
   chmod u+w . 2>&5
25714
 
   $RM conftest*
25715
 
   # SGI C++ compiler will create directory out/ii_files/ for
25716
 
   # template instantiation
25717
 
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
25718
 
   $RM out/* && rmdir out
25719
 
   cd ..
25720
 
   $RM -r conftest
25721
 
   $RM conftest*
25722
 
 
25723
 
fi
25724
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
25725
 
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
25726
 
 
25727
 
 
25728
 
 
25729
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
25730
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
25731
 
if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
25732
 
  $as_echo_n "(cached) " >&6
25733
 
else
25734
 
  lt_cv_prog_compiler_c_o_F77=no
25735
 
   $RM -r conftest 2>/dev/null
25736
 
   mkdir conftest
25737
 
   cd conftest
25738
 
   mkdir out
25739
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
25740
 
 
25741
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
25742
 
   # Insert the option either (1) after the last *FLAGS variable, or
25743
 
   # (2) before a word containing "conftest.", or (3) at the end.
25744
 
   # Note that $ac_compile itself does not contain backslashes and begins
25745
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
25746
 
   lt_compile=`echo "$ac_compile" | $SED \
25747
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
25748
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25749
 
   -e 's:$: $lt_compiler_flag:'`
25750
 
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
25751
 
   (eval "$lt_compile" 2>out/conftest.err)
25752
 
   ac_status=$?
25753
 
   cat out/conftest.err >&5
25754
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25755
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
25756
 
   then
25757
 
     # The compiler can only warn and ignore the option if not recognized
25758
 
     # So say no if there are warnings
25759
 
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
25760
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
25761
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
25762
 
       lt_cv_prog_compiler_c_o_F77=yes
25763
 
     fi
25764
 
   fi
25765
 
   chmod u+w . 2>&5
25766
 
   $RM conftest*
25767
 
   # SGI C++ compiler will create directory out/ii_files/ for
25768
 
   # template instantiation
25769
 
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
25770
 
   $RM out/* && rmdir out
25771
 
   cd ..
25772
 
   $RM -r conftest
25773
 
   $RM conftest*
25774
 
 
25775
 
fi
25776
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
25777
 
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
25778
 
 
25779
 
 
25780
 
 
25781
 
 
25782
 
hard_links="nottested"
25783
 
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
25784
 
  # do not overwrite the value of need_locks provided by the user
25785
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
25786
 
$as_echo_n "checking if we can lock with hard links... " >&6; }
25787
 
  hard_links=yes
25788
 
  $RM conftest*
25789
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
25790
 
  touch conftest.a
25791
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
25792
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
25793
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
25794
 
$as_echo "$hard_links" >&6; }
25795
 
  if test "$hard_links" = no; then
25796
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
25797
 
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
25798
 
    need_locks=warn
25799
 
  fi
25800
 
else
25801
 
  need_locks=no
25802
 
fi
25803
 
 
25804
 
 
25805
 
 
25806
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
25807
 
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
25808
 
 
25809
 
  runpath_var=
25810
 
  allow_undefined_flag_F77=
25811
 
  always_export_symbols_F77=no
25812
 
  archive_cmds_F77=
25813
 
  archive_expsym_cmds_F77=
25814
 
  compiler_needs_object_F77=no
25815
 
  enable_shared_with_static_runtimes_F77=no
25816
 
  export_dynamic_flag_spec_F77=
25817
 
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
25818
 
  hardcode_automatic_F77=no
25819
 
  hardcode_direct_F77=no
25820
 
  hardcode_direct_absolute_F77=no
25821
 
  hardcode_libdir_flag_spec_F77=
25822
 
  hardcode_libdir_separator_F77=
25823
 
  hardcode_minus_L_F77=no
25824
 
  hardcode_shlibpath_var_F77=unsupported
25825
 
  inherit_rpath_F77=no
25826
 
  link_all_deplibs_F77=unknown
25827
 
  module_cmds_F77=
25828
 
  module_expsym_cmds_F77=
25829
 
  old_archive_from_new_cmds_F77=
25830
 
  old_archive_from_expsyms_cmds_F77=
25831
 
  thread_safe_flag_spec_F77=
25832
 
  whole_archive_flag_spec_F77=
25833
 
  # include_expsyms should be a list of space-separated symbols to be *always*
25834
 
  # included in the symbol list
25835
 
  include_expsyms_F77=
25836
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
25837
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
25838
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
25839
 
  # as well as any symbol that contains `d'.
25840
 
  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
25841
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
25842
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
25843
 
  # the symbol is explicitly referenced.  Since portable code cannot
25844
 
  # rely on this symbol name, it's probably fine to never include it in
25845
 
  # preloaded symbol tables.
25846
 
  # Exclude shared library initialization/finalization symbols.
25847
 
  extract_expsyms_cmds=
25848
 
 
25849
 
  case $host_os in
25850
 
  cygwin* | mingw* | pw32* | cegcc*)
25851
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
25852
 
    # When not using gcc, we currently assume that we are using
25853
 
    # Microsoft Visual C++.
25854
 
    if test "$GCC" != yes; then
25855
 
      with_gnu_ld=no
25856
 
    fi
25857
 
    ;;
25858
 
  interix*)
25859
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
25860
 
    with_gnu_ld=yes
25861
 
    ;;
25862
 
  openbsd*)
25863
 
    with_gnu_ld=no
25864
 
    ;;
25865
 
  esac
25866
 
 
25867
 
  ld_shlibs_F77=yes
25868
 
 
25869
 
  # On some targets, GNU ld is compatible enough with the native linker
25870
 
  # that we're better off using the native interface for both.
25871
 
  lt_use_gnu_ld_interface=no
25872
 
  if test "$with_gnu_ld" = yes; then
25873
 
    case $host_os in
25874
 
      aix*)
25875
 
        # The AIX port of GNU ld has always aspired to compatibility
25876
 
        # with the native linker.  However, as the warning in the GNU ld
25877
 
        # block says, versions before 2.19.5* couldn't really create working
25878
 
        # shared libraries, regardless of the interface used.
25879
 
        case `$LD -v 2>&1` in
25880
 
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
25881
 
          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
25882
 
          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
25883
 
          *)
25884
 
            lt_use_gnu_ld_interface=yes
25885
 
            ;;
25886
 
        esac
25887
 
        ;;
25888
 
      *)
25889
 
        lt_use_gnu_ld_interface=yes
25890
 
        ;;
25891
 
    esac
25892
 
  fi
25893
 
 
25894
 
  if test "$lt_use_gnu_ld_interface" = yes; then
25895
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
25896
 
    wlarc='${wl}'
25897
 
 
25898
 
    # Set some defaults for GNU ld with shared library support. These
25899
 
    # are reset later if shared libraries are not supported. Putting them
25900
 
    # here allows them to be overridden if necessary.
25901
 
    runpath_var=LD_RUN_PATH
25902
 
    hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
25903
 
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
25904
 
    # ancient GNU ld didn't support --whole-archive et. al.
25905
 
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
25906
 
      whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
25907
 
    else
25908
 
      whole_archive_flag_spec_F77=
25909
 
    fi
25910
 
    supports_anon_versioning=no
25911
 
    case `$LD -v 2>&1` in
25912
 
      *GNU\ gold*) supports_anon_versioning=yes ;;
25913
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
25914
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
25915
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
25916
 
      *\ 2.11.*) ;; # other 2.11 versions
25917
 
      *) supports_anon_versioning=yes ;;
25918
 
    esac
25919
 
 
25920
 
    # See if GNU ld supports shared libraries.
25921
 
    case $host_os in
25922
 
    aix[3-9]*)
25923
 
      # On AIX/PPC, the GNU linker is very broken
25924
 
      if test "$host_cpu" != ia64; then
25925
 
        ld_shlibs_F77=no
25926
 
        cat <<_LT_EOF 1>&2
25927
 
 
25928
 
*** Warning: the GNU linker, at least up to release 2.19, is reported
25929
 
*** to be unable to reliably create shared libraries on AIX.
25930
 
*** Therefore, libtool is disabling shared libraries support.  If you
25931
 
*** really care for shared libraries, you may want to install binutils
25932
 
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
25933
 
*** You will then need to restart the configuration process.
25934
 
 
25935
 
_LT_EOF
25936
 
      fi
25937
 
      ;;
25938
 
 
25939
 
    amigaos*)
25940
 
      case $host_cpu in
25941
 
      powerpc)
25942
 
            # see comment about AmigaOS4 .so support
25943
 
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25944
 
            archive_expsym_cmds_F77=''
25945
 
        ;;
25946
 
      m68k)
25947
 
            archive_cmds_F77='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
25948
 
            hardcode_libdir_flag_spec_F77='-L$libdir'
25949
 
            hardcode_minus_L_F77=yes
25950
 
        ;;
25951
 
      esac
25952
 
      ;;
25953
 
 
25954
 
    beos*)
25955
 
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
25956
 
        allow_undefined_flag_F77=unsupported
25957
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
25958
 
        # support --undefined.  This deserves some investigation.  FIXME
25959
 
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25960
 
      else
25961
 
        ld_shlibs_F77=no
25962
 
      fi
25963
 
      ;;
25964
 
 
25965
 
    cygwin* | mingw* | pw32* | cegcc*)
25966
 
      # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
25967
 
      # as there is no search path for DLLs.
25968
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
25969
 
      export_dynamic_flag_spec_F77='${wl}--export-all-symbols'
25970
 
      allow_undefined_flag_F77=unsupported
25971
 
      always_export_symbols_F77=no
25972
 
      enable_shared_with_static_runtimes_F77=yes
25973
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
25974
 
      exclude_expsyms_F77='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
25975
 
 
25976
 
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
25977
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
25978
 
        # If the export-symbols file already is a .def file (1st line
25979
 
        # is EXPORTS), use it as is; otherwise, prepend...
25980
 
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
25981
 
          cp $export_symbols $output_objdir/$soname.def;
25982
 
        else
25983
 
          echo EXPORTS > $output_objdir/$soname.def;
25984
 
          cat $export_symbols >> $output_objdir/$soname.def;
25985
 
        fi~
25986
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
25987
 
      else
25988
 
        ld_shlibs_F77=no
25989
 
      fi
25990
 
      ;;
25991
 
 
25992
 
    haiku*)
25993
 
      archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25994
 
      link_all_deplibs_F77=yes
25995
 
      ;;
25996
 
 
25997
 
    interix[3-9]*)
25998
 
      hardcode_direct_F77=no
25999
 
      hardcode_shlibpath_var_F77=no
26000
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
26001
 
      export_dynamic_flag_spec_F77='${wl}-E'
26002
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
26003
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
26004
 
      # default) and relocated if they conflict, which is a slow very memory
26005
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
26006
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
26007
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
26008
 
      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
26009
 
      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
26010
 
      ;;
26011
 
 
26012
 
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
26013
 
      tmp_diet=no
26014
 
      if test "$host_os" = linux-dietlibc; then
26015
 
        case $cc_basename in
26016
 
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
26017
 
        esac
26018
 
      fi
26019
 
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
26020
 
         && test "$tmp_diet" = no
26021
 
      then
26022
 
        tmp_addflag=' $pic_flag'
26023
 
        tmp_sharedflag='-shared'
26024
 
        case $cc_basename,$host_cpu in
26025
 
        pgcc*)                          # Portland Group C compiler
26026
 
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
26027
 
          tmp_addflag=' $pic_flag'
26028
 
          ;;
26029
 
        pgf77* | pgf90* | pgf95* | pgfortran*)
26030
 
                                        # Portland Group f77 and f90 compilers
26031
 
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
26032
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
26033
 
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
26034
 
          tmp_addflag=' -i_dynamic' ;;
26035
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
26036
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
26037
 
        ifc* | ifort*)                  # Intel Fortran compiler
26038
 
          tmp_addflag=' -nofor_main' ;;
26039
 
        lf95*)                          # Lahey Fortran 8.1
26040
 
          whole_archive_flag_spec_F77=
26041
 
          tmp_sharedflag='--shared' ;;
26042
 
        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
26043
 
          tmp_sharedflag='-qmkshrobj'
26044
 
          tmp_addflag= ;;
26045
 
        nvcc*)  # Cuda Compiler Driver 2.2
26046
 
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
26047
 
          compiler_needs_object_F77=yes
26048
 
          ;;
26049
 
        esac
26050
 
        case `$CC -V 2>&1 | sed 5q` in
26051
 
        *Sun\ C*)                       # Sun C 5.9
26052
 
          whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
26053
 
          compiler_needs_object_F77=yes
26054
 
          tmp_sharedflag='-G' ;;
26055
 
        *Sun\ F*)                       # Sun Fortran 8.3
26056
 
          tmp_sharedflag='-G' ;;
26057
 
        esac
26058
 
        archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
26059
 
 
26060
 
        if test "x$supports_anon_versioning" = xyes; then
26061
 
          archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
26062
 
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
26063
 
            echo "local: *; };" >> $output_objdir/$libname.ver~
26064
 
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
26065
 
        fi
26066
 
 
26067
 
        case $cc_basename in
26068
 
        xlf* | bgf* | bgxlf* | mpixlf*)
26069
 
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
26070
 
          whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive'
26071
 
          hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
26072
 
          archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
26073
 
          if test "x$supports_anon_versioning" = xyes; then
26074
 
            archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
26075
 
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
26076
 
              echo "local: *; };" >> $output_objdir/$libname.ver~
26077
 
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
26078
 
          fi
26079
 
          ;;
26080
 
        esac
26081
 
      else
26082
 
        ld_shlibs_F77=no
26083
 
      fi
26084
 
      ;;
26085
 
 
26086
 
    netbsd*)
26087
 
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
26088
 
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
26089
 
        wlarc=
26090
 
      else
26091
 
        archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
26092
 
        archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
26093
 
      fi
26094
 
      ;;
26095
 
 
26096
 
    solaris*)
26097
 
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
26098
 
        ld_shlibs_F77=no
26099
 
        cat <<_LT_EOF 1>&2
26100
 
 
26101
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
26102
 
*** create shared libraries on Solaris systems.  Therefore, libtool
26103
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
26104
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
26105
 
*** your PATH or compiler configuration so that the native linker is
26106
 
*** used, and then restart.
26107
 
 
26108
 
_LT_EOF
26109
 
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
26110
 
        archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
26111
 
        archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
26112
 
      else
26113
 
        ld_shlibs_F77=no
26114
 
      fi
26115
 
      ;;
26116
 
 
26117
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
26118
 
      case `$LD -v 2>&1` in
26119
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
26120
 
        ld_shlibs_F77=no
26121
 
        cat <<_LT_EOF 1>&2
26122
 
 
26123
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
26124
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
26125
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
26126
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
26127
 
*** your PATH or compiler configuration so that the native linker is
26128
 
*** used, and then restart.
26129
 
 
26130
 
_LT_EOF
26131
 
        ;;
26132
 
        *)
26133
 
          # For security reasons, it is highly recommended that you always
26134
 
          # use absolute paths for naming shared libraries, and exclude the
26135
 
          # DT_RUNPATH tag from executables and libraries.  But doing so
26136
 
          # requires that you compile everything twice, which is a pain.
26137
 
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
26138
 
            hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
26139
 
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
26140
 
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
26141
 
          else
26142
 
            ld_shlibs_F77=no
26143
 
          fi
26144
 
        ;;
26145
 
      esac
26146
 
      ;;
26147
 
 
26148
 
    sunos4*)
26149
 
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
26150
 
      wlarc=
26151
 
      hardcode_direct_F77=yes
26152
 
      hardcode_shlibpath_var_F77=no
26153
 
      ;;
26154
 
 
26155
 
    *)
26156
 
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
26157
 
        archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
26158
 
        archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
26159
 
      else
26160
 
        ld_shlibs_F77=no
26161
 
      fi
26162
 
      ;;
26163
 
    esac
26164
 
 
26165
 
    if test "$ld_shlibs_F77" = no; then
26166
 
      runpath_var=
26167
 
      hardcode_libdir_flag_spec_F77=
26168
 
      export_dynamic_flag_spec_F77=
26169
 
      whole_archive_flag_spec_F77=
26170
 
    fi
26171
 
  else
26172
 
    # PORTME fill in a description of your system's linker (not GNU ld)
26173
 
    case $host_os in
26174
 
    aix3*)
26175
 
      allow_undefined_flag_F77=unsupported
26176
 
      always_export_symbols_F77=yes
26177
 
      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
26178
 
      # Note: this linker hardcodes the directories in LIBPATH if there
26179
 
      # are no directories specified by -L.
26180
 
      hardcode_minus_L_F77=yes
26181
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
26182
 
        # Neither direct hardcoding nor static linking is supported with a
26183
 
        # broken collect2.
26184
 
        hardcode_direct_F77=unsupported
26185
 
      fi
26186
 
      ;;
26187
 
 
26188
 
    aix[4-9]*)
26189
 
      if test "$host_cpu" = ia64; then
26190
 
        # On IA64, the linker does run time linking by default, so we don't
26191
 
        # have to do anything special.
26192
 
        aix_use_runtimelinking=no
26193
 
        exp_sym_flag='-Bexport'
26194
 
        no_entry_flag=""
26195
 
      else
26196
 
        # If we're using GNU nm, then we don't want the "-C" option.
26197
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
26198
 
        # Also, AIX nm treats weak defined symbols like other global
26199
 
        # defined symbols, whereas GNU nm marks them as "W".
26200
 
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
26201
 
          export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
26202
 
        else
26203
 
          export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
26204
 
        fi
26205
 
        aix_use_runtimelinking=no
26206
 
 
26207
 
        # Test if we are trying to use run time linking or normal
26208
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
26209
 
        # need to do runtime linking.
26210
 
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
26211
 
          for ld_flag in $LDFLAGS; do
26212
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
26213
 
            aix_use_runtimelinking=yes
26214
 
            break
26215
 
          fi
26216
 
          done
26217
 
          ;;
26218
 
        esac
26219
 
 
26220
 
        exp_sym_flag='-bexport'
26221
 
        no_entry_flag='-bnoentry'
26222
 
      fi
26223
 
 
26224
 
      # When large executables or shared objects are built, AIX ld can
26225
 
      # have problems creating the table of contents.  If linking a library
26226
 
      # or program results in "error TOC overflow" add -mminimal-toc to
26227
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
26228
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
26229
 
 
26230
 
      archive_cmds_F77=''
26231
 
      hardcode_direct_F77=yes
26232
 
      hardcode_direct_absolute_F77=yes
26233
 
      hardcode_libdir_separator_F77=':'
26234
 
      link_all_deplibs_F77=yes
26235
 
      file_list_spec_F77='${wl}-f,'
26236
 
 
26237
 
      if test "$GCC" = yes; then
26238
 
        case $host_os in aix4.[012]|aix4.[012].*)
26239
 
        # We only want to do this on AIX 4.2 and lower, the check
26240
 
        # below for broken collect2 doesn't work under 4.3+
26241
 
          collect2name=`${CC} -print-prog-name=collect2`
26242
 
          if test -f "$collect2name" &&
26243
 
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
26244
 
          then
26245
 
          # We have reworked collect2
26246
 
          :
26247
 
          else
26248
 
          # We have old collect2
26249
 
          hardcode_direct_F77=unsupported
26250
 
          # It fails to find uninstalled libraries when the uninstalled
26251
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
26252
 
          # to unsupported forces relinking
26253
 
          hardcode_minus_L_F77=yes
26254
 
          hardcode_libdir_flag_spec_F77='-L$libdir'
26255
 
          hardcode_libdir_separator_F77=
26256
 
          fi
26257
 
          ;;
26258
 
        esac
26259
 
        shared_flag='-shared'
26260
 
        if test "$aix_use_runtimelinking" = yes; then
26261
 
          shared_flag="$shared_flag "'${wl}-G'
26262
 
        fi
26263
 
      else
26264
 
        # not using gcc
26265
 
        if test "$host_cpu" = ia64; then
26266
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
26267
 
        # chokes on -Wl,-G. The following line is correct:
26268
 
          shared_flag='-G'
26269
 
        else
26270
 
          if test "$aix_use_runtimelinking" = yes; then
26271
 
            shared_flag='${wl}-G'
26272
 
          else
26273
 
            shared_flag='${wl}-bM:SRE'
26274
 
          fi
26275
 
        fi
26276
 
      fi
26277
 
 
26278
 
      export_dynamic_flag_spec_F77='${wl}-bexpall'
26279
 
      # It seems that -bexpall does not export symbols beginning with
26280
 
      # underscore (_), so it is better to generate a list of symbols to export.
26281
 
      always_export_symbols_F77=yes
26282
 
      if test "$aix_use_runtimelinking" = yes; then
26283
 
        # Warning - without using the other runtime loading flags (-brtl),
26284
 
        # -berok will link without error, but may produce a broken library.
26285
 
        allow_undefined_flag_F77='-berok'
26286
 
        # Determine the default libpath from the value encoded in an
26287
 
        # empty executable.
26288
 
        if test "${lt_cv_aix_libpath+set}" = set; then
26289
 
  aix_libpath=$lt_cv_aix_libpath
26290
 
else
26291
 
  if ${lt_cv_aix_libpath__F77+:} false; then :
26292
 
  $as_echo_n "(cached) " >&6
26293
 
else
26294
 
  cat > conftest.$ac_ext <<_ACEOF
26295
 
      program main
26296
 
 
26297
 
      end
26298
 
_ACEOF
26299
 
if ac_fn_f77_try_link "$LINENO"; then :
26300
 
 
26301
 
  lt_aix_libpath_sed='
26302
 
      /Import File Strings/,/^$/ {
26303
 
          /^0/ {
26304
 
              s/^0  *\([^ ]*\) *$/\1/
26305
 
              p
26306
 
          }
26307
 
      }'
26308
 
  lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
26309
 
  # Check for a 64-bit object if we didn't find anything.
26310
 
  if test -z "$lt_cv_aix_libpath__F77"; then
26311
 
    lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
26312
 
  fi
26313
 
fi
26314
 
rm -f core conftest.err conftest.$ac_objext \
26315
 
    conftest$ac_exeext conftest.$ac_ext
26316
 
  if test -z "$lt_cv_aix_libpath__F77"; then
26317
 
    lt_cv_aix_libpath__F77="/usr/lib:/lib"
26318
 
  fi
26319
 
 
26320
 
fi
26321
 
 
26322
 
  aix_libpath=$lt_cv_aix_libpath__F77
26323
 
fi
26324
 
 
26325
 
        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
26326
 
        archive_expsym_cmds_F77='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
26327
 
      else
26328
 
        if test "$host_cpu" = ia64; then
26329
 
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
26330
 
          allow_undefined_flag_F77="-z nodefs"
26331
 
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
26332
 
        else
26333
 
         # Determine the default libpath from the value encoded in an
26334
 
         # empty executable.
26335
 
         if test "${lt_cv_aix_libpath+set}" = set; then
26336
 
  aix_libpath=$lt_cv_aix_libpath
26337
 
else
26338
 
  if ${lt_cv_aix_libpath__F77+:} false; then :
26339
 
  $as_echo_n "(cached) " >&6
26340
 
else
26341
 
  cat > conftest.$ac_ext <<_ACEOF
26342
 
      program main
26343
 
 
26344
 
      end
26345
 
_ACEOF
26346
 
if ac_fn_f77_try_link "$LINENO"; then :
26347
 
 
26348
 
  lt_aix_libpath_sed='
26349
 
      /Import File Strings/,/^$/ {
26350
 
          /^0/ {
26351
 
              s/^0  *\([^ ]*\) *$/\1/
26352
 
              p
26353
 
          }
26354
 
      }'
26355
 
  lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
26356
 
  # Check for a 64-bit object if we didn't find anything.
26357
 
  if test -z "$lt_cv_aix_libpath__F77"; then
26358
 
    lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
26359
 
  fi
26360
 
fi
26361
 
rm -f core conftest.err conftest.$ac_objext \
26362
 
    conftest$ac_exeext conftest.$ac_ext
26363
 
  if test -z "$lt_cv_aix_libpath__F77"; then
26364
 
    lt_cv_aix_libpath__F77="/usr/lib:/lib"
26365
 
  fi
26366
 
 
26367
 
fi
26368
 
 
26369
 
  aix_libpath=$lt_cv_aix_libpath__F77
26370
 
fi
26371
 
 
26372
 
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
26373
 
          # Warning - without using the other run time loading flags,
26374
 
          # -berok will link without error, but may produce a broken library.
26375
 
          no_undefined_flag_F77=' ${wl}-bernotok'
26376
 
          allow_undefined_flag_F77=' ${wl}-berok'
26377
 
          if test "$with_gnu_ld" = yes; then
26378
 
            # We only use this code for GNU lds that support --whole-archive.
26379
 
            whole_archive_flag_spec_F77='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
26380
 
          else
26381
 
            # Exported symbols can be pulled into shared objects from archives
26382
 
            whole_archive_flag_spec_F77='$convenience'
26383
 
          fi
26384
 
          archive_cmds_need_lc_F77=yes
26385
 
          # This is similar to how AIX traditionally builds its shared libraries.
26386
 
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
26387
 
        fi
26388
 
      fi
26389
 
      ;;
26390
 
 
26391
 
    amigaos*)
26392
 
      case $host_cpu in
26393
 
      powerpc)
26394
 
            # see comment about AmigaOS4 .so support
26395
 
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
26396
 
            archive_expsym_cmds_F77=''
26397
 
        ;;
26398
 
      m68k)
26399
 
            archive_cmds_F77='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
26400
 
            hardcode_libdir_flag_spec_F77='-L$libdir'
26401
 
            hardcode_minus_L_F77=yes
26402
 
        ;;
26403
 
      esac
26404
 
      ;;
26405
 
 
26406
 
    bsdi[45]*)
26407
 
      export_dynamic_flag_spec_F77=-rdynamic
26408
 
      ;;
26409
 
 
26410
 
    cygwin* | mingw* | pw32* | cegcc*)
26411
 
      # When not using gcc, we currently assume that we are using
26412
 
      # Microsoft Visual C++.
26413
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
26414
 
      # no search path for DLLs.
26415
 
      case $cc_basename in
26416
 
      cl*)
26417
 
        # Native MSVC
26418
 
        hardcode_libdir_flag_spec_F77=' '
26419
 
        allow_undefined_flag_F77=unsupported
26420
 
        always_export_symbols_F77=yes
26421
 
        file_list_spec_F77='@'
26422
 
        # Tell ltmain to make .lib files, not .a files.
26423
 
        libext=lib
26424
 
        # Tell ltmain to make .dll files, not .so files.
26425
 
        shrext_cmds=".dll"
26426
 
        # FIXME: Setting linknames here is a bad hack.
26427
 
        archive_cmds_F77='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
26428
 
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
26429
 
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
26430
 
          else
26431
 
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
26432
 
          fi~
26433
 
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
26434
 
          linknames='
26435
 
        # The linker will not automatically build a static lib if we build a DLL.
26436
 
        # _LT_TAGVAR(old_archive_from_new_cmds, F77)='true'
26437
 
        enable_shared_with_static_runtimes_F77=yes
26438
 
        exclude_expsyms_F77='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
26439
 
        export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
26440
 
        # Don't use ranlib
26441
 
        old_postinstall_cmds_F77='chmod 644 $oldlib'
26442
 
        postlink_cmds_F77='lt_outputfile="@OUTPUT@"~
26443
 
          lt_tool_outputfile="@TOOL_OUTPUT@"~
26444
 
          case $lt_outputfile in
26445
 
            *.exe|*.EXE) ;;
26446
 
            *)
26447
 
              lt_outputfile="$lt_outputfile.exe"
26448
 
              lt_tool_outputfile="$lt_tool_outputfile.exe"
26449
 
              ;;
26450
 
          esac~
26451
 
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
26452
 
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
26453
 
            $RM "$lt_outputfile.manifest";
26454
 
          fi'
26455
 
        ;;
26456
 
      *)
26457
 
        # Assume MSVC wrapper
26458
 
        hardcode_libdir_flag_spec_F77=' '
26459
 
        allow_undefined_flag_F77=unsupported
26460
 
        # Tell ltmain to make .lib files, not .a files.
26461
 
        libext=lib
26462
 
        # Tell ltmain to make .dll files, not .so files.
26463
 
        shrext_cmds=".dll"
26464
 
        # FIXME: Setting linknames here is a bad hack.
26465
 
        archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
26466
 
        # The linker will automatically build a .lib file if we build a DLL.
26467
 
        old_archive_from_new_cmds_F77='true'
26468
 
        # FIXME: Should let the user specify the lib program.
26469
 
        old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
26470
 
        enable_shared_with_static_runtimes_F77=yes
26471
 
        ;;
26472
 
      esac
26473
 
      ;;
26474
 
 
26475
 
    darwin* | rhapsody*)
26476
 
 
26477
 
 
26478
 
  archive_cmds_need_lc_F77=no
26479
 
  hardcode_direct_F77=no
26480
 
  hardcode_automatic_F77=yes
26481
 
  hardcode_shlibpath_var_F77=unsupported
26482
 
  if test "$lt_cv_ld_force_load" = "yes"; then
26483
 
    whole_archive_flag_spec_F77='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
26484
 
    compiler_needs_object_F77=yes
26485
 
  else
26486
 
    whole_archive_flag_spec_F77=''
26487
 
  fi
26488
 
  link_all_deplibs_F77=yes
26489
 
  allow_undefined_flag_F77="$_lt_dar_allow_undefined"
26490
 
  case $cc_basename in
26491
 
     ifort*) _lt_dar_can_shared=yes ;;
26492
 
     *) _lt_dar_can_shared=$GCC ;;
26493
 
  esac
26494
 
  if test "$_lt_dar_can_shared" = "yes"; then
26495
 
    output_verbose_link_cmd=func_echo_all
26496
 
    archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
26497
 
    module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
26498
 
    archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
26499
 
    module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
26500
 
 
26501
 
  else
26502
 
  ld_shlibs_F77=no
26503
 
  fi
26504
 
 
26505
 
      ;;
26506
 
 
26507
 
    dgux*)
26508
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26509
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
26510
 
      hardcode_shlibpath_var_F77=no
26511
 
      ;;
26512
 
 
26513
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
26514
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
26515
 
    # does not break anything, and helps significantly (at the cost of a little
26516
 
    # extra space).
26517
 
    freebsd2.2*)
26518
 
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
26519
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
26520
 
      hardcode_direct_F77=yes
26521
 
      hardcode_shlibpath_var_F77=no
26522
 
      ;;
26523
 
 
26524
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
26525
 
    freebsd2.*)
26526
 
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
26527
 
      hardcode_direct_F77=yes
26528
 
      hardcode_minus_L_F77=yes
26529
 
      hardcode_shlibpath_var_F77=no
26530
 
      ;;
26531
 
 
26532
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
26533
 
    freebsd* | dragonfly*)
26534
 
      archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
26535
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
26536
 
      hardcode_direct_F77=yes
26537
 
      hardcode_shlibpath_var_F77=no
26538
 
      ;;
26539
 
 
26540
 
    hpux9*)
26541
 
      if test "$GCC" = yes; then
26542
 
        archive_cmds_F77='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
26543
 
      else
26544
 
        archive_cmds_F77='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
26545
 
      fi
26546
 
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
26547
 
      hardcode_libdir_separator_F77=:
26548
 
      hardcode_direct_F77=yes
26549
 
 
26550
 
      # hardcode_minus_L: Not really in the search PATH,
26551
 
      # but as the default location of the library.
26552
 
      hardcode_minus_L_F77=yes
26553
 
      export_dynamic_flag_spec_F77='${wl}-E'
26554
 
      ;;
26555
 
 
26556
 
    hpux10*)
26557
 
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
26558
 
        archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
26559
 
      else
26560
 
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
26561
 
      fi
26562
 
      if test "$with_gnu_ld" = no; then
26563
 
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
26564
 
        hardcode_libdir_separator_F77=:
26565
 
        hardcode_direct_F77=yes
26566
 
        hardcode_direct_absolute_F77=yes
26567
 
        export_dynamic_flag_spec_F77='${wl}-E'
26568
 
        # hardcode_minus_L: Not really in the search PATH,
26569
 
        # but as the default location of the library.
26570
 
        hardcode_minus_L_F77=yes
26571
 
      fi
26572
 
      ;;
26573
 
 
26574
 
    hpux11*)
26575
 
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
26576
 
        case $host_cpu in
26577
 
        hppa*64*)
26578
 
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
26579
 
          ;;
26580
 
        ia64*)
26581
 
          archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
26582
 
          ;;
26583
 
        *)
26584
 
          archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
26585
 
          ;;
26586
 
        esac
26587
 
      else
26588
 
        case $host_cpu in
26589
 
        hppa*64*)
26590
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
26591
 
          ;;
26592
 
        ia64*)
26593
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
26594
 
          ;;
26595
 
        *)
26596
 
        archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
26597
 
          ;;
26598
 
        esac
26599
 
      fi
26600
 
      if test "$with_gnu_ld" = no; then
26601
 
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
26602
 
        hardcode_libdir_separator_F77=:
26603
 
 
26604
 
        case $host_cpu in
26605
 
        hppa*64*|ia64*)
26606
 
          hardcode_direct_F77=no
26607
 
          hardcode_shlibpath_var_F77=no
26608
 
          ;;
26609
 
        *)
26610
 
          hardcode_direct_F77=yes
26611
 
          hardcode_direct_absolute_F77=yes
26612
 
          export_dynamic_flag_spec_F77='${wl}-E'
26613
 
 
26614
 
          # hardcode_minus_L: Not really in the search PATH,
26615
 
          # but as the default location of the library.
26616
 
          hardcode_minus_L_F77=yes
26617
 
          ;;
26618
 
        esac
26619
 
      fi
26620
 
      ;;
26621
 
 
26622
 
    irix5* | irix6* | nonstopux*)
26623
 
      if test "$GCC" = yes; then
26624
 
        archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
26625
 
        # Try to use the -exported_symbol ld option, if it does not
26626
 
        # work, assume that -exports_file does not work either and
26627
 
        # implicitly export all symbols.
26628
 
        # This should be the same for all languages, so no per-tag cache variable.
26629
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
26630
 
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
26631
 
if ${lt_cv_irix_exported_symbol+:} false; then :
26632
 
  $as_echo_n "(cached) " >&6
26633
 
else
26634
 
  save_LDFLAGS="$LDFLAGS"
26635
 
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
26636
 
           cat > conftest.$ac_ext <<_ACEOF
26637
 
 
26638
 
      subroutine foo
26639
 
      end
26640
 
_ACEOF
26641
 
if ac_fn_f77_try_link "$LINENO"; then :
26642
 
  lt_cv_irix_exported_symbol=yes
26643
 
else
26644
 
  lt_cv_irix_exported_symbol=no
26645
 
fi
26646
 
rm -f core conftest.err conftest.$ac_objext \
26647
 
    conftest$ac_exeext conftest.$ac_ext
26648
 
           LDFLAGS="$save_LDFLAGS"
26649
 
fi
26650
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
26651
 
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
26652
 
        if test "$lt_cv_irix_exported_symbol" = yes; then
26653
 
          archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
26654
 
        fi
26655
 
      else
26656
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
26657
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
26658
 
      fi
26659
 
      archive_cmds_need_lc_F77='no'
26660
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
26661
 
      hardcode_libdir_separator_F77=:
26662
 
      inherit_rpath_F77=yes
26663
 
      link_all_deplibs_F77=yes
26664
 
      ;;
26665
 
 
26666
 
    netbsd*)
26667
 
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
26668
 
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
26669
 
      else
26670
 
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
26671
 
      fi
26672
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
26673
 
      hardcode_direct_F77=yes
26674
 
      hardcode_shlibpath_var_F77=no
26675
 
      ;;
26676
 
 
26677
 
    newsos6)
26678
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26679
 
      hardcode_direct_F77=yes
26680
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
26681
 
      hardcode_libdir_separator_F77=:
26682
 
      hardcode_shlibpath_var_F77=no
26683
 
      ;;
26684
 
 
26685
 
    *nto* | *qnx*)
26686
 
      ;;
26687
 
 
26688
 
    openbsd*)
26689
 
      if test -f /usr/libexec/ld.so; then
26690
 
        hardcode_direct_F77=yes
26691
 
        hardcode_shlibpath_var_F77=no
26692
 
        hardcode_direct_absolute_F77=yes
26693
 
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26694
 
          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
26695
 
          archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
26696
 
          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
26697
 
          export_dynamic_flag_spec_F77='${wl}-E'
26698
 
        else
26699
 
          case $host_os in
26700
 
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
26701
 
             archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
26702
 
             hardcode_libdir_flag_spec_F77='-R$libdir'
26703
 
             ;;
26704
 
           *)
26705
 
             archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
26706
 
             hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
26707
 
             ;;
26708
 
          esac
26709
 
        fi
26710
 
      else
26711
 
        ld_shlibs_F77=no
26712
 
      fi
26713
 
      ;;
26714
 
 
26715
 
    os2*)
26716
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
26717
 
      hardcode_minus_L_F77=yes
26718
 
      allow_undefined_flag_F77=unsupported
26719
 
      archive_cmds_F77='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
26720
 
      old_archive_from_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
26721
 
      ;;
26722
 
 
26723
 
    osf3*)
26724
 
      if test "$GCC" = yes; then
26725
 
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
26726
 
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
26727
 
      else
26728
 
        allow_undefined_flag_F77=' -expect_unresolved \*'
26729
 
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
26730
 
      fi
26731
 
      archive_cmds_need_lc_F77='no'
26732
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
26733
 
      hardcode_libdir_separator_F77=:
26734
 
      ;;
26735
 
 
26736
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
26737
 
      if test "$GCC" = yes; then
26738
 
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
26739
 
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
26740
 
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
26741
 
      else
26742
 
        allow_undefined_flag_F77=' -expect_unresolved \*'
26743
 
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
26744
 
        archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
26745
 
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
26746
 
 
26747
 
        # Both c and cxx compiler support -rpath directly
26748
 
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
26749
 
      fi
26750
 
      archive_cmds_need_lc_F77='no'
26751
 
      hardcode_libdir_separator_F77=:
26752
 
      ;;
26753
 
 
26754
 
    solaris*)
26755
 
      no_undefined_flag_F77=' -z defs'
26756
 
      if test "$GCC" = yes; then
26757
 
        wlarc='${wl}'
26758
 
        archive_cmds_F77='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
26759
 
        archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
26760
 
          $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
26761
 
      else
26762
 
        case `$CC -V 2>&1` in
26763
 
        *"Compilers 5.0"*)
26764
 
          wlarc=''
26765
 
          archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
26766
 
          archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
26767
 
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
26768
 
          ;;
26769
 
        *)
26770
 
          wlarc='${wl}'
26771
 
          archive_cmds_F77='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
26772
 
          archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
26773
 
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
26774
 
          ;;
26775
 
        esac
26776
 
      fi
26777
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
26778
 
      hardcode_shlibpath_var_F77=no
26779
 
      case $host_os in
26780
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
26781
 
      *)
26782
 
        # The compiler driver will combine and reorder linker options,
26783
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
26784
 
        # but is careful enough not to reorder.
26785
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
26786
 
        if test "$GCC" = yes; then
26787
 
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
26788
 
        else
26789
 
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
26790
 
        fi
26791
 
        ;;
26792
 
      esac
26793
 
      link_all_deplibs_F77=yes
26794
 
      ;;
26795
 
 
26796
 
    sunos4*)
26797
 
      if test "x$host_vendor" = xsequent; then
26798
 
        # Use $CC to link under sequent, because it throws in some extra .o
26799
 
        # files that make .init and .fini sections work.
26800
 
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
26801
 
      else
26802
 
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
26803
 
      fi
26804
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
26805
 
      hardcode_direct_F77=yes
26806
 
      hardcode_minus_L_F77=yes
26807
 
      hardcode_shlibpath_var_F77=no
26808
 
      ;;
26809
 
 
26810
 
    sysv4)
26811
 
      case $host_vendor in
26812
 
        sni)
26813
 
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26814
 
          hardcode_direct_F77=yes # is this really true???
26815
 
        ;;
26816
 
        siemens)
26817
 
          ## LD is ld it makes a PLAMLIB
26818
 
          ## CC just makes a GrossModule.
26819
 
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
26820
 
          reload_cmds_F77='$CC -r -o $output$reload_objs'
26821
 
          hardcode_direct_F77=no
26822
 
        ;;
26823
 
        motorola)
26824
 
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26825
 
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
26826
 
        ;;
26827
 
      esac
26828
 
      runpath_var='LD_RUN_PATH'
26829
 
      hardcode_shlibpath_var_F77=no
26830
 
      ;;
26831
 
 
26832
 
    sysv4.3*)
26833
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26834
 
      hardcode_shlibpath_var_F77=no
26835
 
      export_dynamic_flag_spec_F77='-Bexport'
26836
 
      ;;
26837
 
 
26838
 
    sysv4*MP*)
26839
 
      if test -d /usr/nec; then
26840
 
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26841
 
        hardcode_shlibpath_var_F77=no
26842
 
        runpath_var=LD_RUN_PATH
26843
 
        hardcode_runpath_var=yes
26844
 
        ld_shlibs_F77=yes
26845
 
      fi
26846
 
      ;;
26847
 
 
26848
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
26849
 
      no_undefined_flag_F77='${wl}-z,text'
26850
 
      archive_cmds_need_lc_F77=no
26851
 
      hardcode_shlibpath_var_F77=no
26852
 
      runpath_var='LD_RUN_PATH'
26853
 
 
26854
 
      if test "$GCC" = yes; then
26855
 
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26856
 
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26857
 
      else
26858
 
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26859
 
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26860
 
      fi
26861
 
      ;;
26862
 
 
26863
 
    sysv5* | sco3.2v5* | sco5v6*)
26864
 
      # Note: We can NOT use -z defs as we might desire, because we do not
26865
 
      # link with -lc, and that would cause any symbols used from libc to
26866
 
      # always be unresolved, which means just about no library would
26867
 
      # ever link correctly.  If we're not using GNU ld we use -z text
26868
 
      # though, which does catch some bad symbols but isn't as heavy-handed
26869
 
      # as -z defs.
26870
 
      no_undefined_flag_F77='${wl}-z,text'
26871
 
      allow_undefined_flag_F77='${wl}-z,nodefs'
26872
 
      archive_cmds_need_lc_F77=no
26873
 
      hardcode_shlibpath_var_F77=no
26874
 
      hardcode_libdir_flag_spec_F77='${wl}-R,$libdir'
26875
 
      hardcode_libdir_separator_F77=':'
26876
 
      link_all_deplibs_F77=yes
26877
 
      export_dynamic_flag_spec_F77='${wl}-Bexport'
26878
 
      runpath_var='LD_RUN_PATH'
26879
 
 
26880
 
      if test "$GCC" = yes; then
26881
 
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26882
 
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26883
 
      else
26884
 
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26885
 
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26886
 
      fi
26887
 
      ;;
26888
 
 
26889
 
    uts4*)
26890
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26891
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
26892
 
      hardcode_shlibpath_var_F77=no
26893
 
      ;;
26894
 
 
26895
 
    *)
26896
 
      ld_shlibs_F77=no
26897
 
      ;;
26898
 
    esac
26899
 
 
26900
 
    if test x$host_vendor = xsni; then
26901
 
      case $host in
26902
 
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
26903
 
        export_dynamic_flag_spec_F77='${wl}-Blargedynsym'
26904
 
        ;;
26905
 
      esac
26906
 
    fi
26907
 
  fi
26908
 
 
26909
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
26910
 
$as_echo "$ld_shlibs_F77" >&6; }
26911
 
test "$ld_shlibs_F77" = no && can_build_shared=no
26912
 
 
26913
 
with_gnu_ld_F77=$with_gnu_ld
26914
 
 
26915
 
 
26916
 
 
26917
 
 
26918
 
 
26919
 
 
26920
 
#
26921
 
# Do we need to explicitly link libc?
26922
 
#
26923
 
case "x$archive_cmds_need_lc_F77" in
26924
 
x|xyes)
26925
 
  # Assume -lc should be added
26926
 
  archive_cmds_need_lc_F77=yes
26927
 
 
26928
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
26929
 
    case $archive_cmds_F77 in
26930
 
    *'~'*)
26931
 
      # FIXME: we may have to deal with multi-command sequences.
26932
 
      ;;
26933
 
    '$CC '*)
26934
 
      # Test whether the compiler implicitly links with -lc since on some
26935
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
26936
 
      # to ld, don't add -lc before -lgcc.
26937
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
26938
 
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
26939
 
if ${lt_cv_archive_cmds_need_lc_F77+:} false; then :
26940
 
  $as_echo_n "(cached) " >&6
26941
 
else
26942
 
  $RM conftest*
26943
 
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
26944
 
 
26945
 
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
26946
 
  (eval $ac_compile) 2>&5
26947
 
  ac_status=$?
26948
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26949
 
  test $ac_status = 0; } 2>conftest.err; then
26950
 
          soname=conftest
26951
 
          lib=conftest
26952
 
          libobjs=conftest.$ac_objext
26953
 
          deplibs=
26954
 
          wl=$lt_prog_compiler_wl_F77
26955
 
          pic_flag=$lt_prog_compiler_pic_F77
26956
 
          compiler_flags=-v
26957
 
          linker_flags=-v
26958
 
          verstring=
26959
 
          output_objdir=.
26960
 
          libname=conftest
26961
 
          lt_save_allow_undefined_flag=$allow_undefined_flag_F77
26962
 
          allow_undefined_flag_F77=
26963
 
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
26964
 
  (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
26965
 
  ac_status=$?
26966
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26967
 
  test $ac_status = 0; }
26968
 
          then
26969
 
            lt_cv_archive_cmds_need_lc_F77=no
26970
 
          else
26971
 
            lt_cv_archive_cmds_need_lc_F77=yes
26972
 
          fi
26973
 
          allow_undefined_flag_F77=$lt_save_allow_undefined_flag
26974
 
        else
26975
 
          cat conftest.err 1>&5
26976
 
        fi
26977
 
        $RM conftest*
26978
 
 
26979
 
fi
26980
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_F77" >&5
26981
 
$as_echo "$lt_cv_archive_cmds_need_lc_F77" >&6; }
26982
 
      archive_cmds_need_lc_F77=$lt_cv_archive_cmds_need_lc_F77
26983
 
      ;;
26984
 
    esac
26985
 
  fi
26986
 
  ;;
26987
 
esac
26988
 
 
26989
 
 
26990
 
 
26991
 
 
26992
 
 
26993
 
 
26994
 
 
26995
 
 
26996
 
 
26997
 
 
26998
 
 
26999
 
 
27000
 
 
27001
 
 
27002
 
 
27003
 
 
27004
 
 
27005
 
 
27006
 
 
27007
 
 
27008
 
 
27009
 
 
27010
 
 
27011
 
 
27012
 
 
27013
 
 
27014
 
 
27015
 
 
27016
 
 
27017
 
 
27018
 
 
27019
 
 
27020
 
 
27021
 
 
27022
 
 
27023
 
 
27024
 
 
27025
 
 
27026
 
 
27027
 
 
27028
 
 
27029
 
 
27030
 
 
27031
 
 
27032
 
 
27033
 
 
27034
 
 
27035
 
 
27036
 
 
27037
 
 
27038
 
 
27039
 
 
27040
 
 
27041
 
 
27042
 
 
27043
 
 
27044
 
 
27045
 
 
27046
 
 
27047
 
 
27048
 
 
27049
 
 
27050
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
27051
 
$as_echo_n "checking dynamic linker characteristics... " >&6; }
27052
 
 
27053
 
library_names_spec=
27054
 
libname_spec='lib$name'
27055
 
soname_spec=
27056
 
shrext_cmds=".so"
27057
 
postinstall_cmds=
27058
 
postuninstall_cmds=
27059
 
finish_cmds=
27060
 
finish_eval=
27061
 
shlibpath_var=
27062
 
shlibpath_overrides_runpath=unknown
27063
 
version_type=none
27064
 
dynamic_linker="$host_os ld.so"
27065
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
27066
 
need_lib_prefix=unknown
27067
 
hardcode_into_libs=no
27068
 
 
27069
 
# when you set need_version to no, make sure it does not cause -set_version
27070
 
# flags to be left without arguments
27071
 
need_version=unknown
27072
 
 
27073
 
case $host_os in
27074
 
aix3*)
27075
 
  version_type=linux # correct to gnu/linux during the next big refactor
27076
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
27077
 
  shlibpath_var=LIBPATH
27078
 
 
27079
 
  # AIX 3 has no versioning support, so we append a major version to the name.
27080
 
  soname_spec='${libname}${release}${shared_ext}$major'
27081
 
  ;;
27082
 
 
27083
 
aix[4-9]*)
27084
 
  version_type=linux # correct to gnu/linux during the next big refactor
27085
 
  need_lib_prefix=no
27086
 
  need_version=no
27087
 
  hardcode_into_libs=yes
27088
 
  if test "$host_cpu" = ia64; then
27089
 
    # AIX 5 supports IA64
27090
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
27091
 
    shlibpath_var=LD_LIBRARY_PATH
27092
 
  else
27093
 
    # With GCC up to 2.95.x, collect2 would create an import file
27094
 
    # for dependence libraries.  The import file would start with
27095
 
    # the line `#! .'.  This would cause the generated library to
27096
 
    # depend on `.', always an invalid library.  This was fixed in
27097
 
    # development snapshots of GCC prior to 3.0.
27098
 
    case $host_os in
27099
 
      aix4 | aix4.[01] | aix4.[01].*)
27100
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
27101
 
           echo ' yes '
27102
 
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
27103
 
        :
27104
 
      else
27105
 
        can_build_shared=no
27106
 
      fi
27107
 
      ;;
27108
 
    esac
27109
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
27110
 
    # soname into executable. Probably we can add versioning support to
27111
 
    # collect2, so additional links can be useful in future.
27112
 
    if test "$aix_use_runtimelinking" = yes; then
27113
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
27114
 
      # instead of lib<name>.a to let people know that these are not
27115
 
      # typical AIX shared libraries.
27116
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27117
 
    else
27118
 
      # We preserve .a as extension for shared libraries through AIX4.2
27119
 
      # and later when we are not doing run time linking.
27120
 
      library_names_spec='${libname}${release}.a $libname.a'
27121
 
      soname_spec='${libname}${release}${shared_ext}$major'
27122
 
    fi
27123
 
    shlibpath_var=LIBPATH
27124
 
  fi
27125
 
  ;;
27126
 
 
27127
 
amigaos*)
27128
 
  case $host_cpu in
27129
 
  powerpc)
27130
 
    # Since July 2007 AmigaOS4 officially supports .so libraries.
27131
 
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
27132
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27133
 
    ;;
27134
 
  m68k)
27135
 
    library_names_spec='$libname.ixlibrary $libname.a'
27136
 
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
27137
 
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
27138
 
    ;;
27139
 
  esac
27140
 
  ;;
27141
 
 
27142
 
beos*)
27143
 
  library_names_spec='${libname}${shared_ext}'
27144
 
  dynamic_linker="$host_os ld.so"
27145
 
  shlibpath_var=LIBRARY_PATH
27146
 
  ;;
27147
 
 
27148
 
bsdi[45]*)
27149
 
  version_type=linux # correct to gnu/linux during the next big refactor
27150
 
  need_version=no
27151
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27152
 
  soname_spec='${libname}${release}${shared_ext}$major'
27153
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
27154
 
  shlibpath_var=LD_LIBRARY_PATH
27155
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
27156
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
27157
 
  # the default ld.so.conf also contains /usr/contrib/lib and
27158
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
27159
 
  # libtool to hard-code these into programs
27160
 
  ;;
27161
 
 
27162
 
cygwin* | mingw* | pw32* | cegcc*)
27163
 
  version_type=windows
27164
 
  shrext_cmds=".dll"
27165
 
  need_version=no
27166
 
  need_lib_prefix=no
27167
 
 
27168
 
  case $GCC,$cc_basename in
27169
 
  yes,*)
27170
 
    # gcc
27171
 
    library_names_spec='$libname.dll.a'
27172
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
27173
 
    postinstall_cmds='base_file=`basename \${file}`~
27174
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
27175
 
      dldir=$destdir/`dirname \$dlpath`~
27176
 
      test -d \$dldir || mkdir -p \$dldir~
27177
 
      $install_prog $dir/$dlname \$dldir/$dlname~
27178
 
      chmod a+x \$dldir/$dlname~
27179
 
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
27180
 
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
27181
 
      fi'
27182
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
27183
 
      dlpath=$dir/\$dldll~
27184
 
       $RM \$dlpath'
27185
 
    shlibpath_overrides_runpath=yes
27186
 
 
27187
 
    case $host_os in
27188
 
    cygwin*)
27189
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
27190
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
27191
 
 
27192
 
      ;;
27193
 
    mingw* | cegcc*)
27194
 
      # MinGW DLLs use traditional 'lib' prefix
27195
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
27196
 
      ;;
27197
 
    pw32*)
27198
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
27199
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
27200
 
      ;;
27201
 
    esac
27202
 
    dynamic_linker='Win32 ld.exe'
27203
 
    ;;
27204
 
 
27205
 
  *,cl*)
27206
 
    # Native MSVC
27207
 
    libname_spec='$name'
27208
 
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
27209
 
    library_names_spec='${libname}.dll.lib'
27210
 
 
27211
 
    case $build_os in
27212
 
    mingw*)
27213
 
      sys_lib_search_path_spec=
27214
 
      lt_save_ifs=$IFS
27215
 
      IFS=';'
27216
 
      for lt_path in $LIB
27217
 
      do
27218
 
        IFS=$lt_save_ifs
27219
 
        # Let DOS variable expansion print the short 8.3 style file name.
27220
 
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
27221
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
27222
 
      done
27223
 
      IFS=$lt_save_ifs
27224
 
      # Convert to MSYS style.
27225
 
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
27226
 
      ;;
27227
 
    cygwin*)
27228
 
      # Convert to unix form, then to dos form, then back to unix form
27229
 
      # but this time dos style (no spaces!) so that the unix form looks
27230
 
      # like /cygdrive/c/PROGRA~1:/cygdr...
27231
 
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
27232
 
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
27233
 
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
27234
 
      ;;
27235
 
    *)
27236
 
      sys_lib_search_path_spec="$LIB"
27237
 
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
27238
 
        # It is most probably a Windows format PATH.
27239
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
27240
 
      else
27241
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
27242
 
      fi
27243
 
      # FIXME: find the short name or the path components, as spaces are
27244
 
      # common. (e.g. "Program Files" -> "PROGRA~1")
27245
 
      ;;
27246
 
    esac
27247
 
 
27248
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
27249
 
    postinstall_cmds='base_file=`basename \${file}`~
27250
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
27251
 
      dldir=$destdir/`dirname \$dlpath`~
27252
 
      test -d \$dldir || mkdir -p \$dldir~
27253
 
      $install_prog $dir/$dlname \$dldir/$dlname'
27254
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
27255
 
      dlpath=$dir/\$dldll~
27256
 
       $RM \$dlpath'
27257
 
    shlibpath_overrides_runpath=yes
27258
 
    dynamic_linker='Win32 link.exe'
27259
 
    ;;
27260
 
 
27261
 
  *)
27262
 
    # Assume MSVC wrapper
27263
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
27264
 
    dynamic_linker='Win32 ld.exe'
27265
 
    ;;
27266
 
  esac
27267
 
  # FIXME: first we should search . and the directory the executable is in
27268
 
  shlibpath_var=PATH
27269
 
  ;;
27270
 
 
27271
 
darwin* | rhapsody*)
27272
 
  dynamic_linker="$host_os dyld"
27273
 
  version_type=darwin
27274
 
  need_lib_prefix=no
27275
 
  need_version=no
27276
 
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
27277
 
  soname_spec='${libname}${release}${major}$shared_ext'
27278
 
  shlibpath_overrides_runpath=yes
27279
 
  shlibpath_var=DYLD_LIBRARY_PATH
27280
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
27281
 
 
27282
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
27283
 
  ;;
27284
 
 
27285
 
dgux*)
27286
 
  version_type=linux # correct to gnu/linux during the next big refactor
27287
 
  need_lib_prefix=no
27288
 
  need_version=no
27289
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
27290
 
  soname_spec='${libname}${release}${shared_ext}$major'
27291
 
  shlibpath_var=LD_LIBRARY_PATH
27292
 
  ;;
27293
 
 
27294
 
freebsd* | dragonfly*)
27295
 
  # DragonFly does not have aout.  When/if they implement a new
27296
 
  # versioning mechanism, adjust this.
27297
 
  if test -x /usr/bin/objformat; then
27298
 
    objformat=`/usr/bin/objformat`
27299
 
  else
27300
 
    case $host_os in
27301
 
    freebsd[23].*) objformat=aout ;;
27302
 
    *) objformat=elf ;;
27303
 
    esac
27304
 
  fi
27305
 
  version_type=freebsd-$objformat
27306
 
  case $version_type in
27307
 
    freebsd-elf*)
27308
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
27309
 
      need_version=no
27310
 
      need_lib_prefix=no
27311
 
      ;;
27312
 
    freebsd-*)
27313
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
27314
 
      need_version=yes
27315
 
      ;;
27316
 
  esac
27317
 
  shlibpath_var=LD_LIBRARY_PATH
27318
 
  case $host_os in
27319
 
  freebsd2.*)
27320
 
    shlibpath_overrides_runpath=yes
27321
 
    ;;
27322
 
  freebsd3.[01]* | freebsdelf3.[01]*)
27323
 
    shlibpath_overrides_runpath=yes
27324
 
    hardcode_into_libs=yes
27325
 
    ;;
27326
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
27327
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
27328
 
    shlibpath_overrides_runpath=no
27329
 
    hardcode_into_libs=yes
27330
 
    ;;
27331
 
  *) # from 4.6 on, and DragonFly
27332
 
    shlibpath_overrides_runpath=yes
27333
 
    hardcode_into_libs=yes
27334
 
    ;;
27335
 
  esac
27336
 
  ;;
27337
 
 
27338
 
gnu*)
27339
 
  version_type=linux # correct to gnu/linux during the next big refactor
27340
 
  need_lib_prefix=no
27341
 
  need_version=no
27342
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
27343
 
  soname_spec='${libname}${release}${shared_ext}$major'
27344
 
  shlibpath_var=LD_LIBRARY_PATH
27345
 
  shlibpath_overrides_runpath=no
27346
 
  hardcode_into_libs=yes
27347
 
  ;;
27348
 
 
27349
 
haiku*)
27350
 
  version_type=linux # correct to gnu/linux during the next big refactor
27351
 
  need_lib_prefix=no
27352
 
  need_version=no
27353
 
  dynamic_linker="$host_os runtime_loader"
27354
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
27355
 
  soname_spec='${libname}${release}${shared_ext}$major'
27356
 
  shlibpath_var=LIBRARY_PATH
27357
 
  shlibpath_overrides_runpath=yes
27358
 
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
27359
 
  hardcode_into_libs=yes
27360
 
  ;;
27361
 
 
27362
 
hpux9* | hpux10* | hpux11*)
27363
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
27364
 
  # link against other versions.
27365
 
  version_type=sunos
27366
 
  need_lib_prefix=no
27367
 
  need_version=no
27368
 
  case $host_cpu in
27369
 
  ia64*)
27370
 
    shrext_cmds='.so'
27371
 
    hardcode_into_libs=yes
27372
 
    dynamic_linker="$host_os dld.so"
27373
 
    shlibpath_var=LD_LIBRARY_PATH
27374
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
27375
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27376
 
    soname_spec='${libname}${release}${shared_ext}$major'
27377
 
    if test "X$HPUX_IA64_MODE" = X32; then
27378
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
27379
 
    else
27380
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
27381
 
    fi
27382
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
27383
 
    ;;
27384
 
  hppa*64*)
27385
 
    shrext_cmds='.sl'
27386
 
    hardcode_into_libs=yes
27387
 
    dynamic_linker="$host_os dld.sl"
27388
 
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
27389
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
27390
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27391
 
    soname_spec='${libname}${release}${shared_ext}$major'
27392
 
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
27393
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
27394
 
    ;;
27395
 
  *)
27396
 
    shrext_cmds='.sl'
27397
 
    dynamic_linker="$host_os dld.sl"
27398
 
    shlibpath_var=SHLIB_PATH
27399
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
27400
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27401
 
    soname_spec='${libname}${release}${shared_ext}$major'
27402
 
    ;;
27403
 
  esac
27404
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
27405
 
  postinstall_cmds='chmod 555 $lib'
27406
 
  # or fails outright, so override atomically:
27407
 
  install_override_mode=555
27408
 
  ;;
27409
 
 
27410
 
interix[3-9]*)
27411
 
  version_type=linux # correct to gnu/linux during the next big refactor
27412
 
  need_lib_prefix=no
27413
 
  need_version=no
27414
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
27415
 
  soname_spec='${libname}${release}${shared_ext}$major'
27416
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
27417
 
  shlibpath_var=LD_LIBRARY_PATH
27418
 
  shlibpath_overrides_runpath=no
27419
 
  hardcode_into_libs=yes
27420
 
  ;;
27421
 
 
27422
 
irix5* | irix6* | nonstopux*)
27423
 
  case $host_os in
27424
 
    nonstopux*) version_type=nonstopux ;;
27425
 
    *)
27426
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
27427
 
                version_type=linux # correct to gnu/linux during the next big refactor
27428
 
        else
27429
 
                version_type=irix
27430
 
        fi ;;
27431
 
  esac
27432
 
  need_lib_prefix=no
27433
 
  need_version=no
27434
 
  soname_spec='${libname}${release}${shared_ext}$major'
27435
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
27436
 
  case $host_os in
27437
 
  irix5* | nonstopux*)
27438
 
    libsuff= shlibsuff=
27439
 
    ;;
27440
 
  *)
27441
 
    case $LD in # libtool.m4 will add one of these switches to LD
27442
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
27443
 
      libsuff= shlibsuff= libmagic=32-bit;;
27444
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
27445
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
27446
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
27447
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
27448
 
    *) libsuff= shlibsuff= libmagic=never-match;;
27449
 
    esac
27450
 
    ;;
27451
 
  esac
27452
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
27453
 
  shlibpath_overrides_runpath=no
27454
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
27455
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
27456
 
  hardcode_into_libs=yes
27457
 
  ;;
27458
 
 
27459
 
# No shared lib support for Linux oldld, aout, or coff.
27460
 
linux*oldld* | linux*aout* | linux*coff*)
27461
 
  dynamic_linker=no
27462
 
  ;;
27463
 
 
27464
 
# This must be glibc/ELF.
27465
 
linux* | k*bsd*-gnu | kopensolaris*-gnu)
27466
 
  version_type=linux # correct to gnu/linux during the next big refactor
27467
 
  need_lib_prefix=no
27468
 
  need_version=no
27469
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27470
 
  soname_spec='${libname}${release}${shared_ext}$major'
27471
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
27472
 
  shlibpath_var=LD_LIBRARY_PATH
27473
 
  shlibpath_overrides_runpath=no
27474
 
 
27475
 
  # Some binutils ld are patched to set DT_RUNPATH
27476
 
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
27477
 
  $as_echo_n "(cached) " >&6
27478
 
else
27479
 
  lt_cv_shlibpath_overrides_runpath=no
27480
 
    save_LDFLAGS=$LDFLAGS
27481
 
    save_libdir=$libdir
27482
 
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \
27483
 
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\""
27484
 
    cat > conftest.$ac_ext <<_ACEOF
27485
 
      program main
27486
 
 
27487
 
      end
27488
 
_ACEOF
27489
 
if ac_fn_f77_try_link "$LINENO"; then :
27490
 
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
27491
 
  lt_cv_shlibpath_overrides_runpath=yes
27492
 
fi
27493
 
fi
27494
 
rm -f core conftest.err conftest.$ac_objext \
27495
 
    conftest$ac_exeext conftest.$ac_ext
27496
 
    LDFLAGS=$save_LDFLAGS
27497
 
    libdir=$save_libdir
27498
 
 
27499
 
fi
27500
 
 
27501
 
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
27502
 
 
27503
 
  # This implies no fast_install, which is unacceptable.
27504
 
  # Some rework will be needed to allow for fast_install
27505
 
  # before this can be enabled.
27506
 
  hardcode_into_libs=yes
27507
 
 
27508
 
  # Append ld.so.conf contents to the search path
27509
 
  if test -f /etc/ld.so.conf; then
27510
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
27511
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
27512
 
  fi
27513
 
 
27514
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
27515
 
  # powerpc, because MkLinux only supported shared libraries with the
27516
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
27517
 
  # most powerpc-linux boxes support dynamic linking these days and
27518
 
  # people can always --disable-shared, the test was removed, and we
27519
 
  # assume the GNU/Linux dynamic linker is in use.
27520
 
  dynamic_linker='GNU/Linux ld.so'
27521
 
  ;;
27522
 
 
27523
 
netbsd*)
27524
 
  version_type=sunos
27525
 
  need_lib_prefix=no
27526
 
  need_version=no
27527
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
27528
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
27529
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
27530
 
    dynamic_linker='NetBSD (a.out) ld.so'
27531
 
  else
27532
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
27533
 
    soname_spec='${libname}${release}${shared_ext}$major'
27534
 
    dynamic_linker='NetBSD ld.elf_so'
27535
 
  fi
27536
 
  shlibpath_var=LD_LIBRARY_PATH
27537
 
  shlibpath_overrides_runpath=yes
27538
 
  hardcode_into_libs=yes
27539
 
  ;;
27540
 
 
27541
 
newsos6)
27542
 
  version_type=linux # correct to gnu/linux during the next big refactor
27543
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27544
 
  shlibpath_var=LD_LIBRARY_PATH
27545
 
  shlibpath_overrides_runpath=yes
27546
 
  ;;
27547
 
 
27548
 
*nto* | *qnx*)
27549
 
  version_type=qnx
27550
 
  need_lib_prefix=no
27551
 
  need_version=no
27552
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27553
 
  soname_spec='${libname}${release}${shared_ext}$major'
27554
 
  shlibpath_var=LD_LIBRARY_PATH
27555
 
  shlibpath_overrides_runpath=no
27556
 
  hardcode_into_libs=yes
27557
 
  dynamic_linker='ldqnx.so'
27558
 
  ;;
27559
 
 
27560
 
openbsd*)
27561
 
  version_type=sunos
27562
 
  sys_lib_dlsearch_path_spec="/usr/lib"
27563
 
  need_lib_prefix=no
27564
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
27565
 
  case $host_os in
27566
 
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
27567
 
    *)                          need_version=no  ;;
27568
 
  esac
27569
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
27570
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
27571
 
  shlibpath_var=LD_LIBRARY_PATH
27572
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
27573
 
    case $host_os in
27574
 
      openbsd2.[89] | openbsd2.[89].*)
27575
 
        shlibpath_overrides_runpath=no
27576
 
        ;;
27577
 
      *)
27578
 
        shlibpath_overrides_runpath=yes
27579
 
        ;;
27580
 
      esac
27581
 
  else
27582
 
    shlibpath_overrides_runpath=yes
27583
 
  fi
27584
 
  ;;
27585
 
 
27586
 
os2*)
27587
 
  libname_spec='$name'
27588
 
  shrext_cmds=".dll"
27589
 
  need_lib_prefix=no
27590
 
  library_names_spec='$libname${shared_ext} $libname.a'
27591
 
  dynamic_linker='OS/2 ld.exe'
27592
 
  shlibpath_var=LIBPATH
27593
 
  ;;
27594
 
 
27595
 
osf3* | osf4* | osf5*)
27596
 
  version_type=osf
27597
 
  need_lib_prefix=no
27598
 
  need_version=no
27599
 
  soname_spec='${libname}${release}${shared_ext}$major'
27600
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27601
 
  shlibpath_var=LD_LIBRARY_PATH
27602
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
27603
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
27604
 
  ;;
27605
 
 
27606
 
rdos*)
27607
 
  dynamic_linker=no
27608
 
  ;;
27609
 
 
27610
 
solaris*)
27611
 
  version_type=linux # correct to gnu/linux during the next big refactor
27612
 
  need_lib_prefix=no
27613
 
  need_version=no
27614
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27615
 
  soname_spec='${libname}${release}${shared_ext}$major'
27616
 
  shlibpath_var=LD_LIBRARY_PATH
27617
 
  shlibpath_overrides_runpath=yes
27618
 
  hardcode_into_libs=yes
27619
 
  # ldd complains unless libraries are executable
27620
 
  postinstall_cmds='chmod +x $lib'
27621
 
  ;;
27622
 
 
27623
 
sunos4*)
27624
 
  version_type=sunos
27625
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
27626
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
27627
 
  shlibpath_var=LD_LIBRARY_PATH
27628
 
  shlibpath_overrides_runpath=yes
27629
 
  if test "$with_gnu_ld" = yes; then
27630
 
    need_lib_prefix=no
27631
 
  fi
27632
 
  need_version=yes
27633
 
  ;;
27634
 
 
27635
 
sysv4 | sysv4.3*)
27636
 
  version_type=linux # correct to gnu/linux during the next big refactor
27637
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27638
 
  soname_spec='${libname}${release}${shared_ext}$major'
27639
 
  shlibpath_var=LD_LIBRARY_PATH
27640
 
  case $host_vendor in
27641
 
    sni)
27642
 
      shlibpath_overrides_runpath=no
27643
 
      need_lib_prefix=no
27644
 
      runpath_var=LD_RUN_PATH
27645
 
      ;;
27646
 
    siemens)
27647
 
      need_lib_prefix=no
27648
 
      ;;
27649
 
    motorola)
27650
 
      need_lib_prefix=no
27651
 
      need_version=no
27652
 
      shlibpath_overrides_runpath=no
27653
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
27654
 
      ;;
27655
 
  esac
27656
 
  ;;
27657
 
 
27658
 
sysv4*MP*)
27659
 
  if test -d /usr/nec ;then
27660
 
    version_type=linux # correct to gnu/linux during the next big refactor
27661
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
27662
 
    soname_spec='$libname${shared_ext}.$major'
27663
 
    shlibpath_var=LD_LIBRARY_PATH
27664
 
  fi
27665
 
  ;;
27666
 
 
27667
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
27668
 
  version_type=freebsd-elf
27669
 
  need_lib_prefix=no
27670
 
  need_version=no
27671
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
27672
 
  soname_spec='${libname}${release}${shared_ext}$major'
27673
 
  shlibpath_var=LD_LIBRARY_PATH
27674
 
  shlibpath_overrides_runpath=yes
27675
 
  hardcode_into_libs=yes
27676
 
  if test "$with_gnu_ld" = yes; then
27677
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
27678
 
  else
27679
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
27680
 
    case $host_os in
27681
 
      sco3.2v5*)
27682
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
27683
 
        ;;
27684
 
    esac
27685
 
  fi
27686
 
  sys_lib_dlsearch_path_spec='/usr/lib'
27687
 
  ;;
27688
 
 
27689
 
tpf*)
27690
 
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
27691
 
  version_type=linux # correct to gnu/linux during the next big refactor
27692
 
  need_lib_prefix=no
27693
 
  need_version=no
27694
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27695
 
  shlibpath_var=LD_LIBRARY_PATH
27696
 
  shlibpath_overrides_runpath=no
27697
 
  hardcode_into_libs=yes
27698
 
  ;;
27699
 
 
27700
 
uts4*)
27701
 
  version_type=linux # correct to gnu/linux during the next big refactor
27702
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27703
 
  soname_spec='${libname}${release}${shared_ext}$major'
27704
 
  shlibpath_var=LD_LIBRARY_PATH
27705
 
  ;;
27706
 
 
27707
 
*)
27708
 
  dynamic_linker=no
27709
 
  ;;
27710
 
esac
27711
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
27712
 
$as_echo "$dynamic_linker" >&6; }
27713
 
test "$dynamic_linker" = no && can_build_shared=no
27714
 
 
27715
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
27716
 
if test "$GCC" = yes; then
27717
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
27718
 
fi
27719
 
 
27720
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
27721
 
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
27722
 
fi
27723
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
27724
 
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
27725
 
fi
27726
 
 
27727
 
 
27728
 
 
27729
 
 
27730
 
 
27731
 
 
27732
 
 
27733
 
 
27734
 
 
27735
 
 
27736
 
 
27737
 
 
27738
 
 
27739
 
 
27740
 
 
27741
 
 
27742
 
 
27743
 
 
27744
 
 
27745
 
 
27746
 
 
27747
 
 
27748
 
 
27749
 
 
27750
 
 
27751
 
 
27752
 
 
27753
 
 
27754
 
 
27755
 
 
27756
 
 
27757
 
 
27758
 
 
27759
 
 
27760
 
 
27761
 
 
27762
 
 
27763
 
 
27764
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
27765
 
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
27766
 
hardcode_action_F77=
27767
 
if test -n "$hardcode_libdir_flag_spec_F77" ||
27768
 
   test -n "$runpath_var_F77" ||
27769
 
   test "X$hardcode_automatic_F77" = "Xyes" ; then
27770
 
 
27771
 
  # We can hardcode non-existent directories.
27772
 
  if test "$hardcode_direct_F77" != no &&
27773
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
27774
 
     # have to relink, otherwise we might link with an installed library
27775
 
     # when we should be linking with a yet-to-be-installed one
27776
 
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
27777
 
     test "$hardcode_minus_L_F77" != no; then
27778
 
    # Linking always hardcodes the temporary library directory.
27779
 
    hardcode_action_F77=relink
27780
 
  else
27781
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
27782
 
    hardcode_action_F77=immediate
27783
 
  fi
27784
 
else
27785
 
  # We cannot hardcode anything, or else we can only hardcode existing
27786
 
  # directories.
27787
 
  hardcode_action_F77=unsupported
27788
 
fi
27789
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
27790
 
$as_echo "$hardcode_action_F77" >&6; }
27791
 
 
27792
 
if test "$hardcode_action_F77" = relink ||
27793
 
   test "$inherit_rpath_F77" = yes; then
27794
 
  # Fast installation is not supported
27795
 
  enable_fast_install=no
27796
 
elif test "$shlibpath_overrides_runpath" = yes ||
27797
 
     test "$enable_shared" = no; then
27798
 
  # Fast installation is not necessary
27799
 
  enable_fast_install=needless
27800
 
fi
27801
 
 
27802
 
 
27803
 
 
27804
 
 
27805
 
 
27806
 
 
27807
 
 
27808
 
  fi # test -n "$compiler"
27809
 
 
27810
 
  GCC=$lt_save_GCC
27811
 
  CC="$lt_save_CC"
27812
 
  CFLAGS="$lt_save_CFLAGS"
27813
 
fi # test "$_lt_disable_F77" != yes
27814
 
 
27815
 
ac_ext=c
27816
 
ac_cpp='$CPP $CPPFLAGS'
27817
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27818
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27819
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
27820
 
 
27821
 
 
27822
 
 
27823
 
 
27824
 
 
27825
 
 
27826
 
 
27827
 
 
27828
 
 
27829
 
 
27830
 
 
27831
 
 
27832
 
 
27833
 
        ac_config_commands="$ac_config_commands libtool"
27834
 
 
27835
 
 
27836
 
 
27837
 
 
27838
 
# Only expand once:
27839
 
 
27840
 
 
27841
 
# and now that that's over, put the MPI compilers back
27842
 
# also, the above hack incorrectly sets the base compiler as the linker
27843
 
if test x$with_mpi_wrappers = xyes; then :
27844
 
 
27845
 
 CC="$ga_mpi_unwrap_push_save_CC"
27846
 
CXX="$ga_mpi_unwrap_push_save_CXX"
27847
 
F77="$ga_mpi_unwrap_push_save_F77"
27848
 
 FC="$ga_mpi_unwrap_push_save_FC"
27849
 
 
27850
 
     compiler="$CC"
27851
 
     LTCC="$CC"
27852
 
     lt_save_CC="$CC"
27853
 
     compiler_DEFAULT="$CC"
27854
 
     compiler_CXX="$CXX"
27855
 
     compiler_F77="$F77"
27856
 
fi
27857
 
 
27858
 
###############################################################################
27859
 
# The End
27860
 
###############################################################################
27861
 
ac_config_files="$ac_config_files Makefile"
27862
 
 
27863
 
cat >confcache <<\_ACEOF
27864
 
# This file is a shell script that caches the results of configure
27865
 
# tests run on this system so they can be shared between configure
27866
 
# scripts and configure runs, see configure's option --config-cache.
27867
 
# It is not useful on other systems.  If it contains results you don't
27868
 
# want to keep, you may remove or edit it.
27869
 
#
27870
 
# config.status only pays attention to the cache file if you give it
27871
 
# the --recheck option to rerun configure.
27872
 
#
27873
 
# `ac_cv_env_foo' variables (set or unset) will be overridden when
27874
 
# loading this file, other *unset* `ac_cv_foo' will be assigned the
27875
 
# following values.
27876
 
 
27877
 
_ACEOF
27878
 
 
27879
 
# The following way of writing the cache mishandles newlines in values,
27880
 
# but we know of no workaround that is simple, portable, and efficient.
27881
 
# So, we kill variables containing newlines.
27882
 
# Ultrix sh set writes to stderr and can't be redirected directly,
27883
 
# and sets the high bit in the cache file unless we assign to the vars.
27884
 
(
27885
 
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27886
 
    eval ac_val=\$$ac_var
27887
 
    case $ac_val in #(
27888
 
    *${as_nl}*)
27889
 
      case $ac_var in #(
27890
 
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27891
 
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27892
 
      esac
27893
 
      case $ac_var in #(
27894
 
      _ | IFS | as_nl) ;; #(
27895
 
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27896
 
      *) { eval $ac_var=; unset $ac_var;} ;;
27897
 
      esac ;;
27898
 
    esac
27899
 
  done
27900
 
 
27901
 
  (set) 2>&1 |
27902
 
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
27903
 
    *${as_nl}ac_space=\ *)
27904
 
      # `set' does not quote correctly, so add quotes: double-quote
27905
 
      # substitution turns \\\\ into \\, and sed turns \\ into \.
27906
 
      sed -n \
27907
 
        "s/'/'\\\\''/g;
27908
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27909
 
      ;; #(
27910
 
    *)
27911
 
      # `set' quotes correctly as required by POSIX, so do not add quotes.
27912
 
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27913
 
      ;;
27914
 
    esac |
27915
 
    sort
27916
 
) |
27917
 
  sed '
27918
 
     /^ac_cv_env_/b end
27919
 
     t clear
27920
 
     :clear
27921
 
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27922
 
     t end
27923
 
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27924
 
     :end' >>confcache
27925
 
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27926
 
  if test -w "$cache_file"; then
27927
 
    if test "x$cache_file" != "x/dev/null"; then
27928
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27929
 
$as_echo "$as_me: updating cache $cache_file" >&6;}
27930
 
      if test ! -f "$cache_file" || test -h "$cache_file"; then
27931
 
        cat confcache >"$cache_file"
27932
 
      else
27933
 
        case $cache_file in #(
27934
 
        */* | ?:*)
27935
 
          mv -f confcache "$cache_file"$$ &&
27936
 
          mv -f "$cache_file"$$ "$cache_file" ;; #(
27937
 
        *)
27938
 
          mv -f confcache "$cache_file" ;;
27939
 
        esac
27940
 
      fi
27941
 
    fi
27942
 
  else
27943
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27944
 
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27945
 
  fi
27946
 
fi
27947
 
rm -f confcache
27948
 
 
27949
 
test "x$prefix" = xNONE && prefix=$ac_default_prefix
27950
 
# Let make expand exec_prefix.
27951
 
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27952
 
 
27953
 
DEFS=-DHAVE_CONFIG_H
27954
 
 
27955
 
ac_libobjs=
27956
 
ac_ltlibobjs=
27957
 
U=
27958
 
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27959
 
  # 1. Remove the extension, and $U if already installed.
27960
 
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27961
 
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27962
 
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
27963
 
  #    will be set to the directory where LIBOBJS objects are built.
27964
 
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27965
 
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27966
 
done
27967
 
LIBOBJS=$ac_libobjs
27968
 
 
27969
 
LTLIBOBJS=$ac_ltlibobjs
27970
 
 
27971
 
 
27972
 
if test -z "${BGL_TRUE}" && test -z "${BGL_FALSE}"; then
27973
 
  as_fn_error $? "conditional \"BGL\" was never defined.
27974
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
27975
 
fi
27976
 
if test -z "${BGP_TRUE}" && test -z "${BGP_FALSE}"; then
27977
 
  as_fn_error $? "conditional \"BGP\" was never defined.
27978
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
27979
 
fi
27980
 
if test -z "${CATAMOUNT_TRUE}" && test -z "${CATAMOUNT_FALSE}"; then
27981
 
  as_fn_error $? "conditional \"CATAMOUNT\" was never defined.
27982
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
27983
 
fi
27984
 
if test -z "${CRAY_SV1_TRUE}" && test -z "${CRAY_SV1_FALSE}"; then
27985
 
  as_fn_error $? "conditional \"CRAY_SV1\" was never defined.
27986
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
27987
 
fi
27988
 
if test -z "${CRAY_SV2_TRUE}" && test -z "${CRAY_SV2_FALSE}"; then
27989
 
  as_fn_error $? "conditional \"CRAY_SV2\" was never defined.
27990
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
27991
 
fi
27992
 
if test -z "${CRAY_T3E_TRUE}" && test -z "${CRAY_T3E_FALSE}"; then
27993
 
  as_fn_error $? "conditional \"CRAY_T3E\" was never defined.
27994
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
27995
 
fi
27996
 
if test -z "${CRAY_XT_TRUE}" && test -z "${CRAY_XT_FALSE}"; then
27997
 
  as_fn_error $? "conditional \"CRAY_XT\" was never defined.
27998
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
27999
 
fi
28000
 
if test -z "${CRAY_YMP_TRUE}" && test -z "${CRAY_YMP_FALSE}"; then
28001
 
  as_fn_error $? "conditional \"CRAY_YMP\" was never defined.
28002
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28003
 
fi
28004
 
if test -z "${CYGNUS_TRUE}" && test -z "${CYGNUS_FALSE}"; then
28005
 
  as_fn_error $? "conditional \"CYGNUS\" was never defined.
28006
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28007
 
fi
28008
 
if test -z "${CYGWIN_TRUE}" && test -z "${CYGWIN_FALSE}"; then
28009
 
  as_fn_error $? "conditional \"CYGWIN\" was never defined.
28010
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28011
 
fi
28012
 
if test -z "${DECOSF_TRUE}" && test -z "${DECOSF_FALSE}"; then
28013
 
  as_fn_error $? "conditional \"DECOSF\" was never defined.
28014
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28015
 
fi
28016
 
if test -z "${FUJITSU_VPP_TRUE}" && test -z "${FUJITSU_VPP_FALSE}"; then
28017
 
  as_fn_error $? "conditional \"FUJITSU_VPP\" was never defined.
28018
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28019
 
fi
28020
 
if test -z "${HITACHI_TRUE}" && test -z "${HITACHI_FALSE}"; then
28021
 
  as_fn_error $? "conditional \"HITACHI\" was never defined.
28022
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28023
 
fi
28024
 
if test -z "${HPUX_TRUE}" && test -z "${HPUX_FALSE}"; then
28025
 
  as_fn_error $? "conditional \"HPUX\" was never defined.
28026
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28027
 
fi
28028
 
if test -z "${IBM_TRUE}" && test -z "${IBM_FALSE}"; then
28029
 
  as_fn_error $? "conditional \"IBM\" was never defined.
28030
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28031
 
fi
28032
 
if test -z "${INTERIX_TRUE}" && test -z "${INTERIX_FALSE}"; then
28033
 
  as_fn_error $? "conditional \"INTERIX\" was never defined.
28034
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28035
 
fi
28036
 
if test -z "${LAPI_TRUE}" && test -z "${LAPI_FALSE}"; then
28037
 
  as_fn_error $? "conditional \"LAPI\" was never defined.
28038
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28039
 
fi
28040
 
if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
28041
 
  as_fn_error $? "conditional \"LINUX\" was never defined.
28042
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28043
 
fi
28044
 
if test -z "${MACX_TRUE}" && test -z "${MACX_FALSE}"; then
28045
 
  as_fn_error $? "conditional \"MACX\" was never defined.
28046
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28047
 
fi
28048
 
if test -z "${NEC_TRUE}" && test -z "${NEC_FALSE}"; then
28049
 
  as_fn_error $? "conditional \"NEC\" was never defined.
28050
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28051
 
fi
28052
 
if test -z "${SGI_TRUE}" && test -z "${SGI_FALSE}"; then
28053
 
  as_fn_error $? "conditional \"SGI\" was never defined.
28054
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28055
 
fi
28056
 
if test -z "${SGI_N32_TRUE}" && test -z "${SGI_N32_FALSE}"; then
28057
 
  as_fn_error $? "conditional \"SGI_N32\" was never defined.
28058
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28059
 
fi
28060
 
if test -z "${SGITFP_TRUE}" && test -z "${SGITFP_FALSE}"; then
28061
 
  as_fn_error $? "conditional \"SGITFP\" was never defined.
28062
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28063
 
fi
28064
 
if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
28065
 
  as_fn_error $? "conditional \"SOLARIS\" was never defined.
28066
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28067
 
fi
28068
 
if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
28069
 
  as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
28070
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28071
 
fi
28072
 
 if test -n "$EXEEXT"; then
28073
 
  am__EXEEXT_TRUE=
28074
 
  am__EXEEXT_FALSE='#'
28075
 
else
28076
 
  am__EXEEXT_TRUE='#'
28077
 
  am__EXEEXT_FALSE=
28078
 
fi
28079
 
 
28080
 
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28081
 
  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
28082
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28083
 
fi
28084
 
if test -z "${TASCEL_STANDALONE_TRUE}" && test -z "${TASCEL_STANDALONE_FALSE}"; then
28085
 
  as_fn_error $? "conditional \"TASCEL_STANDALONE\" was never defined.
28086
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28087
 
fi
28088
 
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28089
 
  as_fn_error $? "conditional \"AMDEP\" was never defined.
28090
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28091
 
fi
28092
 
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28093
 
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
28094
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28095
 
fi
28096
 
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28097
 
  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
28098
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28099
 
fi
28100
 
if test -z "${NOFORT_TRUE}" && test -z "${NOFORT_FALSE}"; then
28101
 
  as_fn_error $? "conditional \"NOFORT\" was never defined.
28102
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28103
 
fi
28104
 
if test -z "${ENABLE_F77_TRUE}" && test -z "${ENABLE_F77_FALSE}"; then
28105
 
  as_fn_error $? "conditional \"ENABLE_F77\" was never defined.
28106
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28107
 
fi
28108
 
if test -z "${HAVE_BLAS_TRUE}" && test -z "${HAVE_BLAS_FALSE}"; then
28109
 
  as_fn_error $? "conditional \"HAVE_BLAS\" was never defined.
28110
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28111
 
fi
28112
 
if test -z "${HAVE_LAPACK_TRUE}" && test -z "${HAVE_LAPACK_FALSE}"; then
28113
 
  as_fn_error $? "conditional \"HAVE_LAPACK\" was never defined.
28114
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28115
 
fi
28116
 
if test -z "${HAVE_SCALAPACK_TRUE}" && test -z "${HAVE_SCALAPACK_FALSE}"; then
28117
 
  as_fn_error $? "conditional \"HAVE_SCALAPACK\" was never defined.
28118
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28119
 
fi
28120
 
 
28121
 
: "${CONFIG_STATUS=./config.status}"
28122
 
ac_write_fail=0
28123
 
ac_clean_files_save=$ac_clean_files
28124
 
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28125
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28126
 
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28127
 
as_write_fail=0
28128
 
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28129
 
#! $SHELL
28130
 
# Generated by $as_me.
28131
 
# Run this file to recreate the current configuration.
28132
 
# Compiler output produced by configure, useful for debugging
28133
 
# configure, is in config.log if it exists.
28134
 
 
28135
 
debug=false
28136
 
ac_cs_recheck=false
28137
 
ac_cs_silent=false
28138
 
 
28139
 
SHELL=\${CONFIG_SHELL-$SHELL}
28140
 
export SHELL
28141
 
_ASEOF
28142
 
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28143
 
## -------------------- ##
28144
 
## M4sh Initialization. ##
28145
 
## -------------------- ##
28146
 
 
28147
 
# Be more Bourne compatible
28148
 
DUALCASE=1; export DUALCASE # for MKS sh
28149
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28150
 
  emulate sh
28151
 
  NULLCMD=:
28152
 
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28153
 
  # is contrary to our usage.  Disable this feature.
28154
 
  alias -g '${1+"$@"}'='"$@"'
28155
 
  setopt NO_GLOB_SUBST
28156
 
else
28157
 
  case `(set -o) 2>/dev/null` in #(
28158
 
  *posix*) :
28159
 
    set -o posix ;; #(
28160
 
  *) :
28161
 
     ;;
28162
 
esac
28163
 
fi
28164
 
 
28165
 
 
28166
 
as_nl='
28167
 
'
28168
 
export as_nl
28169
 
# Printing a long string crashes Solaris 7 /usr/bin/printf.
28170
 
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28171
 
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28172
 
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28173
 
# Prefer a ksh shell builtin over an external printf program on Solaris,
28174
 
# but without wasting forks for bash or zsh.
28175
 
if test -z "$BASH_VERSION$ZSH_VERSION" \
28176
 
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28177
 
  as_echo='print -r --'
28178
 
  as_echo_n='print -rn --'
28179
 
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28180
 
  as_echo='printf %s\n'
28181
 
  as_echo_n='printf %s'
28182
 
else
28183
 
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28184
 
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28185
 
    as_echo_n='/usr/ucb/echo -n'
28186
 
  else
28187
 
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28188
 
    as_echo_n_body='eval
28189
 
      arg=$1;
28190
 
      case $arg in #(
28191
 
      *"$as_nl"*)
28192
 
        expr "X$arg" : "X\\(.*\\)$as_nl";
28193
 
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28194
 
      esac;
28195
 
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28196
 
    '
28197
 
    export as_echo_n_body
28198
 
    as_echo_n='sh -c $as_echo_n_body as_echo'
28199
 
  fi
28200
 
  export as_echo_body
28201
 
  as_echo='sh -c $as_echo_body as_echo'
28202
 
fi
28203
 
 
28204
 
# The user is always right.
28205
 
if test "${PATH_SEPARATOR+set}" != set; then
28206
 
  PATH_SEPARATOR=:
28207
 
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28208
 
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28209
 
      PATH_SEPARATOR=';'
28210
 
  }
28211
 
fi
28212
 
 
28213
 
 
28214
 
# IFS
28215
 
# We need space, tab and new line, in precisely that order.  Quoting is
28216
 
# there to prevent editors from complaining about space-tab.
28217
 
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
28218
 
# splitting by setting IFS to empty value.)
28219
 
IFS=" ""        $as_nl"
28220
 
 
28221
 
# Find who we are.  Look in the path if we contain no directory separator.
28222
 
as_myself=
28223
 
case $0 in #((
28224
 
  *[\\/]* ) as_myself=$0 ;;
28225
 
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28226
 
for as_dir in $PATH
28227
 
do
28228
 
  IFS=$as_save_IFS
28229
 
  test -z "$as_dir" && as_dir=.
28230
 
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28231
 
  done
28232
 
IFS=$as_save_IFS
28233
 
 
28234
 
     ;;
28235
 
esac
28236
 
# We did not find ourselves, most probably we were run as `sh COMMAND'
28237
 
# in which case we are not to be found in the path.
28238
 
if test "x$as_myself" = x; then
28239
 
  as_myself=$0
28240
 
fi
28241
 
if test ! -f "$as_myself"; then
28242
 
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28243
 
  exit 1
28244
 
fi
28245
 
 
28246
 
# Unset variables that we do not need and which cause bugs (e.g. in
28247
 
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
28248
 
# suppresses any "Segmentation fault" message there.  '((' could
28249
 
# trigger a bug in pdksh 5.2.14.
28250
 
for as_var in BASH_ENV ENV MAIL MAILPATH
28251
 
do eval test x\${$as_var+set} = xset \
28252
 
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28253
 
done
28254
 
PS1='$ '
28255
 
PS2='> '
28256
 
PS4='+ '
28257
 
 
28258
 
# NLS nuisances.
28259
 
LC_ALL=C
28260
 
export LC_ALL
28261
 
LANGUAGE=C
28262
 
export LANGUAGE
28263
 
 
28264
 
# CDPATH.
28265
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28266
 
 
28267
 
 
28268
 
# as_fn_error STATUS ERROR [LINENO LOG_FD]
28269
 
# ----------------------------------------
28270
 
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28271
 
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28272
 
# script with STATUS, using 1 if that was 0.
28273
 
as_fn_error ()
28274
 
{
28275
 
  as_status=$1; test $as_status -eq 0 && as_status=1
28276
 
  if test "$4"; then
28277
 
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28278
 
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
28279
 
  fi
28280
 
  $as_echo "$as_me: error: $2" >&2
28281
 
  as_fn_exit $as_status
28282
 
} # as_fn_error
28283
 
 
28284
 
 
28285
 
# as_fn_set_status STATUS
28286
 
# -----------------------
28287
 
# Set $? to STATUS, without forking.
28288
 
as_fn_set_status ()
28289
 
{
28290
 
  return $1
28291
 
} # as_fn_set_status
28292
 
 
28293
 
# as_fn_exit STATUS
28294
 
# -----------------
28295
 
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28296
 
as_fn_exit ()
28297
 
{
28298
 
  set +e
28299
 
  as_fn_set_status $1
28300
 
  exit $1
28301
 
} # as_fn_exit
28302
 
 
28303
 
# as_fn_unset VAR
28304
 
# ---------------
28305
 
# Portably unset VAR.
28306
 
as_fn_unset ()
28307
 
{
28308
 
  { eval $1=; unset $1;}
28309
 
}
28310
 
as_unset=as_fn_unset
28311
 
# as_fn_append VAR VALUE
28312
 
# ----------------------
28313
 
# Append the text in VALUE to the end of the definition contained in VAR. Take
28314
 
# advantage of any shell optimizations that allow amortized linear growth over
28315
 
# repeated appends, instead of the typical quadratic growth present in naive
28316
 
# implementations.
28317
 
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28318
 
  eval 'as_fn_append ()
28319
 
  {
28320
 
    eval $1+=\$2
28321
 
  }'
28322
 
else
28323
 
  as_fn_append ()
28324
 
  {
28325
 
    eval $1=\$$1\$2
28326
 
  }
28327
 
fi # as_fn_append
28328
 
 
28329
 
# as_fn_arith ARG...
28330
 
# ------------------
28331
 
# Perform arithmetic evaluation on the ARGs, and store the result in the
28332
 
# global $as_val. Take advantage of shells that can avoid forks. The arguments
28333
 
# must be portable across $(()) and expr.
28334
 
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28335
 
  eval 'as_fn_arith ()
28336
 
  {
28337
 
    as_val=$(( $* ))
28338
 
  }'
28339
 
else
28340
 
  as_fn_arith ()
28341
 
  {
28342
 
    as_val=`expr "$@" || test $? -eq 1`
28343
 
  }
28344
 
fi # as_fn_arith
28345
 
 
28346
 
 
28347
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
28348
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
28349
 
  as_expr=expr
28350
 
else
28351
 
  as_expr=false
28352
 
fi
28353
 
 
28354
 
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28355
 
  as_basename=basename
28356
 
else
28357
 
  as_basename=false
28358
 
fi
28359
 
 
28360
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28361
 
  as_dirname=dirname
28362
 
else
28363
 
  as_dirname=false
28364
 
fi
28365
 
 
28366
 
as_me=`$as_basename -- "$0" ||
28367
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28368
 
         X"$0" : 'X\(//\)$' \| \
28369
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28370
 
$as_echo X/"$0" |
28371
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{
28372
 
            s//\1/
28373
 
            q
28374
 
          }
28375
 
          /^X\/\(\/\/\)$/{
28376
 
            s//\1/
28377
 
            q
28378
 
          }
28379
 
          /^X\/\(\/\).*/{
28380
 
            s//\1/
28381
 
            q
28382
 
          }
28383
 
          s/.*/./; q'`
28384
 
 
28385
 
# Avoid depending upon Character Ranges.
28386
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28387
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28388
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28389
 
as_cr_digits='0123456789'
28390
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
28391
 
 
28392
 
ECHO_C= ECHO_N= ECHO_T=
28393
 
case `echo -n x` in #(((((
28394
 
-n*)
28395
 
  case `echo 'xy\c'` in
28396
 
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
28397
 
  xy)  ECHO_C='\c';;
28398
 
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
28399
 
       ECHO_T=' ';;
28400
 
  esac;;
28401
 
*)
28402
 
  ECHO_N='-n';;
28403
 
esac
28404
 
 
28405
 
rm -f conf$$ conf$$.exe conf$$.file
28406
 
if test -d conf$$.dir; then
28407
 
  rm -f conf$$.dir/conf$$.file
28408
 
else
28409
 
  rm -f conf$$.dir
28410
 
  mkdir conf$$.dir 2>/dev/null
28411
 
fi
28412
 
if (echo >conf$$.file) 2>/dev/null; then
28413
 
  if ln -s conf$$.file conf$$ 2>/dev/null; then
28414
 
    as_ln_s='ln -s'
28415
 
    # ... but there are two gotchas:
28416
 
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28417
 
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28418
 
    # In both cases, we have to default to `cp -p'.
28419
 
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28420
 
      as_ln_s='cp -p'
28421
 
  elif ln conf$$.file conf$$ 2>/dev/null; then
28422
 
    as_ln_s=ln
28423
 
  else
28424
 
    as_ln_s='cp -p'
28425
 
  fi
28426
 
else
28427
 
  as_ln_s='cp -p'
28428
 
fi
28429
 
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28430
 
rmdir conf$$.dir 2>/dev/null
28431
 
 
28432
 
 
28433
 
# as_fn_mkdir_p
28434
 
# -------------
28435
 
# Create "$as_dir" as a directory, including parents if necessary.
28436
 
as_fn_mkdir_p ()
28437
 
{
28438
 
 
28439
 
  case $as_dir in #(
28440
 
  -*) as_dir=./$as_dir;;
28441
 
  esac
28442
 
  test -d "$as_dir" || eval $as_mkdir_p || {
28443
 
    as_dirs=
28444
 
    while :; do
28445
 
      case $as_dir in #(
28446
 
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28447
 
      *) as_qdir=$as_dir;;
28448
 
      esac
28449
 
      as_dirs="'$as_qdir' $as_dirs"
28450
 
      as_dir=`$as_dirname -- "$as_dir" ||
28451
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28452
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
28453
 
         X"$as_dir" : 'X\(//\)$' \| \
28454
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28455
 
$as_echo X"$as_dir" |
28456
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28457
 
            s//\1/
28458
 
            q
28459
 
          }
28460
 
          /^X\(\/\/\)[^/].*/{
28461
 
            s//\1/
28462
 
            q
28463
 
          }
28464
 
          /^X\(\/\/\)$/{
28465
 
            s//\1/
28466
 
            q
28467
 
          }
28468
 
          /^X\(\/\).*/{
28469
 
            s//\1/
28470
 
            q
28471
 
          }
28472
 
          s/.*/./; q'`
28473
 
      test -d "$as_dir" && break
28474
 
    done
28475
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
28476
 
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
28477
 
 
28478
 
 
28479
 
} # as_fn_mkdir_p
28480
 
if mkdir -p . 2>/dev/null; then
28481
 
  as_mkdir_p='mkdir -p "$as_dir"'
28482
 
else
28483
 
  test -d ./-p && rmdir ./-p
28484
 
  as_mkdir_p=false
28485
 
fi
28486
 
 
28487
 
if test -x / >/dev/null 2>&1; then
28488
 
  as_test_x='test -x'
28489
 
else
28490
 
  if ls -dL / >/dev/null 2>&1; then
28491
 
    as_ls_L_option=L
28492
 
  else
28493
 
    as_ls_L_option=
28494
 
  fi
28495
 
  as_test_x='
28496
 
    eval sh -c '\''
28497
 
      if test -d "$1"; then
28498
 
        test -d "$1/.";
28499
 
      else
28500
 
        case $1 in #(
28501
 
        -*)set "./$1";;
28502
 
        esac;
28503
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28504
 
        ???[sx]*):;;*)false;;esac;fi
28505
 
    '\'' sh
28506
 
  '
28507
 
fi
28508
 
as_executable_p=$as_test_x
28509
 
 
28510
 
# Sed expression to map a string onto a valid CPP name.
28511
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28512
 
 
28513
 
# Sed expression to map a string onto a valid variable name.
28514
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28515
 
 
28516
 
 
28517
 
exec 6>&1
28518
 
## ----------------------------------- ##
28519
 
## Main body of $CONFIG_STATUS script. ##
28520
 
## ----------------------------------- ##
28521
 
_ASEOF
28522
 
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28523
 
 
28524
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28525
 
# Save the log message, to keep $0 and so on meaningful, and to
28526
 
# report actual input values of CONFIG_FILES etc. instead of their
28527
 
# values after options handling.
28528
 
ac_log="
28529
 
This file was extended by Task Scheduling Library (tascel) $as_me 0.0.1, which was
28530
 
generated by GNU Autoconf 2.68.  Invocation command line was
28531
 
 
28532
 
  CONFIG_FILES    = $CONFIG_FILES
28533
 
  CONFIG_HEADERS  = $CONFIG_HEADERS
28534
 
  CONFIG_LINKS    = $CONFIG_LINKS
28535
 
  CONFIG_COMMANDS = $CONFIG_COMMANDS
28536
 
  $ $0 $@
28537
 
 
28538
 
on `(hostname || uname -n) 2>/dev/null | sed 1q`
28539
 
"
28540
 
 
28541
 
_ACEOF
28542
 
 
28543
 
case $ac_config_files in *"
28544
 
"*) set x $ac_config_files; shift; ac_config_files=$*;;
28545
 
esac
28546
 
 
28547
 
case $ac_config_headers in *"
28548
 
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28549
 
esac
28550
 
 
28551
 
 
28552
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28553
 
# Files that config.status was made for.
28554
 
config_files="$ac_config_files"
28555
 
config_headers="$ac_config_headers"
28556
 
config_commands="$ac_config_commands"
28557
 
 
28558
 
_ACEOF
28559
 
 
28560
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28561
 
ac_cs_usage="\
28562
 
\`$as_me' instantiates files and other configuration actions
28563
 
from templates according to the current configuration.  Unless the files
28564
 
and actions are specified as TAGs, all are instantiated by default.
28565
 
 
28566
 
Usage: $0 [OPTION]... [TAG]...
28567
 
 
28568
 
  -h, --help       print this help, then exit
28569
 
  -V, --version    print version number and configuration settings, then exit
28570
 
      --config     print configuration, then exit
28571
 
  -q, --quiet, --silent
28572
 
                   do not print progress messages
28573
 
  -d, --debug      don't remove temporary files
28574
 
      --recheck    update $as_me by reconfiguring in the same conditions
28575
 
      --file=FILE[:TEMPLATE]
28576
 
                   instantiate the configuration file FILE
28577
 
      --header=FILE[:TEMPLATE]
28578
 
                   instantiate the configuration header FILE
28579
 
 
28580
 
Configuration files:
28581
 
$config_files
28582
 
 
28583
 
Configuration headers:
28584
 
$config_headers
28585
 
 
28586
 
Configuration commands:
28587
 
$config_commands
28588
 
 
28589
 
Report bugs to <hpctools@pnl.gov>.
28590
 
Task Scheduling Library (tascel) home page: <http://www.emsl.pnl.gov/docs/global/>."
28591
 
 
28592
 
_ACEOF
28593
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28594
 
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
28595
 
ac_cs_version="\\
28596
 
Task Scheduling Library (tascel) config.status 0.0.1
28597
 
configured by $0, generated by GNU Autoconf 2.68,
28598
 
  with options \\"\$ac_cs_config\\"
28599
 
 
28600
 
Copyright (C) 2010 Free Software Foundation, Inc.
28601
 
This config.status script is free software; the Free Software Foundation
28602
 
gives unlimited permission to copy, distribute and modify it."
28603
 
 
28604
 
ac_pwd='$ac_pwd'
28605
 
srcdir='$srcdir'
28606
 
INSTALL='$INSTALL'
28607
 
MKDIR_P='$MKDIR_P'
28608
 
AWK='$AWK'
28609
 
test -n "\$AWK" || AWK=awk
28610
 
_ACEOF
28611
 
 
28612
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28613
 
# The default lists apply if the user does not specify any file.
28614
 
ac_need_defaults=:
28615
 
while test $# != 0
28616
 
do
28617
 
  case $1 in
28618
 
  --*=?*)
28619
 
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
28620
 
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28621
 
    ac_shift=:
28622
 
    ;;
28623
 
  --*=)
28624
 
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
28625
 
    ac_optarg=
28626
 
    ac_shift=:
28627
 
    ;;
28628
 
  *)
28629
 
    ac_option=$1
28630
 
    ac_optarg=$2
28631
 
    ac_shift=shift
28632
 
    ;;
28633
 
  esac
28634
 
 
28635
 
  case $ac_option in
28636
 
  # Handling of the options.
28637
 
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28638
 
    ac_cs_recheck=: ;;
28639
 
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28640
 
    $as_echo "$ac_cs_version"; exit ;;
28641
 
  --config | --confi | --conf | --con | --co | --c )
28642
 
    $as_echo "$ac_cs_config"; exit ;;
28643
 
  --debug | --debu | --deb | --de | --d | -d )
28644
 
    debug=: ;;
28645
 
  --file | --fil | --fi | --f )
28646
 
    $ac_shift
28647
 
    case $ac_optarg in
28648
 
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28649
 
    '') as_fn_error $? "missing file argument" ;;
28650
 
    esac
28651
 
    as_fn_append CONFIG_FILES " '$ac_optarg'"
28652
 
    ac_need_defaults=false;;
28653
 
  --header | --heade | --head | --hea )
28654
 
    $ac_shift
28655
 
    case $ac_optarg in
28656
 
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28657
 
    esac
28658
 
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28659
 
    ac_need_defaults=false;;
28660
 
  --he | --h)
28661
 
    # Conflict between --help and --header
28662
 
    as_fn_error $? "ambiguous option: \`$1'
28663
 
Try \`$0 --help' for more information.";;
28664
 
  --help | --hel | -h )
28665
 
    $as_echo "$ac_cs_usage"; exit ;;
28666
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28667
 
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
28668
 
    ac_cs_silent=: ;;
28669
 
 
28670
 
  # This is an error.
28671
 
  -*) as_fn_error $? "unrecognized option: \`$1'
28672
 
Try \`$0 --help' for more information." ;;
28673
 
 
28674
 
  *) as_fn_append ac_config_targets " $1"
28675
 
     ac_need_defaults=false ;;
28676
 
 
28677
 
  esac
28678
 
  shift
28679
 
done
28680
 
 
28681
 
ac_configure_extra_args=
28682
 
 
28683
 
if $ac_cs_silent; then
28684
 
  exec 6>/dev/null
28685
 
  ac_configure_extra_args="$ac_configure_extra_args --silent"
28686
 
fi
28687
 
 
28688
 
_ACEOF
28689
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28690
 
if \$ac_cs_recheck; then
28691
 
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28692
 
  shift
28693
 
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28694
 
  CONFIG_SHELL='$SHELL'
28695
 
  export CONFIG_SHELL
28696
 
  exec "\$@"
28697
 
fi
28698
 
 
28699
 
_ACEOF
28700
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28701
 
exec 5>>config.log
28702
 
{
28703
 
  echo
28704
 
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28705
 
## Running $as_me. ##
28706
 
_ASBOX
28707
 
  $as_echo "$ac_log"
28708
 
} >&5
28709
 
 
28710
 
_ACEOF
28711
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28712
 
#
28713
 
# INIT-COMMANDS
28714
 
#
28715
 
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28716
 
 
28717
 
 
28718
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
28719
 
# if CDPATH is set.
28720
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28721
 
 
28722
 
sed_quote_subst='$sed_quote_subst'
28723
 
double_quote_subst='$double_quote_subst'
28724
 
delay_variable_subst='$delay_variable_subst'
28725
 
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
28726
 
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
28727
 
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
28728
 
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
28729
 
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
28730
 
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
28731
 
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
28732
 
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
28733
 
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
28734
 
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
28735
 
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
28736
 
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
28737
 
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
28738
 
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
28739
 
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
28740
 
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
28741
 
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
28742
 
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
28743
 
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
28744
 
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
28745
 
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
28746
 
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
28747
 
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
28748
 
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
28749
 
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
28750
 
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
28751
 
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
28752
 
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
28753
 
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
28754
 
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
28755
 
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
28756
 
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
28757
 
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
28758
 
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
28759
 
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
28760
 
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
28761
 
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
28762
 
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
28763
 
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
28764
 
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
28765
 
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
28766
 
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
28767
 
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
28768
 
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
28769
 
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
28770
 
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28771
 
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28772
 
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
28773
 
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
28774
 
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
28775
 
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
28776
 
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
28777
 
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
28778
 
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
28779
 
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
28780
 
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
28781
 
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
28782
 
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
28783
 
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
28784
 
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
28785
 
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
28786
 
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
28787
 
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
28788
 
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
28789
 
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
28790
 
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
28791
 
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
28792
 
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
28793
 
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
28794
 
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
28795
 
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
28796
 
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
28797
 
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
28798
 
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
28799
 
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
28800
 
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28801
 
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
28802
 
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
28803
 
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
28804
 
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
28805
 
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
28806
 
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
28807
 
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28808
 
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
28809
 
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28810
 
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
28811
 
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28812
 
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
28813
 
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
28814
 
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
28815
 
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
28816
 
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
28817
 
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
28818
 
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
28819
 
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
28820
 
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
28821
 
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
28822
 
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
28823
 
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
28824
 
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
28825
 
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
28826
 
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
28827
 
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
28828
 
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
28829
 
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
28830
 
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
28831
 
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
28832
 
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
28833
 
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
28834
 
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
28835
 
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
28836
 
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
28837
 
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
28838
 
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
28839
 
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
28840
 
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
28841
 
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
28842
 
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28843
 
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28844
 
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
28845
 
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
28846
 
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
28847
 
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
28848
 
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
28849
 
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
28850
 
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
28851
 
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
28852
 
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
28853
 
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
28854
 
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
28855
 
compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
28856
 
predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
28857
 
postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
28858
 
predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
28859
 
postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
28860
 
compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
28861
 
LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
28862
 
LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`'
28863
 
reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
28864
 
reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`'
28865
 
reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28866
 
reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`'
28867
 
old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28868
 
old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
28869
 
compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
28870
 
compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`'
28871
 
GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
28872
 
GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`'
28873
 
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
28874
 
lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`'
28875
 
lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
28876
 
lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`'
28877
 
lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
28878
 
lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`'
28879
 
lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
28880
 
lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`'
28881
 
lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
28882
 
lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`'
28883
 
archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
28884
 
archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`'
28885
 
enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
28886
 
enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`'
28887
 
export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
28888
 
export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
28889
 
whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
28890
 
whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
28891
 
compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
28892
 
compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`'
28893
 
old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28894
 
old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`'
28895
 
old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28896
 
old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`'
28897
 
archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28898
 
archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
28899
 
archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28900
 
archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
28901
 
module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28902
 
module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`'
28903
 
module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28904
 
module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
28905
 
with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
28906
 
with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`'
28907
 
allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
28908
 
allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
28909
 
no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
28910
 
no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
28911
 
hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
28912
 
hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
28913
 
hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
28914
 
hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`'
28915
 
hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
28916
 
hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`'
28917
 
hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
28918
 
hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`'
28919
 
hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
28920
 
hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`'
28921
 
hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
28922
 
hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`'
28923
 
hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
28924
 
hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`'
28925
 
inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
28926
 
inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`'
28927
 
link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
28928
 
link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`'
28929
 
always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
28930
 
always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`'
28931
 
export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28932
 
export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`'
28933
 
exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
28934
 
exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`'
28935
 
include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
28936
 
include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`'
28937
 
prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28938
 
prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`'
28939
 
postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28940
 
postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`'
28941
 
file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
28942
 
file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`'
28943
 
hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
28944
 
hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`'
28945
 
compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
28946
 
compiler_lib_search_dirs_F77='`$ECHO "$compiler_lib_search_dirs_F77" | $SED "$delay_single_quote_subst"`'
28947
 
predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
28948
 
predep_objects_F77='`$ECHO "$predep_objects_F77" | $SED "$delay_single_quote_subst"`'
28949
 
postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
28950
 
postdep_objects_F77='`$ECHO "$postdep_objects_F77" | $SED "$delay_single_quote_subst"`'
28951
 
predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
28952
 
predeps_F77='`$ECHO "$predeps_F77" | $SED "$delay_single_quote_subst"`'
28953
 
postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
28954
 
postdeps_F77='`$ECHO "$postdeps_F77" | $SED "$delay_single_quote_subst"`'
28955
 
compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
28956
 
compiler_lib_search_path_F77='`$ECHO "$compiler_lib_search_path_F77" | $SED "$delay_single_quote_subst"`'
28957
 
 
28958
 
LTCC='$LTCC'
28959
 
LTCFLAGS='$LTCFLAGS'
28960
 
compiler='$compiler_DEFAULT'
28961
 
 
28962
 
# A function that is used when there is no print builtin or printf.
28963
 
func_fallback_echo ()
28964
 
{
28965
 
  eval 'cat <<_LTECHO_EOF
28966
 
\$1
28967
 
_LTECHO_EOF'
28968
 
}
28969
 
 
28970
 
# Quote evaled strings.
28971
 
for var in SHELL \
28972
 
ECHO \
28973
 
PATH_SEPARATOR \
28974
 
SED \
28975
 
GREP \
28976
 
EGREP \
28977
 
FGREP \
28978
 
LD \
28979
 
NM \
28980
 
LN_S \
28981
 
lt_SP2NL \
28982
 
lt_NL2SP \
28983
 
reload_flag \
28984
 
OBJDUMP \
28985
 
deplibs_check_method \
28986
 
file_magic_cmd \
28987
 
file_magic_glob \
28988
 
want_nocaseglob \
28989
 
DLLTOOL \
28990
 
sharedlib_from_linklib_cmd \
28991
 
AR \
28992
 
AR_FLAGS \
28993
 
archiver_list_spec \
28994
 
STRIP \
28995
 
RANLIB \
28996
 
CC \
28997
 
CFLAGS \
28998
 
compiler \
28999
 
lt_cv_sys_global_symbol_pipe \
29000
 
lt_cv_sys_global_symbol_to_cdecl \
29001
 
lt_cv_sys_global_symbol_to_c_name_address \
29002
 
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
29003
 
nm_file_list_spec \
29004
 
lt_prog_compiler_no_builtin_flag \
29005
 
lt_prog_compiler_pic \
29006
 
lt_prog_compiler_wl \
29007
 
lt_prog_compiler_static \
29008
 
lt_cv_prog_compiler_c_o \
29009
 
need_locks \
29010
 
MANIFEST_TOOL \
29011
 
DSYMUTIL \
29012
 
NMEDIT \
29013
 
LIPO \
29014
 
OTOOL \
29015
 
OTOOL64 \
29016
 
shrext_cmds \
29017
 
export_dynamic_flag_spec \
29018
 
whole_archive_flag_spec \
29019
 
compiler_needs_object \
29020
 
with_gnu_ld \
29021
 
allow_undefined_flag \
29022
 
no_undefined_flag \
29023
 
hardcode_libdir_flag_spec \
29024
 
hardcode_libdir_separator \
29025
 
exclude_expsyms \
29026
 
include_expsyms \
29027
 
file_list_spec \
29028
 
variables_saved_for_relink \
29029
 
libname_spec \
29030
 
library_names_spec \
29031
 
soname_spec \
29032
 
install_override_mode \
29033
 
finish_eval \
29034
 
old_striplib \
29035
 
striplib \
29036
 
compiler_lib_search_dirs \
29037
 
predep_objects \
29038
 
postdep_objects \
29039
 
predeps \
29040
 
postdeps \
29041
 
compiler_lib_search_path \
29042
 
LD_CXX \
29043
 
LD_F77 \
29044
 
reload_flag_CXX \
29045
 
reload_flag_F77 \
29046
 
compiler_CXX \
29047
 
compiler_F77 \
29048
 
lt_prog_compiler_no_builtin_flag_CXX \
29049
 
lt_prog_compiler_no_builtin_flag_F77 \
29050
 
lt_prog_compiler_pic_CXX \
29051
 
lt_prog_compiler_pic_F77 \
29052
 
lt_prog_compiler_wl_CXX \
29053
 
lt_prog_compiler_wl_F77 \
29054
 
lt_prog_compiler_static_CXX \
29055
 
lt_prog_compiler_static_F77 \
29056
 
lt_cv_prog_compiler_c_o_CXX \
29057
 
lt_cv_prog_compiler_c_o_F77 \
29058
 
export_dynamic_flag_spec_CXX \
29059
 
export_dynamic_flag_spec_F77 \
29060
 
whole_archive_flag_spec_CXX \
29061
 
whole_archive_flag_spec_F77 \
29062
 
compiler_needs_object_CXX \
29063
 
compiler_needs_object_F77 \
29064
 
with_gnu_ld_CXX \
29065
 
with_gnu_ld_F77 \
29066
 
allow_undefined_flag_CXX \
29067
 
allow_undefined_flag_F77 \
29068
 
no_undefined_flag_CXX \
29069
 
no_undefined_flag_F77 \
29070
 
hardcode_libdir_flag_spec_CXX \
29071
 
hardcode_libdir_flag_spec_F77 \
29072
 
hardcode_libdir_separator_CXX \
29073
 
hardcode_libdir_separator_F77 \
29074
 
exclude_expsyms_CXX \
29075
 
exclude_expsyms_F77 \
29076
 
include_expsyms_CXX \
29077
 
include_expsyms_F77 \
29078
 
file_list_spec_CXX \
29079
 
file_list_spec_F77 \
29080
 
compiler_lib_search_dirs_CXX \
29081
 
compiler_lib_search_dirs_F77 \
29082
 
predep_objects_CXX \
29083
 
predep_objects_F77 \
29084
 
postdep_objects_CXX \
29085
 
postdep_objects_F77 \
29086
 
predeps_CXX \
29087
 
predeps_F77 \
29088
 
postdeps_CXX \
29089
 
postdeps_F77 \
29090
 
compiler_lib_search_path_CXX \
29091
 
compiler_lib_search_path_F77; do
29092
 
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
29093
 
    *[\\\\\\\`\\"\\\$]*)
29094
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
29095
 
      ;;
29096
 
    *)
29097
 
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29098
 
      ;;
29099
 
    esac
29100
 
done
29101
 
 
29102
 
# Double-quote double-evaled strings.
29103
 
for var in reload_cmds \
29104
 
old_postinstall_cmds \
29105
 
old_postuninstall_cmds \
29106
 
old_archive_cmds \
29107
 
extract_expsyms_cmds \
29108
 
old_archive_from_new_cmds \
29109
 
old_archive_from_expsyms_cmds \
29110
 
archive_cmds \
29111
 
archive_expsym_cmds \
29112
 
module_cmds \
29113
 
module_expsym_cmds \
29114
 
export_symbols_cmds \
29115
 
prelink_cmds \
29116
 
postlink_cmds \
29117
 
postinstall_cmds \
29118
 
postuninstall_cmds \
29119
 
finish_cmds \
29120
 
sys_lib_search_path_spec \
29121
 
sys_lib_dlsearch_path_spec \
29122
 
reload_cmds_CXX \
29123
 
reload_cmds_F77 \
29124
 
old_archive_cmds_CXX \
29125
 
old_archive_cmds_F77 \
29126
 
old_archive_from_new_cmds_CXX \
29127
 
old_archive_from_new_cmds_F77 \
29128
 
old_archive_from_expsyms_cmds_CXX \
29129
 
old_archive_from_expsyms_cmds_F77 \
29130
 
archive_cmds_CXX \
29131
 
archive_cmds_F77 \
29132
 
archive_expsym_cmds_CXX \
29133
 
archive_expsym_cmds_F77 \
29134
 
module_cmds_CXX \
29135
 
module_cmds_F77 \
29136
 
module_expsym_cmds_CXX \
29137
 
module_expsym_cmds_F77 \
29138
 
export_symbols_cmds_CXX \
29139
 
export_symbols_cmds_F77 \
29140
 
prelink_cmds_CXX \
29141
 
prelink_cmds_F77 \
29142
 
postlink_cmds_CXX \
29143
 
postlink_cmds_F77; do
29144
 
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
29145
 
    *[\\\\\\\`\\"\\\$]*)
29146
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
29147
 
      ;;
29148
 
    *)
29149
 
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29150
 
      ;;
29151
 
    esac
29152
 
done
29153
 
 
29154
 
ac_aux_dir='$ac_aux_dir'
29155
 
xsi_shell='$xsi_shell'
29156
 
lt_shell_append='$lt_shell_append'
29157
 
 
29158
 
# See if we are running on zsh, and set the options which allow our
29159
 
# commands through without removal of \ escapes INIT.
29160
 
if test -n "\${ZSH_VERSION+set}" ; then
29161
 
   setopt NO_GLOB_SUBST
29162
 
fi
29163
 
 
29164
 
 
29165
 
    PACKAGE='$PACKAGE'
29166
 
    VERSION='$VERSION'
29167
 
    TIMESTAMP='$TIMESTAMP'
29168
 
    RM='$RM'
29169
 
    ofile='$ofile'
29170
 
 
29171
 
 
29172
 
 
29173
 
 
29174
 
 
29175
 
 
29176
 
 
29177
 
 
29178
 
_ACEOF
29179
 
 
29180
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29181
 
 
29182
 
# Handling of arguments.
29183
 
for ac_config_target in $ac_config_targets
29184
 
do
29185
 
  case $ac_config_target in
29186
 
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
29187
 
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29188
 
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
29189
 
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29190
 
 
29191
 
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29192
 
  esac
29193
 
done
29194
 
 
29195
 
 
29196
 
# If the user did not use the arguments to specify the items to instantiate,
29197
 
# then the envvar interface is used.  Set only those that are not.
29198
 
# We use the long form for the default assignment because of an extremely
29199
 
# bizarre bug on SunOS 4.1.3.
29200
 
if $ac_need_defaults; then
29201
 
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29202
 
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29203
 
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29204
 
fi
29205
 
 
29206
 
# Have a temporary directory for convenience.  Make it in the build tree
29207
 
# simply because there is no reason against having it here, and in addition,
29208
 
# creating and moving files from /tmp can sometimes cause problems.
29209
 
# Hook for its removal unless debugging.
29210
 
# Note that there is a small window in which the directory will not be cleaned:
29211
 
# after its creation but before its name has been assigned to `$tmp'.
29212
 
$debug ||
29213
 
{
29214
 
  tmp= ac_tmp=
29215
 
  trap 'exit_status=$?
29216
 
  : "${ac_tmp:=$tmp}"
29217
 
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
29218
 
' 0
29219
 
  trap 'as_fn_exit 1' 1 2 13 15
29220
 
}
29221
 
# Create a (secure) tmp directory for tmp files.
29222
 
 
29223
 
{
29224
 
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29225
 
  test -d "$tmp"
29226
 
}  ||
29227
 
{
29228
 
  tmp=./conf$$-$RANDOM
29229
 
  (umask 077 && mkdir "$tmp")
29230
 
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
29231
 
ac_tmp=$tmp
29232
 
 
29233
 
# Set up the scripts for CONFIG_FILES section.
29234
 
# No need to generate them if there are no CONFIG_FILES.
29235
 
# This happens for instance with `./config.status config.h'.
29236
 
if test -n "$CONFIG_FILES"; then
29237
 
 
29238
 
 
29239
 
ac_cr=`echo X | tr X '\015'`
29240
 
# On cygwin, bash can eat \r inside `` if the user requested igncr.
29241
 
# But we know of no other shell where ac_cr would be empty at this
29242
 
# point, so we can use a bashism as a fallback.
29243
 
if test "x$ac_cr" = x; then
29244
 
  eval ac_cr=\$\'\\r\'
29245
 
fi
29246
 
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29247
 
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29248
 
  ac_cs_awk_cr='\\r'
29249
 
else
29250
 
  ac_cs_awk_cr=$ac_cr
29251
 
fi
29252
 
 
29253
 
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
29254
 
_ACEOF
29255
 
 
29256
 
 
29257
 
{
29258
 
  echo "cat >conf$$subs.awk <<_ACEOF" &&
29259
 
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29260
 
  echo "_ACEOF"
29261
 
} >conf$$subs.sh ||
29262
 
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29263
 
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
29264
 
ac_delim='%!_!# '
29265
 
for ac_last_try in false false false false false :; do
29266
 
  . ./conf$$subs.sh ||
29267
 
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29268
 
 
29269
 
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29270
 
  if test $ac_delim_n = $ac_delim_num; then
29271
 
    break
29272
 
  elif $ac_last_try; then
29273
 
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29274
 
  else
29275
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29276
 
  fi
29277
 
done
29278
 
rm -f conf$$subs.sh
29279
 
 
29280
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29281
 
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
29282
 
_ACEOF
29283
 
sed -n '
29284
 
h
29285
 
s/^/S["/; s/!.*/"]=/
29286
 
p
29287
 
g
29288
 
s/^[^!]*!//
29289
 
:repl
29290
 
t repl
29291
 
s/'"$ac_delim"'$//
29292
 
t delim
29293
 
:nl
29294
 
h
29295
 
s/\(.\{148\}\)..*/\1/
29296
 
t more1
29297
 
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29298
 
p
29299
 
n
29300
 
b repl
29301
 
:more1
29302
 
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29303
 
p
29304
 
g
29305
 
s/.\{148\}//
29306
 
t nl
29307
 
:delim
29308
 
h
29309
 
s/\(.\{148\}\)..*/\1/
29310
 
t more2
29311
 
s/["\\]/\\&/g; s/^/"/; s/$/"/
29312
 
p
29313
 
b
29314
 
:more2
29315
 
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29316
 
p
29317
 
g
29318
 
s/.\{148\}//
29319
 
t delim
29320
 
' <conf$$subs.awk | sed '
29321
 
/^[^""]/{
29322
 
  N
29323
 
  s/\n//
29324
 
}
29325
 
' >>$CONFIG_STATUS || ac_write_fail=1
29326
 
rm -f conf$$subs.awk
29327
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29328
 
_ACAWK
29329
 
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
29330
 
  for (key in S) S_is_set[key] = 1
29331
 
  FS = ""
29332
 
 
29333
 
}
29334
 
{
29335
 
  line = $ 0
29336
 
  nfields = split(line, field, "@")
29337
 
  substed = 0
29338
 
  len = length(field[1])
29339
 
  for (i = 2; i < nfields; i++) {
29340
 
    key = field[i]
29341
 
    keylen = length(key)
29342
 
    if (S_is_set[key]) {
29343
 
      value = S[key]
29344
 
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29345
 
      len += length(value) + length(field[++i])
29346
 
      substed = 1
29347
 
    } else
29348
 
      len += 1 + keylen
29349
 
  }
29350
 
 
29351
 
  print line
29352
 
}
29353
 
 
29354
 
_ACAWK
29355
 
_ACEOF
29356
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29357
 
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29358
 
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29359
 
else
29360
 
  cat
29361
 
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
29362
 
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
29363
 
_ACEOF
29364
 
 
29365
 
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
29366
 
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
29367
 
# trailing colons and then remove the whole line if VPATH becomes empty
29368
 
# (actually we leave an empty line to preserve line numbers).
29369
 
if test "x$srcdir" = x.; then
29370
 
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
29371
 
h
29372
 
s///
29373
 
s/^/:/
29374
 
s/[      ]*$/:/
29375
 
s/:\$(srcdir):/:/g
29376
 
s/:\${srcdir}:/:/g
29377
 
s/:@srcdir@:/:/g
29378
 
s/^:*//
29379
 
s/:*$//
29380
 
x
29381
 
s/\(=[   ]*\).*/\1/
29382
 
G
29383
 
s/\n//
29384
 
s/^[^=]*=[       ]*$//
29385
 
}'
29386
 
fi
29387
 
 
29388
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29389
 
fi # test -n "$CONFIG_FILES"
29390
 
 
29391
 
# Set up the scripts for CONFIG_HEADERS section.
29392
 
# No need to generate them if there are no CONFIG_HEADERS.
29393
 
# This happens for instance with `./config.status Makefile'.
29394
 
if test -n "$CONFIG_HEADERS"; then
29395
 
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
29396
 
BEGIN {
29397
 
_ACEOF
29398
 
 
29399
 
# Transform confdefs.h into an awk script `defines.awk', embedded as
29400
 
# here-document in config.status, that substitutes the proper values into
29401
 
# config.h.in to produce config.h.
29402
 
 
29403
 
# Create a delimiter string that does not exist in confdefs.h, to ease
29404
 
# handling of long lines.
29405
 
ac_delim='%!_!# '
29406
 
for ac_last_try in false false :; do
29407
 
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
29408
 
  if test -z "$ac_tt"; then
29409
 
    break
29410
 
  elif $ac_last_try; then
29411
 
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
29412
 
  else
29413
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29414
 
  fi
29415
 
done
29416
 
 
29417
 
# For the awk script, D is an array of macro values keyed by name,
29418
 
# likewise P contains macro parameters if any.  Preserve backslash
29419
 
# newline sequences.
29420
 
 
29421
 
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29422
 
sed -n '
29423
 
s/.\{148\}/&'"$ac_delim"'/g
29424
 
t rset
29425
 
:rset
29426
 
s/^[     ]*#[    ]*define[       ][      ]*/ /
29427
 
t def
29428
 
d
29429
 
:def
29430
 
s/\\$//
29431
 
t bsnl
29432
 
s/["\\]/\\&/g
29433
 
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
29434
 
D["\1"]=" \3"/p
29435
 
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
29436
 
d
29437
 
:bsnl
29438
 
s/["\\]/\\&/g
29439
 
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
29440
 
D["\1"]=" \3\\\\\\n"\\/p
29441
 
t cont
29442
 
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29443
 
t cont
29444
 
d
29445
 
:cont
29446
 
n
29447
 
s/.\{148\}/&'"$ac_delim"'/g
29448
 
t clear
29449
 
:clear
29450
 
s/\\$//
29451
 
t bsnlc
29452
 
s/["\\]/\\&/g; s/^/"/; s/$/"/p
29453
 
d
29454
 
:bsnlc
29455
 
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29456
 
b cont
29457
 
' <confdefs.h | sed '
29458
 
s/'"$ac_delim"'/"\\\
29459
 
"/g' >>$CONFIG_STATUS || ac_write_fail=1
29460
 
 
29461
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29462
 
  for (key in D) D_is_set[key] = 1
29463
 
  FS = ""
29464
 
}
29465
 
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29466
 
  line = \$ 0
29467
 
  split(line, arg, " ")
29468
 
  if (arg[1] == "#") {
29469
 
    defundef = arg[2]
29470
 
    mac1 = arg[3]
29471
 
  } else {
29472
 
    defundef = substr(arg[1], 2)
29473
 
    mac1 = arg[2]
29474
 
  }
29475
 
  split(mac1, mac2, "(") #)
29476
 
  macro = mac2[1]
29477
 
  prefix = substr(line, 1, index(line, defundef) - 1)
29478
 
  if (D_is_set[macro]) {
29479
 
    # Preserve the white space surrounding the "#".
29480
 
    print prefix "define", macro P[macro] D[macro]
29481
 
    next
29482
 
  } else {
29483
 
    # Replace #undef with comments.  This is necessary, for example,
29484
 
    # in the case of _POSIX_SOURCE, which is predefined and required
29485
 
    # on some systems where configure will not decide to define it.
29486
 
    if (defundef == "undef") {
29487
 
      print "/*", prefix defundef, macro, "*/"
29488
 
      next
29489
 
    }
29490
 
  }
29491
 
}
29492
 
{ print }
29493
 
_ACAWK
29494
 
_ACEOF
29495
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29496
 
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
29497
 
fi # test -n "$CONFIG_HEADERS"
29498
 
 
29499
 
 
29500
 
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
29501
 
shift
29502
 
for ac_tag
29503
 
do
29504
 
  case $ac_tag in
29505
 
  :[FHLC]) ac_mode=$ac_tag; continue;;
29506
 
  esac
29507
 
  case $ac_mode$ac_tag in
29508
 
  :[FHL]*:*);;
29509
 
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
29510
 
  :[FH]-) ac_tag=-:-;;
29511
 
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29512
 
  esac
29513
 
  ac_save_IFS=$IFS
29514
 
  IFS=:
29515
 
  set x $ac_tag
29516
 
  IFS=$ac_save_IFS
29517
 
  shift
29518
 
  ac_file=$1
29519
 
  shift
29520
 
 
29521
 
  case $ac_mode in
29522
 
  :L) ac_source=$1;;
29523
 
  :[FH])
29524
 
    ac_file_inputs=
29525
 
    for ac_f
29526
 
    do
29527
 
      case $ac_f in
29528
 
      -) ac_f="$ac_tmp/stdin";;
29529
 
      *) # Look for the file first in the build tree, then in the source tree
29530
 
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
29531
 
         # because $ac_f cannot contain `:'.
29532
 
         test -f "$ac_f" ||
29533
 
           case $ac_f in
29534
 
           [\\/$]*) false;;
29535
 
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29536
 
           esac ||
29537
 
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29538
 
      esac
29539
 
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29540
 
      as_fn_append ac_file_inputs " '$ac_f'"
29541
 
    done
29542
 
 
29543
 
    # Let's still pretend it is `configure' which instantiates (i.e., don't
29544
 
    # use $as_me), people would be surprised to read:
29545
 
    #    /* config.h.  Generated by config.status.  */
29546
 
    configure_input='Generated from '`
29547
 
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29548
 
        `' by configure.'
29549
 
    if test x"$ac_file" != x-; then
29550
 
      configure_input="$ac_file.  $configure_input"
29551
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29552
 
$as_echo "$as_me: creating $ac_file" >&6;}
29553
 
    fi
29554
 
    # Neutralize special characters interpreted by sed in replacement strings.
29555
 
    case $configure_input in #(
29556
 
    *\&* | *\|* | *\\* )
29557
 
       ac_sed_conf_input=`$as_echo "$configure_input" |
29558
 
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
29559
 
    *) ac_sed_conf_input=$configure_input;;
29560
 
    esac
29561
 
 
29562
 
    case $ac_tag in
29563
 
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
29564
 
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
29565
 
    esac
29566
 
    ;;
29567
 
  esac
29568
 
 
29569
 
  ac_dir=`$as_dirname -- "$ac_file" ||
29570
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29571
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
29572
 
         X"$ac_file" : 'X\(//\)$' \| \
29573
 
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29574
 
$as_echo X"$ac_file" |
29575
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29576
 
            s//\1/
29577
 
            q
29578
 
          }
29579
 
          /^X\(\/\/\)[^/].*/{
29580
 
            s//\1/
29581
 
            q
29582
 
          }
29583
 
          /^X\(\/\/\)$/{
29584
 
            s//\1/
29585
 
            q
29586
 
          }
29587
 
          /^X\(\/\).*/{
29588
 
            s//\1/
29589
 
            q
29590
 
          }
29591
 
          s/.*/./; q'`
29592
 
  as_dir="$ac_dir"; as_fn_mkdir_p
29593
 
  ac_builddir=.
29594
 
 
29595
 
case "$ac_dir" in
29596
 
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29597
 
*)
29598
 
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29599
 
  # A ".." for each directory in $ac_dir_suffix.
29600
 
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29601
 
  case $ac_top_builddir_sub in
29602
 
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29603
 
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29604
 
  esac ;;
29605
 
esac
29606
 
ac_abs_top_builddir=$ac_pwd
29607
 
ac_abs_builddir=$ac_pwd$ac_dir_suffix
29608
 
# for backward compatibility:
29609
 
ac_top_builddir=$ac_top_build_prefix
29610
 
 
29611
 
case $srcdir in
29612
 
  .)  # We are building in place.
29613
 
    ac_srcdir=.
29614
 
    ac_top_srcdir=$ac_top_builddir_sub
29615
 
    ac_abs_top_srcdir=$ac_pwd ;;
29616
 
  [\\/]* | ?:[\\/]* )  # Absolute name.
29617
 
    ac_srcdir=$srcdir$ac_dir_suffix;
29618
 
    ac_top_srcdir=$srcdir
29619
 
    ac_abs_top_srcdir=$srcdir ;;
29620
 
  *) # Relative name.
29621
 
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29622
 
    ac_top_srcdir=$ac_top_build_prefix$srcdir
29623
 
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29624
 
esac
29625
 
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29626
 
 
29627
 
 
29628
 
  case $ac_mode in
29629
 
  :F)
29630
 
  #
29631
 
  # CONFIG_FILE
29632
 
  #
29633
 
 
29634
 
  case $INSTALL in
29635
 
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29636
 
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29637
 
  esac
29638
 
  ac_MKDIR_P=$MKDIR_P
29639
 
  case $MKDIR_P in
29640
 
  [\\/$]* | ?:[\\/]* ) ;;
29641
 
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
29642
 
  esac
29643
 
_ACEOF
29644
 
 
29645
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29646
 
# If the template does not know about datarootdir, expand it.
29647
 
# FIXME: This hack should be removed a few years after 2.60.
29648
 
ac_datarootdir_hack=; ac_datarootdir_seen=
29649
 
ac_sed_dataroot='
29650
 
/datarootdir/ {
29651
 
  p
29652
 
  q
29653
 
}
29654
 
/@datadir@/p
29655
 
/@docdir@/p
29656
 
/@infodir@/p
29657
 
/@localedir@/p
29658
 
/@mandir@/p'
29659
 
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29660
 
*datarootdir*) ac_datarootdir_seen=yes;;
29661
 
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29662
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29663
 
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29664
 
_ACEOF
29665
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29666
 
  ac_datarootdir_hack='
29667
 
  s&@datadir@&$datadir&g
29668
 
  s&@docdir@&$docdir&g
29669
 
  s&@infodir@&$infodir&g
29670
 
  s&@localedir@&$localedir&g
29671
 
  s&@mandir@&$mandir&g
29672
 
  s&\\\${datarootdir}&$datarootdir&g' ;;
29673
 
esac
29674
 
_ACEOF
29675
 
 
29676
 
# Neutralize VPATH when `$srcdir' = `.'.
29677
 
# Shell code in configure.ac might set extrasub.
29678
 
# FIXME: do we really want to maintain this feature?
29679
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29680
 
ac_sed_extra="$ac_vpsub
29681
 
$extrasub
29682
 
_ACEOF
29683
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29684
 
:t
29685
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29686
 
s|@configure_input@|$ac_sed_conf_input|;t t
29687
 
s&@top_builddir@&$ac_top_builddir_sub&;t t
29688
 
s&@top_build_prefix@&$ac_top_build_prefix&;t t
29689
 
s&@srcdir@&$ac_srcdir&;t t
29690
 
s&@abs_srcdir@&$ac_abs_srcdir&;t t
29691
 
s&@top_srcdir@&$ac_top_srcdir&;t t
29692
 
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29693
 
s&@builddir@&$ac_builddir&;t t
29694
 
s&@abs_builddir@&$ac_abs_builddir&;t t
29695
 
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29696
 
s&@INSTALL@&$ac_INSTALL&;t t
29697
 
s&@MKDIR_P@&$ac_MKDIR_P&;t t
29698
 
$ac_datarootdir_hack
29699
 
"
29700
 
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
29701
 
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29702
 
 
29703
 
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29704
 
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
29705
 
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
29706
 
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
29707
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29708
 
which seems to be undefined.  Please make sure it is defined" >&5
29709
 
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29710
 
which seems to be undefined.  Please make sure it is defined" >&2;}
29711
 
 
29712
 
  rm -f "$ac_tmp/stdin"
29713
 
  case $ac_file in
29714
 
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
29715
 
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
29716
 
  esac \
29717
 
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29718
 
 ;;
29719
 
  :H)
29720
 
  #
29721
 
  # CONFIG_HEADER
29722
 
  #
29723
 
  if test x"$ac_file" != x-; then
29724
 
    {
29725
 
      $as_echo "/* $configure_input  */" \
29726
 
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
29727
 
    } >"$ac_tmp/config.h" \
29728
 
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29729
 
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
29730
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29731
 
$as_echo "$as_me: $ac_file is unchanged" >&6;}
29732
 
    else
29733
 
      rm -f "$ac_file"
29734
 
      mv "$ac_tmp/config.h" "$ac_file" \
29735
 
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29736
 
    fi
29737
 
  else
29738
 
    $as_echo "/* $configure_input  */" \
29739
 
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
29740
 
      || as_fn_error $? "could not create -" "$LINENO" 5
29741
 
  fi
29742
 
# Compute "$ac_file"'s index in $config_headers.
29743
 
_am_arg="$ac_file"
29744
 
_am_stamp_count=1
29745
 
for _am_header in $config_headers :; do
29746
 
  case $_am_header in
29747
 
    $_am_arg | $_am_arg:* )
29748
 
      break ;;
29749
 
    * )
29750
 
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29751
 
  esac
29752
 
done
29753
 
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
29754
 
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29755
 
         X"$_am_arg" : 'X\(//\)[^/]' \| \
29756
 
         X"$_am_arg" : 'X\(//\)$' \| \
29757
 
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
29758
 
$as_echo X"$_am_arg" |
29759
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29760
 
            s//\1/
29761
 
            q
29762
 
          }
29763
 
          /^X\(\/\/\)[^/].*/{
29764
 
            s//\1/
29765
 
            q
29766
 
          }
29767
 
          /^X\(\/\/\)$/{
29768
 
            s//\1/
29769
 
            q
29770
 
          }
29771
 
          /^X\(\/\).*/{
29772
 
            s//\1/
29773
 
            q
29774
 
          }
29775
 
          s/.*/./; q'`/stamp-h$_am_stamp_count
29776
 
 ;;
29777
 
 
29778
 
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29779
 
$as_echo "$as_me: executing $ac_file commands" >&6;}
29780
 
 ;;
29781
 
  esac
29782
 
 
29783
 
 
29784
 
  case $ac_file$ac_mode in
29785
 
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
29786
 
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
29787
 
  # are listed without --file.  Let's play safe and only enable the eval
29788
 
  # if we detect the quoting.
29789
 
  case $CONFIG_FILES in
29790
 
  *\'*) eval set x "$CONFIG_FILES" ;;
29791
 
  *)   set x $CONFIG_FILES ;;
29792
 
  esac
29793
 
  shift
29794
 
  for mf
29795
 
  do
29796
 
    # Strip MF so we end up with the name of the file.
29797
 
    mf=`echo "$mf" | sed -e 's/:.*$//'`
29798
 
    # Check whether this is an Automake generated Makefile or not.
29799
 
    # We used to match only the files named `Makefile.in', but
29800
 
    # some people rename them; so instead we look at the file content.
29801
 
    # Grep'ing the first line is not enough: some people post-process
29802
 
    # each Makefile.in and add a new line on top of each file to say so.
29803
 
    # Grep'ing the whole file is not good either: AIX grep has a line
29804
 
    # limit of 2048, but all sed's we know have understand at least 4000.
29805
 
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
29806
 
      dirpart=`$as_dirname -- "$mf" ||
29807
 
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29808
 
         X"$mf" : 'X\(//\)[^/]' \| \
29809
 
         X"$mf" : 'X\(//\)$' \| \
29810
 
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
29811
 
$as_echo X"$mf" |
29812
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29813
 
            s//\1/
29814
 
            q
29815
 
          }
29816
 
          /^X\(\/\/\)[^/].*/{
29817
 
            s//\1/
29818
 
            q
29819
 
          }
29820
 
          /^X\(\/\/\)$/{
29821
 
            s//\1/
29822
 
            q
29823
 
          }
29824
 
          /^X\(\/\).*/{
29825
 
            s//\1/
29826
 
            q
29827
 
          }
29828
 
          s/.*/./; q'`
29829
 
    else
29830
 
      continue
29831
 
    fi
29832
 
    # Extract the definition of DEPDIR, am__include, and am__quote
29833
 
    # from the Makefile without running `make'.
29834
 
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29835
 
    test -z "$DEPDIR" && continue
29836
 
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
29837
 
    test -z "am__include" && continue
29838
 
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
29839
 
    # When using ansi2knr, U may be empty or an underscore; expand it
29840
 
    U=`sed -n 's/^U = //p' < "$mf"`
29841
 
    # Find all dependency output files, they are included files with
29842
 
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
29843
 
    # simplest approach to changing $(DEPDIR) to its actual value in the
29844
 
    # expansion.
29845
 
    for file in `sed -n "
29846
 
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29847
 
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29848
 
      # Make sure the directory exists.
29849
 
      test -f "$dirpart/$file" && continue
29850
 
      fdir=`$as_dirname -- "$file" ||
29851
 
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29852
 
         X"$file" : 'X\(//\)[^/]' \| \
29853
 
         X"$file" : 'X\(//\)$' \| \
29854
 
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
29855
 
$as_echo X"$file" |
29856
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29857
 
            s//\1/
29858
 
            q
29859
 
          }
29860
 
          /^X\(\/\/\)[^/].*/{
29861
 
            s//\1/
29862
 
            q
29863
 
          }
29864
 
          /^X\(\/\/\)$/{
29865
 
            s//\1/
29866
 
            q
29867
 
          }
29868
 
          /^X\(\/\).*/{
29869
 
            s//\1/
29870
 
            q
29871
 
          }
29872
 
          s/.*/./; q'`
29873
 
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
29874
 
      # echo "creating $dirpart/$file"
29875
 
      echo '# dummy' > "$dirpart/$file"
29876
 
    done
29877
 
  done
29878
 
}
29879
 
 ;;
29880
 
    "libtool":C)
29881
 
 
29882
 
    # See if we are running on zsh, and set the options which allow our
29883
 
    # commands through without removal of \ escapes.
29884
 
    if test -n "${ZSH_VERSION+set}" ; then
29885
 
      setopt NO_GLOB_SUBST
29886
 
    fi
29887
 
 
29888
 
    cfgfile="${ofile}T"
29889
 
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
29890
 
    $RM "$cfgfile"
29891
 
 
29892
 
    cat <<_LT_EOF >> "$cfgfile"
29893
 
#! $SHELL
29894
 
 
29895
 
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
29896
 
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
29897
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
29898
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
29899
 
#
29900
 
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
29901
 
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
29902
 
#                 Foundation, Inc.
29903
 
#   Written by Gordon Matzigkeit, 1996
29904
 
#
29905
 
#   This file is part of GNU Libtool.
29906
 
#
29907
 
# GNU Libtool is free software; you can redistribute it and/or
29908
 
# modify it under the terms of the GNU General Public License as
29909
 
# published by the Free Software Foundation; either version 2 of
29910
 
# the License, or (at your option) any later version.
29911
 
#
29912
 
# As a special exception to the GNU General Public License,
29913
 
# if you distribute this file as part of a program or library that
29914
 
# is built using GNU Libtool, you may include this file under the
29915
 
# same distribution terms that you use for the rest of that program.
29916
 
#
29917
 
# GNU Libtool is distributed in the hope that it will be useful,
29918
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
29919
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
29920
 
# GNU General Public License for more details.
29921
 
#
29922
 
# You should have received a copy of the GNU General Public License
29923
 
# along with GNU Libtool; see the file COPYING.  If not, a copy
29924
 
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
29925
 
# obtained by writing to the Free Software Foundation, Inc.,
29926
 
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
29927
 
 
29928
 
 
29929
 
# The names of the tagged configurations supported by this script.
29930
 
available_tags="CXX F77 "
29931
 
 
29932
 
# ### BEGIN LIBTOOL CONFIG
29933
 
 
29934
 
# Which release of libtool.m4 was used?
29935
 
macro_version=$macro_version
29936
 
macro_revision=$macro_revision
29937
 
 
29938
 
# Whether or not to build shared libraries.
29939
 
build_libtool_libs=$enable_shared
29940
 
 
29941
 
# Whether or not to build static libraries.
29942
 
build_old_libs=$enable_static
29943
 
 
29944
 
# What type of objects to build.
29945
 
pic_mode=$pic_mode
29946
 
 
29947
 
# Whether or not to optimize for fast installation.
29948
 
fast_install=$enable_fast_install
29949
 
 
29950
 
# Shell to use when invoking shell scripts.
29951
 
SHELL=$lt_SHELL
29952
 
 
29953
 
# An echo program that protects backslashes.
29954
 
ECHO=$lt_ECHO
29955
 
 
29956
 
# The PATH separator for the build system.
29957
 
PATH_SEPARATOR=$lt_PATH_SEPARATOR
29958
 
 
29959
 
# The host system.
29960
 
host_alias=$host_alias
29961
 
host=$host
29962
 
host_os=$host_os
29963
 
 
29964
 
# The build system.
29965
 
build_alias=$build_alias
29966
 
build=$build
29967
 
build_os=$build_os
29968
 
 
29969
 
# A sed program that does not truncate output.
29970
 
SED=$lt_SED
29971
 
 
29972
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
29973
 
Xsed="\$SED -e 1s/^X//"
29974
 
 
29975
 
# A grep program that handles long lines.
29976
 
GREP=$lt_GREP
29977
 
 
29978
 
# An ERE matcher.
29979
 
EGREP=$lt_EGREP
29980
 
 
29981
 
# A literal string matcher.
29982
 
FGREP=$lt_FGREP
29983
 
 
29984
 
# A BSD- or MS-compatible name lister.
29985
 
NM=$lt_NM
29986
 
 
29987
 
# Whether we need soft or hard links.
29988
 
LN_S=$lt_LN_S
29989
 
 
29990
 
# What is the maximum length of a command?
29991
 
max_cmd_len=$max_cmd_len
29992
 
 
29993
 
# Object file suffix (normally "o").
29994
 
objext=$ac_objext
29995
 
 
29996
 
# Executable file suffix (normally "").
29997
 
exeext=$exeext
29998
 
 
29999
 
# whether the shell understands "unset".
30000
 
lt_unset=$lt_unset
30001
 
 
30002
 
# turn spaces into newlines.
30003
 
SP2NL=$lt_lt_SP2NL
30004
 
 
30005
 
# turn newlines into spaces.
30006
 
NL2SP=$lt_lt_NL2SP
30007
 
 
30008
 
# convert \$build file names to \$host format.
30009
 
to_host_file_cmd=$lt_cv_to_host_file_cmd
30010
 
 
30011
 
# convert \$build files to toolchain format.
30012
 
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
30013
 
 
30014
 
# An object symbol dumper.
30015
 
OBJDUMP=$lt_OBJDUMP
30016
 
 
30017
 
# Method to check whether dependent libraries are shared objects.
30018
 
deplibs_check_method=$lt_deplibs_check_method
30019
 
 
30020
 
# Command to use when deplibs_check_method = "file_magic".
30021
 
file_magic_cmd=$lt_file_magic_cmd
30022
 
 
30023
 
# How to find potential files when deplibs_check_method = "file_magic".
30024
 
file_magic_glob=$lt_file_magic_glob
30025
 
 
30026
 
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
30027
 
want_nocaseglob=$lt_want_nocaseglob
30028
 
 
30029
 
# DLL creation program.
30030
 
DLLTOOL=$lt_DLLTOOL
30031
 
 
30032
 
# Command to associate shared and link libraries.
30033
 
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
30034
 
 
30035
 
# The archiver.
30036
 
AR=$lt_AR
30037
 
 
30038
 
# Flags to create an archive.
30039
 
AR_FLAGS=$lt_AR_FLAGS
30040
 
 
30041
 
# How to feed a file listing to the archiver.
30042
 
archiver_list_spec=$lt_archiver_list_spec
30043
 
 
30044
 
# A symbol stripping program.
30045
 
STRIP=$lt_STRIP
30046
 
 
30047
 
# Commands used to install an old-style archive.
30048
 
RANLIB=$lt_RANLIB
30049
 
old_postinstall_cmds=$lt_old_postinstall_cmds
30050
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
30051
 
 
30052
 
# Whether to use a lock for old archive extraction.
30053
 
lock_old_archive_extraction=$lock_old_archive_extraction
30054
 
 
30055
 
# A C compiler.
30056
 
LTCC=$lt_CC
30057
 
 
30058
 
# LTCC compiler flags.
30059
 
LTCFLAGS=$lt_CFLAGS
30060
 
 
30061
 
# Take the output of nm and produce a listing of raw symbols and C names.
30062
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30063
 
 
30064
 
# Transform the output of nm in a proper C declaration.
30065
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30066
 
 
30067
 
# Transform the output of nm in a C name address pair.
30068
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30069
 
 
30070
 
# Transform the output of nm in a C name address pair when lib prefix is needed.
30071
 
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
30072
 
 
30073
 
# Specify filename containing input files for \$NM.
30074
 
nm_file_list_spec=$lt_nm_file_list_spec
30075
 
 
30076
 
# The root where to search for dependent libraries,and in which our libraries should be installed.
30077
 
lt_sysroot=$lt_sysroot
30078
 
 
30079
 
# The name of the directory that contains temporary libtool files.
30080
 
objdir=$objdir
30081
 
 
30082
 
# Used to examine libraries when file_magic_cmd begins with "file".
30083
 
MAGIC_CMD=$MAGIC_CMD
30084
 
 
30085
 
# Must we lock files when doing compilation?
30086
 
need_locks=$lt_need_locks
30087
 
 
30088
 
# Manifest tool.
30089
 
MANIFEST_TOOL=$lt_MANIFEST_TOOL
30090
 
 
30091
 
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
30092
 
DSYMUTIL=$lt_DSYMUTIL
30093
 
 
30094
 
# Tool to change global to local symbols on Mac OS X.
30095
 
NMEDIT=$lt_NMEDIT
30096
 
 
30097
 
# Tool to manipulate fat objects and archives on Mac OS X.
30098
 
LIPO=$lt_LIPO
30099
 
 
30100
 
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
30101
 
OTOOL=$lt_OTOOL
30102
 
 
30103
 
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
30104
 
OTOOL64=$lt_OTOOL64
30105
 
 
30106
 
# Old archive suffix (normally "a").
30107
 
libext=$libext
30108
 
 
30109
 
# Shared library suffix (normally ".so").
30110
 
shrext_cmds=$lt_shrext_cmds
30111
 
 
30112
 
# The commands to extract the exported symbol list from a shared archive.
30113
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
30114
 
 
30115
 
# Variables whose values should be saved in libtool wrapper scripts and
30116
 
# restored at link time.
30117
 
variables_saved_for_relink=$lt_variables_saved_for_relink
30118
 
 
30119
 
# Do we need the "lib" prefix for modules?
30120
 
need_lib_prefix=$need_lib_prefix
30121
 
 
30122
 
# Do we need a version for libraries?
30123
 
need_version=$need_version
30124
 
 
30125
 
# Library versioning type.
30126
 
version_type=$version_type
30127
 
 
30128
 
# Shared library runtime path variable.
30129
 
runpath_var=$runpath_var
30130
 
 
30131
 
# Shared library path variable.
30132
 
shlibpath_var=$shlibpath_var
30133
 
 
30134
 
# Is shlibpath searched before the hard-coded library search path?
30135
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30136
 
 
30137
 
# Format of library name prefix.
30138
 
libname_spec=$lt_libname_spec
30139
 
 
30140
 
# List of archive names.  First name is the real one, the rest are links.
30141
 
# The last name is the one that the linker finds with -lNAME
30142
 
library_names_spec=$lt_library_names_spec
30143
 
 
30144
 
# The coded name of the library, if different from the real name.
30145
 
soname_spec=$lt_soname_spec
30146
 
 
30147
 
# Permission mode override for installation of shared libraries.
30148
 
install_override_mode=$lt_install_override_mode
30149
 
 
30150
 
# Command to use after installation of a shared archive.
30151
 
postinstall_cmds=$lt_postinstall_cmds
30152
 
 
30153
 
# Command to use after uninstallation of a shared archive.
30154
 
postuninstall_cmds=$lt_postuninstall_cmds
30155
 
 
30156
 
# Commands used to finish a libtool library installation in a directory.
30157
 
finish_cmds=$lt_finish_cmds
30158
 
 
30159
 
# As "finish_cmds", except a single script fragment to be evaled but
30160
 
# not shown.
30161
 
finish_eval=$lt_finish_eval
30162
 
 
30163
 
# Whether we should hardcode library paths into libraries.
30164
 
hardcode_into_libs=$hardcode_into_libs
30165
 
 
30166
 
# Compile-time system search path for libraries.
30167
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30168
 
 
30169
 
# Run-time system search path for libraries.
30170
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
30171
 
 
30172
 
# Whether dlopen is supported.
30173
 
dlopen_support=$enable_dlopen
30174
 
 
30175
 
# Whether dlopen of programs is supported.
30176
 
dlopen_self=$enable_dlopen_self
30177
 
 
30178
 
# Whether dlopen of statically linked programs is supported.
30179
 
dlopen_self_static=$enable_dlopen_self_static
30180
 
 
30181
 
# Commands to strip libraries.
30182
 
old_striplib=$lt_old_striplib
30183
 
striplib=$lt_striplib
30184
 
 
30185
 
 
30186
 
# The linker used to build libraries.
30187
 
LD=$lt_LD
30188
 
 
30189
 
# How to create reloadable object files.
30190
 
reload_flag=$lt_reload_flag
30191
 
reload_cmds=$lt_reload_cmds
30192
 
 
30193
 
# Commands used to build an old-style archive.
30194
 
old_archive_cmds=$lt_old_archive_cmds
30195
 
 
30196
 
# A language specific compiler.
30197
 
CC=$lt_compiler
30198
 
 
30199
 
# Is the compiler the GNU compiler?
30200
 
with_gcc=$GCC
30201
 
 
30202
 
# Compiler flag to turn off builtin functions.
30203
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
30204
 
 
30205
 
# Additional compiler flags for building library objects.
30206
 
pic_flag=$lt_lt_prog_compiler_pic
30207
 
 
30208
 
# How to pass a linker flag through the compiler.
30209
 
wl=$lt_lt_prog_compiler_wl
30210
 
 
30211
 
# Compiler flag to prevent dynamic linking.
30212
 
link_static_flag=$lt_lt_prog_compiler_static
30213
 
 
30214
 
# Does compiler simultaneously support -c and -o options?
30215
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
30216
 
 
30217
 
# Whether or not to add -lc for building shared libraries.
30218
 
build_libtool_need_lc=$archive_cmds_need_lc
30219
 
 
30220
 
# Whether or not to disallow shared libs when runtime libs are static.
30221
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
30222
 
 
30223
 
# Compiler flag to allow reflexive dlopens.
30224
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
30225
 
 
30226
 
# Compiler flag to generate shared objects directly from archives.
30227
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec
30228
 
 
30229
 
# Whether the compiler copes with passing no objects directly.
30230
 
compiler_needs_object=$lt_compiler_needs_object
30231
 
 
30232
 
# Create an old-style archive from a shared archive.
30233
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
30234
 
 
30235
 
# Create a temporary old-style archive to link instead of a shared archive.
30236
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
30237
 
 
30238
 
# Commands used to build a shared archive.
30239
 
archive_cmds=$lt_archive_cmds
30240
 
archive_expsym_cmds=$lt_archive_expsym_cmds
30241
 
 
30242
 
# Commands used to build a loadable module if different from building
30243
 
# a shared archive.
30244
 
module_cmds=$lt_module_cmds
30245
 
module_expsym_cmds=$lt_module_expsym_cmds
30246
 
 
30247
 
# Whether we are building with GNU ld or not.
30248
 
with_gnu_ld=$lt_with_gnu_ld
30249
 
 
30250
 
# Flag that allows shared libraries with undefined symbols to be built.
30251
 
allow_undefined_flag=$lt_allow_undefined_flag
30252
 
 
30253
 
# Flag that enforces no undefined symbols.
30254
 
no_undefined_flag=$lt_no_undefined_flag
30255
 
 
30256
 
# Flag to hardcode \$libdir into a binary during linking.
30257
 
# This must work even if \$libdir does not exist
30258
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
30259
 
 
30260
 
# Whether we need a single "-rpath" flag with a separated argument.
30261
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator
30262
 
 
30263
 
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30264
 
# DIR into the resulting binary.
30265
 
hardcode_direct=$hardcode_direct
30266
 
 
30267
 
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30268
 
# DIR into the resulting binary and the resulting library dependency is
30269
 
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30270
 
# library is relocated.
30271
 
hardcode_direct_absolute=$hardcode_direct_absolute
30272
 
 
30273
 
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30274
 
# into the resulting binary.
30275
 
hardcode_minus_L=$hardcode_minus_L
30276
 
 
30277
 
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30278
 
# into the resulting binary.
30279
 
hardcode_shlibpath_var=$hardcode_shlibpath_var
30280
 
 
30281
 
# Set to "yes" if building a shared library automatically hardcodes DIR
30282
 
# into the library and all subsequent libraries and executables linked
30283
 
# against it.
30284
 
hardcode_automatic=$hardcode_automatic
30285
 
 
30286
 
# Set to yes if linker adds runtime paths of dependent libraries
30287
 
# to runtime path list.
30288
 
inherit_rpath=$inherit_rpath
30289
 
 
30290
 
# Whether libtool must link a program against all its dependency libraries.
30291
 
link_all_deplibs=$link_all_deplibs
30292
 
 
30293
 
# Set to "yes" if exported symbols are required.
30294
 
always_export_symbols=$always_export_symbols
30295
 
 
30296
 
# The commands to list exported symbols.
30297
 
export_symbols_cmds=$lt_export_symbols_cmds
30298
 
 
30299
 
# Symbols that should not be listed in the preloaded symbols.
30300
 
exclude_expsyms=$lt_exclude_expsyms
30301
 
 
30302
 
# Symbols that must always be exported.
30303
 
include_expsyms=$lt_include_expsyms
30304
 
 
30305
 
# Commands necessary for linking programs (against libraries) with templates.
30306
 
prelink_cmds=$lt_prelink_cmds
30307
 
 
30308
 
# Commands necessary for finishing linking programs.
30309
 
postlink_cmds=$lt_postlink_cmds
30310
 
 
30311
 
# Specify filename containing input files.
30312
 
file_list_spec=$lt_file_list_spec
30313
 
 
30314
 
# How to hardcode a shared library path into an executable.
30315
 
hardcode_action=$hardcode_action
30316
 
 
30317
 
# The directories searched by this compiler when creating a shared library.
30318
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
30319
 
 
30320
 
# Dependencies to place before and after the objects being linked to
30321
 
# create a shared library.
30322
 
predep_objects=$lt_predep_objects
30323
 
postdep_objects=$lt_postdep_objects
30324
 
predeps=$lt_predeps
30325
 
postdeps=$lt_postdeps
30326
 
 
30327
 
# The library search path used internally by the compiler when linking
30328
 
# a shared library.
30329
 
compiler_lib_search_path=$lt_compiler_lib_search_path
30330
 
 
30331
 
# ### END LIBTOOL CONFIG
30332
 
 
30333
 
_LT_EOF
30334
 
 
30335
 
  case $host_os in
30336
 
  aix3*)
30337
 
    cat <<\_LT_EOF >> "$cfgfile"
30338
 
# AIX sometimes has problems with the GCC collect2 program.  For some
30339
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
30340
 
# vanish in a puff of smoke.
30341
 
if test "X${COLLECT_NAMES+set}" != Xset; then
30342
 
  COLLECT_NAMES=
30343
 
  export COLLECT_NAMES
30344
 
fi
30345
 
_LT_EOF
30346
 
    ;;
30347
 
  esac
30348
 
 
30349
 
 
30350
 
ltmain="$ac_aux_dir/ltmain.sh"
30351
 
 
30352
 
 
30353
 
  # We use sed instead of cat because bash on DJGPP gets confused if
30354
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
30355
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
30356
 
  # is reportedly fixed, but why not run on old versions too?
30357
 
  sed '$q' "$ltmain" >> "$cfgfile" \
30358
 
     || (rm -f "$cfgfile"; exit 1)
30359
 
 
30360
 
  if test x"$xsi_shell" = xyes; then
30361
 
  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
30362
 
func_dirname ()\
30363
 
{\
30364
 
\    case ${1} in\
30365
 
\      */*) func_dirname_result="${1%/*}${2}" ;;\
30366
 
\      *  ) func_dirname_result="${3}" ;;\
30367
 
\    esac\
30368
 
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
30369
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
30370
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30371
 
test 0 -eq $? || _lt_function_replace_fail=:
30372
 
 
30373
 
 
30374
 
  sed -e '/^func_basename ()$/,/^} # func_basename /c\
30375
 
func_basename ()\
30376
 
{\
30377
 
\    func_basename_result="${1##*/}"\
30378
 
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
30379
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
30380
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30381
 
test 0 -eq $? || _lt_function_replace_fail=:
30382
 
 
30383
 
 
30384
 
  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
30385
 
func_dirname_and_basename ()\
30386
 
{\
30387
 
\    case ${1} in\
30388
 
\      */*) func_dirname_result="${1%/*}${2}" ;;\
30389
 
\      *  ) func_dirname_result="${3}" ;;\
30390
 
\    esac\
30391
 
\    func_basename_result="${1##*/}"\
30392
 
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
30393
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
30394
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30395
 
test 0 -eq $? || _lt_function_replace_fail=:
30396
 
 
30397
 
 
30398
 
  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
30399
 
func_stripname ()\
30400
 
{\
30401
 
\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
30402
 
\    # positional parameters, so assign one to ordinary parameter first.\
30403
 
\    func_stripname_result=${3}\
30404
 
\    func_stripname_result=${func_stripname_result#"${1}"}\
30405
 
\    func_stripname_result=${func_stripname_result%"${2}"}\
30406
 
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
30407
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
30408
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30409
 
test 0 -eq $? || _lt_function_replace_fail=:
30410
 
 
30411
 
 
30412
 
  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
30413
 
func_split_long_opt ()\
30414
 
{\
30415
 
\    func_split_long_opt_name=${1%%=*}\
30416
 
\    func_split_long_opt_arg=${1#*=}\
30417
 
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
30418
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
30419
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30420
 
test 0 -eq $? || _lt_function_replace_fail=:
30421
 
 
30422
 
 
30423
 
  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
30424
 
func_split_short_opt ()\
30425
 
{\
30426
 
\    func_split_short_opt_arg=${1#??}\
30427
 
\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
30428
 
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
30429
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
30430
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30431
 
test 0 -eq $? || _lt_function_replace_fail=:
30432
 
 
30433
 
 
30434
 
  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
30435
 
func_lo2o ()\
30436
 
{\
30437
 
\    case ${1} in\
30438
 
\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
30439
 
\      *)    func_lo2o_result=${1} ;;\
30440
 
\    esac\
30441
 
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
30442
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
30443
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30444
 
test 0 -eq $? || _lt_function_replace_fail=:
30445
 
 
30446
 
 
30447
 
  sed -e '/^func_xform ()$/,/^} # func_xform /c\
30448
 
func_xform ()\
30449
 
{\
30450
 
    func_xform_result=${1%.*}.lo\
30451
 
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
30452
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
30453
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30454
 
test 0 -eq $? || _lt_function_replace_fail=:
30455
 
 
30456
 
 
30457
 
  sed -e '/^func_arith ()$/,/^} # func_arith /c\
30458
 
func_arith ()\
30459
 
{\
30460
 
    func_arith_result=$(( $* ))\
30461
 
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
30462
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
30463
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30464
 
test 0 -eq $? || _lt_function_replace_fail=:
30465
 
 
30466
 
 
30467
 
  sed -e '/^func_len ()$/,/^} # func_len /c\
30468
 
func_len ()\
30469
 
{\
30470
 
    func_len_result=${#1}\
30471
 
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
30472
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
30473
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30474
 
test 0 -eq $? || _lt_function_replace_fail=:
30475
 
 
30476
 
fi
30477
 
 
30478
 
if test x"$lt_shell_append" = xyes; then
30479
 
  sed -e '/^func_append ()$/,/^} # func_append /c\
30480
 
func_append ()\
30481
 
{\
30482
 
    eval "${1}+=\\${2}"\
30483
 
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
30484
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
30485
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30486
 
test 0 -eq $? || _lt_function_replace_fail=:
30487
 
 
30488
 
 
30489
 
  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
30490
 
func_append_quoted ()\
30491
 
{\
30492
 
\    func_quote_for_eval "${2}"\
30493
 
\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
30494
 
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
30495
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
30496
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30497
 
test 0 -eq $? || _lt_function_replace_fail=:
30498
 
 
30499
 
 
30500
 
  # Save a `func_append' function call where possible by direct use of '+='
30501
 
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
30502
 
    && mv -f "$cfgfile.tmp" "$cfgfile" \
30503
 
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30504
 
  test 0 -eq $? || _lt_function_replace_fail=:
30505
 
else
30506
 
  # Save a `func_append' function call even when '+=' is not available
30507
 
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
30508
 
    && mv -f "$cfgfile.tmp" "$cfgfile" \
30509
 
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30510
 
  test 0 -eq $? || _lt_function_replace_fail=:
30511
 
fi
30512
 
 
30513
 
if test x"$_lt_function_replace_fail" = x":"; then
30514
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
30515
 
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
30516
 
fi
30517
 
 
30518
 
 
30519
 
   mv -f "$cfgfile" "$ofile" ||
30520
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
30521
 
  chmod +x "$ofile"
30522
 
 
30523
 
 
30524
 
    cat <<_LT_EOF >> "$ofile"
30525
 
 
30526
 
# ### BEGIN LIBTOOL TAG CONFIG: CXX
30527
 
 
30528
 
# The linker used to build libraries.
30529
 
LD=$lt_LD_CXX
30530
 
 
30531
 
# How to create reloadable object files.
30532
 
reload_flag=$lt_reload_flag_CXX
30533
 
reload_cmds=$lt_reload_cmds_CXX
30534
 
 
30535
 
# Commands used to build an old-style archive.
30536
 
old_archive_cmds=$lt_old_archive_cmds_CXX
30537
 
 
30538
 
# A language specific compiler.
30539
 
CC=$lt_compiler_CXX
30540
 
 
30541
 
# Is the compiler the GNU compiler?
30542
 
with_gcc=$GCC_CXX
30543
 
 
30544
 
# Compiler flag to turn off builtin functions.
30545
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
30546
 
 
30547
 
# Additional compiler flags for building library objects.
30548
 
pic_flag=$lt_lt_prog_compiler_pic_CXX
30549
 
 
30550
 
# How to pass a linker flag through the compiler.
30551
 
wl=$lt_lt_prog_compiler_wl_CXX
30552
 
 
30553
 
# Compiler flag to prevent dynamic linking.
30554
 
link_static_flag=$lt_lt_prog_compiler_static_CXX
30555
 
 
30556
 
# Does compiler simultaneously support -c and -o options?
30557
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
30558
 
 
30559
 
# Whether or not to add -lc for building shared libraries.
30560
 
build_libtool_need_lc=$archive_cmds_need_lc_CXX
30561
 
 
30562
 
# Whether or not to disallow shared libs when runtime libs are static.
30563
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
30564
 
 
30565
 
# Compiler flag to allow reflexive dlopens.
30566
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
30567
 
 
30568
 
# Compiler flag to generate shared objects directly from archives.
30569
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
30570
 
 
30571
 
# Whether the compiler copes with passing no objects directly.
30572
 
compiler_needs_object=$lt_compiler_needs_object_CXX
30573
 
 
30574
 
# Create an old-style archive from a shared archive.
30575
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
30576
 
 
30577
 
# Create a temporary old-style archive to link instead of a shared archive.
30578
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
30579
 
 
30580
 
# Commands used to build a shared archive.
30581
 
archive_cmds=$lt_archive_cmds_CXX
30582
 
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
30583
 
 
30584
 
# Commands used to build a loadable module if different from building
30585
 
# a shared archive.
30586
 
module_cmds=$lt_module_cmds_CXX
30587
 
module_expsym_cmds=$lt_module_expsym_cmds_CXX
30588
 
 
30589
 
# Whether we are building with GNU ld or not.
30590
 
with_gnu_ld=$lt_with_gnu_ld_CXX
30591
 
 
30592
 
# Flag that allows shared libraries with undefined symbols to be built.
30593
 
allow_undefined_flag=$lt_allow_undefined_flag_CXX
30594
 
 
30595
 
# Flag that enforces no undefined symbols.
30596
 
no_undefined_flag=$lt_no_undefined_flag_CXX
30597
 
 
30598
 
# Flag to hardcode \$libdir into a binary during linking.
30599
 
# This must work even if \$libdir does not exist
30600
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
30601
 
 
30602
 
# Whether we need a single "-rpath" flag with a separated argument.
30603
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
30604
 
 
30605
 
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30606
 
# DIR into the resulting binary.
30607
 
hardcode_direct=$hardcode_direct_CXX
30608
 
 
30609
 
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30610
 
# DIR into the resulting binary and the resulting library dependency is
30611
 
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30612
 
# library is relocated.
30613
 
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
30614
 
 
30615
 
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30616
 
# into the resulting binary.
30617
 
hardcode_minus_L=$hardcode_minus_L_CXX
30618
 
 
30619
 
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30620
 
# into the resulting binary.
30621
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
30622
 
 
30623
 
# Set to "yes" if building a shared library automatically hardcodes DIR
30624
 
# into the library and all subsequent libraries and executables linked
30625
 
# against it.
30626
 
hardcode_automatic=$hardcode_automatic_CXX
30627
 
 
30628
 
# Set to yes if linker adds runtime paths of dependent libraries
30629
 
# to runtime path list.
30630
 
inherit_rpath=$inherit_rpath_CXX
30631
 
 
30632
 
# Whether libtool must link a program against all its dependency libraries.
30633
 
link_all_deplibs=$link_all_deplibs_CXX
30634
 
 
30635
 
# Set to "yes" if exported symbols are required.
30636
 
always_export_symbols=$always_export_symbols_CXX
30637
 
 
30638
 
# The commands to list exported symbols.
30639
 
export_symbols_cmds=$lt_export_symbols_cmds_CXX
30640
 
 
30641
 
# Symbols that should not be listed in the preloaded symbols.
30642
 
exclude_expsyms=$lt_exclude_expsyms_CXX
30643
 
 
30644
 
# Symbols that must always be exported.
30645
 
include_expsyms=$lt_include_expsyms_CXX
30646
 
 
30647
 
# Commands necessary for linking programs (against libraries) with templates.
30648
 
prelink_cmds=$lt_prelink_cmds_CXX
30649
 
 
30650
 
# Commands necessary for finishing linking programs.
30651
 
postlink_cmds=$lt_postlink_cmds_CXX
30652
 
 
30653
 
# Specify filename containing input files.
30654
 
file_list_spec=$lt_file_list_spec_CXX
30655
 
 
30656
 
# How to hardcode a shared library path into an executable.
30657
 
hardcode_action=$hardcode_action_CXX
30658
 
 
30659
 
# The directories searched by this compiler when creating a shared library.
30660
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
30661
 
 
30662
 
# Dependencies to place before and after the objects being linked to
30663
 
# create a shared library.
30664
 
predep_objects=$lt_predep_objects_CXX
30665
 
postdep_objects=$lt_postdep_objects_CXX
30666
 
predeps=$lt_predeps_CXX
30667
 
postdeps=$lt_postdeps_CXX
30668
 
 
30669
 
# The library search path used internally by the compiler when linking
30670
 
# a shared library.
30671
 
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
30672
 
 
30673
 
# ### END LIBTOOL TAG CONFIG: CXX
30674
 
_LT_EOF
30675
 
 
30676
 
 
30677
 
    cat <<_LT_EOF >> "$ofile"
30678
 
 
30679
 
# ### BEGIN LIBTOOL TAG CONFIG: F77
30680
 
 
30681
 
# The linker used to build libraries.
30682
 
LD=$lt_LD_F77
30683
 
 
30684
 
# How to create reloadable object files.
30685
 
reload_flag=$lt_reload_flag_F77
30686
 
reload_cmds=$lt_reload_cmds_F77
30687
 
 
30688
 
# Commands used to build an old-style archive.
30689
 
old_archive_cmds=$lt_old_archive_cmds_F77
30690
 
 
30691
 
# A language specific compiler.
30692
 
CC=$lt_compiler_F77
30693
 
 
30694
 
# Is the compiler the GNU compiler?
30695
 
with_gcc=$GCC_F77
30696
 
 
30697
 
# Compiler flag to turn off builtin functions.
30698
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
30699
 
 
30700
 
# Additional compiler flags for building library objects.
30701
 
pic_flag=$lt_lt_prog_compiler_pic_F77
30702
 
 
30703
 
# How to pass a linker flag through the compiler.
30704
 
wl=$lt_lt_prog_compiler_wl_F77
30705
 
 
30706
 
# Compiler flag to prevent dynamic linking.
30707
 
link_static_flag=$lt_lt_prog_compiler_static_F77
30708
 
 
30709
 
# Does compiler simultaneously support -c and -o options?
30710
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
30711
 
 
30712
 
# Whether or not to add -lc for building shared libraries.
30713
 
build_libtool_need_lc=$archive_cmds_need_lc_F77
30714
 
 
30715
 
# Whether or not to disallow shared libs when runtime libs are static.
30716
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
30717
 
 
30718
 
# Compiler flag to allow reflexive dlopens.
30719
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
30720
 
 
30721
 
# Compiler flag to generate shared objects directly from archives.
30722
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
30723
 
 
30724
 
# Whether the compiler copes with passing no objects directly.
30725
 
compiler_needs_object=$lt_compiler_needs_object_F77
30726
 
 
30727
 
# Create an old-style archive from a shared archive.
30728
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
30729
 
 
30730
 
# Create a temporary old-style archive to link instead of a shared archive.
30731
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
30732
 
 
30733
 
# Commands used to build a shared archive.
30734
 
archive_cmds=$lt_archive_cmds_F77
30735
 
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
30736
 
 
30737
 
# Commands used to build a loadable module if different from building
30738
 
# a shared archive.
30739
 
module_cmds=$lt_module_cmds_F77
30740
 
module_expsym_cmds=$lt_module_expsym_cmds_F77
30741
 
 
30742
 
# Whether we are building with GNU ld or not.
30743
 
with_gnu_ld=$lt_with_gnu_ld_F77
30744
 
 
30745
 
# Flag that allows shared libraries with undefined symbols to be built.
30746
 
allow_undefined_flag=$lt_allow_undefined_flag_F77
30747
 
 
30748
 
# Flag that enforces no undefined symbols.
30749
 
no_undefined_flag=$lt_no_undefined_flag_F77
30750
 
 
30751
 
# Flag to hardcode \$libdir into a binary during linking.
30752
 
# This must work even if \$libdir does not exist
30753
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
30754
 
 
30755
 
# Whether we need a single "-rpath" flag with a separated argument.
30756
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
30757
 
 
30758
 
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30759
 
# DIR into the resulting binary.
30760
 
hardcode_direct=$hardcode_direct_F77
30761
 
 
30762
 
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30763
 
# DIR into the resulting binary and the resulting library dependency is
30764
 
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30765
 
# library is relocated.
30766
 
hardcode_direct_absolute=$hardcode_direct_absolute_F77
30767
 
 
30768
 
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30769
 
# into the resulting binary.
30770
 
hardcode_minus_L=$hardcode_minus_L_F77
30771
 
 
30772
 
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30773
 
# into the resulting binary.
30774
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
30775
 
 
30776
 
# Set to "yes" if building a shared library automatically hardcodes DIR
30777
 
# into the library and all subsequent libraries and executables linked
30778
 
# against it.
30779
 
hardcode_automatic=$hardcode_automatic_F77
30780
 
 
30781
 
# Set to yes if linker adds runtime paths of dependent libraries
30782
 
# to runtime path list.
30783
 
inherit_rpath=$inherit_rpath_F77
30784
 
 
30785
 
# Whether libtool must link a program against all its dependency libraries.
30786
 
link_all_deplibs=$link_all_deplibs_F77
30787
 
 
30788
 
# Set to "yes" if exported symbols are required.
30789
 
always_export_symbols=$always_export_symbols_F77
30790
 
 
30791
 
# The commands to list exported symbols.
30792
 
export_symbols_cmds=$lt_export_symbols_cmds_F77
30793
 
 
30794
 
# Symbols that should not be listed in the preloaded symbols.
30795
 
exclude_expsyms=$lt_exclude_expsyms_F77
30796
 
 
30797
 
# Symbols that must always be exported.
30798
 
include_expsyms=$lt_include_expsyms_F77
30799
 
 
30800
 
# Commands necessary for linking programs (against libraries) with templates.
30801
 
prelink_cmds=$lt_prelink_cmds_F77
30802
 
 
30803
 
# Commands necessary for finishing linking programs.
30804
 
postlink_cmds=$lt_postlink_cmds_F77
30805
 
 
30806
 
# Specify filename containing input files.
30807
 
file_list_spec=$lt_file_list_spec_F77
30808
 
 
30809
 
# How to hardcode a shared library path into an executable.
30810
 
hardcode_action=$hardcode_action_F77
30811
 
 
30812
 
# The directories searched by this compiler when creating a shared library.
30813
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
30814
 
 
30815
 
# Dependencies to place before and after the objects being linked to
30816
 
# create a shared library.
30817
 
predep_objects=$lt_predep_objects_F77
30818
 
postdep_objects=$lt_postdep_objects_F77
30819
 
predeps=$lt_predeps_F77
30820
 
postdeps=$lt_postdeps_F77
30821
 
 
30822
 
# The library search path used internally by the compiler when linking
30823
 
# a shared library.
30824
 
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
30825
 
 
30826
 
# ### END LIBTOOL TAG CONFIG: F77
30827
 
_LT_EOF
30828
 
 
30829
 
 ;;
30830
 
 
30831
 
  esac
30832
 
done # for ac_tag
30833
 
 
30834
 
 
30835
 
as_fn_exit 0
30836
 
_ACEOF
30837
 
ac_clean_files=$ac_clean_files_save
30838
 
 
30839
 
test $ac_write_fail = 0 ||
30840
 
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
30841
 
 
30842
 
 
30843
 
# configure is writing to config.log, and then calls config.status.
30844
 
# config.status does its own redirection, appending to config.log.
30845
 
# Unfortunately, on DOS this fails, as config.log is still kept open
30846
 
# by configure, so config.status won't be able to write to it; its
30847
 
# output is simply discarded.  So we exec the FD to /dev/null,
30848
 
# effectively closing config.log, so it can be properly (re)opened and
30849
 
# appended to by config.status.  When coming back to configure, we
30850
 
# need to make the FD available again.
30851
 
if test "$no_create" != yes; then
30852
 
  ac_cs_success=:
30853
 
  ac_config_status_args=
30854
 
  test "$silent" = yes &&
30855
 
    ac_config_status_args="$ac_config_status_args --quiet"
30856
 
  exec 5>/dev/null
30857
 
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30858
 
  exec 5>>config.log
30859
 
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30860
 
  # would make configure fail if this is the last instruction.
30861
 
  $ac_cs_success || as_fn_exit 1
30862
 
fi
30863
 
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30864
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30865
 
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30866
 
fi
30867
 
 
30868
 
 
30869
 
# Report on what we found.
30870
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30871
 
$as_echo "$as_me: " >&6;}
30872
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: **************************************************************" >&5
30873
 
$as_echo "$as_me: **************************************************************" >&6;}
30874
 
{ $as_echo "$as_me:${as_lineno-$LINENO}:  $PACKAGE_NAME configured as follows:" >&5
30875
 
$as_echo "$as_me:  $PACKAGE_NAME configured as follows:" >&6;}
30876
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: **************************************************************" >&5
30877
 
$as_echo "$as_me: **************************************************************" >&6;}
30878
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30879
 
$as_echo "$as_me: " >&6;}
30880
 
{ $as_echo "$as_me:${as_lineno-$LINENO}:     GA_MP_LIBS=$GA_MP_LIBS" >&5
30881
 
$as_echo "$as_me:     GA_MP_LIBS=$GA_MP_LIBS" >&6;}
30882
 
{ $as_echo "$as_me:${as_lineno-$LINENO}:  GA_MP_LDFLAGS=$GA_MP_LDFLAGS" >&5
30883
 
$as_echo "$as_me:  GA_MP_LDFLAGS=$GA_MP_LDFLAGS" >&6;}
30884
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: GA_MP_CPPFLAGS=$GA_MP_CPPFLAGS" >&5
30885
 
$as_echo "$as_me: GA_MP_CPPFLAGS=$GA_MP_CPPFLAGS" >&6;}
30886
 
{ $as_echo "$as_me:${as_lineno-$LINENO}:            F77=$F77" >&5
30887
 
$as_echo "$as_me:            F77=$F77" >&6;}
30888
 
{ $as_echo "$as_me:${as_lineno-$LINENO}:         FFLAGS=$FFLAGS" >&5
30889
 
$as_echo "$as_me:         FFLAGS=$FFLAGS" >&6;}
30890
 
{ $as_echo "$as_me:${as_lineno-$LINENO}:      FFLAG_INT=$FFLAG_INT" >&5
30891
 
$as_echo "$as_me:      FFLAG_INT=$FFLAG_INT" >&6;}
30892
 
{ $as_echo "$as_me:${as_lineno-$LINENO}:             CC=$CC" >&5
30893
 
$as_echo "$as_me:             CC=$CC" >&6;}
30894
 
{ $as_echo "$as_me:${as_lineno-$LINENO}:         CFLAGS=$CFLAGS" >&5
30895
 
$as_echo "$as_me:         CFLAGS=$CFLAGS" >&6;}
30896
 
{ $as_echo "$as_me:${as_lineno-$LINENO}:            CXX=$CXX" >&5
30897
 
$as_echo "$as_me:            CXX=$CXX" >&6;}
30898
 
{ $as_echo "$as_me:${as_lineno-$LINENO}:       CXXFLAGS=$CXXFLAGS" >&5
30899
 
$as_echo "$as_me:       CXXFLAGS=$CXXFLAGS" >&6;}
30900
 
{ $as_echo "$as_me:${as_lineno-$LINENO}:            CPP=$CPP" >&5
30901
 
$as_echo "$as_me:            CPP=$CPP" >&6;}
30902
 
{ $as_echo "$as_me:${as_lineno-$LINENO}:       CPPFLAGS=$CPPFLAGS" >&5
30903
 
$as_echo "$as_me:       CPPFLAGS=$CPPFLAGS" >&6;}
30904
 
{ $as_echo "$as_me:${as_lineno-$LINENO}:        LDFLAGS=$LDFLAGS" >&5
30905
 
$as_echo "$as_me:        LDFLAGS=$LDFLAGS" >&6;}
30906
 
{ $as_echo "$as_me:${as_lineno-$LINENO}:           LIBS=$LIBS" >&5
30907
 
$as_echo "$as_me:           LIBS=$LIBS" >&6;}
30908
 
{ $as_echo "$as_me:${as_lineno-$LINENO}:          FLIBS=$FLIBS" >&5
30909
 
$as_echo "$as_me:          FLIBS=$FLIBS" >&6;}
30910
 
{ $as_echo "$as_me:${as_lineno-$LINENO}:             AR=$AR" >&5
30911
 
$as_echo "$as_me:             AR=$AR" >&6;}
30912
 
{ $as_echo "$as_me:${as_lineno-$LINENO}:       AR_FLAGS=$AR_FLAGS" >&5
30913
 
$as_echo "$as_me:       AR_FLAGS=$AR_FLAGS" >&6;}
30914
 
{ $as_echo "$as_me:${as_lineno-$LINENO}:           DEFS=$DEFS" >&5
30915
 
$as_echo "$as_me:           DEFS=$DEFS" >&6;}
30916
 
{ $as_echo "$as_me:${as_lineno-$LINENO}:          SHELL=$SHELL" >&5
30917
 
$as_echo "$as_me:          SHELL=$SHELL" >&6;}
30918
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30919
 
$as_echo "$as_me: " >&6;}